Thursday, April 21, 2011

lighttpd fastcgi issues

Suddenly "mod_fastcgi" being enabled in "server.modules" for lighttpd is causing problems.

 2011-04-21 19:30:58: (log.c.166) server started
2011-04-21 19:30:58: (mod_fastcgi.c.978) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 Permission denied
2011-04-21 19:30:58: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
2011-04-21 19:30:58: (server.c.938) Configuration of plugins failed. Going down.


[youri@nemesis run]$ sudo gpasswd -a youri http
Adding user youri to group http

Or I should maybe make lighttpd run as http user again.

Wednesday, April 20, 2011

Mapping the cell locations from an iphone db on google maps

IOs stores the GPS locations of towers it connects to in this file:


It's an sqlite3 file... So here is a script to pull the longtitude and lattitudes and turn them into a simple KML file.

#this is the KML heading
echo '<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">

#pull the longitude and latitude from sqlite3
for i in $(sqlite3 consolidated.db 'select longitude,latitude from celllocation';)
do coordinate=$(echo $i | sed 's/|/,/g')

echo '<Placemark><name>'$coordinate'</name><Point><coordinates>'$coordinate',0</coordinates></Point></Placemark>'

echo '</Document></kml>'

I added this to my lighttpd.conf and restarted it.

  ".kml"       =>      "application/",

Then it's just a matter of passing the kml file to google maps..$yourserver/output.kml

I noticed a bunch of towers I never connected to  (far away places) so there are some problems with this.

Monday, April 11, 2011

Gnome-shell annoying bug.

Accidentally hitting the print screen button (which I do a lot because of this stupid keyboard) I get an annoying popup:

Text was empty (or contained only whitespace)

and in /.xsession-errors
Window manager warning: Error on command 33 "": Text was empty (or contained only whitespace)

Went to system settings - > keyboard -> shortcuts and disabled the printscreen shortcut for now.

Update: removing ~/.gconf and ~/.gnome* fixes this.