Command line svn on Ubuntu

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.

Verder lezen

Getagged , , ,

Installing psycopg2 on Mac OS X

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

Verder lezen

Getagged , ,

Working IPv6 regular expression

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

Verder lezen

Getagged , ,

Installing Numpy on Mac OS X 10.5.x Leopard

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. Verder lezen

Getagged , , ,

Syntax highlighting for Vim

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:

Verder lezen

Getagged ,

Python ParserFactory

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.
Getagged , ,

Simple PHP SOAP example

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

Verder lezen

Getagged , , , ,

It's been a while

Seeing the date of my last post I realize that it’s been a while ago since I last posted a message, so here’s an update.

The last couple of months I’ve been working on my research assignment for the TU Delft which was about data integration and semantics in the context of data warehouses. In that research I’ve analyzed some data warehouses with respect to the current evolving WWW. It seems that especially for the Web 3.0 vision Web Services play an important role for interoperability. Next to that online collaboration is a hot topic. As I am a bioinformatician, one of the most important things in this field is security. Currently there’s no secure SOAP implementation for a Web service to first establish an SSL connection before sending data. Next to that SSL results in large overhead as it encrypts whole HTTP packages. When having a data warehouse with gigabytes of data this is not practical.

Verder lezen

Getagged , , , ,

Check files for virusses

More and more virusses are created nowadays. But luckily there are also quite clever antivirus software solutions. Sometimes you receive files which you do not trust, but you can’t directly see if it contains a virus or not. I came across the VirusTotal webpage which offers checking files on virusses and malware. It maintains relations with many antivirus software production teams, so the more files are scanned (actually the more virusses are found), the better these antivirus programs get in recognizing threats. So next time you encounter a suspicious file: first put it though VirusTotal!

The link is http://www.virustotal.com

Getagged , , , ,

Online text based games (4)

First things first: in my previous post I suggested that the use of frames would be better to be able to reload ‘pieces’ of pages. This is not completely correct of course: within a frameset multiple frames display pages, so in principle the page in a frame is reloaded although this page is of smaller width and / or height so that the frameset fits the screen.

And although the idea of frames is good (reloading parts of a website), it is not worked out great. You still have to reload a whole page. After a quick thought and some trying with Smarty it is way better to just use boxes as I already wanted to do. Let’s say I was blinded by the ‘reloading pieces of pages’ idea 😉

Verder lezen

Getagged ,