Jul 20

I took a vote, and everyone who posts to this blog agreed…Its ok for me to post the occasional personal entry as long as it doesn’t get overdone. So…I wanted to mention that my dream car is up for sale on craigslist in Nashville (Link).

Read More


Jul 16

Here’s a code snippet fresh from my PHP n-gram search class. The $str arguement
expects a string, $size is the length of the desired n-gram, and $clean lets us
opt-out of some “clean-up” where duplicate n-grams are removed, and non-alphanumeric
characters are removed from the string. It both returns an array and sets a class value.

Read More


Jul 13

I learned a lot of useful project management techniques in hanging out with the Army ROTC folks. I know some people will disagree, but I think the army actually teaches its officers a lot of great management techniques — they’ve got to since they’re placing 21-25 year olds in high stress leadership positions where they’re in charge of a number of people with various skill levels, personalities, and backgrounds.

Read More


Jul 11

I’ve been developing an n-gram based search in PHP for a secondary project at work. For development purposes, I’ve been scoring things in PHP while I tweaked by algorithm, but now that I’m getting closer to the implementation stage of things I’m trying to push the work of scoring onto mySQL.

Read More


Jul 11

Here’s a freebie since its friday. Print_r is a great debugging function, but it
doesn’t format well in a web browser. I’m sure 99.999% of php coders have this already,
but if not you’ll slap yourself in the forehead for not thinking of it sooner (I know
I did, you have no idea how long I coded before I thought about doing this…sad times).

Read More


Jul 11

I ran across a pretty old “hack” that grabs a list of all the tables and forces
them to optimize. Its generally a pretty useful script to schedule and run once
a week. For those of you playing the home game, you’ll need to tap into your own
database class or adjust it to use the normal db connect functions, but that’s really
simple to do.

Read More


Jul 6

Optimizing PHP with the by using quotes properly in echo statements is a pretty easy
thing to do, and it will also enhance the security of your script ever-so-slightly.

Read More


Jul 2

No real knowledge in this post, just a link to something cool someone else did. A researcher/professor has come up with some really novel uses of the Wiimote (and the code’s downloadable and in C#). I’m still trying to figure out a fun application for a Wiimote, but rest assured that I’ll find an application for it. This is just some amazingly cool stuff that never really crossed my mind. Here’s a link Wiimote uses with C# code.


Jul 1

Ever have performance issues with your queries even after you’ve optimized them? You
can do a few mySQL specific tricks using keywords in order to force certain behaviors.

Read More