Jul08
PeepOpen
PeepOpen is a new utility from the man behind Peepcode that gives you a TextMate-like file opening utility (⌘T) but on steroids, and for multiple editors.
Continue reading »
Blogsplatby Caleb Land
Jul08
PeepOpen is a new utility from the man behind Peepcode that gives you a TextMate-like file opening utility (⌘T) but on steroids, and for multiple editors.
Continue reading »Jun24
Here’s a little patch I wrote to allow RestClient to stream the HTTP request’s body from a File, Tempfile, StringIO or other IO-like object.
The IO object must respond to #size (or #stat.size), #close, and #read(n)
Continue reading »Jun21
So I upgraded my iPhone 3g to iOS4, and everything looked until I tried to open the iPod. It would open and then crash a few seconds later.
Knowing a thing or two about computers, I rebooted the phone, but it continued to crash.
Continue reading »Mar12
If you’re using Rackspace Servers to create Ubuntu VPSs then you may be experiencing problems starting services.
I spent a day and a half trying to figure out why PostgreSQL wasn’t starting on my fresh Ubuntu 9.10 server (so fresh that “aptitude install postgresql-8.4” was the first command I ran).
Continue reading »Mar01
Recently I’ve had to use delayed_job (which you should be using too!), and rather than have capistrano start delayed job on deploy, I figured I should look into using a process manager, and since I’m a Ruby guy, I decided to see what was available to “gem install”.
Continue reading »Dec14
Recently I had to find out how to test the output of a rails controller when the json format is specified. I’m using rspec by the way, but this should work in other frameworks as well.
My instinct, which was wrong, was to do what we do all over the rest of rails:
Continue reading »Nov12
I’m working on spicing up the interface to one of our apps, so I thought I’d add some drag and drop to make things easier for users.
Here’s the workflow, the user is typing away at an article, and decides he wants to embed an image. So he selects the image from the file chooser control in the form, and the image is immediately uploaded (thanks YUI io!), and the thumbnail appears in a list on the right.
Continue reading »Oct30
Update: This has to do with Rails and not RSpec or RR
The road to TDD is a dangerous one.
I spent two hours diagnosing an issue that was simple to fix, but a devil to hunt down.
I am using RSpec with RR on a project, and noticed that when I ran my specs with autospec or rake, I had failing tests, but when I ran them individually with spec or textmate, everything was fine.
Continue reading »Oct23
There’s an interesting gotcha about testing Authlogic with factory_girl that I just ran into and spent a half hour trying to figure it out.
Continue reading »Oct22
So, there’s this bug with Flash & Firefox where the stage width is set to 0 when the app is loaded and doesn’t get calculated until a bit later (the linked post says up to 8 frames, which isn’t long, but most of our hooks that do stuff when an app loads are executed before that).
Continue reading »