RSS

Monthly Archives: January 2010

CodeIgniter 1.7.2 and SQLite 3

Nice little trick to get CI and sqlite3 to work together. Specify the database file location but prefix it with ‘sqlite:’.

$db['default']['database'] = 'sqlite:'.APPPATH.'data/dictionary.sqlite3';

Tip taken from:
http://blog.trevorbramble.com/past/2009/9/20/codeigniter_sqlite3/

 
Leave a comment

Posted by on January 13, 2010 in Uncategorized

 

Compare two directories

Great command for recursively comparing directories on Linux or Mac.

diff -rq dirA dirB

It sorts all files by name and than reports if a file exists in one and not the other. It also reports if files of same name exist in both directories but differ in content.

 
Leave a comment

Posted by on January 12, 2010 in Linux, Mac OS

 
 
%d bloggers like this: