Vim, Codeigniter and easy unit-test running

I like to edit with vim. I have quite a lot of plugins and it's a pretty complete IDE at this point. I love the modal editing, one key commands, and that it's on pretty much every server and Mac or Linux install (or, at least it's ancestor vi is; I alias vim to vi on my systems anyway, it's 33% shorter and it makes me feel like a bearded hacker from the early 80s).

For one of my jobs, I use CodeIgniter (CI) Framework, which has some built-in unit testing functionality. I like to use this CI Unit testing and not PHPUnit because it is easy to run the tests and keep it all in one format.

→ → → more ...

January 15th, 2013

PHP Phing GrepTask

My current deploy system is a series of PHP scripts. It works pretty well but is hard to follow and undocumented. Because I now work in an large corporate IT environment, standardizing is important.  I decided to move to PHP Phing for deploy. I'm not all the way through the conversion process but I think it will work well. Unfortunately this XML based system is often confusing or even outright bizarre.  For instance, I just wanted to grep some files for some strings that I want to know if they exist. I tried a few different ways of doing this and nothing ended up being that great. I could have just dropped to the command line, but I liked using the fileset/patternset in the build.xml file. That is one of the best parts of Phing and to not use it and go with a very long grep "<exec>" tag was not to my liking. In addition, I wanted to learn how to write a task. It's easy.
→ → → more ...

November 7th, 2012

BigIP F5 header max size collides with CodeIgniter’s bizarre session class

I recently had a problem at work. My development box is on the company network, and only accessible via our company VPN.  It is not, though, behind one of our F5 routers. This caused me a big headache recently.

I deployed a major web site release and had to roll back after several hours of "Connection Reset" messages.  After several long days of investigating, I found that F5's have a default header max size of 32k, mostly for DoS attack reasons (though my headers were on the way out... response headers... I could see the F5 resetting a connection where the incoming request headers were oversized but the response headers???).

→ → → more ...

October 18th, 2012

Quick and simple code reviews with git and vim

When it's time to deploy, I want to make sure that I know about every bit of code change because I'm ultimately responsible for it. I don't want any of my developers or team members to make a change they forgot to log in a commit message or update as part of an issue/ticket.

The best solution I've found for this is using git and vim's syntax highlighting.

When we are at the deploy stage, we wrap all the code into a testing branch, named something like v6.23-TEST.

> (on master): git co -b v6.23-TEST

→ → → more ...

October 18th, 2012

My Aces

My Aces, in chronological order:

  1. Lamar Park, then #1, January 2007, Innova Dragon 150g, witnessed by Vance, Cesar & Matt
  2. Lamar Park, #4, June 2010, Discraft Flick 171g, witnessed by Morris, King Rat & ???
  3. Ingleside Red #1, July 2010, Innova Star Teebird 175g, no witnesses
  4. Lamar Park, #3, July 2010, Discraft Force 174g, witnessed by Morris
  5. West Guth 14 blue, September 2010, Discraft Z Stalker 174g, no witnesses
  6. Lamar Park #5, July 31, 2011, Discraft Z Stalker 174g, no witnesses
  7. West Guth 10 blue, August 3, 2011, Discraft ESP Force 174g, Blurr, Isaac, Smokey, Krazyeye, C4 witnessed
  8. West Guth 13 red, September 7, 2011, Discraft Flick 171g, Ketchum & Bubba witnessed (secondarily, Blurr, KP, C4 & Smokey)
  9. Jellystone Hill Country #9, June 15, 2012, Discraft Zone 175g, witnessed by my youngest two sons and two park employees. This might be considered more of a fairway ace, though I did use a putter (the hold is about 120ft, it's a kids course).

I guess I like June-July-August-September! The hot months are when the aces come (and 2 aces in 4 days... nice)

July 31st, 2011
Older posts