Ian P. Christian's Personal Blog Random witterings from pookey

28Mar/102

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 reading
22Mar/102

Using 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 reading
Filed under: geek, php, symfony Continue reading
11Mar/103

Handling 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 reading
Filed under: geek, php, symfony Continue reading
11Mar/104

Date/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 reading
Filed under: geek, php, symfony Continue reading
6Mar/101

Hover 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
Filed under: geek Continue reading