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.
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.
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.
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.
I thought I had psycopg2 installed on my mac.. Thought.. But now I actually have!