Archive for December, 2008

MySQL: Innodb Memory Usage Formula

Tuesday, December 23rd, 2008

I hate looking for this.... This will give you a rough idea of your innodb memory usage. I know it's in a hundred spots, but i hate looking for it when i double check things. innodb_buffer_pool_size + key_buffer_size + max_connections*(sort_buffer_size+read_buffer_size+binlog_cache_size +2MB)

Linux: use lsof to find which files are open by a process

Tuesday, December 23rd, 2008

lsof works under linux and MacOS X and will help you figure out what files are open. lsof | grep 'mysqld'

On cocoa…

Sunday, December 21st, 2008

I found this pretty amusing... me: i'm terrible w/ cocoa i don't particularly like objective-c it's to verbose matt: [me putonSock:blueOne onFoot:rightFoot ignoringHangNail:YES]

Quickly Check every PHP file in your project for errors

Tuesday, December 16th, 2008

Here's a quickie - make sure every PHP file in your project parses correctly. find . -name '*.php' -exec php -l {} \; | grep "Errors parsing"