Archive for the ‘Uncategorized’ category

Emulating IE 7 and 8

April 24th, 2013

Add this to your header:

<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />

Quick ref – Kernel.const_get and .constantize

July 26th, 2011

Just a quick ref. If you have a string that matches a class name in your app, you can use that string to interact with that model. Here’s how:

string = “User”

string.constantize OR Kernel.const_get(string) – the former only works in rails (as it’s part of ActiveSupport::Inflector)

heroku and run rake db:migrate

July 21st, 2011

I noticed a few oddities with heroku and run rake db:migrate. Here are a few things i did to get it working:

* I moved to the Cedar stack. Without this, I struggled to get rake db:migrate to work

heroku create --stack cedar

* I now face the issue that heroku is reporting “no such file to load — pg”. Can’t install that locally as Lion’s screwed up my ruby header files so gem fails to install. Bored, so will leave this for now. Will report back as i find a solution, and the will to dig.

The quick way to install ImageMagick and RMagick on OS X Snow Leopard

June 6th, 2011

Update 21st April 2012:

The “old way” detailed below failed to install all dependencies on later versions of OS X. So, here’s the best way to install ImageMagick on OS X:

Head over to https://github.com/maddox/magick-installer and follow the instructions

The old way:

cd ~/src #or whereever
git clone git://github.com/masterkain/ImageMagick-sl.git
cd ImageMagick-sl
sh install_im.sh

At one point, it runs a command usingĀ sudo, so it will ask for your password. After the script has finished, ImageMagick will be installed. Now, to install the RMagick gem…

sudo gem install rmagick

Furthering the quest to *get* agile

April 15th, 2009

My academic learning focus has been a bit off recently, what with the amount of work i’ve had on. But, no excuses – my quest to grasp the academic history of agile delivery is taking steps forward, with my digging into DSDM. I’ve decided to focus on DSDM due to its UK-centricity, which I feel will have the greatest short term impact. I’ll get to SCRUM, XP, RUP, et al when i get to them.

I started the quest ages ago and have progressed it, but more in practice than in reading. Now’s the time for the reading to pick up again…