Nov 9, 2009

I'm tired, wide awake, jetlagged and feel like ranting. I have nothing to rant about. Fuck this. Fuck AIB. Fuck them in their tiny skulls. Stop blocking my credit card because I tried to use it in Washington. Why do they always do this when I'm traveling and then act really surprised when I tell them they're calling me at 2am and tell them to fuck off and stop being cocks. I should probably call them back and tell them to let me use my credit card.
I had some code I was working on, but I left it checked-in on another laptop and never pushed it. I like mercurial, but sometimes DVCS really fucks with my head.
I bought a book on java. Could barely read it due to tiredness, but from what I did read someone needs a smack. '' for characters, "" for strings? Why? And MyAwesomeClass Shiny = new MyAwesomeClass(blah, blah, blah);? Seriously? I realise it's probably unfair to bitch about Java after spending all of about 10 minutes reading a book, and I fully expect some lightbulb-over-the-head moment where it all makes perfectly reasonable sense. But fuck it, for now I think it's insane.

Oct 28, 2009

Updated pytwitter to 0.4.1 and uploaded to pypi and google code. There's only one change:
- Add POST exceptions for statuses_retweet and report_spam methods.

pytwitter 0.5 will have a few more changes:
- I've done away with POST-only methods. All requests will be POSTed, and if a 400 is returned by the server, the request will be retried as a GET. Not ideal (really the server should reply with a 405), but better than hand-maintaining a list of POST methods.

- Stop using string concatenation to produce URLs and query strings.

- Use the new API URL (api.twitter.com) and support versioning. Mostly meaningless until versions other than '1' exist.

- Some cosmetic changes.

Jun 18, 2009

Pytwitter 0.4

New release of pytwitter is out. Since 0.3 the source has moved my own svn repository to a mercurial repository on code.google.com and the license has changed to the Apache License 2.0.
Changes since 0.3:
- The default format is no longer xml - json is the new default.
- The format is now specified when a method is called (e.g. pytwitter.help_short(format='xml').
- A format='' can be used for methods which require no format (such as oauth_request_token()).
- Added some more examples to main(), including a search API example (read the source ;))
- Add more methods to post_only_methods. Fix typo account_endsession -> account_end_session

Download from the Python Package Index or Google Code.

May 10, 2009

I've been really slack about updating pytwitter. As a consequence, it mostly doesn't work as a result of twitter forcing certain requests to use GET requests only (previously, POSTs would work just fine for everything). Oops. Anyway, that's all fixed in pytwitter 0.3: http://pypi.python.org/pypi/pytwitter/0.3. Right now there's a list of methods that require POST and if the method called is in there then it gets sent using a POST, otherwise a GET is used. Not perfect, but it's late.

Jan 8, 2009

Fun Dell Mini 9 fact: You can stop the battery charging. I have no idea why anyone would want to do this, but this fun feature can be triggered unintentionally by utterly draining the battery. The feature can be toggled back using 'aircraft-manager-util AC_CHARGING on'. aircraft-manager-util can be obtained from http://dell-mini.archive.canonical.com/ubuntu/dists/hardy-dell-mini/universe/source/aircraft-manager_belmont11.tar.gz.

Why you would want to stop the adapter charging the battery is beyond me. Why the device would fail in such a way as to enable this state is a complete fucking mystery. And seriously, using inb and outb to play with direct port I/O in order to manage devices is just... so very wrong.

Thanks, Dell. Thell.

Nov 8, 2008

Updated pytwitter to 0.2. The only change is to str() parameters before urlencoding so non-ascii characters get sent properly.

Update: I am an idiot. Added eval() to str() to convert the resulting string back to a dict so urlencode would work. I don't like using eval() though. I'll fix it later. In the meantime 0.2.2 is up.
Just finished watching Alone in the Dark. Why, Uwe Boll, why?