Skip to main content

Cracking The Credit Card Code | MintLife Blog | Personal Finance News & Advice

Cracking The Credit Card Code | MintLife Blog | Personal Finance News & Advice

This is probably the best presentation I have seen explaining how check digit routines work. We use these at work for non-credit card numbers, and usually you have to suffer through them once. If you are smart and you write proper object oriented code, you'll be able to reuse your check digit for say, Generic Airlines Frequent Flyer, as many times as you want since once they adopt the scheme odds are they'll stick for it for years.

When this turns challenging is when the spec documents are sloppy. I implemented one of these check digits for a customer in the hospitality industry, and their example case for the check digit routine had a tiny little redundancy error. The result? My check digit routine was WRONG, but it WORKED with the example account numbers. Fun times ...

Comments

Popular posts from this blog

On sleep deprivation and Incan Monkey Gods

From: Dilbert comic strip for 08/03/1992 from the official Dilbert comic strips archive. I was trying to show this strip to a coworker who is dangerously toying with the harsh mistress that is Insomnia. What shocked me is how quickly I was able to look up the strip, which was published when he was just 11 years old, and two weeks before my just-out-of-college ass shipped out to US Army Basic Training.

Add custom speed settings to your ifit map workout

Ifit.com allows you to build a workout walk/race/bike route simply by clicking on a Google Maps interface. You can then use a compatible ifit-enabled workout machine to recreate the route automatically. The problem is that the user interface still isn't final, so there are features in place that aren't exactly obvious. For example, if you create a workout your machine starts at 1 MPH, because that's the default. But how to set it to start at say, 3 MPH? Easy, just switch from map view to graph view: That button switches from the Google Maps interface to a chart that allows you to visualize and control effort: You can't change the elevation, this is fixed due to the geography that you selected. But you can drag the yellow (speed line) to change the speed of your device.  What if you want to have segments at different speeds? Easy, just click and drag and it will break the line, and you can drag each segment of the line independently: ...

All the President's men: Obama enjoys 20-MAN motorcade and splashes $1.5m on Hawaiian holiday | Mail Online

All the President's men: Obama enjoys 20-MAN motorcade and splashes $1.5m on Hawaiian holiday | Mail Online This is just silly. If you are the President of the United States, and you want to impress your childhood friends, why go through the trouble of flying down to meet them? Especially since the country is having a rough time lately, that's a lot of money! Here's how I would had done it: Find the next "VIP" government flight between Hawaii and DC that still had two seats left. Put the two guys on that flight, if anyone asks about them they are "under Presidential Orders." When they get to DC, pick them up in a Secret Service Yukon and drive them to either Blair House or the White House, where they'll stay as guests for a weekend or whatever. Plus they get to hang out with their buddy who happens to be the President of the United States. And all of this at very little cost to the taxpayer, since the VIP flights would had happened regardless, the fr...