Tag Archives: quicktip

Toolbox

Ive created a bunch of nifty small bash scripts to do quick and dirty tasks for me when im in shell world. You can grap a copy of it right here and put them on your server or whatever.

importdb/exportdb = imports or exports a sql file to a database
deletesvn = removes all .svn folders from your current directory recursive
createrepo/deleterepo = creates and deletes a repository and setup a project structure with trunk, branch, and tags

toolbox.tar.gz

Line in and out switcher

soundsourcesshotI was looking for a way to switch between my line out options on my Mac Pro. I wanted to be able to switch between my headphones and my table speakers. So i stumbled across this little app that adds an icon to my menu bar with a bunch of switching options. You can pick it up at http://www.rogueamoeba.com/freebies/ The company makes awesome apps like Airfoil and Nicecast. Also the pong screensaver is great!

What is my server doing?!

So, i was having problems with a vps yesterday. For some reason it spend a bunch of memory and cpu on nothing. So i started looking for ways the fix this and how to monitor it all. I fell across this great site which has a bunch of things you can check out. The link is http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html

Debugging php can be a hurdle

Debugging PHP can be a hurdle. Specially if you dont have access to something like XDebug. A great way to solve those things is by reading the log files PHP and Apache is generating. One way is enabling error logging in htaccess like this:

[code]
php_flag log_errors On
php_value error_log /home/ranza/Sites/project/logs/php_errors.log
[/code]

Of course you need to create the php_errors.log file and set chmod to 755