On a site I’m working on I started noticed a lot of production errors like this: ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE users SET counter = 2, updated_at = ‘2010-08-05 20:54:26’ WHERE id = 1234 I traced the error back to a call in the user model: update_attribute(:start_time, DateTime.now) increment!(:counter) </pre>…
Get Apple Time Capsule to work with Comcast
I bought an Apple Time Capsule after my HP 495EX failed to backup my Macs reliably. I was excited since it replaced an old Linksys that didn’t have wireless-n. I figured it would be a fast switch. I was wrong. I spend several hours configuring the router and couldn’t figure out why it wouldn’t connect….
Textmate RSpec Bundle Error
After installing the Textmate RSpec bundle I started getting this error: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in `blank_slate_method_added’: stack level too deep (SystemStackError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in `blank_slate_method_added’ from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in `method_added’ from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:104 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’ from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’ from /Users/jbasdf/projects/red/vendor/rails/activesupport/lib/active_support/basic_object.rb:21 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’ from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’ … 32 levels… from /Users/jbasdf/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:36:in `chdir’ from /Users/jbasdf/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:36:in `run’ from /Users/jbasdf/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:24:in `run_focussed’…
Cervelo eRide Came to Logan
Cervelo brought their test ride wagon through town yesterday so I jumped at the chance to go out and pound on someone else’s expensive bike. I and Joel took a couple of S3s up Smithfield Canyon. Cervelo calls the S3 the fastest bike in the peleton due to it’s aerodynamic design. The guys at the…
Userfly Ruined My Weekend – “jQuery(“form.ajax”).ajaxForm is not a function”
I’ve been a big fan of Userfly because they make usability testing easy. Their tool is really quite amazing. However, this last weekend and into today I’ve become less of a fan. After a late night deploy last week on a site I’ve been working on I noticed that none of my javascript worked. Lucky…
Get 3G internet access in Paris, France on your iPad
If you are a true geek and you are visiting Paris and you have an iPad (if you are a true geek then you do) then your first stop has to be the Louvre. Mary Magdelene may not be buried under the upside down pyramid but there is a shrine just as holy right there…
What is in my Pants?
I have three daughters. They are moody and emotional but relatively non-violent unless they are playing with dolls together in which case they fight like cats. It actually reminds me of the news the day after Thanksgiving. Some woman has to have the toy, dress, whatever and decks some other woman. I guess they never…
Fireeagle and PortableContacts Don’t Get Along. That Makes Daddy Mad.
I have some code that looks like this: user.google.portable_contacts.all </pre> As long as user.google is a valid token provided by oauth you will get back a list of the user’s contacts from gmail. That is unless you have the Fireeagle gem included in your application. In that case you will spend the night swearing like…
Don’t Upgrade to Rails 2.3.8 Unless You Really Mean It
I just got a new laptop which means re-installing everything. This included Rails and I ended up with 2.3.8. Most of my projects use 2.3.5. I figured no big deal since various Rails versions have always played together in the past. I installed 2.3.5 with gem install rails -v=2.3.5 and figured all would be well….
Setting Up mysql as utf8 for Ruby on Rails using homebrew
It took me far to much time to get this to work right so hopefully this is helpful for someone (probably me at some point in the future). The hashrocket guys have a great writeup on configuring your development environment. I didn’t need some of their bash configuration but it’s a great starting place. Once…