I ran into a ‘fun’ error with an application I’ve been working on. Everything was running fine and then one day hoptoad started filling up with exceptions like this: ActiveRecord::StatementInvalid: Mysql::Error: Got error 139 from storage engine I hate errors like that. Lucky for me there’s Google: http://forums.mysql.com/read.php?22,63584,166521#msg-166521 http://bugs.mysql.com/bug.php?id=10035 Turns out that each row in…
jQuery Ajax requests are ‘html’ not ‘js’
I like jQuery. I use it in all my Rails projects these days. One thing I’ve struggled with for the longest time is that for some reason all my jQuery ajax requests come through as html not as js. I thought adding something like this to application.js would fix the problem: // In application.js jQuery.ajaxSetup({…
increment! and Mysql::Error: Lock
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…