mod_evasive is a nice Apache module that helps to protect your server against DoS attacks. However, when a client is blocked, it will keep on using resources on your server. Even if the request will result in a 403 error, it’s still a connection that needs to be handled. In some cases, it might require …
Category: Tips’n’Tricks
The Lion, the Witch and the Xcode
…or maybe it was “The Lion, the Bug and the Xcode“? Anyway, if you just upgraded your system to Lion, then downloaded the new Xcode from the App Store, tried to run it just to get welcomed by a sparkling crash along the lines of UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn’t load plug-in ‘com.apple.dt.IDE.IDEiPhoneSupport’ while firing fault …
A cure for Firefox freezing on download.cnet.com
It’s been a loooong time since I’ve been able to browse download.cnet.com without having Firefox freeze on article pages. Something’s very nasty on that site (or Firefox/one of the plugins I use is very bugged). Some guy on mozillazine suggests to enable cookies from cnet.com, but I’d rather not: there must be another way 😉 …
Attributes, reflection and PHP
After a long exposure to .NET, when I get back to PHP I sometimes find myself missing some cool functionality (and a good IDE too… none of those I’ve tried so far can compete with the comfort of VisualStudio + ReSharper). Among these missing features, attributes are what I needed in order to solve a …
Note to self: what to do when the hard disk fails (Linux)
It’s been a bad day. One of my Linux box hard drives decided to fail this morning. Luckily, it’s not totally failed, but the superblock is gone AWOL. Let’s recap what I did to revive it until a replacement can be mounted. The first thing I’ve noticed was that my /storage partition had been re-mounted …