Something you may not know about your HDD

It’s inside your computer, and it doesn’t care whether you are a gaming maniac or an internet a holic. As long as you have to turn on your computer daily, one day it will make Murphy’s Law apply to you too: bad stuff will happen when it can cause the most damage.

Take a look around the internet; you’ll see you are not the only one concerned about how long your data will live. The crude fact is: your drive is not immortal. For most people who uses their computer daily, their HDD (from this point, it means magnetic platter drives)’s life will span from 3 to 5 years [4], really short if you ask me. If you don’t have enough money to replace a drive every time this period comes around, you’d better not store anything important there.

Besides obvious factors that will damage your data like a magnetic field, electric shock or physical shock, an invisible element could be temperature [5]. There are HDD fans to address this issue, those fans are quite cheap, they cost from $2 to $5. Others claim those fans will blow dust to other components. Well, if they would mitigate the heat issue that would not be a problem with me, since I take my time to physically clean my computer’s components every 3 months.

From the above source [5], there is also a ridiculous sounding argument: spinning drives will cause drive motor’s lubricant’s to spit out and condensed on the platters, making the drive crash. If that were such the case, why would they use such a lubricant in the first place? However, the spin may have something to do with it, as with every motor, any kind of movement would wear them out over time. It’s possible to stop your drive from spinning when you don’t use it through power management or some utilities. You can’t use this however, if your drive is frequently read from or written to [6].

Years ago, some guy from Quantum claimed that there’s little can you do to prolong your hard drive’s life span [1], so does Google’s 2007 research [2]

Failure rates are known to be highly correlated with drive models, manufacturers and vintages. Our results do not contradict this fact For example, Figure 2 changes significantly when e normalize failure rates per each drive model Most age-related results are impacted by drive vintages. However, in this paper, we do not show a breakdown of drives per manufacturer, model, or vintage due to the proprietary nature of these data.

You may think that high usage will make your drive fail you sooner. Actually the situation is more complex than that.

Hard drives less than three years old and used a lot are less likely to fail than similarly aged hard drives that are used infrequently, according to the report.

“One possible explanation for this behavior is the survival of the fittest theory,” said the authors, speculating that drives which failed early on in their lifetime had been removed from the overall sample leaving only the older, more robust units.” [3][7]

So, use your drive frequently when it’s still have warranty to make sure they are good, before giving them a rest :P. Some may say drives nowadays’ lifespan is shorter than before because of their high spin rates. That may be true though, but I can recall I hardly have my hard drive read or written when I was programming Pascal on a ram drive back in my 486 time :). As a matter of fact, the two hard drives I have back then still work now, a 200MB and a 800MB with spin rate somewhere below 5k. Sadly, you can’t have Visual Studio 200x to compile anything without writing to your HDD, even if you lay all your files on memory, VS would never fit csc there.

Back to the main topic, Google’s report also reveals that the temperature – failure correlation is complex too.

As you can see, the lowest failure rate is reached when the drive is around 40 degrees Celsius, be careful applying HDD fans. Though I think I will need one when my drive get older. When transferring the aftermath remains from the crashed drive to the new drive, I noticed the older drive (Samsung) is hotter than the newer (Seagate), though I’m unsure this is because of their age or being a brand matter like Google said.

Even though they say SMART failure somehow correlated to actual drive failure, you can’t depend on that not-so-smart feature to know when your drive is going to fail you. Actually, Google can’t even model how SMART errors affect failure rates

The attribute with highest failing rate is “anything” :P.

Google’s research shows that drives which have their first bad sector have 10 times probability to fail that intact drives. I may agree with this. The first time you hear a click from your drive (I mean a clear click you can hear from half a meter away, from outside the case), you can start backup your data, as your drive may fail you anytime from the next 2 weeks.

