beginrescueend.com

To use different Ruby versions on your computer you can use the Ruby Version Manager. It also allows you to...

makandra dev

You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...

Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...

Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...

There are several options, but most of them are impractical. The best way is to use the :ruby filter:

After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as...

Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...

Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...

sgruendel.blogspot.com

When you install Type 1 fonts (like makandra's corporate typeface), they won't show up in OpenOffice. OpenOffice requires...

makandra dev
gozer.ectoplasm.org

When used to do: $> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R...

When using the screen tool you may be unable to start a screen session but instead encounter an error:

To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...

If you specify different ports, you can run multiple local webricks with rails server --port=300X at the same time...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

makandra dev

If you want to stop getting notified about new messages in a Skype chat (but not leave it altogether), you...

When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...

In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...

commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...

Sometimes you want to use a vanilla Ruby method like a block. You can use Object#method to obtain a...

You can use this shell command: uniq -u input.txt output.txt