March 2012
1 post
jRuby: The best of both worlds
jRuby: The best of both worlds View more presentations from Christopher Spring
Mar 27th
February 2012
1 post
EventMachine for RubyFuZa 2012 View more presentations from Christopher Spring
Feb 6th
June 2011
2 posts
Jun 29th
Ruby Concurrency and EventMachine View more presentations from Christopher Spring
Jun 19th
April 2011
1 post
“Impossible is just a big word thrown around by small men who find it easier to...”
– http://quotevadis.com/post/4046940916/impossible-is-nothing
Apr 11th
March 2011
1 post
RubyOnBeer Ohm presentation
Ohm View more presentations from Christopher Spring Did a presentation at last night’s RubyOnBeer meetup. Went to Higher Ground at Saints - really cool venue.
Mar 2nd
February 2011
1 post
Redis, Resque & Friends
I recently did a presentation at the RubyFuZa 2011 ruby conference down in Cape Town. Cant wait for RubyFuZa 2012 :) Check out the slides and let me know what you think. Redis, Resque & FriendsView more presentations from Christopher Spring.
Feb 9th
November 2010
2 posts
Retry and clear failed Resque jobs
This is for posterity’s sake :) Retry all jobs: (Resque::Failure.count-1).downto(0).each { |i| Resque::Failure.requeue(i) } Retry jobs for a particular worker: (Resque::Failure.count-1).downto(0).each { |i| payload_class = Resque::Failure.all(i)['payload']['class'] Resque::Failure.requeue(i) if payload_class == 'MyWorker' } Clear failed jobs: Resque::Failure.clear You...
Nov 17th
Performing Disk Repairs on OSX without Install...
I dont travel with my OSX install disk (seriously, who does?) and found myself in a situation where i needed to repair my macbook pro’s hard drive using said installation disk. There are two options if you find yourself in a similar position: Start in safe mode: Hold shift down during start up (performs a simple disk scan) Start in single user mode and run fsck: hold down command+s...
Nov 12th
October 2010
2 posts
Oct 29th
Not just code, but yoga too →
I’m a qualified yoga teacher now too - check out my teacher profile in the link above :)
Oct 29th
April 2010
1 post
WatchWatch
Engine Yard have started a new project, Rails Dispatch with info about the upcoming Rails 3 release. They’ve also done an updated version of the famous “Blog in 15 minutes” screencast - see above.
Apr 7th
February 2010
1 post
All my backups are the same size?
I recently noticed that the database backups of an app. that i maintain were the same size for a couple of days. Now, all the backups are done from a MySQL slave database, so it didn’t take too long for me to work out that my slave had died; running “show slave status\G” yielded something like this: .... Slave_IO_Running: Yes Slave_SQL_Running: No .... ...
Feb 5th
November 2009
1 post
TorqueBox
[](null) Looks like a great Ruby app server package. I will definitely be giving it a swirl!
Nov 19th
June 2009
5 posts
Jun 30th
Jun 16th
Jun 14th
Cheaper to fly to NY and buy a Macbook Pro?!?!?
I was a little surprised recently when i priced buying a new 17” Macbook Pro from local South African Mac suppliers. I discovered that it was cheaper to buy a return ticket to NY and buy the machine there, than it currently is to buy it here in South Africa. Here are the numbers for flying to New York: R8,909.00 -> Return flight from Johannesburg to JFK in New York R23,791.50 ->...
Jun 8th
Merb web service with Shoes GUI
Every couple of months I play around with shoes to try and solve some basic prototyping needs that arise at work. This time round i stumbled onto a nice O’Reilly tutorial that shows you how to setup a basic merb web service and interact with it using shoes. Well worth checking out.
Jun 1st
May 2009
3 posts
BuddyPress 404 errors on Blogs, Members, Groups
I ran into a bit of an issue trying to get BuddyPress setup on my Mac (Tiger, if you must know) - clicking on Blog, Members or Groups would yield a 404. To fix the problem you need to add the following (in addition to what is explained in the various readme files) directive to your httpd.conf: <Directory "/path/to/apache/root"> Options FollowSymLinks AllowOverride FileInfo...
May 24th
The Ruby Toolbox →
May 19th
Thoughts on hiring freelancers
Hiring freelance developers has come into the spot-light for me recently and i’ve been trying to work out how one attracts the best candidates. I’ve recently been involved with posting a WordPress job on oDesk, and the candidates that applied have been very interesting - their skills tend to reflect a singular methodology or paradigm: the skills they list all reflect the same kinds...
May 6th
March 2009
5 posts
Earth Hour: 28 March'09 20:30-21:30
Mar 25th
Net::SMTPSyntaxError: 501 Invalid characters...
So, you’re using ActionMailer and you get an icredibly funky error when trying to send mails - something like this: Net::SMTPSyntaxError: 501 Invalid characters detected Round about now is when you start thinking about that career in advertising you passed up when you look at your environment.rb file, which contains something like this: ActionMailer::Base.delivery_method = :smtp...
Mar 24th
Mar 9th
1 note
Nothing speaks louder than code
Jumping to conclusions and dealing in “what-if” scenarios without investigation is a form of time compound interest: vast armies of time is sucked into a vortex of nothingness. If you dont like something, don’t moan about it! Implement something you think is better and campare from there!
Mar 6th
Mar 5th
February 2009
3 posts
Command-line Fu →
Command-Line-Fu is the place to record those command-line gems that you return to again and again.
Feb 16th
Feb 9th
Feb 5th
January 2009
1 post
Git the --hard way
Let’s pretend you just successfully commited your latest work to GitHub. All’s fine. Now let’s pretend that you accidentally ran “rm *” in your project directory. No problem: just run: git reset —hard All the changes you made since your last successful commit will be discarded and your deleted files will magically reappear.
Jan 19th
December 2008
2 posts
“Peace is a lie, there is only Ruby. Through Ruby, I gain strength. ...”
Dec 10th
Dec 4th
November 2008
7 posts
Nov 19th
Converting ERB to HAML snippet →
Nov 12th
Alltop →
A nifty news aggregator by category
Nov 6th
Scruffy: Super awesome ruby graphing gem
I’m very glad to see that work has resumed on this fantastic little gem - scruffy. Go check it out over at rubyforge.
Nov 5th
Log rotation with mod_rails/passenger
/etc/logrotate.d/rails Inside that file put the following /path/to/your/app/shared/log/production.log { daily rotate 7 compress missingok sharedscripts postrotate touch /path/to/your/app/current/tmp/restart.txt endscript }
Nov 4th
Nov 1st
LessonTrackr
LessonTrackr is an online app to help teachers tracks their clients/students. It’s perfect for anybody running a yoga studio, tutors and extra lesson centers and even tennis coaches. This project has been in the pipeline for some time now and will be launching soon. Check it out at www.LessonTrackr.com.
Nov 1st
October 2008
5 posts
Read other people's code
The best way to improve yourself as a human being is to absorb the insights of others. Specifically for programming - read other people’s code! I stumled across this nifty little method “all?” examining some FactoryGirl examples: %w{ ant bear cat}.all? {|word| word.length >= 3}   #=> true %w{ ant bear cat}.all? {|word| word.length >= 4}   #=> false [ nil, true, 99...
Oct 31st
Oct 30th
Oct 30th
Oct 29th
Oct 29th
June 2008
2 posts
Rails conf GIT presentation →
Jun 6th
Cool NY times voter graphic - Clinton vs. Obama →
Jun 6th
May 2008
3 posts
Jester →
May 21st
Geek Code →
May 13th
Distributed programming with Jabber and... →
May 5th