Archive for the 'Programming' Category

Upgrading SQLite (and the up arrow key)

Posted by Tom on December 17th, 2012

I noticed the current version of SQLite now supports foreign key constraints. (Previous versions would parse the definition, but not enforce the constraint.) I wanted to take advantage of this in a project I’m working on, but it was oddly a bit convoluted to get there. I don’t know why my installed version was more [...]

Hacking Stripe’s Capture the Flag

Posted by Tom on November 1st, 2012

Note: I wrote this at the end of August, but never posted it. There are some excellent walkthroughs of the levels online. I finished the “Capture the Flag” hacking event put on by Stripe, an online credit card processor. (It’s not a hugely impressive ranking, but finishing was not a trivial task! About seven thousand [...]

Programmers are arrogant

Posted by Tom on October 10th, 2011

I was visiting a marketing software company with a renowned professor when he said something that both startled and intrigued me: “Programmers,” he said, “are arrogant.” He’s right. We are. My mind flashed back to earlier this morning when I was reading comments on Hacker News about a supposed fork to a popular programming language. [...]

VIM, TextMate and SublimeText

Posted by Tom on September 23rd, 2010

In the past few days I’ve come across posts of several programmers switching back to VIM (in most cases, specifically to MacVim). As some have pointed out, this seems predominantly in the Ruby community, which tends to be fad-driven. I’ve thought about giving VIM a shot. But I won’t end up doing it. The trouble [...]

Teaching C#

Posted by Tom on May 28th, 2010

I’m teaching beginning programming using C# to university business students (CIS) in the upcoming Fall semester. It’ll be doubly fun, as I’ve never used C# until about a month ago. Sure, I’ve used plenty of other languages, but for some reason, never anything from .NET. (Partly it’s because I’ve used a Mac as my primary [...]

Images inside a CSS file

Posted by Tom on May 28th, 2010

I was experimenting with my own version of the CSS3 Awesome button, when I noticed one of the commenters share the base64 encoded version of the semi-transparent PNG image they were using as a substitute for a gradient. I was using a smaller image, and want to run a conversion of my own (it saves [...]

Books worth their weight in gold

Posted by Tom on September 21st, 2009

For years, I’ve kept a personal (and unfortunately, unwritten) list of books I think every manager, programmer, and [insert category here] should read. A book every programmer should read The Pragmatic Programmer: From Journeyman to Master. Every programmer I hired was required to read this book. It’s a great resource for people managing programmers too. [...]

Flaws with Utah Reporting System

Posted by Tom on October 20th, 2008

I was surfing John Gruber’s Daring Fireball, and he linked to an article on programming and journalism. The article itself didn’t do anything for me, but the way John described the link connected some synapses for me. (I wish I could recover what it was—something about exposing government APIs to journalists.) Utah does pretty well [...]

Hand-rolled gallery automation

Posted by Tom on July 12th, 2007

The Senate Site asked about a good way to quickly post a gallery of images. I’m a programmer, so I answered the query by rolling my own solution. (If your only tool is a hammer…) I happen to like Litebox, although it requires a bit of manual setup: moving specific files to the web server. [...]

Integrating Mantis and Subversion

Posted by Tom on November 29th, 2006

Do you want to know how to integrate Mantis and SVN? I did, but could never manage the right Google query to return a page written for someone unfamiliar with customizing Mantis. (I’m still learning SVN too.) This is the documentation I wish I’d had. This process is easier if you know Bash or some [...]