Archive for July, 2007

The Search For Stars To See (Part I)

The time is 2300 hours. Equipped with little more than my handphone, GPS receiver, cousin’s Giant road bike, army glasses, I set off to find an “wulu” (deserted) area around my neighborhood where I could graze at the stars.

Cycling Route Tracked with GPS
(courtesy to Google maps)

Why the want to look at the stars? Some friends might have know my love for stars, (not so much in exams) that in my bedroom are glow-in-the-dark stars linked with adhesive to the ceiling. When overseas even in Malaysia, it was nice to look up and see the beautiful sky we seldom chance on at home. During my army’s guard duties, it was nice to step out of the building at night, with the dark surroundings, gave attention to the bright backdrop of stars overhead.

Although I always ask others if they knew how to look at stars, I never get to learn, and so I always had my own way of looking at them. Until I visited this webpage, The Night Sky, with over 80 pages of night photos, teaches you how to identify stars, direction, constellations, and planets. Armed with this new knowledge I wanted to look at the sky for myself.

In my memory, the route I’ll be taking will be going through the least populated and least lit, places which perhaps I could get the most out of the sky. Up the slope, round the road to the Yishun channel cycling track, connect to a lonely road at a Malay Kampong g (village) near the Sembawang beach.

Well… I didn’t manage to see the stars today.

For one reason, perhaps its too early?

Two, as what a writer describe in an article I read years ago: “Light population”. Lights from the city, from the HDB flats, from the roads, and even the deserted road I remembered with proper lights has been covered with street lamps.

Three, the sky. Too bright, I thought, such that I see a lighted background behind the trees and lampposts. Seemed because of the bright full moon in the near horizon. Yet I remember seeing both bright stars and moon in my duty days. Cloudy sky, was my conclusion, as the clouds trap the moonlight to reflect or refract creating a bright sky with no stars.

Summary:
About 30 mins of cycling time,
~8km of flat distance
Average speed of ~20km/h
Maximum speed of 36.4km/h
Average elevation: 12.2 m.s.l.
(tracklogged by Trekbuddy and reports by uTrack)

No star grazing. Let’s wait for another time.

Grean Bean Soup

绿豆汤, or green pea soup, is one my favorite traditional Chinese desserts.

Having a short break between my NS and NUS (the difference in U means university) gives me couple of time to spend in the kitchen. Having gathered advices from couple of ladies, its time to try out. Here’s a link to more or less standard recipe for cooking green beans, but mine’s going to be with a little variation.

1. Ingredients.

Here I have: green beans, rock sugar, padang leaves, barley seeds.

2. Start to Boil
Big Pot
Here I have a huge pot of water, and I added 250 grams of green bean seeds.

Brother’s/Dad’s advice: Place less water so the water can boil quickly, food can heat up faster, then add more water if needed.

Cover with a lid to keep the heat in if you want the beans to open up quickly.

Mom’s advice: Place a porcelain bowl or spoon into the soup so the green beans can open quicker.

3. Mix other ingredients in
Barley
Throw the barley seeds in.

Wash and tie the padang leaves before throwing them into the soup. If you are boiling the soup for long time, remember to remove the leaves when you find the taste from the leaves have used up.

Throw in rock sugar, to make it taste sweet. I used 6 pieces, but you can add different amount to your liking.

4. Serve
Green bean mixture

Okay done. Time to scoop some out to test. My pail of soup created more than 10 servings.

Green Bean Soup Bowl
You could eat it warm, or cold. Cool it down on the table before placing into the refrigerator for cooling or storing. Remember to heat up the soup if you want to store it the pot overnight.

5. Enjoy

Other than the reason Zz85’s a dessert guy, he loves sweet stuff, especially 凉 “cooling” stuff, therefore all the more Zz85 loves green bean soup, yum yump!

Notes From Myself For Myself (Part 1)

27 June 2007 Wednesday.

I separated from my campmates as we go on our separated ways home. My bus reached Bukit Batok Bus Interchange, and I took a walk into West Mall. A text came from a ORDed friend, saying he has a gift from Hong Kong for me. To stall time waiting for him to arrive home, I went into Bukit Batok Community Library and borrowed a few books quickly. 1 was copy writing, another resumes, a book for writing autobiography and one for writing journals.

[
Side story about my library fascination: My mum used to bring me to ang mo kio’s library when I was young even though traveling time took at least 30 mins. (there was where I read about computer programming.) I was a librarian 3 years in my secondary school days. I spent countless time in Yishun library when it was built no more than 50m from my home! After O’levels while working, I made it a point to visit every branch of community library in Singapore - I believed covered almost everyone of them. NYP library was a place we inhabited during exams period, while some studied, some eyed for girls)

