tungwaiyip.info

home

about me

links

my software

Media

Yucatán Photos

St Lucia Photos

Photo Album

Videos

Blog

< June 2012 >
SuMoTuWeThFrSa
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930

past articles »

Click for San Francisco, California Forecast

San Francisco, USA

 

Repair Rotten Stairs

I have spent my Sunday repairing a rotten step in my home. Here is what you do:

  1. Unscrew the rotten board. Got stuck.
  2. Search the Internet to find out how to remove stuck screws from rotten deck. Learn all about what the origin contractor has done wrong.
  3. Using a variety of ways, including just pull the board with the screw still in it since it is rotten anyway, to remove the board.
  4. Check for dry rot damages. Found out it is worst than you thought.
  5. Remove rotten wood with putty knife. Apply wood filler.
  6. While waiting for the wood filter to dry, cut the replacement board.
Rotten Stairs

So I am about three quarter there. I still have to buy more chemical tomorrow to seal the wood. Let's hope the replaced board can last a while. By the way I learned a lot from the Ron Hazelton's online video How to Repair Dry Rot in Wood.

2012.06.24 comments

 

Happy Meal

McDonalds

We paid $33 adult fare for the ferry ride to Discovery Bay, only to find ourselves dining in the McDonald's there. We even feed our baby McDonald's food. Here is the photographic evidence of bad parenting.

2012.06.13 [] - comments

 

Python Whitespace Misconception

Whitespace is significant in Python. This uncommon syntax rule is one of the refrain of many non-Python programmers about Python. Given most computer languages since Fortran has adopted free layout syntax, this feel like an objectionable design.

Now that I think of it, I find this mostly a problem of wrong framing. The term "whitespace" has already embedded the meaning of unimportant filler. In this sense "significant whitespace" sounds like a problem. Actually the right way to describe it is that Python uses indentation to determine the block structure. Rather than feeling wrong, this is lot more likely to evoke an "aha" reaction from non-Python programmers. Of course it makes a lot sense for the indentation to follow the block structure. I can hardly find any legitimate case for those two to differ.

Austere programmers may notice that there are two way to indicate block structure in main stream languages, by using language construct like "begin" and "end" and by laying out the code using indentation. Whenever there are two ways to do express one thing there will be problem of inconsistency. This extra degree of freedom can get you into trouble sometimes. One of the most nasty class of programming bug is dangling else. It is the case in free layout language when the apparent block structure is different from the actual block structure. Dangling else is not possible in Python. It is because the block structure is determined by the indentation.

2012.06.08 [] - comments

 

past articles »

 

Kontagent

Kontagent is hiring software engineers

BBC News

 

Obama defends 'just' drones war (24 May 2013)

 

Woolwich attack 'hard to prevent' (24 May 2013)

 

US Boy Scouts to allow gay members (24 May 2013)

 

India soldiers die in Kashmir ambush (24 May 2013)

 

US road bridge falls into river (24 May 2013)

 

Bombers hit Niger barracks and mine (24 May 2013)

 

WHO urges sharing over coronavirus (23 May 2013)

 

Nasa to lease shuttle launch pad (23 May 2013)

 

Foul weather hits US tornado cleanup (24 May 2013)

 

Thousands at author Achebe's funeral (23 May 2013)

more »

 

Slashdot News for nerds, stuff that matters

 

Meet the 23-Ton X-Wing, the World's Largest Lego Model (2013-05-24T01:31:00Z)

 

Android Malware Intercepts Text Messages, Forwards To Criminals (2013-05-24T00:38:00Z)

 

Scientists Growing New Crystals To Make LED Lights Better (2013-05-23T23:52:00Z)

 

Google Takes Street View To the Galapagos Islands (2013-05-23T23:05:00Z)

 

Bitcoin's Success With Investors Alienates Earliest Adopters (2013-05-23T22:20:00Z)

 

WIPO Panel Says Ron Paul Guilty of Reverse Domain Name Hijacking (2013-05-23T21:38:00Z)

 

Red Hat's Diane Mueller Talks About OpenShift (Video) (2013-05-23T20:57:00Z)

 

5-Pound UAV Flies For 50 Minutes, Streams HD From Over 3 Miles (2013-05-23T20:16:00Z)

more »

 

TechPsychic Tech Rumors and Invented News

more »

 

SF Gate

 

Bay Area News (7 Jan 2012)

 

City Insider (11 Feb 2012)

 

Crime Scene (13 Feb 2012)

 

C.W Newius Column (10 Jan 2012)

 

C.W. Nevius Blog (11 Feb 2012)

 

Education News (10 Jan 2012)

 

KALW (11 Feb 2012)

 

Matier and Ross Blog (11 Feb 2012)

 

Tesla a success for federal loan program (22 May 2013)

 

The best personal fitness gadgets (20 May 2013)

 

State unemployment rate drops to 9 percent (17 May 2013)

 

EDD cuts back phone help to the jobless (17 May 2013)

 

Bay Area median home price hits ,000 (16 May 2013)

 

Best Bluetooth accessories (13 May 2013)

more »

 

Asia Times Online

 

Hashimoto echoes Japan's past failure (23 May 2013)

 

Tokyo, Seoul hold 'ugly' nuclear option (23 May 2013)

 

US moves toward full Iran trade embargo (23 May 2013)

 

China's premier Li Keqiang in Islamabad (23 May 2013)

 

Darkness envelops Pakistan (23 May 2013)

 

A scar that stretches across continents (23 May 2013)

 

Kyrgyz government upbeat before grilling on economy (23 May 2013)

 

Bangladesh farmers battle water woes (23 May 2013)

more »

 


Site feed Updated: 2013-May-24 00:00