July 2008
9 posts
Google Calculator
#!/usr/bin/env ruby %w(rubygems open-uri hpricot erb).each {|lib| require lib } doc = Hpricot(open(“http://www.google.com/search?q={ERB::Util.u(ARGV*’ ‘)}”)) puts (doc/’/html/body/div#res/p/table/tr/td[3]/h2/font/b’).inner_text
This little Ruby script requires Hpricot and uses Google to perform unit conversions & math calculations. For example,...
I like to find (1) simple solutions (2) to overlooked problems (3) that actually...
– Paul Graham
Live intentionally.
Don’t let your life be a series of consquential events. Instead, align your actions with your goals and then let the chips fall where they may.
From a day-to-day perspective, this means doing the things you intend to and thus allotting sufficient time for those things. This may result in you having to eliminate some things you don’t want to do in order to make...
New rule of thumb:
If the the dollar amount you put in your gas tank is less than the pump number, you may be a prime candidate for public transportation.
Sometimes its best to just step away from a problem. Throwing more brain and time toward the issue is the brute force attempt.
Let it simmer and stew a bit in your head. It isn’t guaranteed that you’ll come up with the answer, but it’s likely that it’ll keep your stress levels down.
The answer to the problem can even sometimes present itself while you are working on...
When the things that were once difficult to us become routine, we are free to expand ourselves. When the limit is touched, a new one is created which is farther and more difficult than we ever thought possible.
Through these expansions, we better ourselves and our possibilities. Through these expansions come the answers to the most difficult of problems.
Energy Literacy
Great interview @ Stanford with Chevron CEO. Free on iTunes here.