pythonaro.com

Pythonaro blog

16 January 2009

jEdit macro to add encoding declaration to python files

This is a little macro to add a PEP263-compliant string at the top of all open buffers in jEdit. It should probably be improved to skip the shell declaration line (if there), and not operate if the line is already there -- feel free to send patches ;D

Download Add_Encoding_Decl_to_Buffers.bsh

Labels: , ,

posted by GiacomoL @ 11:51 AM   1 comments links to this post

08 January 2008

jEdit plugin for Thinlet dev

Too bad I won't use it soon, but here's a nice jEdit plugin to display Thinlets in realtime as you modify the XML.

Labels: , , ,

posted by GiacomoL @ 2:37 PM   0 comments links to this post

06 January 2008

Random thoughts

Tried out the GData Java API. It works fine with Blogger, even though it's slightly cumbersome to constantly have to manipulate strings to extract the "real" id of any given object; it would have been nice to have some sort of dictionary structure, like this:
{"id_user":1234,"id_blog":1234,"id_post":5678}
but I guess that's way too nice for the java world! :)

The more I think about it, the more the idea of a jEdit plugin for blogging makes sense. It would just be a matter of writing lots of scaffolding (options screens, layouts etc), like you always have to do in Java. Is there an equivalent of Qt-Designer in the Java world, where you design your interface, save, and get a nice class ready to be used? That would speed up things immensely.

Labels: , ,

posted by GiacomoL @ 8:18 PM   3 comments links to this post

05 January 2008

The Linux community deserves better blogging tools

Dear lazyweb, did the KDE community ever produce a decent blogging tool?

All I can find are half-baked applets, or java programs, or GNOME programs, and they all fail miserably when trying to connect to Blogspot since Google launched the new API.

We only need a little plugin for Kate or Quanta to do a few things: connect, open a post, open a draft, publish. I tried to do it myself, with Python, adapting the examples that David Boddie posted a few years ago, but so far no luck (whenever the plugin is called, Kate segfaults); I guess it would be much easier in C++, I really should learn it sooner or later. Doing it the other way (by including kparts from Kate and then adding stuff) is wrong and much more wasteful, lots of tools could potentially get instant gains by having a KService to interoperate with the GData API. Or maybe something like this will be in KDE 4...?

If anybody builds it, I swear I volunteer for documentation and italian translation.

EDIT: what about a jEdit plugin? This would even be cross-platform. Uhmmm, nice little project...

Labels: , , , , , ,

posted by GiacomoL @ 4:55 PM   0 comments links to this post