Monthly Archives: April 2008

Swap without Temporary Variable

When we’re programming, if we want to swap values of two integer values, the “normal” way we do it would look like: x = 5 y = 3 temp = x x = y y = temp We need a … Continue reading

Posted in Programming | Tagged | Leave a comment

A Math Problem and the Answer

Problem: Two prime numbers (>=5) and there are one and only one number between them, such as (5, 7), (11, 13), (17, 19), etc.. Prove the sum of such two prime numbers can always be divided by 6. Answer: All … Continue reading

Posted in Discovery | Tagged | 2 Comments

Solution to Lenovo Y410 Sound Problem On Ubuntu 8.04

Update 2008-11-20: In a comment, Ace pointed out that Ubuntu 8.10 already has this problem fixed. Update 2008-10-6: please don’t use the y410_sound script from this article since I don’t own a Y410 anymore, so I couldn’t test and maintain … Continue reading

Posted in Troubleshooting | Tagged | 25 Comments

How to Play Rmvb Files In Ubuntu 8.04 (Hardy Heron)

If you experienced this topic earlier, you know that it’s tough to solve. Playing Real video format files (e.g. rmvb files) is still a problem in Ubuntu 8.04, but don’t worry, it’s now much easier than before. So, here we … Continue reading

Posted in Linux | 28 Comments

Huge Mistake

Everybody is recommending everybody to upgrade to WordPress 2.5.1, and I did, but I made a huge mistake during the process: I deleted the uploads directory! All my blog images were located there and the even worse situation was that … Continue reading

Posted in Personal | Tagged | Leave a comment