September 26th, 2009 § § permalink
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.
September 13th, 2009 § § permalink
Once you have a mysql console / command line / prompt:
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
Type ‘help;’ 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>
September 11th, 2009 § § permalink
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\)”