Archive for October, 2008

Make GTK Applications look good in KDE

I am using Ubuntu 8.04 (Hardy Heron). Go to the Synaptic Package Manager and look for a package called gtk-qt-engine. Install it and your gtk applications like mozilla should look fine in KDE Desktop , especially the fonts.

wxPython stderr/stdout window

While executing a wxpython script if a error occurs then a white window popups with some message, and it disappears fast enough before it can be read.
So here is a fix to pause it and read it what and where the error in the code is :

PHP Script to find visitor’s location

Hello All
Here is a simple php script that lets you track the location of the visitor’s on your site.
Lets get to the code straight away :

<?
$ip = ‘59.93.196.219′;
$url = "http://www.ipmango.com/api.php?ip=".$ip;
$xml = simplexml_load_file($url);
echo "IP address : {$xml->ipaddress}";
echo "City : {$xml->city}";
echo "Region : {$xml->region}";
echo "Country Name : {$xml->countryname}";
echo "Latitude : {$xml->latitude}";
echo "Longitude : {$xml->longitude}";
?>