Trivial: Spelling and Languages are still one of my worst abilities! Some friends think I’m dyslexia.
]

The book that caught my attention, “Notes From Myself”, subtitled “A Guide to Creative Journal Writing” by “Anne Hazard Aldrich”.

My impressions reading the book, was it teaches you what is journal writing, the benefits and insights, and provides interesting notes and excerpts from other authors and journal writers. The book gives tips for writing, and also reasons to make you do so, and although journal writing would be a mile different with blogging, nevertheless its a read to make you reflect how you write.

Listening to the Morimur album while reading took my thoughts and feelings back and forth many places while I try to complete the book before the due date. Morimur album, btw, is recording done by Christoph Poppen and Hilliard Ensemble rendition of (a remixed) Bach’s Solo Violin Partita and Vocal Music. It has a modern idea, yet a very nice baroque, bach feel.

Back to the book, the last chapter made me reflect on the words of eleventh century scholastic Richard of St. Victor:

A man, who has not yet succeeded in seeing himself, raises his eyes in vain to see God. Let a man first understand the invisible things of himself before he presumes to stretch out to the invisible things of God…
for unless you can understand yourself, how can you try to understand those things which are above yourself.

7 Lines Of Linux Shell Scripting

A cousin asked me help him find a solution to extract html from hundreds of links into excel cells.

Telling him the limitations it, he ask me to place them in cvs format.

I start up my putty, ssh into my linux server, and coded this.

run.sh

echo URL,HTML > csv
for link in $(cat links)
do
        wget -Otmp $link
        perl -pi -e "s/\"/\"\"/g;" tmp
        echo $link,\"`cat tmp`\" >> csv
done

Lets take a look closer.
Line 1: Creates/overwrites a file called cvs with the text “URL,HTML” which is the header for the cvs file
Line 2: I placed all the URLs in file call links, 1 per line. The for in structure would loop each link
Line 3: do … done (see line 7) block would repeat the commands until all the links are processed (line 2)
Line 4: using wget to save the url (the variable $link) to a file named tmp
Line 5: This line replaces all single ” to double ” quotes (”") for differentiating in the csv file. This amazing line using perl to perform regex (regular expression) substitution (search & replace) on the tmp file. Take s/baba/haha/g, means substitute(s) baba (/baba) with haha (/haha/) on all matches (g)
Line 6: Inserts the URL, the html code enclosed in quotes (therefore requiring line 5), separated by a comma (hence comma separated values for CSV), appends to the output file csv
Line 7: See line 3

Run it by the usual commands
chmod +x run.sh
./run.sh

Then retrieve the resulting csv file via ftp.

Although not this is not the only way to code it, I pretty satisfied I could code something efficient, does some work, few a few lines of code in a short time.

This are what computers and programming for. To do work for us efficiently, although many a times in the real world it happens the opposite.

Excerpts from my Writtings in TAD

Write up on “My Defining Moments in SAFAC”

“I feel it is not easy for me to define my dearest moment in SAFAC. Many precious moments that invoke my memories, thoughts and feelings, as if they were gems I wouldn’t want to lose any”…

…”life started in SAFAC as an ATT trainee at SOA in Dec 05. In 3 months in about 20 other ammo techs to be, we went through”…

“Not long after I was welcomed to TAD, I had my first cohesion”…

…”I feel privileged and am grateful for my high-level NDP fireworks involvement”…

…”Although I had just spent about a year in SAFC, I have gain a large amount of knowledge and experience. One of the reason is because of the people around me”…

“Going back to the main topic of “my most defining moments”, if I really need to give an answer, it would be my ndp involvement and my wits experiences. However I do not wish to stop there. I would give all my enthusiasm each day of having the optimism of which that day would be fruitful, memorable, learning and unforgettable experience I would always remember”

Signed off hastily then

211106
CPL J0shua K0o
TAD

Message on the last day in camp (that’s today)

“Dear all,

The time has come for me to part. This would be my last day in here and I would like to take the opportunity to say thanks. I don’t intend for this message to be touchy feeling but I love to recall the wonderful moments I had in TAD quickly”…

… “and I look back, I always feel the happiness with a slight tinge of sadness in them”…

“My memorable and exiting moments briefly”…

“Memorable duties”…

“Memorable cohesions”…

“As how I feel, time has caught up with me, and its time to say goodbye.” [Thanks to a big list of people, and yet people still ask me why their names are not inside ;)]…

Signed off with the greatest haste,

“Best regards with lots of love and laughters,
3SG J0shua K0o”