In the end, what you can do, you don’t know (because Google is mean :()! Despite being extensive and well conducted, Google’s research can’t accommodate every possible use case a normal user (e.g. you) will encounter. You can’t just stop yourself from turning the computer on (to control drive usage) those days, the net has become something you need like air, water or food! Thus, it’s best to simply do what you feel best to keep what you value most with you. There is a tip that works for everyone though: backup early, backup often and make as many backups as possible.

For a conclusion, there is a Wikibook dedicated to this topic, which I would recommend. [3]

Side story

When netbooks comes out, a new kind of HDD is introduced for the public too: solid state drive or SSD (my definition for a hard drive is something fixed in your computer and is not a removable media drive). My first opinion about them is that they won’t last long, since their life depends on the number of times data is written on them, what would happen if you download stuff, short on memory and the OS have to swap, or surf the internet with them (in which case the cache will get written and rewritten, again and again). Some of my colleagues already have their pen drives (which is basically the same technology as SSDs) failed after about 2 or 3 years usage. And lastly, the netbooks are cheap, the pen drives are cheap to, and cheap stuff rarely had high quality. 😛

However, some folks from a Mac forum may have proved that I’m wrong [8]. SSD can be written around 1 million times, plus they have 25% bonus capacity for wear leveling. They calculated that SSDs could outlive the owner if used sparsely. Well, time will tell.

References

(Don’t flame me for not having them sorted)

[1] Why good hard drives go bad

[2] Failure trends in a large disk drive population

[3] Minimizing hard disk drive failure and data loss

[4] How to Take Care of Your Hard Drive to Prevent a Crash

[5] BAD SECTOR: bn cht, nguyên nhân và phòng tránh

[6] Using spin down to prolong the life of old hard disks

[7] Hard disk test ‘surprises’ Google

[8] Replace Hard Drive with Flash Card “SSD”

The webgame storm

It was not so long ago the web was still a bunch of text-only HTML without CSS and stuff. Now it can open your documents, let you communicate, catch the latest scoop on entertainment, then why not play games on it?

Before, the web was designed to deliver text-based content. Most related technologies are also text-oriented: CSS, XML, AJAX, and JavaScript. But now, as browsers have got more mature and text features are saturated among competitors, there goes the performance race. JavaScript got faster, as JIT compiling and other interpreted language technologies are improved. Now games are feasible and the web game industry began to rise. GIF for sprites, PNG for effects, JavaScript is capable of image processing is far than enough to make a game possible.

For web game, you know I don’t mean those simple flash games you play at work to make your boss mad, but instead role playing games that will take you an indefinite amount of time to play, just like Lineage or Ragnarok. Those game is also a kind of society, where players can communicate with each other, thus games could be considered a part of the 2.0 hype.

This is far from being an exhaustive review of web games, but instead the experiences I have with them.

Gaia online

Possibly the most influential web game now is Gaia Online, a collection of game and community activities. As the biggest, it also causes most controversial problems (say pedophilias). It’s not a single game with a single story but it does have role playing elements like quests. Nevertheless, it’s nice interface and huge community is quite attractive to those who have nothing else to do. Gaia also sure inspired a lot of modern web games.

Gaia online town

Image: CNET

Gameforge

Gameforge is an influential game maker emerged recently. Though their games are pretty much in beta stage, their international approach (provides as many language as possible) seem to be effective. Based on the number of new games they release each year, it’s clear that they made quite a lot selling enhancements to their games. Those enhancements does not provide a real advantage over those who don’t have time, but that’s a right move: they attracted a huge number of free players that even the slightest advantage will have effect toward thousands of another players.

Most of their games are real-time. That is, moving armies or explore and area will cost you hours in real life. It’s up to you when to care about the game but the more you care about it, the more successful you are. It’s like the Japanese’s Tamagochi where your chicken is now a gladiator or an empire :P.

They also don’t have a nice interface like other producers. I’m unsure why but all their games look pretty clumsy to me

Ikariam is the most recently Gameforge game I played. You can build cities in an ancient Rome theme. You build cities on islands with a specific resource. Among them: Wine, Marble, Crystal and Sulphur. You can freely develop your empire, research to improve technologies, build troops to defend your empire or wage war at another, trade and exercise diplomacy with other empires. Addictive and time-consuming. Though you don’t have to wait for the buildings to build, you are always at risk getting attacked if you are not prepared; and even if you did prepared, you might get attacked by someone stronger anyways :p

Ikariam city view

Before, I have also played Gladiatus, where you play the role of a Roman gladiator. You can fight others, work to earn money, do quest to gain fame etc. Simple interface, you don’t actually see the gladiators combat and I get bored after a while doing repetitive actions: work – quest – explore – buy / sell items – dungeon – work, and get bashed by stronger players (though their levels are lower). It’s still a mystery how they get so many gold to win at auctions ;).

Other Gameforge games include bitefight, kingsage and ogame.

Though those games are of great entertainment value, Gameforge is quite stingy to rely that much on volunteers to exercise control on the game. Even when it cost them almost nothing hiring those volunteers (they pay by in game bonuses), they are still reluctant to hire some more. It’s funny when they don’t allow multiple accounts in their rules but doesn’t have any automatic control over user registration. Instead they rely on 5 game operators to ban each of the violating accounts. Imagine when 30% of the server of 10 thousand players decide to go against the rule, what will happen?

