Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy...
If you’re a Mac user and want to increase the security of your data, check out the attached paper...
Internet Explorer 5+ is aware of conditional comments that let you target HTML for selected versions of IE. For example...
When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...
Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...
After a new system installation, Ubuntu One starts automatically and seems to try to sync your complete home directory. This...
To set the hostname of your Mac, run the following command in Terminal: sudo scutil --set HostName my-new-hostname.local
Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and...
The trick is this: send a low-resolution version of your image to the screen, and a high-resolution version...
If you want to play music or sounds from a browser, your choice is to use either Flash or the...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...
Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...
User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...
We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...