October 14th, 2007
The new version of Pygments is out now. The changelog is once again quite long and a couple of new lexers were added:
- Erlang
- ActionScript
- Literate Haskell
- Common Lisp
- Various assembly languages
- Gettext catalogs
- Squid configuration
- Debian control files
- MySQL-style SQL
- MOOCode
Some old lexers got updates too:
- Greatly improved the Haskell and OCaml lexers.
- Improved the Bash lexer’s handling of nested constructs.
- The C# and Java lexers exhibited abysmal performance with some input code; this should now be fixed.
- The IRC logs lexer is now able to colorize weechat logs too.
- The Lua lexer now recognizes multi-line comments.
- Fixed bugs in the D and MiniD lexer.
There are also two new formatters. One that outputs SVG documents and a terminal formatter that uses 256 different colors if the terminals support that. There is also a new style which resembles the vim7 default style.
For the full list of changes have a look at the changelog. You can download pygments from the download page. Happy coloring!
Tagged as: pygments, python, announcement |
No Comments »
August 26th, 2007
Since today I’m a proud owner of an Apple Macbook Pro. Well. Proud and annoyed at the same time. I was aware that switching over to a Macbook would take me some time but It’s a whole lot harder than imagined. The hardest part is that the keyboard layout is totally different. And even if some of the keys work the same (normal letters) you still have the problem that all keyboard shortcuts are different. One the one hand because you have to use the apple sign where you would expect the control key if you’re used to linux.
The keyboard is definitively the worst part of the Macbook Pro. It’s missing a delete key and the alt gr key which you usually find on German keyboards. The Alt Gr key replaces the normal second alt key so that you can enter some of the symbols you use in programming languages (square brackets, or even the simple at sign). On German keyboards the “[” sign is on alt gr + 7. On a german macbook pro it’s on alt + 5 and not even displayed on the keyboard. While this is probably not a problem on OS X it will become a problem as soon as you try to install ubuntu on that machine.
But the keyboard is not the only annoyance. The mouse isn’t much better. I’m used to have acceleration on touchpads, but not on normal mouses. But on OS X there is no way to make the mouse movement linear, at least not a non hackish way.
Also the way windows are managed is totally new to me. I would expect that the maximize button maximizes the window. But it just makes it a bit bigger, as big as the window manager thinks it shoud be?
So far I don’t think I will install ubuntu right now, i have to much problems getting into OS X. And the problems i would have with a German mac keyboard on a linux machine are too much right now :-(
BTW: I’m back from Italy
Tagged as: caveat, announcement |
One Comment »
August 10th, 2007
Okay. I’m off to Italy for two weeks now. I will be offline most of the time but constantly check my emails, so if there is anything important just mail me. I’m back on Saturday the 25th of August.
Tagged as: personal, update, announcement |
No Comments »
July 28th, 2007
First of all: Pocoo gets some love recently. EnTeQuAk joined the team and is working on finishing the changes I haven’t finished (conversion to werkzeug and splitting up the packages). That’s great news, but don’t expect checkins the next nine days, he’s on holiday currently.
The other news affects Jinja. The plan was to introduce a new module system for the next Jinja version so that the loaders reload better and that you can use macros without including a module into the current namespace. So {% include foo = “foo.html” %} {{ foo.macro() }} should work.
This however was postponed for a simple reason. The compiler package Jinja is using internally is deprecated because with Python 2.5 the AST is a core Python feature and automatically in sync with the parser Python uses itself. But because maintaining a version for python2.5/2.6, python3 and python2.4 and lower is too much work Jinja will get a hand-written parser for the current syntax.
I expect that this will Jinja also a lot more lightweight because some of the trickeries I do with the AST will become redundant. So that will become the next thing to do.
Tagged as: pocoo, jinja, announcement |
No Comments »
Since yesterday curse-gaming is now curse and running on Jinja. Awesome :) They are using a loader that loads the template bytecode from memcached servers. Thanks to Bryan McLemore that loader is part of Jinja since some time.
July 25th, 2007 | Tagged as: jinja, stumbledupon, announcement |
No Comments »
July 23rd, 2007
Currently I constantly go to paste.pocoo.org to paste stuff i copied from my vim there. Why not just paste directly from within vim? So I wrote a small vim plugin (requires python) that pastes to lodgeit: lodgeit.vim.
Oh. And from the werkzeug plaintext view you can paste directly into the lodgeit now too :-)
Update: Improved version online. It now converts to utf-8 automatically and allows to download pastes directly into vim via :Lodgeit URL. If you have done your change you can push it back to the server via :Lodgeit.
Tagged as: vim, python, announcement |
No Comments »
June 29th, 2007
Finally I’ve made the Matura :D I got a “Guter Erfolg”, I would have got a “Ausgezeichneter Erfolg” if there wasn’t the huge amout of spelling mistakes I made in my written German exam. But I’m happy nevertheless.
Especially the oral Matura was just awesome. Because I wrote a so called “Fachbereitsarbeit” in computer science i had one written exam less than normal. So I only had English, Maths and German as written subjects and Religion, English and computer science as oral subjects. So as you can see darn simple matura, especially because in Austria you can choose one out of two general questions and a special question out of your special subject you worked out the weeks before the Matura.
My topic for the computer science “Fachbereichsarbeit” was security in web applications and apparently my presentation was that impressive that I got some applause which was a very, very cool experience. I had one of the last exams and usually the teachers and the examiner are already so bored that nobody listens to your ten-minute talk. It’s a really cool feeling that you were able to somehow impress the persons in the room.
I still don’t know the final results but I know that I got a “Guter Erfolg” which is the second best result you can get.
Plans for the next two weeks: Off to Ios with friends :-) and relaxing. So basically off from Sunday the first till Friday the 13th :-)
Tagged as: personal, update, announcement |
One Comment »
June 24th, 2007
Georg Brandl with whom I work together at various open source projects hosted on pocoo.org now runs a blog at pyside.blogspot.com. He’s currently working on the new python documentation, and also the lead developer of the pygments source highlighter. Cool stuff!
Happy blogging Georg :-)
Tagged as: links, python, announcement |
No Comments »
June 7th, 2007
On the German python forum I found a thread where someone mentioned kodos which reminded me about one of my old projects which was pretty much the same, just for GTK. I now restored the sourcecode and cleaned it up a bit (it originally contained tabs and various constructs I could have avoided and a hardcoded GUI). I also added escape / unescape / export / import features.
So the result looks like this:

I added it to my projects section now: gPyreTest
And now have fun testing your python regular expressions :D
Tagged as: gtk, python, announcement |
No Comments »
June 2nd, 2007
Jinja 1.1 codenname sinka is out! And with more changes then ever. Here a
small summary of the new features and improvements:
- blocks now support {{ super() }} to render the parent output.
- the template lexer keeps not track of brace, parenthesis and bracket balance in order to not break variable tags apart if they are configured to look like this: ${expr}. This also fixes the problem with nested dicts in variable expressions.
- added whitespace management system for the template designer.
- many new filters and helpers such as lipsum, batch, slice, sum, abs, round, striptags and others.
- reimplemented Buffet plugin so that you can use Jinja in pylons.
- added optional C-implementation of the context baseclass.
- it’s now possible to stream templates.
- reworked loader layer. All the cached loaders now have "private" non cached baseclasses so that you can easily mix your own caching layers in.
- added MemcachedLoaderMixin and MemcachedFileSystemLoader contributed by Bryan McLemore.
- many new unittests, bugfixes and improvements.
The whole list of changes can be found in the changelog. Get it while it’s hot from the cheeseshop.
Tagged as: jinja, python, announcement |
No Comments »