Well, that is happening already and it made those games tasteless to me now, since Vietnamese are so clever to dodge the rules to satisfy their deflated self-esteem in games :(. What’s the good for that anyways? Games are games and they still spend hours to fight in game, and then take another hour to fight on the forum. In the end, it turns out that all the big shots are multis 🙂 (Note that multi account players have a huge advantage over those who don’t, say, a 1000% increase in resources by manipulating the clones).

I’m off until those games get better so I can play it the way I want, undisturbed by idiots who have no reasoning capabilities. I’m giving away my accounts for Ikariam and Gladiatus for someone who can take care of them under one condition that I can borrow them sometimes :). My Ikariam account is 4 months old on Gamma and has 3 cities: level 16 -16 -15. The Gladiatus one is somewhere around level 19. Email me if you have inquiries about this.

Aurora blade

A RPG, where you can actually cast spell, do action and handle items, which you once thought it wouldn’t possible without a 2 GB client :P. Its graphics is quite nice though the image compression is somehow flawed (you can see jagged JPGs all around). Nice game with rich content, from monster fighting, quests to game events. Though it’s criticized for copying many designs from Ragnarok and WoW, it still take quite a lot of effort to build this game and integrate all the graphics. Cheers for the Chinese! (IGG is founded by Chinese).

In Vietnam

Though the big guys have developed quite a stand in this business with quality games and strategic moves, smaller publisher and developers still find their foothold somewhere. Sadly, most of the games in Vietnam are still just translations from foreign developers (again, Chinese). Though they employed large advertisement campaign and sexy cosplayers I still find little interest in them. First, they are from China. What’s so great about Chinese games? Or are they paid by the Chinese to accomplish the cultural elimination the Chinese was unable to complete years ago? Second, under their colorful interface, you can barely find the register link (sometimes you actually have to ask to be shown the register link :P).

There are quite a lot of stuff to entertain you on the net already. Web games are still at the beginning of their era. Even though they have come over technical challenges, most of them still don’t fit the average user’s playing habit. For any SimCity fanatic out there, Ikariam is like a disater where your beloved city get ripped of its bone by aliens from the next planet :P. Each of the game has its own strength and weakness, competition between them would be a fun thing to watch in the future.

In Vietnam, I don’t think any of those games will make a difference.

  1. The current economic crisis have driven away some hardcore player. They have to make a living!
  2. There are fewer clients who is willing to buy virtual stuff to support a game.
  3. Unless Vietnamese gamers’ barbaric and lawless attitude is changed, those game won’t attract the more educated classes. Playing along with idiots is pretty irritating. (LEEEEEROY!)

End of another lengthy post 😛

Tumblelogs

Tumblelog is a term coined in 2005[1] to denote blogs which favor short posts, most of the time sharing only a single item. I encountered the first such blog on 2007[2] but it didn’t really impressed me. Not until last night, when I was shown a comic translation blog [3]. Tumblelogs are just great for the purpose! It allowed instant sharing of daily comic (one thing jumps right in my thoughts: there is a bookmarklet somewhere) without any comments, category or other hassles. On the other hand, perhaps the comic blog above is too simple it don’t tell us where the comics come from, nor mention Garfield’s author (so I’m not condoning it at all, just an example).

It’s also worth a note to distinguish between tumblelog and microblog. While microblog is primarily aimed at status updates, it also allows you to post multimedia content like tumblelog. But your status could change anytime, anywhere, so you’ll need an equivalent update convenience (e.g. mobile updates). On the other hand, tumblelogs are designed to share content, and as you may encounter most content while surfing, think bookmarklet and email-to-post. You can see the gap between two services is not big, and as this article is being written, more features are being stuffed to twitter (that’s why its interface has turned in to a big bunch of text instead of one line of status :P)

Okay, too much ranting again. I only wanted a short review about current tumblelog services when I started writing!

Tumblr

Not the first Tumblelog software, but the first one is currently down so I can’t test it :P.

Tumblr seems to be the most popular tumblelog service around. Clean interface, but there are only a few themes available. None looked good enough for me :/. The theme installation from theme garden worked erratic somehow. For the functionality, Tumblr is pretty good, it pulls the page to its server after you add it with the bookmarklet; analyze the page to find contents you may want to blog about on the page.

Tumblr could be linked with twitter so that all twitter updates will be copied to your Tumblr and vice versa. Also, you can import feeds, bookmark from social bookmarks and posts from other blogging services (thus Tumblr could also act as a bridge to let your twitter followers know when you write a post or bookmark something).

Media could be uploaded to Tumblr but there is a 10MB file size limit (I’m unsure what the storage limit is, see quote below). If you want to post bigger stuff, you are on your own.

