I was recently asked how one might compare a given IP address against a range of IP addresses (assumedly in an elegant manner). I can’t really see why one would ever really need to do this kind of thing in php, but the chap in question explained that it was for the management of an IP address block-list.
anyway, here’s the code I wrote for it. After having done so, I wonder whether a natural text based comparison would have done the trick just as well (you’d still need the validation of course). It seems to work ok but i have not thought it through fully…
Apple announced its new macBook yesterday. i had not heard about it all before the announcement and now suddenly it’s not only announced but actually in the shops. This is almost as impressive as the Google Chrome bombshell.
Anyway, the new macBook looks very yummy. i’m a bit surprised by the pricing though. In France there is a 300 euro disparity between the 2.0 and 2.4Ghz models. the only other difference being a 250GB hard drive. Retail-wise the price difference on the chips is only €25-35 (incl VAT), and the difference between a 160GB and 250GB hard drive is only €15. So what am I paying the other €250 for? The backlit keyboard? C’mon …. it’s like a blackBook tax all over again!
How to make Entourage 2008 talk to 1&1′s Exchange 2007 servers.
In response to a question from a friend of mine, I’ve just finished writing a quick widget/plugin to present a random aphorism (or whatever) as a sidebar widget. Much like Hello Dolly but widgetised.
OK. So I was tempted to try it out. Read on MacDuff …
A bit of a rant about being treated ‘like a child’ (again) by supposedly the top hosting company in Europe…
The so called Hackintosh or OSX86 has been fascinating me for a couple of weeks. With the migration to Intel hardware a couple of years back, I have been trying to work out why it is difficult to install Leopard on a Mac. Yes – I can see that Apple might not like it, and […]
October 3rd, 2008 in
Uncategorized |
1 Comment
i posted this code more than a year ago, in Tek-Tips. It’s buried in old posts now but still generically useful, so I thought i’d give it a new lease of life.
CRUD: Create Retrieve Update and Delete. An acronym for the classic database manipulations.
October 2nd, 2008 in
PHP,
Sample Classes |
1 Comment
as promised below, here is a sample class to use for my version of CAPTCHA
The Appellate Court decision in this Open Source Software case is absolutely fascinating: and the first case of its kind that i know of. As I read it my blood is boiling alternately with ire and admiration at some of the things that the courts are saying; and worse, with what it may mean for the future of open source licensing.
i’m digesting it still, but will post back with a proper piece in due course.