Stopping hard drive clicking noise on MSI U100

Finally, the OS X has been removed from MSI Wind U100, and completely replaced by Debian (testing). Whenever the computer is idle, the hdd makes this weird clicking noise. To stop it, we can use hdparm to turn it off. kenno@tora:~$ sudo hdparm -B 254 /dev/sda</p> /dev/sda: setting Advanced Power Management level to 0xfe (254) APM_level = 254 Source: MSI Wind – Gentoo Linux Wiki

November 28, 2009 · 1 min · 65 words · kenno

Profile backup - Mozilla FireFox and Thunderbird

At work, a colleague is struggling to get his PC up and running for a few days now. To add an insult to injury, he also lost some of his Microsoft Outlook back up emails. Seeing what happened to him, it’s a good reminder that I shall back up my files and emails too. I use Mozilla Thunderbird (2.0.0.22), and I found a very nice tool to back up the emails (a.k.a profile). It’s called MozBackup. ...

August 13, 2009 · 1 min · 88 words · kenno

SQL: Update with values from another table

UPDATE Log<br /> SET Username = u.Username, Name = u.Name<br /> FROM Users u<br /> Where u.Id = userid Source: codesnippets.joyent.com

August 13, 2009 · 1 min · 21 words · kenno

MS SQL: Reset identity seed

Occasionally, I need to reset the value of the identity column in MS SQL database. I keep forgetting how to do this, and have to search all the time. So here is a note to myself: DBCC CHECKIDENT (TableName, RESEED, 0)

August 13, 2009 · 1 min · 41 words · kenno

Restore Grub Boot Loader

Warning: this guide is only a personal note to remind myself when I have to restore Grub again. In my previous post, I had just installed Windows 7 as a dual boot with Debian on my Toshiba laptop. The following describe the steps taken to restore the Grub boot loader so that Debian can be started again. I booted the laptop with Ubuntu Live CD, then open a Terminal. To get the partition tables, as a root execute the fdisk command: ...

August 8, 2009 · 1 min · 187 words · kenno