Archive for July, 2007

The Design of Everyday Things, and writing code

Our client recommended me to read this book “The Design of Everyday Things“, which is about Human Factors and not specifically about software nor GUI design. As a software developer though, I actually find some intriguing parallels in writing code:
“If a design depends upon labels, it may be faulty. Labels are important […]

making it your own, by blogging

I’m a lazy blogger. But one reason to do it more often is to write about what I have learned and therefore reinforce my memory. A few months ago I worked with the wonderful Jake Scruggs and learned about RSpec and mocking out the ‘new’ method of a class. Today at work […]

Suppressing warnings in Ruby (in my case, assert_select)

assert_select outputs warnings to stderr about invalid HTML problems (something like a mismatching closing
), yet the assertion still passes/fails as expected. So, instead of fixing the real problem by digging through our layout and partials rhtmls and find the mismatching
, I just want to suppress the warnings. :)
From http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/210670
def […]

Turn your Windows Mobile phone into an iPhone

http://lifehacker.com/software/hack-attack/turn-your-windows-mobile-phone-into-an-iphone-269055.php
It worked pretty smoothly on my phone even though it’s running Windows Mobile 5 Traditional Chinese.  Oh no! I’ve turned into Weijie and Philly Steve who enjoyed turning their Windows into Mac look-alike using ObjectDock

2nd attempt of keeping at blogging, and Synergy

After forgetting about my blog, it’s time to revive it, and Canada Day seems a good day to do so. So I’m sitting at home in front of my work laptop and my personal one, and using my ergonomic keyboard and trackball controlling both.
That’s possible only because of Synergy, an open source tool […]