IP Subnetting made easy
I've been asked to help people understand subetting a few times, so I thought I'd document it here to give me a place to point them to in future. Subnetting is explained in many places, with a large variety of methods. The key to working out valid subnets however is simply a matter of understanding the binary maths behind it all. This article explains a method to quickly do subnet maths, without any tricks. The method described will help you in calculating subnet boundaries and valid host address fast enough for use in a Cisco CCNA or ICND1 exam.
Continue readingUsing VERP with swiftmailer, symfony and exim
VERP (http://en.wikipedia.org/wiki/Variable_envelope_return_path) provides a method for handling bounced emails. This is especially useful when it comes to figuring out which emails failed to get delivered from your application/mail outs. This post covers how I got this working in symfony using swiftmailer to send the mail, and exim to deliver bounces back into symfony. The concepts shown can be applied to just about any combination of software though.
Continue readingHandling Uploaded file in symfony’s admin generator
When a file is uploaded using sfForm in the admin generator, by default the filename that's used is a random string, which can look bad in URLs. If you want to change this, it's not immediately obvious how - but it is incredibly simple.
Continue readingDate/Time Range Selector Widget for Symfony
I needed to create a date/time widget for use in an sfForm in a symfony project I was working on, and unfortunately there's not currently a widget that I could find to allow this. In this post I show how I solved this problem, creating a widget for selecting a date range, using the jquery date selector from sfFormExtraPlugin.
Continue readingHover to focus in Windows 7
This post details how to get hover to focus without raising the window working in Windows 7. I think the same tweeks will work in other versions of windows, but I've not tried them
Continue reading