Listing files with absolute paths
03:05 PM on Wednesday 21 August 2013

In some cases, there is a need to list files with absolute paths rather than just the filename as done by ls. This can be done using the following command: find -iname '*.txt' This solution uses find to search for files within the directory provided by pwd which is the current directory. This crea ...

Why me
12:54 PM on Saturday 17 August 2013

Using awk to filter lines on column values
10:28 AM on Thursday 15 August 2013

You can use the following awk snippet to filter the lines of a text file by a certain condition: The above snippet prints out the line in the text file is the first column has a numeric value greater than one. See http://stackoverflow.com/questions/8734351/using-awk-to-filter-out-column-with-numeri ...

The family having yogurt cones
07:25 PM on Sunday 11 August 2013

Esther, Ernest and myself having yogurt cones at Andersen's.

Air purifier
07:40 PM on Monday 05 August 2013

Ernest's allergies are acting up again. So I thought to buy the Sharp air purifiers to be placed in his room to help his allergies. We got a Sharp FU-A28E which has a HEPA filter and an ionizer for the kids room and a small car ioniser G-DC2E for the car. The room unit seems to be rather quiet at it ...

Kids acting cute
08:32 AM on Sunday 04 August 2013

Ever got one of these faces from the kids when they want something?

Recursive queries
03:59 PM on Friday 02 August 2013

I have always been amazed by Oracle's connect by query construct which enables recursive queries. I use quite a bit of graphs in my work and representing and using them with a database has been less than ideal. I just realized that PostgreSQL and SQL Server are also able to do this using Common Tabl ...

Beards and programming languages
07:22 AM on Tuesday 30 July 2013

Who would have thought that the key to the popularity of a language is the size of the founders' beards. I typically thinks about ease of expression and the ability to perform powerful tasks with concise syntax but it appears that great beards are the key to a popular language. Check out the article ...

Vegetarian chicken rice
08:37 PM on Sunday 21 July 2013

Had a vegetarian chicken rice for breakfast today and it was rather good. The rice had the taste of real chicken rice and the mock chicken is rather good. Not bad for $2.50 at the Bedok central hawker centre.

Clouds
08:22 PM on Sunday 14 July 2013

Saw some beautiful clouds from the lift lobby and decided to do some HDR on it. The following is the result.

bernett.net