Posts Tagged “Programming”
The story of Mandrillus sphinx who needed glasses
My first 3 hours on a project
The bloated Ruby block
Rails Dependent Associations
Protip: Pasting code in Vim (Updated)
On Ruby Rogues a few weeks back, Ben Orenstein mentioned he tries to spend 15 minutes a day improving his workflow and tools. I decided to take this onboard and this week I looked into how to paste...
Rails Performance: The Database
My primary toolkit is the Ruby on Rails framework, and I mainly work with applications that have been in production for a while, which usually means they’re in need of a little pick-me-up. I thought it would be good to write...
Rails ProTip: Stop generating empty files you're not gonna use!
Setting up Logwatch to email logs using Gmail
ProTip: Reactivating iectrl vm's
If you are using iectrl to manage your Internet Explorer vm’s and have had your XP activation expire, you can reactivate by running the command below:
iectrl reinstall 6,7,8
A better way to handle SSH keys
I pair with quite a lot of developers and one thing I have noticed is most of them only use one SSH keypair for all of their services/servers. This isn’t the worst security threat out there but it does pose...
Rails tip: Titleize acronyms
I ran into a problem whilst trying to titleize a string containing an acronym. For example:
"building an API".titleize
Will output
Building An Api
Not exactly what...