You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...

ActiveRecord models know how to cast a given string to the type of a given attribute (or column).

linux.die.net

Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...

Since version 1.5 RubyGems requires at least Ruby 1.8.7. The last one working with Ruby 1.8.6 was RubyGems 1.4.2.

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...

makandra dev
mitmproxy.org

mitmproxy is an SSL-capable, intercepting HTTP proxy. It provides a console interface that allows traffic flows to be inspected...

devstructure.com

blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

makandra dev
github.com

The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...

Install OpenSSH Server: sudo apt-get install openssh-server To check if the server is running you should get no...

You will occasionally need to clean out your database while keeping the schema intact, e.g. when someone inserted data in...

My T410 has a NVIDIA graphics card (NVS 3100M). My BIOS configuration looks like this: NVIDIA Optimus is disabled in...

en.wikipedia.org

Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...

makandra dev
wiki.debian.org

This note is a reminder that there is something called AppArmor that could cause weird errors ("File not found", "Can...

makandra dev

Using OpenSSL it's very easy to seriously encrypt files. Use the script below. Input / Output are self explanatory. Put...

makandra dev

When you delete a file with rm it's still possible to recover the file or parts of it. Use...

makandra dev

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

When you need to bulk rename files you can not call "mv *.foo *.bar" to change the extension of all...