Jul 19

About a week ago my parents bought a Toshiba Satellite L350 notebook. As with other brands, it comes with a lot of extra applications installed which you don't need at all while taking away precious internal memory space. Luckily it is fairly easy to remove these applications. One application created by Toshiba, and supposed to be useful, is the application to create back-up discs which can come in handy when your notebook has crashed. It looks pretty easy to use, but has a big constraint when you want to actually create these discs.

Continue reading »

Tagged with:
Jun 29

I was looking for options on how to check if a certain substring (in my case ' FROM ') is present in a SQL query string when I found this blog entry. Just for fun I decided to have a look at how fast these checks would be compared to each other.

Continue reading »

Tagged with:
Jun 24

It's taken me some time and a lot of web pages which tried to solve the readline support with all kinds of hacks, but finally I've been able to get readline support and auto-completion for IPython to work. As it can be quite confusing and hard to follow all posts, this will be a step-by-step approach to get things to work. Note that I've got it working on Mac OS X 10.5.7 Leopard. It is expected to work on Leopard at least. Other versions might not require the exact same solution.

Continue reading »

Tagged with:
Jun 24

This morning I had 'some difficulties' with the Eclipse IDE and Subversive to restore my code to an earlier version. Subversion is all about this, so this should be pretty easy.... right? It seemed to be ok, I right-clicked the PyDev project > Replace with > Revision or URL and filled in the revision number. Eclipse started to do something. When it was done, the revision numbers of the files I wanted to revert (which were newer than that revision) were still the same. Did it work? I don't know. Talking about unexpected behaviour.. it prompts me if I really want to revert, but the revision number of the files stay the same.

Continue reading »

Tagged with:
Jun 23

I thought I had psycopg2 installed on my mac.. Thought.. But now I actually have!

Continue reading »

Tagged with:
May 15

Multiple times I've been searching (too long) for a working IPv6 regular expression. There's a lot of crap out of there which doesn't take into account certain cases. Of course you only get to know which one works best if you test them all. I've tried A LOT and finally found the right one

Continue reading »

Tagged with:
May 14

Installing Numpy according to the Scipy wiki page can be a real pain. As Python and GCC are already part of Mac OS X, some prerequisites are already fulfilled, but an official install didn't do the trick in my case. Continue reading »

Tagged with:
May 08

Today I was looking for syntax highlighting for Vim on Mac OSX (10.5.6). A lot of sources only tell which rules there are to enable this, but a lot less tell where to add / edit these rules. I found this source to be very useful to do this. The first comment on the post is also very useful. By adding just two lines to my configuration file I had a nice highlighting with bold characters.

In short:

Continue reading »

Tagged with:
May 05

Yesterday I had an idea about how to manage parsers in dynamic way. My idea was like this

  • A managing class can access the parsers folder and check which parsers (files) are available
  • A parser describes which file formats (and which versions of it) it can parse
The result should be that parser classes are implementing a parser interface and a ParserFactory can get info from the available parsers. As I have been working with Java, PHP, Haskell and some other languages, but rather new at Python this is an interesting problem to get to know Python a little better.
Tagged with:
Mar 25

This post will show a simple example of how to interpretate a WSDL file and a very simple, yet quick example of how to extract information from this file through PHP.

Prior assumptions

In this example I assume that you've already have SOAP enabled in your PHP configuration because this is beyond the scope of this example. If you're not sure, you can check your phpinfo file. There should be something like this:

SOAP information

SOAP information

Continue reading »

Tagged with:
preload preload preload