Programming


5
Apr 09

Read XML files using the Google Maps API

Looking to build a Google Maps mashup by reading geo-enabled information from an XML file?

Here’s a post from GeoChalkboard explaining by way of examining a simple application that displays geologic points of interest from around the state of Texas available in an XML file format.

The tutorial highlights the usage of two methods (GXmlHttp and GDownloadUrl) provided by the Google Maps API to read XML files.

Lat long coordinates and information associated with each point of interest are read from the file and markers are generated with location information being displayed via an information window.

If you are just beginning to create Google Map mashups and looking for some simple examples on using XML files and the maps API, check out my previous posts.


11
Mar 09

Unzip multiple zip files using Shell script

For the Linux newbie from a noob

Scenario: You have quite a large number of zip files in a folder with other files and would like to avoid manual labor of extracting one file at a time.

The below graphic is the result of extracting an e-book downloaded from the web in compressed format.


Solution: A simple shell script to extract all files at one go.

Save the script with a .sh extension and make sure it resides in the same directory as the compressed files.

Fire up the terminal, cd to the target directory and execute the script using ./xxxx.sh

P.S.: Has been successfully tested on Ubuntu


31
Jan 09

Another Python QuickRef


A timely find..

In continuation of my previous post on Python cheatsheet, here’s a two page quick reference aka cheatsheet from Michael Goerz covering variable types, basic syntax, exception handling, object orientation, input/output and standard library.

Go grab your copy now..


25
Jan 09

Cheat Sheet for Python

What is a Cheat sheet?
From Wikipedia: “A concise set of notes used for quick reference

Download Python cheat sheet, a one page reference in PDF or PNG formats from Added Bytes.

Also available from the same site are a bunch of cheat sheets for other programming languages.


27
May 08

World’s Hardest Working Countries


Who could ever guess South Korea to be first in the list of Hardest Working Countries in the World with the average employee working 2,357 hours a year which includes only 11 public holidays. South Korea is followed by Greece in the second place with its people working 2,052 hours a year. Last in the rankings is Iceland, where the average employee works 1,794 hours.

These 2008 rankings are from the Organization for Economic Co-operation and Development (OECD) for its members. There might be other countries who can top this list, if they were part of the OECD.

A google maps of the rankings for Hardest Working Countries via Forbes is available here.