Archive for the ‘Programming’ Category
Sunday, August 3rd, 2008
I can never remember the exact name of a rake task, so I use this all the time:
> rake -T
You can also filter the list of tasks that's shown. For instance, if you only want to see the database tasks:
> rake -T db
The -T option is handy when you just ...
Posted in Rails, Ruby | 1 Comment »
Sunday, June 1st, 2008
Oftentimes, I like to backup SQL databases to a local folder, then include that folder in my backup to tape/disk/network. That way, the backup software doesn't have to be database aware; it's just backing up files.
SQL Server allows you to schedule backups and there's an option to clear out ...
Posted in System | No Comments »
Tuesday, May 27th, 2008
Oftentimes, I don't need every single email saved into the log file. When I'm developing, they get in the way. In a production environment, they take up a lot of room make the log harder to read.
So, I normally put this in my environment.rb:
ActionMailer::Base.logger = nil
Posted in Rails | No Comments »