December 31, 2007
Today, I was writing a short email to a local TV station’s webmaster complaining the fact that they keep flashing me with pop-up ads that none of my pop-up killer can detect. It is bad enough that they put adds all over the place: top, bottom, sides, middle of the stories. Now, they flash us […]
December 29, 2007
This is one of my earliest pitfall when learning Python and I would like to share it to other novices. Consider the following short program: testCount = 0 # a global variable def runTest(): testCount = testCount + 1 # more code here # main body, run the test twice runTest() runTest() Running […]
December 28, 2007
I have this one-liner: puts “argc = $argc” and saved it to cmdline.tcl. If I invoke the program directly like this: cmdline.tcl one two three then the result is: argc = 0 If I invoke it as: tclsh cmdline.tcl one two three then the result is correct: argc = 3 The same program works fine […]
December 26, 2007
After I upgraded to Leopard via erase and install, I discovered that my Bluetooth Mighty Mouse no longer perform the “right click” or secondary click in Apple’s terminology. After digging around in the System Preferences, I found the problem: by default, the right mouse button performs as a primary button (AKA left click). Fixing the […]
December 24, 2007
I have been preparing to migrate my Tiger MacBook to Leopard since October, and let me tell you right up: it has been relatively painless. In this blog, I am going to tell you my preparation steps, the actual upgrade process, and the adjustments afterward. Background My wife and I own two Mac laptops, I […]
December 23, 2007
Holiday is the shopping season and I have this photo to prove it. I took this picture at the Bellevue Square Mall in Bellevue, Washington. As I was stuck in the "traffic" within the parking lot, I took this photo using my mobile phone.
December 17, 2007
I drew this cartoon, copying the idea from somewhere which I have long forgotten.
December 10, 2007
As part of my job-hunting strategy, I uploaded my resume to a jobs site whose name remain anonymous. Here is a clipping of the email I received from them. Take a closer look at the job title which I pointed out. Have you experienced mismatches like this? Post your comments so we can all enjoy.
December 5, 2007
As I go through interviews while looking for jobs, I often come home and revisit the questions as a learning experience. Here is an interview question that I often encounter: Given an array of integer where the elements (entries) are not sorted, write a function to return a new array with the duplicate entries removed. […]