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.

Drawing of the beach at Club Med Cherating
10:34 AM on Saturday 06 July 2013

Below is a drawing of the beach at Club Med Cherating created using Procreate on the iPad.

Redirecting within a bash script
09:44 AM on Wednesday 03 July 2013

I use bash scripts to tie together different programs to get the results that I need and it is nice to be able to redirect all the stdout and stderr of all the programs to a single output file. In a bash script, you can add the following lines to the top of the script and that will redirect everythi ...

bernett.net