November 27th, 2007 - Open Knowledge
Nov. 27th, 2007
If you want to use a newly installed rubygems, and you don’t want to require ‘rubygems’ for every program that uses a gem, you need to set the RUBYOPT environment variable. For example, if you’re using tcsh, you should put the following in your .tcshrc file:
setenv RUBYOPT rubygems
This will cause the rubygems module to be loaded every time your run a ruby script.
If you call an external python script from within ruby, make sure you have any pdb.set_trace() lines commented out. When the ruby script tries to run the program, it will just hang at the point you set the trace, without giving you any output. For example, if test.py script has a pdb.set_trace() set, and you run the following command from within irb, the line will never finish executing. You’ll have to interrupt it with a CTRL-C command.
dfi_result = `/Users/build/crasch/PythonScripts/test.p
As long time readers of my blog know, I have a
fetish healthy fascination for airships.
And, as is apparent by my frequent pimping, I’m a
fanatic supporter of the Ron Paul presidential campaign.
Thus, you can imagine how happy I am by the most recent brainchild of Trevor Lyman:
Lyman, as some of you may know, orchestrated the November 5th “money bomb”, which raised $4.2 million dollars for Ron Paul on a single day. That event put Paul on the political map, and was instrumental in improving Paul’s odds from 200:1 to the beginning of his campaign, to 6:1 now. (According to sportsbook.com.)
Lyman is trying to raise $350,000 to rent a Skyship 600 airship for the month leading up to the New Hampshire primary. The plan is to fly the airship over major cities up and down the east coast. The airship could make an appearance at football bowl games, New Years Eve in New York City, and The Boston Tea Party fund raiser on December 16th.
So far, supporters have signed up to donate $272,000. A $25.00 or more donation buys you tickets in a raffle for flight time on the blimp. If you donate $5000, you’re guaranteed at least 18 hours of flight time.
So, if you’re a Ron Paul supporter, and you think this idea is as cool as I do, please donate.
05:17 pm - Thoughts on buying a Smart car?
So, I’m thinking about buying a Smart car. I like the cars because they get good gas mileage (40+ mpg), they’ve been on sale in Europe for over a decade (so many of the bugs have been worked out), and they’re tiny. I mean, really tiny. A Smart car (106 in) is over 3 ft shorter than a Mini Cooper (145 in).
Thus, they can be parked almost anywhere. Which is a really big feature for someone like me. I live in the San Francisco Bay Area, and I hate looking for parking.
Plus, they’re really cute:
The main disadvantage for me is their lack of cargo capacity. However, I think I’ve found a solution for that:
Also, with a stock engine, they also don’t have a whole lot of pick up and go. The stock engine only has
60 HP 71 HP, after all. However, if you swap in a 180hp Suzuki GSX-R1000 engine, the car can go 0-60 in 4.2 sec. and 12.4 in the quarter mile.
They’re due to begin sales in the U.S. in the first quarter of next year.
Anyone drive one of these? What are your thoughts?
|← Previous day||(Calendar)||Next day →|