Partially Attended

an irregularly updated blog by Ian Mulvany

12 Apr 2009

testing latex and syntax hilighting on blogger

Some python code some links http://www.ramymostafa.com/?p=99 http://alexgorbatchev.com/wiki/SyntaxHighlighter http://www.botcyb.org/2008/10/rendering-latex-in-blogger.html http://blog.yourequations.com/ Syntaxhiligher2 (unreliable) def AuthenticateSession(username,password): blogger_service = service.GDataService(username,password) blogger_service.source = 'mulvanynet-BloggerTagger-1.0' blogger_service.service = 'blogger' blogger_service.server = 'www.blogger.com' blogger_service.ProgrammaticLogin() return blogger_service def PrintUserBlogInfo(blogger_service): query = service.Query() query.feed = '/feeds/default/blogs' feed = blogger_service.Get(query.ToUri()) blog_id = feed.entry[0].GetSelfLink().href.split("/")[-1] print feed.title.text print blog_id for entry in feed.entry: print "\t" + entry.title.text, print entry.GetSelfLink().href.split("/")[-1] def GetBlogFeed(blogger_service): query = service.Query() query.feed = "/feeds/default/blogs" feed = blogger_service.Get(query.ToUri()) return feed ... (more)

10 Mar 2009

I woke up today and git-svn was broken.

Odd, it was working last time I used it. Today I got the following error git svn IO object version 1.22 does not match bootstrap parameter 1.23 at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/XSLoader.pm line 94. Compilation failed in require at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/Handle.pm line 263. BEGIN failed--compilation aborted at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/Handle.pm line 263. Compilation failed in require at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/Seekable.pm line 101. BEGIN failed--compilation aborted at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/Seekable.pm line 101. Compilation failed in require at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/IO/File.pm line 133. ... (more)

09 Mar 2009

Rail in the UK is really pretty shitty

Last month I bought some rail tickets online, and got to London Bridge only to be told that I had to go to Liverpool Street in order to print out the tickets. Five minutes before my train was due to depart. I had to buy a new set of tickets for that days journey, and get up extra early the next day to make it to Liverpool street to print out my tickets. ... (more)

02 Mar 2009

Five places to eat in New York, mmmmm

Five places to eat in New York, I used to live in New York a good few years ago, and now when friends ofmine are about to go there they sometimes ask me about what to do there. Ikeep trying to think of great places to go in the city, so here is a shortlist of five of my favorite places to eat in New York. Not fancy, notexhaustive, just five places that I remember fondly now that I look back onmy time there. ... (more)

02 Mar 2009

other tips for new york

Also Mona's bar on 13th and b (a bit of a dive, but all the better for it) The east village/alphabet street areas have great bars, there used to be one called the drugstore. Best Bagel: H&H on 75thish and broadway Ah, sure, it's not a bad wee city. Oh, the museums, they are pretty good too. The Metropolitan (it's free) The Frick Collection - Guggenheim (depending what's on) ... (more)

18 Feb 2009

Not a smart way to do this.

I wanted to find out what all of the ... (more)

18 Feb 2009

Training Diary Catchup

OK, so, I've fallen off the wagon in terms of climbing training, or in fact training of any kind. Last weekend was interesting. I did the introductory PADI course, but the week leading up to the weekend was swamped with work, and all of the nights of this week have filled up too. I think in order to get my running done I am going to have to transition to a morning run a few times a week. ... (more)

18 Feb 2009

unknown post

I want to find out what all of the ISSN's are for the publications that are printed by Nature Publishing Group. They list all of their publications on the following page http://www.nature.com/siteindex/index.html. awk '{print "curl http://www.nature.com"$1"index.html | grep ISSN"}' nature-journal-links.txt ... (more)

13 Feb 2009

Wrangling data from a mysql db

I am working on a project where I have to pass some data from tables in a MySQL DB over to some people who don't use a relational database. The question is, how I can best extract the data in a way that is useable to them? I've decided to prepare the data for them as XML, as this prevents problems with My approach uses a hacked together collection of scripts, because, well, as Mark Pilgrim says, because fuck you. ... (more)

10 Feb 2009

Training diary, week 5

Saturday 1st SnowboardingFriday 7th Bouldering at the castleOK, I'm a bit late posting this training update. Last week was the snowy week in London, and I was lazy, boo me, however after not climbing for two weeks and given the very poor training week I was uncertain how things would go, which is to say I thought I would not be very good, however my expectations were unfounded and I had a ... (more)