Archive for October, 2008

Symfony 1.2 and Dorctrine

If you are planning on using Doctrine with Symfony 1.2, it must be enabled in the project configuration.

Go to %symfony_project_directory%/config/ProjectConfiguration.class.php and change the setup method:

public function setup()
{
$this->setPlugins(array('sfDoctrinePlugin'));
}

That’s it. It should work now.

Upgraded theme

I’ve spent a few hours cleaning up my theme and upgrading it to use the Blueprint CSS Framwork. I’ve also cleaned up a few of the subpages that I didn’t get to the first time around. All-in-all thinks are looking much better.

Renewing your DHCP Assigned IP Address in Ubuntu

If you ever need to renew your DHCP assigned IP address in Ubuntu, then the following command is your friend.

sudo dhclient eth0

If that doesn’t work, you may want to try restarting your network.

sudo /etc/init.d/networking restart

Getting the size of your MySQL database

I recently upgraded a Drupal installation. In the process, the database has to be backed up. The DB backup seemed large to me so I wanted to check the size of the MySQL database. I found this tip on the MySQL forum from Prakash Babu.

SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;

It worked great and confirmed the size of the backup.

Powered by WordPress
Entries (RSS) and Comments (RSS).