Sun 27
Jul
2008
I use the PHP function strrpos in some of my code. Last night I discovered that it behaves very strangely. The fact that it has worked this far is a miracle.
The purpose of strrpos (more…)
Sun 27
Jul
2008
I use the PHP function strrpos in some of my code. Last night I discovered that it behaves very strangely. The fact that it has worked this far is a miracle.
The purpose of strrpos (more…)
Wed 16
May
2007
It seems that my web host is becoming slower and slower. I’ve installed WP-Cache that caches the output in the blog which results in shorter loading time for the visitors. I’m using Counterize for website stats and to be able to run that together with WP-Cache I’ve had to make my own stats script that adds the stats without using any Wordpress functions. Since I had to make this change I took the opportunity to collect stats by loading the script via an image tag instead of loading it directly in the PHP. This is the way I did it back in the day. A benefit of this is that most bots aren’t logged since they don’t load the images, so there’s less maintenance needed for the bots exclude list.
The gallery is not a part of this caching yet. I’m going to make my own solution there when I have the time. Until then I’m afraid the long load times is something you’ll have to live with.
I’m happy to report that since I made my little alteration to the comment form I’ve had a total of zero spam comments. A couple of bots have been caught in the traps I’ve laid out, but most bots don’t even get that far. I know how I would develop the idea further, but I don’t have to worry about doing that until the bots figure out how to post the spam.
Thu 15
Mar
2007
I just installed the Firefox Add-on GetFireBug. It’s an amazing piece of software for web developers. You can basically load any page and edit the HTML and CSS on the fly. I’ve only tried it out a little, but so far it works like a charm and offers much more than the Web developer tool bar that I’ve been using until now. It will be interesting to see how GetFireBug holds up in a “sharp” situation. My expectations are sky high. It’s amazing that software of this calibre free.
edit: However, it seems that GetFireBug has a huge memory leak because both me and a co-worker installed GetFireBug last week and left our computers on over the weekend and today (monday) Firefox was using about 600 MB RAM (out of 768). Theoretically it could be because of something else, like another add-on, but I find it most unlikely.