Tumblr retains the right to create limits on use and storage in its sole discretion at any time with or without notice. [Terms of service]

The bookmarklet is in the “Goodies” tab; there you’ll also find your email-to-post address, iPhone app and third party apps. The dashboard interface is a little clumsy, functions are distributed on tabs, sidebar, and a menu; but that doesn’t seem to limit Tumblr’s popularity.

You can customize the theme with HTML and CSS. You can also attach your Tumblr to your domain as long as you are able to modify A records (it took a really long time to propagate through the nameservers so you may be unable to view your blog for one or two days if you use this). There are APIs available, but I haven’t looked to see what they can do (yet).

Soup.io

Quite a competitor for Tumblr, most of the features are the same. The interface has more web 2.0 slides and fades, but the page still refreshes to update itself so I’m still not completely satisfied with this service. It allows you to import from more services (say furl or weheartit) but its bookmarklet isn’t as good. It will only detect media on popular sites; it does not analyze the page so it’s very likely that you’ll have to prepare a link to the media first.

The basic theme structure seems to be fixed. However you are allowed to theme it with CSS

Gelato

Seeing Tumblelogs in action somewhat annoy me why such a small amount of content take a whole page load? Isn’t some AJAX to flip pages are better? Then I went to the usual developer’s craze wanting to develop a whole new service that satisfies my every need, since the above are hosted by the blog provider. And as paranoid as a user may be, leaving data on a stranger’s server just doesn’t bring a nice feeling :P.

Fortunately, thank to the free culture (as in free beer :P), someone must have done the job for you! In this case it’s Pedro Santana: from Gelato’s homepage you can download the source (latest at the time of writing: 0.95).

Pretty close clone of Tumblr. To the average user Gelato only provides basic features. You can blog, change the theme, use the bookmarklet but that’s all. The advantage is you have full control over it. Its template share similarities with WordPress.

Still no AJAX for page transition, which I’m pretty disappointed since it advertised itself “built upon AJAX”. But I don’t think that would be a problem though, you have the source of a working Tumblelog!

On ignorance

1.

A blog post from a HCMUT instructor suddenly force me to look back. Where am I actually? On the path to become a CS (computer scientist) or a CEN (computer engineer)? I have thought about it, but just unable to determine which. The following quote somehow cleared the blockade:

Should I pursue computer science or computer engineering?

Scientists and engineers are both interested in the nature of things, in understanding how ideas and objects in the world fit together. But in general, they seek to understand the nature of reality with different ends in mind: the scientist seeks this understanding as an end in itself, the engineer in order to build things. Thus CS is closer to the underlying theory of computation, with its roots in mathematics, and CEN is closer to the design of physical devices, with roots in physics and chemistry as well. Students with an urge to build things, to measure how things work in the laboratory, those attracted to physics and chemistry as well as mathematics, should seriously consider CEN. Students with an interest in the true nature of symbols, information and their manipulations, the forms and limits of algorithms and data structures, should consider CS. Of the three great divisions in computing, namely theory, software and hardware, to a first approximation theory go with CS, hardware with CEN, and software with both, but mainly with CS. The more general the software, the closer to CS; the more hardware-specific, the closer to CEN. Thus a student interested in creating his own new general-purpose computer language would best be served by a CS degree program, while one interested in designing a software interface for a new high speed serial device by the CEN degree program.

I don’t like to build things. I do that frequently, but because I am forced to :P. Either that is a project or that make my life easier. But a CS must have fascination with the nature of everything, and feel the elegance of a solution. Looks like I don’t. I haven’t invented any new way to solve a problem, just combine existing things together and see if it works. Furthermore, a scientist must explore lots of things and also  able to describe it so others can understand what they have in mind, which is something I’m not really good at. (Just writing a blog post like this is enough to give me a headache – I’m trying to get better nevertheless 🙂 ). And in the end, though I don’t like it, I’m best at building things, not sitting around and dissecting others’.

I think I’ll be a CEN, though CS does sound much cooler. The anti-need to build-something can always be credited to one thing: laziness.

2.

Another point for this matter: nobody told you what you’ll be before you started learning (sign up for the school, and stuff); and you don’t get to change your major in Vietnam. In contrast to other countries’ where potential students can get a grip of what they’ll learn, not by asking some counselor through magazines’ forums but by getting the info straight from where they want to apply:

http://www.pratt.duke.edu/highschool/cs_vs_ce.php

http://www.ntu.edu.sg/SCE/info-gen.asp

http://www.eng.buffalo.edu/compscie_vs_compeng.php

