- 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
What bugs me is that the instructions told me to send it in the day I got it... But asked me questions about who WAS living at my address on April 1st. How the hell should I know?
I also refuse to answer the race questions. All of the people in my house will be down as "other: human".
Admin
I was doing a little php scripting recently and was surprised to find that the easiest way to get some date-time conversions down was, indeed, to query the database I was connected to in any case. Apparently a decent date-time-api for php is on the way in php6 or some such.
Admin
"lead" is probably reference to the metal. You're just all mispronouncing it and assume they should be "leading" you instead of pulling you down.
Admin
But don't look at me; I live in one of the few countries in the world not to bother with a written constitution.
Admin
/* The real WTF: it should be a stored proc, so it runs faster against our advanced code - yes it actually runs */
Admin
When I had a US SSN, it had three zeros, but not all together in a single clump.
Admin
TRWTF is the "birth date and SSN" thing as opposed to embedding the former in the latter. The way the did it here is a bit WTFy too, as they used YYMMDD format and thus post-2000 births have the 20 added to month... but heck, at least we have a check digit in there.
Admin
I agree absolutely! For example I always use calls to the database to perform the kinds of calculations that I put into my database unit test scripts that will run against a sql server database. I don't try to use the language I'm scripting the tests in.
Admin
What?? My SSN is 033-65-0856. That's 3 zeroes!
Admin
You can always wait until April 1 to send it in.
Admin
See also http://2010.census.gov/2010census/why/constitutional.php.
Admin
Admin
Huh? It's clearly 3.
Admin
I can't believe nobody has paid any attention to MySQL's delicious interval syntax.
(bill_timestamp + INTERVAL 2 WEEK) AS bill_due
Admin
I wasn't meaning to comment on whether the company should or shouldn't ask for your SSN. I'm of the personal belief that they shouldn't need it, but honestly I don't really care about it so I'm not worried.
In terms of my comment about using another person's SSN, I had meant representing someone else via a SSN. Using an SSN as a primary/unique key in a database is a completely different story than an SSN being a unique identifier for a person in general.
And in regards to the comments about a limited number of SSNs available. Yes, that's accurate, but we're still a ways off..."About 360 million Social Security numbers have been issued to date, 211 million of which are "active," i.e., the holders are still breathing. Since there are about a billion possible numbers (actually 999 million, since nobody seems to want the 000 series), we'll be halfway into the next century before it's time to panic."
The bigger issue with SS is running out of money, not numbers.
Admin
MUMPS is strange, but don't call it primitive. It is to programming languages as Cthulhu is to people: disturbing appearance, humanoid form^W^Wintegrated SQL server, psychic powers^W^Wrobust internal functions, and wings^Wgreat performance.
Dates are stored internally as days since December 31, 1840 (don't ask); time, in seconds since midnight. Functions built into the language convert to and from the Gregorian calendar and Julian day; see here and here for two such functions.
Full disclosure: I used to work for the company in "A Case of the MUMPS," and after leaving them, I remembered that I spent most of my time working on VB and did most of my productive work in MUMPS -- and joined Intersystems, the vendor of Caché. MUMPS syntax is pretty strange and has potential to be much stranger, but it's very powerful once you get used to it, and the platform underneath is extremely robust. (Again like Cthulhu.)
Admin
Everybody knows that database date routines are the most accurate...
Admin
Supposedly it's because it would allow any (then) living U.S. citizen's birthdate to be represented as a positive number.
See here.
Admin
Nope. Social Security Numbers are not unique indentifiers, nor were they ever intended to be that way. They are, in fact, 1:many.
Admin
The same SSN is not issue to multiple people.
Therefore if I ask the question "Who does SSN 001-02-0003 belong to?" There will be, at most, one answer.
I'm not talking about number of people who have claimed that as their SSN, I'm talking about who the government says that SSN should belong to.
I guess in technicality a SSN does not identify an individual, but rather a Social Security account which, in turn, belongs to one individual, however the end result is the same
Admin
ಠ_ಠ
Admin
I actually did thate. I had our server at the main office, connect to each of the branch sql server computers, and then log all the available drive space in a table. This was a SQL process that ran at night. It let us keep track of drive space on each of the branch computers (about 150 of them)
Admin
I worked in a proprietary xml-syntax language that had a lot of things like this because those functions were later additions. Using SQL functions had been the proper way to do those things at the time because of this.
They also broke horribly when a client required Oracle as a backend instead of MS SQL. Actually, that may have been the reason the datediff functions were added to the language, or at least the reason they became widespread knowledge around the office of 15 programmers.
Admin
Admin
Admin
Not our DBAs... Frankly I'd be surprised if they knew what a database is. Or how to tie their shoelaces.
Note:- this is not a dig at DBAs. I've worked with some damn good ones in the past.
I miss them now.
Admin
Toth's one of them.
Admin
Pfft, nothing could possibleye go wrong!
Admin
So do a few thousand businesses online as well. But in one sense this could serve as a good age check (of the user) if you do it right.
Admin
Hmm. I wonder what happens if you run this on a computer that uses a different dateformat than the SQL server...
Admin
I see what you did there!
CAPTCHA: causa Not using prepared statements causas errors like this!