Author: gpanther

  • Dynamic code generation in PHP

    As in most scripting languages, you can dynamically generate code in PHP. As a sidenote: the reason why it is so simple to implement dynamic code in scripting languages is that you already have the “eval” function (it is called with the script), all you have to do is to provide an interface to it…

  • Interesting videos

    Via Tim Bunce’s blog: “The greatest shortcoming of the human race is our inability to understand the exponential function” – by Dr. Albert Bartlett Applying risk management:

  • Creating gradients in PHP

    A few days ago I was looking around for methods to calculate color gradients in PHP. Nothing I found seemed to fit (most of them were centered around creating pictures with GD), so I decided to roll my own. You can see the code below. There is a small test script attached to the end,…

  • Mixed links

    An older ISC blog entry about signs that you have been compromised. It should be a must-read for anyone administering websites, even if s/he is doing it as a hobby. Not doing so can make you a launchpad for malicious activities. An other ISC blog entry points to a paper about fast-flux DNS and a…

  • fortitudehosting – an other “get rich quick scheme”

    A few days ago I received the following email: Hi my name is Jeff and I came across your page http://hype-free.blogspot.com/2007/03/month-of-php-bugs-started.html which would be great for a text link to my client, a web host certifier. What I am looking for is a small text link, web hosting, and if you keep it for at…

  • Mixed links and commentary

    pgAdmin 1.9 will have some nice new features. The query designer will probably save a few keystrokes when working with star schemas. The MySQL Performance Blog explains the different meanings of COUNT. Very nice. I usually use COUNT(1) or COUNT(*), but it is very useful to know about other possibilities. I got this one from…

  • Interesting phish

    Recently I’ve received the following phish: Return-Path <babs-education.info@hosts.co.uk> Authentication-Results mta403.mail.mud.yahoo.com from=hosts.co.uk; domainkeys=neutral (no sig) Received from 85.233.160.25 (EHLO outgoing-smtp.namesco.net) (85.233.160.25) by mta403.mail.mud.yahoo.com with SMTP; Sat, 18 Oct 2008 17:04:47 -0700 Received from [192.168.0.7] (helo=artemis.hosts.co.uk) by outgoing-smtp.namesco.net with esmtp (Exim 4.67) (envelope-from ) id 1KrKrG-0008PU-2d for x_at_y_or_z@yahoo.com; Sun, 19 Oct 2008 00:05:20 +0100 Received from babs-education.info…

  • Augmenting user interfaces

    I was reading Jeff’s post on Coding Horror about naughty filters (and I more or less agree – you can’t fix a social problem with technology). Towards the end he mentions Yahoo Mail, which brought to mind a nice feature they added recently to search: Now, when you do a keyword search, it presents a…

  • Media you can get for free

    Some time ago I’ve written about (commercial) software which you can get (legally!) for free. Now I’m writing about the media you can (legally!) consume on the “Intertubes”. There are of course the well known players like Pandora, Hulu, Last.fm, and so on (although some of those are not available outside the USA – a…

  • Procrastination

    Zee Frank – pro-cra. “You might learn a whole new programming language to put off something usefull with the ones you already know!” – Brilliant!