Mercurial: Autopushing changes from a central repository
May 8th
When you have hundreds of applications managed via a central repository which are checked out to multiple production and staging servers, it can become burdensome to manage and/or remember where every working copy of that code resides. We recently ran into this issue at my work so we needed a solution that was going to be developer friendly and easy to manage on a per-repository basis. More >
Mercurial: GPG Sign Tags
Oct 5th
I recently needed to write a pretxnchangegroup hook that would check if any new tags had been pushed, and if so, if they were GPG signed. I had the requirement that the changeset with the tag be signed, not the changeset that added the tag. I’m not a python coder, so I opted to go for a simple bash script to accomplish the task. The only option the script has is whether or not the hook can fail if a changeset does not have a valid signature. If the option is disabled, it will only throw an error, but the hook will still pass. More >
Suhosin’s suhosin.perdir directive
Apr 27th
In some recent development work, I ran into a brick wall with Suhosin. I have both the patch and extension installed on all of my dev boxes on all PHP versions I test with. I found the need to change a configuration directive, but I did not want to change that value in the suhosin server configuration, I wanted to change it via either .htaccess or PHP’s ‘user.ini’ file. More >
L2TP/IPSec in Ubuntu 10.04 et al.
Apr 1st
I’ve spent the last week looking through the web at everything I could possibly find in an effort to find some shred of information that made some sort of sense and didn’t take a rocket scientist to configure. I found plenty of instructions on manually installing Openswan, xl2tp and modifying their configuration files and entering a pre-shared key here, or putting a certificate there, blah, blah blah, blah blah. After many failed attempts, I was pretty much ready to give up. More >
Windows Server 2008 RC2 DHCP Server Option 119
Mar 16th
If you’ve scoured through Windows Server configurations for the DHCP server looking to set the Search Domains and have come up empty, there’s good reason: Most, if not all, versions of Windows do not support setting Search Domains via DHCP (option 119), thus Microsoft does not include a visible option to set this on their DHCP servers. More >
Easily Extend SMF’s Integration Hooks
Mar 9th
With the releases of SMF 2.0 RC4 and RC5, many new integration hooks were added to allow mod authors to extend the code without hacking it up. Previously to this, the primary use of these hooks was for integration with bridges or other systems, no one really used them for modifications. SimpleSEF was the first mod to really exploit these hooks and use them to accomplish some pretty major tasks. What I am presenting here is a simple PHP class that can be used to easily extend SMF using it’s integration hooks with very little effort. If you are fairly new to PHP or new to PHP5′s OOP model, you should turn away now. More >
Install W3C Markup Validation Service on Ubuntu
Mar 4th
This is a simple run through on how to get the W3C Validator up and running on your Ubuntu 10.04+ system. While you can already have Apache installed and running, this walk through assumes you are installing the validator on a brand new Ubuntu install. More >
DDoS-Deflate Revisited
Feb 18th
I recently had the task at work of setting up a simple DoS protection for our public web server. After poking around some bit, I settled on using DDoS-Deflate. We use Ubuntu 10.04 on our server and unfortunately, the script seems to have been last updated over 5 years ago and I needed some modifications to make it work in our environment. I also didn’t like the idea of the install script needing to download files from some web server and have packaged it up all in one (linked at the end of this post).
Moving items between (x)HTML Select objects
Feb 6th
I recently needed the ability to move items between two or more Select objects. I scoured the web and found numerous chunks of code and examples and so forth, but they were either licensed with a stupid GPL license, not licensed at all or didn’t afford the ability of code reuse and generalization.
More >
Custom sitemap entries with SMF and Sitemap
Oct 24th
After many people asking for the mod to support other types of mods, I’ve finally implemented the ability for mod authors to plug-in to Sitemap with their own sitemap type items.
More >