Brandon's Notepad

January 30, 2012

Getting Google Maps

Filed under: How-To,Online Tools,Perl,Programming — Brandon @ 4:08 pm
Tags: , , , , , , , , ,

So, I’d like to have a current traffic map delivered to my e-mail at the precise moment I’m leaving work for the day. Call me lazy, but this is the sort of thing that can be automated pretty easily and I don’t want to go look it up, I want it delivered. Someday, I’ll get around to setting this up, but as they say, a journey begins with a single step. In this case, the step is to find a way a good to download Google Maps with a script. For now, that is the scope of this post.


Here’s some initial research to plow through:
Mapki: Google Map Parameters Best reference so far!
Google Static Maps API*
A PERL/Wget solution
A Python script
MapTileCacher in PERL
In Bash
Discussion on Google blocking tile downloads

* On 2/7/2012, I tried using the Google Static Maps API and received Error 400 (malformed or illegal request) when using the URL described therein. I have had more luck using Google Maps directly to frame the map, getting the (perma)link, and tweaking the parameters.


Advertisements

March 8, 2010

Back Up WordPress ‘Blog With Wget

Filed under: How-To — Brandon @ 1:22 am
Tags: , , , , , ,

One risk of keeping my notepad online is the eventual disappearance of WordPress.com. Backing up my ‘blog is of utmost importance. WordPress has a built-in export function, which I do use, but it is most useful for reloading the ‘blog into a WordPress-driven site. I also wanted a way to create a local copy of my notepad for local browsing and for quick upload to a non-Wordpress site if the need arose. Enter, wget.

Wget is one very useful tool. In a nutshell, it gets files, even entire sites, from the Web. I did a quick search and found this posting that provides a recommended set of command line options. I removed the -w and -H parameters and limited the -D parameter to my ‘blog only. Also, I used the shorter flags for brevity (e.g. -m for –mirror, -k for –convert-links, etc.).

wget -m -p –E -k -Dbrandonsnotepad.wordpress.com -P ~/var/tmp/Notepad https://brandonsnotepad.wordpress.com

Now I can keep a local copy or even burn it to for use on other machines.

March 20, 2008

Backing Up Online E-mail

Filed under: Computer Software,Linux — Brandon @ 8:18 am
Tags: , , , , , , , ,

Home > My Lists > Technical Notes > Backing Up Online E-mail


This article from Wired provided some good suggestions for backing up GMail:

  1. Mozilla Thunderbird – set up POP or IMAP and open the app once in a while.
  2. Getmail – available in the Ubuntu repositories, easy to configure, and can be run via cron.
  3. Fetchmail – reportedly ‘arcane’ and more difficult to set up, but also run on the command line.

Blog at WordPress.com.