Vlad 2.0 dies when you try to use :scm => :git

September 26th, 2009 § 0

Presently upgrading to Snow Leopard, and this kicked me in the teeth. The latest Vlad gem is 2.0, but the documentation is still, um, rough (that’s being generous).

$ script/console
Loading development environment (Rails 2.3.2)
default formats are encoded in ISO-8859-1
>> require 'vlad'
=> ["Vlad"]
>> Vlad.load :app => :passenger, :scm => :git
MissingSourceFile: no such file to load -- vlad/git

Anyways, it turns out that as of Vlad 2.0, the git portion of Vlad (probably others as well) are separated out into their own gems.

To fix:

sudo gem install vlad-git

Thanks to Richard Hart, through whom I found the solution.

Disable autocommit on MySQL command line / console

September 13th, 2009 § 0

Once you have a mysql console / command line / prompt:

SET autocommit=0;

E.g.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.0.45 Source distribution
 
Typehelp;or ‘\h’ for help. Type ‘\c’ to clear the buffer.
 
mysql> use your_db_here
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Database changed
mysql> SET autocommit=0;
Query OK, 0 rows affected (0.00 sec)<strong></strong>

Grep Multiple Words

September 11th, 2009 § 0

There might be an easier way to do this without escaping the regex to grep, but for my small brain to remember later on – I wanted to grep the output of rake routes and search for two strings (logical OR):

rake routes | grep “\(give\|gift\)

Where am I?

You are currently viewing the archives for September, 2009 at humandoing software.