Category: Programming

  • PHP + Recursion + loop + global array = trouble

    Once again, I came across an issue that I racked my brain about for hours, if not days: I had written a recursive function in PHP that should run through a globally declared array with a foreach loop and then restart itself if necessary. Everything ran perfectly well – but only on my local server.…

  • Integrate WordPress statistics into a template plugin- and widget-free

    For a while I’ve been looking for a way to integrate the top-posts of my site, that have been established by the WordPress stats plugin, into my template. I wanted to have a list of the five most visited posts, preferably with the number of comments. I remembered that I had once seen a plugin…

  • Blank page after commenting on a WordPress post

    This issue is certainly known to a few, and I too have had the problem for a while that I couldn’t leave any comments on my own blog when logged in as admin (I could comment only from the back end, but not from the website). Today I have finally taken the “time” to go…

  • I am reading (continued)

    “I am reading (continued)” is a WordPress plugin to display which book you are currently reading and how far you have already come. It is actually a continuation of the plugin “I am reading”, which stopped working after 15th August 2009, because Amazon implemented a new kind of authentication on that day. Since the author “mifupa” doesn’t…

  • Preserve PNG transparency with GD Lib

    Lately I had to write a PHP function that generates differently sized thumbnails from an image with GD Lib. Thereby I had lots of trouble with semi-transparent PNG graphics. Although I found many tips on the internet that pointed me in the right direction, I couldn’t find a really complete and neat solution. Many people…

  • Extremely choppy playback in Flash player

    It is truly amazing how a computer can still surprize you and make you shake your head in wonderment, even after twenty years of computer experience. Since weeks I’ve had the problem that Flash movies were stuttering on my computer so much that I couldn’t even watch ordinary YouTube videos anymore. And I don’t mean…