Configuring a Cisco 2509-RJ terminal server

I recently purchased myself a cisco 2509-RJ, which is similar to the 2509 / 2511, however rather than an octopus cable to connect to other devices, RJ45-RJ45 rollover cables are used. This article shows a full configuration example and details on the cables required. The configuration allows for reverse telneting into other devices.

Continue reading “Configuring a Cisco 2509-RJ terminal server”

IP Subnetting made easy – A subnetting tutorial

I’ve been asked to help people understand subetting and CIDR a few times.  In this post I give a short tutorial. 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.

This guide teaches you a simple method, suitable for the Cisco CCNA or ICND1 exam.

Continue reading “IP Subnetting made easy – A subnetting tutorial”

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 “Using VERP with swiftmailer, symfony and exim”

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 “Date/Time Range Selector Widget for Symfony”

Extending sfFileCache with Hashed Directory support

Unfortunately, sfFileCache doesn’t scale well on certain file systems as it puts all of it’s cached files in one location. This simple class adds support for hashing the directory name based on a the name of the item being cached. It wasn’t worth a plugin, so I’m pasting it here.

Continue reading “Extending sfFileCache with Hashed Directory support”

Sending multipart email from a Task in symfony 1.4

I recently needed to send the result of an action in symfony via email daily. E-mail has changed slightly in symfony 1.3/1.4 – here’s how I did it. I really don’t like my solution at all, the use of get_partial() from within a Task seems very wrong to me – but I’m in a rush so it will do for now, I’d love to hear feedback

Continue reading “Sending multipart email from a Task in symfony 1.4”