Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mattk (7945)

mattk
  (email not shown publicly)
http://perlmonks.org/?node_id=424873

Developer for a domain registrar/web host.

Journal of mattk (7945)

Tuesday October 07, 2008
02:14 AM

Is Crypt::OpenPGP fatally broken?

Dear Lazyweb,

Has anybody managed to successfully install Crypt::OpenPGP under Debian Etch? How did you do it, and did you use 5.8.8 or 5.10?

The CPAN Testers Matrix seems to infer that this is a lost cause, which is unfortunate as it's a pre-requisite for the NZRS Perl toolkit. Maybe I can hack in Crypt::GPG support instead...

Saturday September 20, 2008
12:32 PM

Indirect object notation is frowned upon

I like to banish it in Vim, with this:

%s/\(new\) \([A-Za-z0-9:]*\)/\2->\1/gc

Monday January 28, 2008
01:47 AM

SQL error: near ")": syntax error

The Anti-Wall Illuminati like to disseminate a myth that says that when you cut your teeth on Perl, it breaks your mind permanently, in many nefarious ways, for any other language.

I'm not sure whether it's just about thinking in the wrong language, but there's one syntactical landmine I always stomp on: a lax attitude towards commas after the final element in a list. Ruby seems to be the only other language that lets it slide - Javascript may or may not, depending on the browser and whether the interpreter is having a bad day already.

Now I've decided this is an open letter to the people writing parsers for lists: If I give you commas you'll take them. Oh yes.

Sunday November 11, 2007
05:31 AM

iPhone maps

I impulse bought an iPod Touch on Friday. Had some fun jailbreaking it but it works nicely now. Since the iPod has no EDGE and the only ubiquitous wifi provider around in Melbourne is Telstra (who, on principle, should not be given money), I've been hoping there will be an easy way to pre-cache image data on there, giving it more offline usefulness.

The map tile data is stored inside an SQLite file, with a basic schema (more info here), and MobileMaps.app uses HTTP for its communications, which is easily dissected by tcpdump and tcptrace -xhttp. Unfortunately the POSTs aren't in plain text so I'm going to have to try and decode the API so I can fake a client with Perl and LWP that can grab all the data for a given area.