Category: Programming

Looking At a Python Pelican

I really like the static version of the site. It's so much easier to support and configure. I can tweak to my hearts content. Jekyll is a wonderful platform, and Octopress is a great framework on Jekyll. However, ruby isn't my strength. I've fiddled with ruby in the past, but ...

Common MySQL Queries

I ran across this terrific resource. Common MySQL Queries. Tons of great examples...for example: Age in years ------------ Given a birthdate in @dob, here are two simple formulae for age in years: Date_format( From_Days( To_Days(Curdate()) - To_Days(@dob) ), '%Y' ) + 0 Year(Curdate()) - Year(@dob) - ( Right(Curdate(),5) < Right(@dob,5) ...

VIM Revisited

I got a notice in the mail yesterday that Drew Neil has a new book available, Practical VIM. The Pragmatic Bookshelf folks have great stuff, and I use Vim frequently. Why? Why do I insist on doing these things to myself? Text editors are fun! And a text editor with ...

Sounds Like a Duck

I’ve been doing a lot of reading lately about soundex and other algorithms for matching words. In my iOS application, I have a simple alliteration function, basically just looking for matching starting characters. in the next version, I want to expand the alliteration and have a sounds like function. Soundex ...

Editing Auto Posts

According to the XML-RPC Wordpress API Codex, editing a post is the same as a new post, just add the post id and any new values. So, if a file has been modified, and already has a post id, then I should be able to send wp.editPost instead of wp.newPost. ...