Monday, December 23, 2013

DIY Lego Table

Here's a simple lego table for my boys for christmas. I used an end table from Ikea, and four 10" X 10" Lego building plates. I used some liquid nails to glue the plates to the table and that was basically it. Easy to make, and tons of fun!

Sunday, April 7, 2013

F5 URI Re-write to simplify deploys

Our company had a US and a UK based domain, and for a long time we had to keep track of and deploy two separate copies of the site because a single URI was different. Luckily F5's iRules can take care of this.

What we wanted to happen was if you went to /business on the US site you'd hit one folder, and on the UK site you'd hit another folder. We have two separate VIP's for each site, and previously had deployed two separate copies of the /business folder, one for each VIP. With a simple iRule re-write, we can deploy the same code to the servers in each VIP, and still have each site direct you to the correct folder.

This iRule is applied on the UK VIP, and sends you to the correct folder.

when HTTP_REQUEST { set uri [HTTP::uri] switch -glob [string tolower [HTTP::uri] ] { "/business/*" { HTTP::uri "/business_uk/[string range $uri 10 end]" } } }
This iRule simply takes the URI. If it matches "/business/*" it transparently sends you to the /business_uk/ folder. Adding [string range $uri 10 end] takes any characters after the first 10 and attaches them on to the new URI. Doing this let you keep any other portion of the URI that may have been in the original request.


Painted Door Handles

We've had outdated looking brass door handles since we moved in. This weekend we finally decided it was time to do something about it. Since replacing all the handles would have been pretty expensive we decided to try painting them instead.

It turned out pretty good, and doesn't take too long. Here's a before and after shot.



Each door knob required 2-3 coats of spray paint. You have to be careful not to spray too much on at once or the paint will start dripping. The only tricky part is getting getting the 'inside' of the doorknob; the section on the handle closest to the door. It's just at a funny angle to aim the spray can.

I unscrewed all the doorknobs and stuck them in a box and painted them all at once. Here they all are lined up before I painted.

Here's the finished product.

 And another angle of them half-way done.


Monday, April 1, 2013

Storage Shelves

We recently moved into a new house, and since then we've had boxes lying all around the basement. It was time to do something about it, so I build some nice sturdy shelves to store all our stuff.

I looked around at quite a bit of information on the internet trying to find a good example, but ultimately I couldn't find what I was looking for. I ended up just winging it as I went along and luckily the shelves turned out pretty good. 

Here's a picture of the finished project.

Simple F5 iRule re-direct

Anyone that's used F5's load balancers know how powerful, flexible and useful they can be. I frequently use them to perform re-directs from one domain to another. I've got a couple of iRule examples using the switch command to perform a 301 re-direct. Take a look after the jump.