Ruby 1.9/2.0 rvm fix for SSL_connect returned=1 errno=0 state=SSLv3 error

Check the status of your installed certs to see if they are out of date: $ rvm osx-ssl-certs status all If any are out of date update them automatically by running: $ rvm osx-ssl-certs update all NB: You may find that if you check the status again one or more cert locations are still out […]

No such file or directory error with ruby tempfile and heroku cedar

Bit of a strange error had me puzzled, the app worked great on Bamboo but was erroring on cedar with: No such file or directory – /app/tmp/csv_export_120120806-2-1bnlu8h.csv.lock /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/tempfile.rb:346:in `rmdir’ The actual line of code was this: temp_file = Tempfile.new([“csv_export”, ‘.csv’], Rails.root.join(‘tmp’) ) It turns out on Cedar the Rails tmp directory isn’t created by default […]

Windows + IIS + Rails + Paperclip + Uploaded files give Errno::EACCES (Permission denied)

This was driving me nuts – not my preferred setup, especially now-a-days Rails + Windows really don’t play nice together. I was having an issue with uploaded files (or in my case generated pdf files that were attached to the model using Paperclip) giving Permission Denied errors after they’d been created. The Solution Find the […]

Getting Live HTTP Headers to work with Firefox 4

UPDATE: The official Live HTTP Headers add-on now works with Firefox 4: Download Here: http://livehttpheaders.mozdev.org/ Note this is a temporary solution, and worked for me with Firefox 4 b12: Download the .xpi file (Use right-click save as or Firefox will try to install the add-on) Rename .xpi to .zip Unzip the contents Edit install.rdf Under […]

Mac OSX Tip: Mirror menubar to Dual Display / 2nd Monitor

Found this nifty program today ‘SecondBar‘ it creates an extra menubar on your 2nd monitor which means you don’t have to move your mouse across both screens to access a menu item. http://blog.boastr.net/?cat=1 NB: Currently your usual menubar icons aren’t copied across, however there are some nifty extras like enabling you to right-click the maximise […]