Skip to content
Archive of posts filed under the Programming category.

Calculating The Bearing And Compass Rose Direction Between Two Latitude / Longitude Coordinates In PHP

A comment recently made to my blog post, “Getting All ZIP Codes In A Given Radius From A Known Point / ZIP Code Via PHP And MySQL“: Does any one know how to work out the bearing from one set of coordinates to another. For example, if the calculated bearing was 90 (degrees) the using [...]

Working With The Authorize.net Customer Information Manager (CIM), Part 1: Overview

I’m going to spend several posts discussing authorize.net’s Customer Information Manager, a Web service for storing and retrieving personally identifiable information about the people who place credit card orders on your Web site. Today, I’m focusing solely on an overview of CIM: What it is, how it works, why it works that way, and approaches [...]

Shortening URLs With The bit.ly API Via ASP.NET

After yesterday’s post on using the Twitter API to post status updates on Twitter from an ASP.NET application, a follower of my client suggested using a URL shortening service to link to the articles headlines being posted as tweets. That was an excellent idea of which I should have thought in the first place. And [...]

Posting Status Updates (Tweets) To A Twitter Profile Via ASP.NET

I have a client that posts several news stories to its Web site every day. So it makes tremendous sense for them to post the headlines to Twitter as tweets, so that followers might be informed of breaking news, or just what’s new on the site. The Twitter API makes posting status updates (tweets) to [...]

Free Books, Just For The Asking

I’m clearing my bookshelves and have four books that I was planning to trash (since the local library doesn’t want them). Then I thought, what the heck, give ‘em away on the blog. So, forthwith, I have the following four books available: Associated Press Stylebook and Libel Manual (1998 Edition): This is a reference book [...]

How I Code On This Blog: Elegance Vs. Transparency

My recent comment exchange with Scriptar has prodded me to post an explanation of how I code on this blog. I view the code I post here as having two priorities: elegance and transparency, weighted slightly more toward elegance. What I mean is that most importantly, the code I post should be as simple, compact [...]