While doing routine tuning and checking of my weblog, I discovered a rather nasty slowdown with WordPress page generation. Taking the “scientific” route, I deactivated nearly all non-essential plugins in my Supercharged weblog (more than 40) and proceeded to activate them one by one, interspersing activations with ApacheBench tests.
A short plug: This post is brought to you by Supercharged. If you want to get these plugins in one package, consider getting Supercharged for your blog.
Really quick conclusions:
Read the rest »
Tagged Mi weblog, PHP, Programming, Software bacán
Published Friday, June 9th, 2006 by Rudd-O
Commented up to 2 comments »
Si usas WordPress, sabrás que normalmente para entrar en BlogSpy necesitas editar tu plantilla… o no, con este pequeño plugin que desarrollé hace 5 minutos:
Read the rest »
Tagged Free software, PHP, Programming, Software bacán
Published Monday, May 29th, 2006 by Rudd-O
Commented up to 6 comments »
As it turns out, version 0.7 of the runkit extension for PHP has problems when copying methods from a class into another. Of course, this punts my original multiple inheritance simulation technique. The bug in detail: copying of methods from “parent” classes into the “child” class succeeds, but later on, when attempting to use a method, PHP requests ludicrous amounts of memory to the OS, which causes PHP to fail.
In lieu of that problem, I decided to explore alternatives. The final, usable alternative seems to be:
Read the rest »
Tagged PHP, Programming, Software bacán
Published Saturday, March 18th, 2006 by Rudd-O
Commented start commenting »
Yes, sir! Due to my increased involvement in PHP coding, I’ve had to try the runkit extension. Since I absolutely refuse to install any software from source without preparing a package for my system (in this case, RPM-based Fedora Core), I took the time to prepare the RPM packages for runkit.
Read the rest »
Tagged Free software, PHP, Programming, Software bacán
Published Saturday, March 18th, 2006 by Rudd-O
Commented start commenting »
Update: there’s a serious bug with this approach and `runkit` 0.7. For an updated approach, try Revisiting multiple inheritance in PHP. Oh, there are RPM packages for runkit here.
Here’s some code that will help you simulate multiple inheritance in PHP 5 with maximum portability. This requires the runkit extension for PHP, regrettably. Hope runkit gets rolled into baseline PHP 5.
This code also emulates the aggregate_methods function from the Object aggregation functions in PHP 4.
Read the rest »
Tagged PHP, Programming, Software bacán
Published Tuesday, March 14th, 2006 by Rudd-O
Commented 1 comment now »
Detecting and correcting problems with applications at early stages is an important role of the server manager. Unfortunately, not all errors are detected at the testing stages. Even more unfortunate is the fact that most errors go undetected because they are usually triggered when a certain set of criteria is met.
Read the rest »
Tagged Free software, Linux, PHP, Programming, Server management
Published Friday, March 10th, 2006 by Rudd-O
Commented start commenting »
Given the DOMit! PHP DOM parser and an XML feed taken from the Federal Reserve Bank of New York, the following code will let you get exchange rates between two currency symbols (e.g. USD to EUR).
Read the rest »
Tagged PHP, Software bacán
Published Thursday, June 23rd, 2005 by Rudd-O
Commented start commenting »