Over the last couple of years while using Linux, I've slowly become better at what could loosely be described as "hacking".
Now DON'T PANIC! - don't get me wrong - I'm not some Linux guru who can cut perl code with my toes blindfolded...just somebody who sometimes at a very low level likes taking someone else's code & modifying it for my own needs. Sometimes I might even improve on the original! *cough*.
I mainly focus on stuff that is Palm related, mainly trying to integrate some of the command line tools available for Linux->Palm connectivity with some well known Linux applications.
Christchurch Address/Map Search Perl Script
With my Palm Tungsten W, I reckoned it would be really useful to be able to search for address & maps wirelessly. I get lost easy! Or at least other people are always telling me to get lost....hmmmmm....anyway, New Zealand Telecom Whitepages & Yellowpages, as well as Wises Maps, even though they offer great online services, they aren't great for surfing wirelessly. Lots of graphical content etc etc.
Anyway I wrote these 2 Perl CGI scripts to parse content from the above mentioned sites to make them more Palm friendly! I only look at Christchurch addresses & maps 'cos thats whats most useful for me!
Just enter in a persons/businesses name (choose the right directory to search, you've only got a choice of two now!) in the text box below, and it'll find the appropriate Christchurch address. From there you can choose to goto the appropriate map!
Or if you already know the right address, just go straight to the map search below!
I use these searches extensively with my Palm Tungsten W and my Palm Tungsten T2 .
 
You'll need to goto CPAN & download & install the LWP::Simple, HTML::Parser, HTML::Element and URI::URL Perl modules.
Here are the 2 scripts that get placed in your cgi-bin folder on your server. Names should be self explanatory! Just make sure the files are renamed to ".pl" & you do the good old "chmod +x" as root to make them executable. Of course, as usual, the coding is simply dreadful.
I think they kinda work OK!
| Back |
Thats all folks at the moment! If I come up with anything else I'II post it here.