Done, and gets things smart.
There are moments when the lightbulb goes off in your head with the power of a thousand white-hot suns. For me, it happened while I was reading the WordPress Database Schema back to back with Henri Bergius’s highly influentials (well, it was a Hell of an influence on me, at any rate) Decoupling Content Management. Take a close [...]
I’ll hang my head in shame later. So, I wrote this for my wife, it’s a hack on the “recent_posts” function from default-widgets.php, which comes with WordPress. It’s magic is that it scans each post for an IMG tag and, if it finds one, inserts that as the background of the list object. A little [...]
Wow, talk about a niche market ready for exploitation. I was talking a client today, and my first question to her was the first question I try to get most of my clients to answer: “If you don’t do this, if you don’t spend the money and the time, what’s the worst that could happen?” [...]
One very rare problem that hits some people with Drupal is that it hangs on installation, and never gets anywhere. Using Firebug, I was able to track the problem down to jQuery, then ripped out the minimized copy of jQuery, stuck in a full copy, and re-ran the install, which immediately revealed the bug. Drupal [...]
22May
Posted by Elf Sternberg as Linux, PHP, programming
I’ve been helping a close friend with her website, which is written in rails. She admits that’s a mistake, now, because it shares database tables with a PHP application, and the communication between the two has always less than stellar. I’ve been looking into her current major problem, but while I’ve been at it, I’ve [...]
I was reading through the WordPress source code, trying to figure out a problem for a contractor, when I saw the function compact(). When I saw it I boggled, read the description, and shook my head. Compact() takes a list of variable names as strings, and returns a hash of those variable names and their [...]