This may sound unimportant, but the consequences are not. Some 1st year student from my university suicide last week for getting expelled for low grades. If that kid had been informed that all students hated the general curriculum years… :/

3.

The itchy “unknowing” feeling is common. It doesn’t just come when you stop for a moment and start thinking about your life. It could come out of a sudden when you are in the middle of something else. The result for each time varies and could be hard to classify. Nevertheless, Phillip Armour tried to categorize ignorance itself and coined a term “Order of Ignorance”

  • 0(zero)th Order of Ignorance (0OI): Know something (relevant) and can use it effectively
  • 1st Order of Ignorance (1OI): Know that that you don’t know something
  • 2nd Order of Ignorance (2OI): Don’t know that you don’t know something
  • 3rd Order of Ignorance (3OI): Don’t have a process to find what you were unaware that you didn’t know
  • 4th Order of Ignorance (4OI): Not even aware of the Orders of Ignorance and their implications

Yeah! Now you’ve read this, so you are at 3OI already! You know what “order of ignorance” is :P. You (may) have successfully perceived that the unknown is vast. You can’t just “know” that and do nothing, you have to proceed up the levels of ignorance. Note that these levels apply to a specific range of problem, and you may say “I’m 0OI at X but 2OI at Y and I need your help”; most people would love to!

If all this sounds too alien to you, imagine that you read horoscopes, numerology, take personality tests. Do you believe in them without a doubt? Then you are at 3OI for psychology! If you have a slight doubt and wanted to find out why, you are at 2OI, because you know somehow they are right and somehow they are wrong, but don’t know where to clear the doubt. You are at 1OI if you want to know about the Forer effect. If you understood what that is, you are now at 0OI. You know science have space on the selves for supersition 😛

It’s like climbing stairs, the ascension is always harder to take. You may make it to the “higher” levels but as you forget what something is, you fall a level; and if you continue to forget your methodologies too, you fall down yet another level.

As human’s memory is currently so limited (except for exceptional cases). You will eventually forget things, but in order to keep yourself from falling further, you have to keep the methodologies of life; some call then principles. Don’t worry; most of us are able to keep them, and can come up and down the stairs.

Unfortunately, some don’t, and as climbing the stairs is hard even for themselves, you are always at 2OI to make them climb with you or if that even possible, and if you don’t even want them to climb with you, you are back at 3OI =)).

I have something that I must do, with which I have 3OI. Oh, well…

A glance on domain names

Source: literate.co.uk

My university organized many conferences, submitted quite a lot of papers, and I wonder if it is considered an academic institute, which translates to an .ac domain

http://www.hcmus.ac.vn

No it’s not 🙁

For those you don’t know the difference between .ac and .edu: .dot edu is an abbreviation for “education”, which means any entity with educational purpose could use this domain, including elementary schools, high schools, vocational colleges and I haven’t seen this but it’s a possibility: kindergartens. Dot ac, on the other hand, stands for “academic”, which means higher education institutes and research is their main function.

So… my university is in the same domain with naughty kids and hysterical teenagers :”( while entities that I never heard about has the “noble” .ac ~_~. It’s like .ac has a really high standard that even a university couldn’t meet!

Side note: in the United Kingdom and Japan it seems like nobody uses .edu, only .ac; perhaps they want to tell everyone in the world that they don’t allow idiots to enter any educational facilites! For the U.S, it’s always .edu and no .ac (they got the 1st level domains already :P)

No, It’s not!

Source: The Google search above, now they are hiring poets for an IT research instute? 😛

Try www.ac.vn

I couldn’t get what VNNIC was thinking allowing the allocation of that. Higher learning institutes got a 3rd level domain while a SMS service bastard get the 2nd level national domain!? What kind of planning is that? Or in Vietnam cell phones are used (more relevant to people) than brains? Sadly nothing could be done, ’cause if you ask them, they I’ll be like “Canadians did that too”.

Doubting that this “www” would be allocated like that somewhere else too, I tred www.edu.vn, name.vn, gov.vn, info.vn, biz.vn etc. Luckily, they are all pointed at dot.vn; so looks like the .ac is an “isolated case” and no one would be held responsible when those reporters find out 😛

Who’s the most advanced

Yesterday I was searching for Russia’s prime minister’s duty and terms, I came across this article and wondered if Vietnam’s prime minister has a page. Sure, I added it to the article. Now some would say Vietnam is no less technology advanced than Thailand or Singapore ;), the parliament (or “national assembly” as it is translated) has a site too.

Well, you can’t get cocky yet, because the party’s general secretary doesn’t seem to know how to open an email account or write a blog, not even letting someone write the biography.

To compare with: