Sunday, August 29, 2010

Pokemon Monopoly 2009

GPS location from image to determine


By following script can read the GPS data from JPEG files.
Call:

python picturedelphi.py bildatei.jpg

edition:

PICTURE WAS TAKEN AT ==================
LON: -86.88650000
LAT: 41.73200000
GOOGLE MAPS LOCATION ============== ====
http://maps.google.com/?q=41.73200000,-86.88650000
#!/usr/bin/python
# Florian Roth
# PictureDelphi 0.1
# August 2010
import sys from PIL import Image
from PIL.ExifTags import TAGS

def get_exif(fn):
ret = {}
i = Image.open(fn)
try:
info = i._getexif()
for tag, value in info.items():
decoded = TAGS.get(tag, tag)
if decoded == "GPSInfo":
ret["GPSInfo"] = value
lat_t = ret["GPSInfo"][1]
lon_t = ret["GPSInfo"][3]

lat = float(ret["GPSInfo"][2][0][0])
lat_add = float( ret["GPSInfo"][2][1][0] )
lat_add = lat_add/60/100
lat = lat+lat_add
if lat_t == "S":
lat *= -1;

lon = float(ret["GPSInfo"][4][0][0])
lon_add = float( ret["GPSInfo"][4][1][0] )
lon_add = lon_add/60/100
lon = lon+lon_add
if lon_t == "W":
lon *= -1;

print "PICTURE WAS TAKEN AT =================="
print "LON:% .8 f '% lon
print" LAT:% .8 f "% lat
" print GOOGLE MAPS LOCATION =================="
print "http://maps.google.com/?q = f% .8, .8% f"% (lat, lon);
except:
print "No GPS data present in the picture meta data"

foto = sys.argv [1]
get_exif (photo)





Monday, July 5, 2010

Rose Garden Row Seating Chart

Ubuntu install freezes with "hpet increasing" messages

I have since moving to my new Thinkpad T60 problem, me that the system freezes frequently. It happened during operation without a special program or a specific Function to address.

from looking at the dmesg or writes the following messages:
hpet min_delta_ns increasing to 33 750 nsec


I work with a Thinkpad T60


ATI X1300 graphics card and Ubuntu 10.04
Lucid Lynx. My


is used Kernel Version: Linux ubuntu 2.6.32

-23-37-generic # Ubuntu SMP

I have read many bug reports in this regard, including the following:

http:// www.gossamer-threads.com/lists/linux/kernel/1152455

solution: The kernel option hpet = disable "in the Grub boot loader and integrate PulseAudio uninstall

first Grub reconfigure

sudo sed-i 's / quiet splash / quiet splash hpet = disable / g' / etc / default / grub
second Grub reinstall (do not worry, it's also easy Wubi)


sudo update-grub
third Reboot


4th remove pulseaudio from the Ubuntu - How it is on the net en masse. If someone finds a suitable, please send it to me. I link to it here.

I had tried the last of all and now had for about 3 weeks, no more hangers. Now I know not, what instructions I had followed.

Who has it helped that can leave a quick comment so I know that I did not write down things for nothing. Thank you.