popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

makandra dev

To pause and send a task to the background ctrl+z to reactivate the task fg to run task in...

So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...

Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).

In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

makandra dev

From the shell: ls -l | wc -l

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...

makandra dev

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...

Append this to your ~/.bashrc: export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s...

makandra dev

This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...

You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...

mezzoblue.com

Maybe I haven’t been paying close enough attention, but over the past few years an interesting variation of CSS...

code.google.com

Web 2.0 sites have lots of tiny javascript/css files, which causes one extra round trip per file to the server...