Posts by tag: programming

Displaying Random NextGEN Gallery Images

In NextGEN Gallery plugin for WordPress prior to version 2.0, it was possible to display a limited number of random images from one specific gallery — like so: This would output eight random thumbnails from the gallery with ID 25, each time different pictures when the page is refreshed. Unfortunately (“thanks” to the company which […]


Coding Style: Vertical Alignment Sucks

No, it doesn’t! — another opinion That’s right, vertical alignment sucks. Big time. Call me names and throw stuff at me, but it’s like a plaque, it’s everywhere, and I really, really don’t understand why. Get ready, this is going to get emotional. I am talking about something like this: Folks who “format” their code […]


Unwanted Escaping Backslashes in WordPress 2.9

After an update of a WordPress installation (2.8.5 to 2.9.1), I noticed that one of the plugins, Stray Random Quotes, stopped working properly: each time I submitted or updated a quote containing apostrophes or quotation marks, it came with escaping backslashes in front of these characters. A couple of teacups later I figured out what […]


Shoot Yourself in the Foot

Maybe you’ve seen one of those funny quick guides to programming languages based on Bjarne Stroustrup’s “foot shooting”, like the one I found on Michael Thompson’s blog (this is the most complete list of languages I’ve seen so far). Read it first if you haven’t. Here’s my two cents. PHP: You shoot yourself in the […]




Ads I

Think About It

“Strength is the capacity to break a chocolate bar into four pieces with your bare hands — and then eat just one of the pieces.” — Judith Viorst

Ads II

Puns & Slips

“Больной у рентгенаппарата, замрите! Сейчас вылетит скелет птички!”