New Version of gcal Released

I have released version 1.120110 of gcal, a Command Line Interface to Google Calendar. It has the following enhancements:

  • Support wildcards on Windows (i.e. gcal *.ics)
  • Better error message if we can’t find credentials

To upgrade, simply do cpanm App::gcal. For more information, see App::gcal on the CPAN.

Related Posts

WWW::XBoxLive – Perl module to get and parse an XBox Live Gamercard

I have just published WWW::XBoxLive, a new Perl module to get and parse an XBox Live Gamercard (i.e. http://gamercard.xbox.com/en-US/BrazenStraw3.card).

Using it is pretty simple, as follows:

my $xbox_live = WWW::XBoxLive->new();
 
my $gamercard = $xbox_live->get('BrazenStraw3');
 
say $gamercard->name;
say $gamercard->bio;
 
for my $game (@{ $gamercard->recent_games }){
  say $game->title;
  say $game->last_played;
}

For more information, see the documentation on the CPAN, or browse the source on GitHub.

gcal – A Command Line Interface to Google Calendar

A couple of weeks ago I published gcal, a Command Line Interface to Google Calendar.

It’s quite simple. If you have a .ics file of events you want to import into your calendar, run the following:

gcal events.ical

Or, you can create an event using shorthand, like this:

gcal 'tomorrow at noon. Lunch with Bob'

But first, you need to provide your credentials. Add the following to your ~/.netrc file:

machine google.com
login bob
password 1234

Installing

Its written in Perl, so if you already know how to install from CPAN you just need the name, App::gcal.

If not, and you are on a Mac or Linux system, just do the following to install the script:

curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm App::gcal

If on Windows, you first need to install perl. Then something like this should work.

cpanp -i App::gcal

More Information

For more information, see:

Any issues, please let me know.

mp4meta – Apply iTunes-like metadata to an mp4 file

Recently I decided to digitise all my DVD’s and add them to iTunes, so I can view them on my iPad and my (soon to be purchased) Apple TV. Getting the videos off a DVD is easy with Handbrake, but iTunes has no idea what video file I have just imported, and therefore just uses its filename as the title. Not great.

So I decided to write a script that given a file would search the internet and tell iTunes what video I have imported. The result is mp4meta.

Once I have imported the video using Handbrake, I run mp4meta against the file. It then does a search on the internet and gets some metadata for the video, including the title, genre, description and cover image. It then uses AtomicParsley to write the metadata into the video file, in a format that iTunes understands. I can then import it into iTunes and it is able to store and display the video as if it was purchased from the iTunes Store.

Below are some examples of its usage.

# pass as many video as you like
mp4meta film PULP_FICTION.mp4 "The Truman Show.m4v"
 
# if there are more than one film with the same name, we can pass the year to get the correct one
mp4meta film THE-ITALIAN-JOB-2003.m4v

Currently, the script only knows how to search for films. However, TV Series support is on it’s way shortly.

Installing

Firstly, you need to install AtomicParsley. Download from Sourceforge.

Then, if you are on a Mac or Linux system, just do the following to install the script:

curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm App::MP4Meta

If on Windows, you first need to install perl. Then something like this should work.

cpanp -i App::MP4Meta

More Information

For more information, see:

Any issues, please let me know.

HP TouchPads Sell Out – Does That Make WebOS More Appealing To Buyers?

Now the HP TouchPad has sold out, there are up to 1 million[1] WebOS tablets in the wild. I wonder if that makes WebOS more appealing to a potential buyer?

If the buyer was able to support the TouchPad, they would already have an install base and a user community. WebOS is not far from being an excellent, modern mobile OS. After a couple of updates, the reviews from the TouchPad users might be very favourable, helping to promote WebOS and any newer devices it might appear on.

All this is assuming someone will buy WebOS and continue it, which is a big assumption…

References

  1. Quora: How many Touchpads were made? []

Natural Scrolling

Aside

Mac Attack
It’s not that I can’t learn the new “natural scrolling”. But I don’t just use a Mac, and I wan’t to scroll the same way on my Mac, Linux and Windows PC’s.

Photo from Robby Mueller on Flickr.

Completed the London to Cambridge Bike Ride 2011

Crossing the finish line

Last weekend I completed the 2011 London to Cambridge Bike Ride in roughly 4 hours 30 mins, including a half hour stop about half way. So I guess thats an average of 15 Mph while cycling, which is pretty good :-)

So far, we have raised £9,977 between us, and thats before ARM make their contribution. I’m sure that money will help Breakthrough Breast Cancer continue their amazing work.

You can still make a donation by going to http://www.justgiving.com/Team-ARML2C, or texting TARM99 followed by the donation amount (1,2,3,4,5 or 10 pounds) to 70070.

We even made the Cambridge News, with this pretty cool pic.