-
Possible problem with Opera and setTimeout / clearTimeout
I’ve not been able to reproduce this with the new 9.27 release, however I’m quite sure that it is an issue in 9.25: When you use setTimeout, you have two options: either passing a function reference or a string which gets eval-ed. In either case setTimeout is supposed to return an integer ID which can…
-
Two simple things you can do for Perl right now!
Go write a page for the Perl 5 Wiki and help it reach 1000 pages Rate a CPAN module
-
Getting the current interpreter in PHP
Recently a friend of mine asked if there is a way to dynamically find out the path of the PHP executable. The working scenario was: running some scripts (from the command line) which would spawn other scripts and rather than hardcoding the path to the PHP interpreter he wanted to use the same interpreter when…
-
Why isn’t my GIN index being used in Postgres after I install the _int contrib package?
While working with some GIN indexes (to speed up the && and <@ / @> operators) I was very surprised to see that after the installation of the intarray (_int) contrib module the query planner stopped using the index. After some poking around it came to me: The contrib module is defining its own operators…
-
Postgres Rocks!
It really does!
-
The hard edges of Python
I’ve been playing around with Python (mostly because pefile is written in it) and got very annoyed with the whole white-space as a control structure. In theory it all sounds great: you write beautiful code and it just works. However in practice I find this approach lacking in at least two ways: When moving code…
-
How can you find out if a site is affected by ThePlanet outage?
If you haven’t heard: The Planet a big, big hosting provider from the USA had some unfortunate incident at one of their hosting facility (involving fires, explosions, etc). Fortunately it seems that no actual computing gear was damaged, however it will be some time until they get back 100% online. In the meantime, if you…
-
Multi-threaded Visual C rand
I was helping out a friend who was trying to generate random numbers in several threads and he was expecting those numbers to be (at least somewhat) different. After getting the obvious problem resolved (you must call srand to initialize the seed – using for example the current time), we were still getting threads which…
-
Stop thinking in stereotypes!
Stereotypes may help you form a quick opinion about matters, however you almost certainly would be wrong. Romania has a few such associated stereotypes (like orphans), but the one related to IT security is East-European criminals. In-line with this perception we have the latest F-Secure blog post Romanian Whack-A-Mole and Linux Bots (disclaimer: I work…
-
The human aspect of security
The weakest link in security are humans. This is both good (when you have a system where the weakest link isn’t technology means that you succeeded from a technological standpoint) and bad (because you must learn new skills to try to mitigate the new threat). A couple of days ago I downloaded the Ubuntu 8.04…