May 2011
2 posts
3 tags
PhoneGap "deviceready" gotcha
I was hacking on a PhoneGap app yesterday, and at one point the deviceready event stopped firing. Poked around and discovered that phonegap.js actually redefines document.addEventListener with its own custom version. My problem was that I was attaching the event listener before I loaded phonegap.js … which meant I never called their custom addEventListener and hence never got the event.
May 4th
6 notes
4 tags
A ruby script that inserts proper TimeStamp nodes...
I got the idea to use my Google Latitude history to fill in missing GPS data for pictures I take on my DSLR. I use Aperture, and the free Maperture Pro has the ability to import KML files, but the output of the Latitude KML download wouldn’t work. After some digging, I realized that Latitude doesn’t insert proper timestamp elements in the KML output. I hacked up this ruby script to...
May 4th
2 notes
August 2009
1 post
create a simple .deb package
#!/bin/bash # This script should be run from within the directory with the wav files. # First, create the empty tree under a new "build" directory # (the name "build" is completely arbitrary here) mkdir -p build/usr/bin # Put the sounds in the sounds directory cp -v degrib/src/degrib/degrib build/usr/bin # move into the build directory, make a docs directory cd build mkdir -p...
Aug 5th
April 2009
1 post
Apr 13th
March 2009
1 post
The Magic Behind Amazon's 2.7 Billion Dollar... →
Mar 18th
February 2009
6 posts
Feb 15th
Feb 14th
Feb 14th
Feb 14th
The Mark Cuban Stimulus Plan - Open Source Funding... →
Feb 11th
8th Annual Year in Ideas - Drone-pilot Burnout -... →
Feb 11th
January 2009
4 posts
70s - The Futuro house →
Jan 13th
Rate limiting with memcached →
Jan 9th
Jaydiohead :: Jay-Z x Radiohead :: Minty Fresh... →
Jan 9th
Samuel Smith's Organically Produced Lager Beer
delicious.
Jan 7th
1 note
August 2008
2 posts
Johnny 5 Combo Kit →
Aug 27th
Bloggers Are Hard to Please and Hard to Pitch:... →
Aug 10th
July 2008
3 posts
script/runner script that doesn't require an...
the output from Rails’ script/runner -h says you can create custom scripts with a fancy shebang line: You can also use runner as a shebang line for your scripts like this: ------------------------------------------------------------- #!/usr/bin/env /Users/bob/Projects/glowworm/script/runner Product.find(:all).each { |p| p.price *= 2 ; p.save!...
Jul 28th
file search similar to TextMate's CMD-T, in bash.
I’m a command line guy. I code Rails apps in vim. I’m happy. I am, however, slightly jealous of TextMate’s CMD-T feature, where you can open a file just by typing a part of the name. Dusty pointed me to a vim tip for CMD-T like search in vim, but I don’t usually open files from within vim - I do it from the command line. Here’s my hacked up way to get the same...
Jul 18th
shared git repo (using ssh transport)
As a quick followup to my last post, here’s the steps I took to make my remote git repo usable by a group of developers, not just me: /etc/group After you’ve added accounts for everyone, make a group and add everyone to it. This line should look something like: coders:x:114:bob,docyes,phillip git repo-config After creating the remote repo (git —bare init), we need to set the...
Jul 10th
1 note
June 2008
2 posts
migrate from svn to git (the full story)
let’s assume you have an svn repository available on some remote server. You want to migrate to git, but not lose all that yummy commit history. None of the posts I read quite managed to cover all the steps involved, so here they are: setup the bare repo on your remote server ssh example.com mkdir -p /repos/my_app.git && cd /repos/my_app.git git --bare init exit create a user...
Jun 25th
Porchlight SF
Lea-Anne and I went to Porchlight SF last night. This month’s topic was obsession. All the storytellers were great, but two really stood out for me: Kevin Thompson told a story about a big, barrel chested, “punker than you’ll ever fucking be or try to be” guy, who was obsessed with restoring his ‘64 Dodge Dart to full “vomiting blood” status. His...
Jun 17th
May 2008
11 posts
Rubular: a Ruby regular expression editor →
May 24th
Botanicalls Twitter Kit →
sweet microcontroller kit that hooks your plant up to twitter via ethernet (let’s you know when it needs to be watered)
May 23rd
pragdave's codex at master — GitHub →
Simple tool for creating source-code intensive presentations and courses
May 20th
MMS2R PDF | PeepCode Screencasts for Ruby on Rails... →
This 60 page PDF shows how to use the MMS2R RubyGem to receive and parse email from both desktop clients and mobile devices.
May 20th
UNeTradeS.net - Standards for Trade and Electronic... →
free city database
May 15th
May 10th
How Little Do Users Read? (Jakob Nielsen's... →
On the average Web page, users have time to read at most 28% of the words during an average visit; 20% is more likely.
May 10th
Bob: lol no dude - this is awesome feedback, don't kid yourself
Bob: I mean - good feedback wrapped in rob's asshole comments is still good feedback
Robert: I get worried bob
Robert: I'm a huge prick wrapped in a pretty wrapper
May 8th
5 tags
iPhone label hack with Prototype JS
the iPhone has issues with checkboxes. you can set a height and width, but I found it’s still hard to toggle them (maybe it’s this giant meat hook I call a hand?). label tags don’t work properly, in the sense that clicking on them does not toggle the checkbox. assuming you markup your checkboxes like this: <label><input type="checkbox" name="foo" /> foo...
May 8th
pjhyett's github-services at master — GitHub →
IMHO, an awesome example of an open-for-contribution services infrastructure
May 6th
Amua - Last.fm player for Mac OS X →
not sure what I have against the official last.fm client, but I’m digging Amua.
May 6th
Phillip B.: isn't half-baked one of the categories in restrospectiva?
Bob Z.: yeah it's called "enhancement"
May 1st
April 2008
2 posts
old blog -> tumblr
require 'net/http' require 'rubygems' require 'redcloth' require 'cgi' def r(str); begin; RedCloth.new(str).to_html; rescue; str; end; end def h(str); begin; CGI.escape_html(str); rescue; str; end; end uri = URI.parse('http://www.tumblr.com/api/write') base_hash = {'email' => 'you@example.com', 'password' => 'yourpass'} Post.find(:all, :conditions => 'imported = 0', :order =>...
Apr 28th
September 2007
2 posts
3 tags
i'm on lifehacker! (sort of)
Lifehacker just reviewed the new Yahoo! MapMixer, and guess who’s map they decided to use as an example?!? Heh. Launch: Merge Your Map on Yahoo Maps with MapMixer
Sep 13th
4 tags
assigning false within activerecord callbacks...
When will I learn this lesson? I just dumped yet another hour down the drain before I realizing I was returning false from a before_create method in an ActiveRecord model. def before_create returning true do self.foo = false end end or simply def before_create self.foo = false true end
Sep 11th
August 2007
2 posts
3 tags
PHP Now Using Proper HTTP Status Codes on Error →
Aug 24th
2 tags
Man Smuggles Monkey Hidden In His Hat Onto... →
Aug 9th
July 2007
2 posts
1 tag
"Redheads" by Improv Everywhere →
Jul 25th
3 tags
just launched: AideRSS
If you have an overloaded RSS reader (like me), do yourself a favor and check out http://www.aiderss.com/. Just released today, it’s built by the guy behind the amazingly high quality blog at http://www.igvita.com/blog.
Jul 25th
June 2007
1 post
3 tags
“Good teams: The platform provides power, agile process provides restraint, and...”
– http://www.relevancellc.com/2007/6/5/how-to-build-a-development-team
Jun 9th
April 2007
2 posts
3 tags
Drew on YouTube
I’m a little late to the game, but Drew of toothpastefordinner.com (one of my favorite cartoonists/artists) has started posting videos on YouTube.
Apr 19th
6 tags
Lea-Anne races in BYOBW 2007
my BYOBW 2007 photoset on Flickr helmet cam video of race 3
Apr 11th
March 2007
1 post
headed to Oregon for a few days. be back Monday.
Mar 6th
February 2007
1 post
3 tags
Infinity is Awesome →
Feb 8th
January 2007
5 posts
1 tag
“an error does not become a mistake until you refuse to correct it”
Jan 28th
1 tag
“[it] isn’t just realizing you can use a system in a new, unexpected way....”
– Rich Skrenta
Jan 28th
3 tags
“[the pastrami] felt like what I’d imagine it’d feel like to chew on...”
– Anonymous Yahoo! Employee
Jan 23rd
8 tags
new host + nginx + more
Switched to a new host today – slicehost … it’s only been a few hours, but I’m digging it. I was on a waiting list for only about 24 hours, and once I signed up, I had a working VPS with Ubuntu in about 30 seconds. Pretty great. I also decided to not host my own DNS for this new domain. Instead I’m using EditDNS , which is free and couldn’t be easier to set up. I also decided...
Jan 20th