Latest blog posts

2013-05-23: Tip: Getting rid of the warning "The column name 'start' is a MySQL reserved keyword."

Posted at 2013-05-23 15:20:39 by SHD

Version 4 and later of popular database management tool phpMyAdmin "helpfully" displays warnings when a column name in a database conflicts with a reserved word in MySQL. This may or may not be an actual problem. If you are in the habit of enclosing table names in your SQL queries in `backticks`, it shouldn't be a problem at all. For others, it may depend on the actual column name. In the example provided below, "start" and "end" can safely be SELECTed unquoted, whereas "group" needs the backticks. At any rate, having the warnings show up the whole time rather than just at table creation time is annoying. Here's how to disable them.

2013-04-29: Book review: Magento Performance Optimization How-to

Posted at 2013-04-29 16:28:06 by SHD

Open source e-commerce platform Magento is widely used and flexible, but at the default settings, it can be dog slow. Packt Publishing recently released "Magento Performance Optimization How-to" by Nayrolles Mathieu in print and ebook format. It aims to be a short, fast and focussed guide to improving the perfomance of Magento stores using practical, hands-on recipes. So is it any good?

2013-04-14: Magento & Memcached - Fix "Unknown number format type 'boolean'."

Posted at 2013-04-14 16:26:59 by SHD

Recently, I posted a guide to speed up Magento using Memcached. If you've followed another guide that has incomplete information, Magento may fail to work, greeting you with a rather unhelpful error message "Unknown number format type 'boolean'. Format '' must be a valid number format string.". The fix for this is simple.

2013-04-12: Speed up Magento with Memcached

Posted at 2013-04-12 16:49:25 by SHD

Magento is a highly flexible, open source e-commerce solution. Unfortunately, it can also be dog-slow, especially on servers with modest hardware specifications. Throwing extra hardware at the problem is not a great solution. There is a lot of tweaking that can be done, though. Very significant speedups may be realised through the use of Memcached. Magento supports this out of the box, but it is not enabled by default. Here's how to set that up.

2013-03-29: Switching to CloudFlare

Posted at 2013-03-29 00:26:48 by SHD

For more than a decade, I've run my own BIND-based DNS server, using FreeDNS for a free secondary DNS service. There has been quite some to do about a large-scale DDoS attack perpetrated against Spamhaus recently. One significant aspect of this attack was that the DDoS used so-called DNS amplification. This makes use of misconfigured DNS servers ("open recursors") to greatly increase the amount of traffic sent to a victim. One fellow server administrator wrote about this and it made me wonder about being an open resolver. Fortunately, my own server was properly configured and could not be used as an accessory in such an attack, but what if it had been? That's where CloudFlare comes in.