- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I hope alex hasn't done the same thing or else the 32768th commentor is going to be annoyed :p
Admin
Oh goddess, the gifs! They burns us! They burns us!
Admin
If an article gets to 32768 comments, Godwin's law will have been satisfied some time ago and you should probably stop reading and go to bed....
Admin
Everybody now ....
"That's amazing! I've got the same combination on my luggage!"
Admin
People still use luggage locks? I was under the impression that with the TSA that's just asking for trouble.
Admin
Lol President Skroob, so appropriate
Admin
Admin
All together now: It doesn't matter if it's a string of digits. If you aren't going to use it for mathematical purposes, it isn't a number. It's not a PIN, nor an SSN. It's a PIDS or an SSDS. Personal Identification Digit String, Social Security Digit String, etc. And for a ZIP code or "code postal" (the name where I live (northern France) for the local equivalent), we don't even have the excuse of a name that contains the word "number".
And if it isn't a number, don't take short cuts and store it in a data type meant for storing numbers.
Bah.
Back to work...
Admin
Yeah, we still fly. Until we solve the problem of quantum indeterminacy direct matter teleportation is never going to be practical.
Admin
Well in that case they knew it would be a 5 digit number, why make the indexing slower by using a string?
Admin
I bet they designed the system to store a 4-digit PIN identification number, then someone told them to change it to 5-digit, but they never revisited the data storage requirement.
Admin
That's the combination to my luggage!
Admin
The Schengen Agreement being what it is, a few years back when I travelled by trains from London to Amsterdam, travelling through the UK, France, Belgium, and Holland, I had to show my passport only once, when I got on Eurostar in London. Can you imagine the sort of fun that the TSA would have with a journey like that?
Admin
no, everything is a number and should be stored as a double, even your firstname, surname, SSN and ethnicity.
Admin
Here, have a "Shazzam!" (that's like a "Whoosh!", but for when a serious subject escapes you). A PIN isn't a number. They may have "known" it was a 5 digit number, but they were wrong.
Admin
Generally correct, except that the door keypad only contains digits, so you can imagine someone deciding that it is best stored as a number and not a string. I wonder how the length validation works. Can I set my pin number to 00001?
Admin
(Little endian IEEE doubles printed with %.15g, zero-padded.)
Admin
Yes! And while we're at it, let's use strings in IP headers. After all, we aren't doing math with them. In fact, we should encode IP headers in XML, just to be sure.
Admin
Admin
That's the same combination that is on my luggage.
Admin
Admin
Admin
Some consider that a problem; others, a bonus.
Admin
We now have the "TSA approved" locks, which guarantee that everyone will have the key to your luggage. So at least you don't have to worry about losing the key and spoiling your vacation.
Admin
Admin
Security theater works, sadly...until a clever person comes along.
Admin
Admin
And how should I represent that string of digits in PHP or Python? Of course, TRWTF are weakly-typed languages.
Admin
Admin
"I am not a number, I am an alphanumeric string!" (with apologies to The Prisoner)
Admin
Drat, someone beat me to it. Apologies for ruining the joke.
Admin
Of course, trying to leave the US via Honolulu airport on 15 September 2001 wasn't such fun. Did you know that there's nothing whatsoever to do there in the middle of the night? I didn't, until I had to wait an extra six hours for my flight to arrive...
Admin
Admin
I am a free string of digits, not a number
Admin
If you say so.
I teleported home one night With Ron and Sid and Meg. Ron stole Meggie's heart away And I got Sidney's leg.
Admin
Stop beating dead horse, madarchod.
Admin
Admin
Perhaps you were thinking of Perl?
Admin
You get the type that the TSA can open with master keys.
All a luggage lock accomplishes is makes it more likely the bad guy will go after someone else's bag instead of yours, thus such a lock is still useful.
Admin
I'll agree part way. Variables that are integer in nature can use integer data types; there are many good reasons to do so, keeping in mind the limitations of under- and over-flow for the word size (as in the story).
But in the case of postal codes, telephone numbers, and other free-form fields, integers are not the correct tool for the job.
Admin
I prefer to drive anyway - as a concealed carry license holder I don't like to disarm...
Admin
The alarm didn't go off late. Bill just hit "snooze" a few times to many that morning.
Why do people always blame technology for their own fuck-ups?
Admin
"you can imagine someone deciding that it is best stored as a number and not a string", sure. But if you can't perform basic arithmetic on it, it's not a number. You can't logically add a PIN to another PIN and get sensible results, therefore it should be stored as a string.
Admin
Admin
Admin
What does checking firearms have to do with submitting to a cavity search because some sniffer didn't like how your clothes smell?
Admin
Such a luggage lock will also accomplish its primary function: Keep the zipper pull from moving (opening the zipper) as the bag travels through various mangling stations around the airport.
--Joe
Admin
In case you hadn't noticed, the TSA are the bad guys.
Admin
Certainly 32,767 comments ought to be enough for anybody.
Admin
The TSA keys are too wide spread to rely on using any of these locks for security; they are pretty much useful only as a backup to help keep your bag shut. Want your own key that can open any TSA lock? Buy any TSA-approved lock, take it home and make a key that opens it. Voila!
See: http://download.security.org/tsa_luggage_locks_report.pdf