If your IDE opens slowly …

September 20th, 2013

… remember that some programs have a list of recently opened files. And that some of those programs try to resolve the path to each of those files. And if the path to some of those files is on a network share, and said network share doesn’t exist sometimes, then your IDE will be very slow. So, clear the recently opened files list.

Fun With Maps Pt1

August 16th, 2013

I’ve been working on getting a mapnik server up and running and tweaked the way I want. Here are some useful things I learned.

Showing logs for renderd
tail -f /var/log/syslog | grep renderd

Restarting the renderd process
/etc/init.d/renderd restart

This is the default maps view file. You need to edit it to change the server address from localhost to (for example) your external IP, so you can view the maps over network.
nano /var/www/osm/slippymap.html

This is where you can find configuration XML files
cd /etc/mapnik-osm-data/

This is the config file that lists the shape files in use
layer-shapefiles.xml.inc

This is where the shape file data is stored
/usr/share/mapnik-osm-data/

Clear all cached tiles
rm -Rf /var/lib/mod_tile/default

svn Rollback

August 14th, 2013

Every time I need to check out the last revision, I have to Google it. Here is how to check out the rev you want.

svn up -r 1000

PHP Class To Color CLI Output

July 31st, 2013

A guy named JR posted this nifty piece of code to help color CLI output in bash from PHP scripts

And this user on GitHub cleaned it up a bit and posted a Gist of it.

VirtualBox Headless

July 26th, 2013

If you want to run a VM (maybe a server) headless, you can just hold down the Shift key when starting it. This forces it into VRDP mode, no matter how it’s configured. Or, you can get even fancier: http://www.virtualbox.org/manual/ch07.html

WordPress - Entries (RSS) and Comments (RSS) - © 2011 Ben Dauphinee