February 2008
1 post
Feb 1st
2 notes
January 2008
1 post
Using Rails routes anywhere
via ara’s snippet # # this is how to use action_controller routes in a class/module other that the # rails' view and controller classes class C ActionController::Routing::Routes.install_helpers C def initialize @home_path = home_path end end — toolmantim
Jan 16th
1 note
December 2007
6 posts
“Websites can also be seen as finite-state machines that run on people....”
– wrapping up 2007 (28 December 2007, Interconnected)
Dec 29th
1 note
Dec 15th
2 notes
Dec 13th
Dec 12th
1 note
Which of my projects are using Git?
I forget which projects are on git and which are on svn. Here’s a one liner to find the git ones. find * -maxdepth 2 | grep "/.git$" | sed -e "s/\/.git//"   Then pipe that to xargs and you can do whatever you like with the knowledge. Ahh, unix ftw. 
Dec 12th
Dec 10th
November 2007
3 posts
Nov 11th
1 note
WatchWatch
Adam Keys was at RubyConf - as a poster on the wall (thx topfunky!). BUT, nonetheless, regardless, ignorant of his lack of attendance he made and awesome awesome video for us…
Nov 5th
1 note
Nov 5th
1 note
October 2007
2 posts
Oct 11th
Oct 3rd
September 2007
2 posts
Sep 13th
Testing code to the (incorrect) extreme
it "should validate_presence_of digits" do my_model.line(7).should_read "validates_presence_of :digits" end - Jay Levitt (here)
Sep 10th
1 note
August 2007
1 post
“Ethan and Mark, we’re very happy with Prototype and script.aculo.us at...”
– SamS @ 37signals
Aug 10th
July 2007
21 posts
Wesabe: Firefox Uploader - awesomeness on a stick →
Jul 25th
Packaging a rails/ruby app
Want to send a copy of your Rails app to someone? Our old friend Rake comes to the rescue. Stick this in your Rails app’s Rakefile: require 'rake/packagetask' require 'rake/clean' NAME = File.basename(File.expand_path(File.dirname(File.expand_path(__FILE__)))) unless defined? NAME VERS = ENV['VERSION'] || begin `svn info` =~ /Revision: (\d+)/ $1 end unless defined?...
Jul 24th
“Yesterday, … I tried to install the god gem. It asked me if I wanted to...”
– Rick DeNatale on RubyGems-Dev list
Jul 20th
Jul 17th
1 note
Checked out revision 556526.
Holy mother of SVN revision numbers. The title is came from running the following command: svn co http://svn.apache.org/repos/asf/incubator/heraldry/idp/pip/trunk/ eastmedia-openid-server svn.apache.org has a LOT of commits to its name! :)
Jul 16th
Jul 13th
“I am also a classically trained kazoo player.”
– JoeHewitt.com
Jul 12th
Where oh where are my rails plugins? →
Jul 11th
Jul 10th
2 notes
“Congratulations. You are digitally distinct. Your online identity score is 10...”
– Online Identity Calculator
Jul 10th
I Still Call Australia Home →
Jul 9th
WatchWatch
Entertaining juggling… who’da thought?!
Jul 6th
Jul 6th
Le Tour De France starts on the 7th of July →
Day 1 is in London
Jul 5th
Want to write a book for O'Reilly? See if you can... →
I feel sorry for the authors who got “Tick” and “Cuttlefish”
Jul 4th
Jul 4th
Tim Bray - Avoid Heathrow At All Costs →
Jump on the “Heathrow is awful” bandwagon in the comments.
Jul 4th
OpenID for Wordpress →
Jul 3rd
Dr Nic Academy - sneak peak at the logo →
Jul 3rd
Jul 2nd
Firebug Lite - get Firebug on every browser, not... →
Oh my god. This could be truly awesome. Read this page and weep for all the times you’ve struggled to develop Javascript on non-Firefox browsers
Jul 1st
June 2007
22 posts
Auto-completer for my blog comments →
Jun 29th
Pastie paradise →
Jun 28th
Jun 26th
Jun 25th
Where art thou generator? →
Jun 25th
Jun 25th
“If you believe in telekinesis, raise my hand.”
– Unknown
Jun 25th
1 note
Jun 22nd
Has Tumblr broken syntax highlighting?
# any old sausage of code... def sausages %w[1 2 3].each {|n| puts "#{n} sausages"} end Let’s see if this is highlighted. Rumour has it Tumblr is removing element attributes on posting, which is breaking syntax highlighting… Nope, is working fine. If you are having problems, remember to turn off HTML Filtering under settings.
Jun 21st
Jun 19th
Want a new $$$ stream for your Rails consulting... →
Jun 18th
I mocked something
I used mocha for the first time: Post.expects(:find).with(60).returns(post) assert_equal(post, 60.to_post, "to_activerecord not working") Like the 60.to_post syntax? Use the to_activerecord gem.
Jun 17th
Jun 16th