Enable mp3 playback with Amarok on Ubuntu 9.10

I just installed Ubuntu 9.10 on my desktop. When I tried to play some mp3 files with Amarok 2.2.0, it didn’t make any sound though it played ogg without a problem. Thanks to this post, mp3 play back can be enabled by installing libxine1-ffmpeg. Credit: How to Play mp3 files with amarok in Ubuntu Linux 9.04

January 22, 2010 · 1 min · 56 words · kenno

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 Source: MSI Wind – Gentoo Linux Wiki

November 28, 2009 · 1 min · 54 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....

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 · 190 words · kenno

Windows 7 64 bit on Toshiba Satellite A200

I just finished installing Windows 7 64-bit Ultimate edtion on my 1+ year old Toshiba laptop. The model is Satellite A200-*****. The installation went smoothly, well almost. On the first boot, the graphic card driver, the finger print reader were automatically updated with Windows update. The only two devices which weren’t detected are: unknown device “ACPITOS6205” (bluetooth) and the Texas Instrument 5-in-1 card reader. The 64-bit driver for the bluetooth can be downloaded from: http://aps2....

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

Linq Read Inserted Id of a Record

Suppose we have the following code sinppets: <br /> private BlogDataContext db = new BlogDataContext ();<br /> ... article.Created = DateTime.UtcNow; article.Modified = DateTime.UtcNow; db.Articles.InsertOnSubmit(article); db.SubmitChanges( ); The ID of the article is automatically generated. How do we get the Id of the newly inserted record? It turns out that the article is updated with the value of Id after the method SubmitChanges( ) is invoked. So, we can just get the Id this way:...

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

Convert wav to m4a with GNU/Linux

There are probably a gazillion ways to do this. I use FAAC, Freeware Advanced Audio Coder, to do this job. It works very well: <br /> faac originalfile.wav -o outputfile.m4a<br />

July 27, 2009 · 1 min · 31 words · kenno

FIXED: extconf.rb:8:in `require&#8217;: no such file to load &#8212; mkmf (LoadError)

While reading Linux Journal Issue 181 today, I stumbled upon a section explaining about running Ruby on Rails on Apache using an Apache module called Phusion Passenger, also known as mod_rails. To install Passenger, I followed the instruction provided in the magazine: sudo gem install passenger Unxpectedly, I got the following error: ``Building native extensions. This could take a while… ERROR: Error installing passenger: ERROR: Failed to build gem native extension....

July 25, 2009 · 1 min · 167 words · kenno