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 […]
When to use NoSQL/key-value store?
I’ve been meaning to look into this for some time to get my head around these fancy new databases and find out when I should consider using them. I’ve come to the conclusion that you generally wouldn’t use an object/key-value database on it’s own. You have your main relational database for important data that is […]
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 […]
Firefox Tip: Quick selection of awesomebar item
Can’t believe I didn’t notice this before; after typing in a few letters of the site you are looking for rather than pressing the down arrow key, you can just press Tab to highlight the next item in the selection of sites (and Shift-Tab to go backwards). Yey for keeping your fingers on the home […]
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 […]
Linux Tip: Truncate multiple files using find
Assuming you have a find command of find . -type f -name ‘*.log’ Then it’s as simple as: for item in $(find . -type f -name ‘*.log’ ) ;do cat /dev/null > $item ;done Handy for truncating log files…