All Posts

Page 19 of 21

Capistrano rvm-shell: command not found error

I’ve just come across this problem, and I had to share it here - I can’t find anywhere else on the the Internet where the solution is specifically stated - it’s just alluded towards. If you are using RVM’s Capistrano integration, you may come across a CommandNotFoundError to do with rvm-shell not being under / usr/local/rvm/bin (Which is exactly where...

Achievements on Coderwall

Well, it’s taken weeks for Coderwall to finally get it’s crawler to hit my Github Profile, but I’ve finally got more badges. I’ve been moving some old PHP stuff of mine onto Github for people to use, so that’s where I’ve gotten the PHP badge from. As part of my personal campaign to master at least one other language apart...

Arbitrary Ordering in PostgreSQL when Rails + ENUM = No.

I’ve recently had to do a custom sort for a work project that has required a sort on something that is not naturally sortable correctly (For example, alphabetical or numerical sorting). While searching for a completely different solution, I came across this post that outlined a nice technique. Basically, when you have a field in your Rails model with a...

Quick: Clear Gemset

If you’re finding that you have to change something fairly significant in your bundler dependencies, it’s usually a good idea to get rid of what you’ve got loaded in an RVM gemset so that you don’t end up with different versions of gems fighting with each other. To do this, simply run rvm gemset empty - it’ll delete all the...

The Dictionary of New Zealand Sign Language

The Dictionary of New Zealand Sign Language went live on Friday - it’s a project that I have worked on with Daniel, Chris and James R, at 3Months. I attended a launch event at Victoria University on the Friday, and it really was quite a humbling experience - this dictionary has been the effort of a team of people for...

'Password' or 'Passphrase'

So apparently pass phrases are the new ‘secure password’ - kinda the step you get to when you finally accept that your users are going to use something like ‘password’ for their account password. The natural step here is to reinforce a secure password strategy by requiring x numbers, x special characters and a certain length - but I find...

Rails HABTM relationships on a non-standard connection

Recently, I’ve been implementing an admin interface for a system that I want to make more secure than the main application. The way I’ve chosen to do this is to run some models that relate solely to the admin application (Authentication and Authorization in particular), on a different database - let’s call it ‘login’. This seems to be a reasonably...

Quick: .rvmrc

This post is probably something more experienced RVM users will already know, but I wanted to post this as it’s definitely my discovery of the week. When throwing an .rvmrc file into a project, it’s a nice thing to do to write the script correctly so that it will just work for other developers (As well as telling you what...

Ubuntu: Quick ImageMagick Install

This is cross-posted from a tweet I posted a while back - I think it’s a nice bit of advice, and I wanted to store it in a more persistent form Installing ImageMagick is one of the things that Rails developers need to do reasonably often when provisioning new servers - basically, if you’re doing any sort of image processing...

Integration tests with Devise and RSpec

RSpec 2 has supported integration tests for a while now, and I’ve chosen to use these for a project I’m working on at the moment instead of Cucumber (I don’t feel that I need the verbosity and English-like structure Cucumber provides given that it a more complex process to write tests). A bit of a problem I’ve come across recently is...

Page: 19 of 21