Visual Basic Sucks!
That’s all I have to say!
Posted in Coding Voodoo | No Comments »
That’s all I have to say!
Posted in Coding Voodoo | No Comments »
My preferred way to deploy python applications on Windows is to use py2exe.
py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.
If you run in trouble with sip, read on…
Read the rest of this entry »
Posted in Python | 1 Comment »
I create a small Flickr API interface for PHP5 which takes advantage of the Overloading feature of PHP5.
Using the __call method we can dynamically create an interface to all the Flickr API functions using only a very small script.
The name of the class is purely ironic as it is a very simple and easy-to-use class and far from Overkill.
Posted in PHP | 7 Comments »
Writing Qt apps in Python with Qt3 worked. Somewhat. I never found the energy to get it all set up. Finally with Qt4 we have something that “just works”. At least on Ubuntu and Windows (haven’t tested anywhere else).
Yes, since version 4, trolltech finally decided to release Qt as well under the GPL. To most of you it’s all old news. But hey…. just felt like writing it down again
The problems with SIP are finally gone. So you just install python, Qt4 and pyqt4 and off you go.
Posted in Python | No Comments »
PostgreSQL offers the very interesting module ltree. It’s used to represent a tree structure within the database. One could represent a tree quite easily as a table which references itself. However, if you ever went along that road, you will know that it becomes very slow with larger trees. In addition, the SQL queries that reference themselves are very unhandy.
If you want to know more, what ltree can do for you, I suggest you go ahead and read the usage examples on the ltree homepage.
This is the part that eluded me. On the homepage it only states:
cd contrib/ltree make make install make installcheck
Posted in Coding Voodoo | 2 Comments »
Currently I am a bit busy, so I will just dump the post I found on usenet. Eventually I will clean it up…
On Wed, 22 Oct 2003 12:24:42 -0600 "Justin Johnson" <justinjohnson@fastmail.fm> wrote: > The general consensus on the mailing list archives seems to be that > I'd need to setup my code to not require twistd but just run > standalone. Uh. *Maybe* that's the consensus, but it's not actually correct. You can have a tap or tac run as a NT service. Lets say you have a script "server.py" that is runnable with "twistd -y", you can do (and similar code will work for TAPs):
-- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting
Posted in Python | No Comments »