- 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
Actually, if it's going from teaspoon to tablespoon, it goes to ounce, then cup, pint, quart, gallon, etc.
If we're talking weight, it goes from ounce to pound, to hundredweight (112 lbs), then ton (2240 lbs). Human weights don't have stones in North America, so I don't know much about it. I don't see how a doctor is any more likely to miscalculate with this system. In your specific example, take your weight and divide by 2, that's how many teaspoons you need. That's also a shitton (imperial shitton) of medicine.
Admin
This is freaky. I just had to fix an old Access system that was falling over today.
The problem: a 200 line procedure that could take any date string and, regardless of format, turn it into a standard dd/mm/yyyy format. Thus 21-sep-2008, 21-September-2008, 21/09/2008, 21/09/08 would all be converted to a standard format. It even tested for US format so that 09/21/2008 would be corrected. Great.
200 lines of code that coped with everything except a short date format that left out leading zeros...
Hours wasted because the original guy never thought to enforce a standard format throughout the application, and patched the same function several dozen times over 5 years. My head is still hurting.
Admin
Also, if you're traveling at a speed where it's relevant to measure in miles per hour, the next 100 yards is irrelevant for doing calculations off the top of your head. Anything that needs to be done for proper calculations can be done via paper/calculator.
Admin
Admin
True, we prefer our beer not to be made out of rice, but that would be a minor cultural peccadillo. "Cellar temperature," however, is not "warm," unless that is you live in a tropical swamp. Global warming hasn't got quite that bad yet. As to the beer's head, there are broadly three classes of English drinkers:
(a) Those who prefer a decent amount of froth, naturally created during the brewing process. These people normally live in the south. (b) Those who prefer a substantial head, generally created by use of a swan's neck beer tap. Again, as far as I'm aware (Boddingtons being my only real experience in this area), the beer is naturally carbonated. These people normally live in the north. (c) Those who drink something called "lager." This is in no way to be confused with lager as it is known in the rest of the world. It is consumed by northerners and southerners alike, who can generally be distinguished by their propensity to yell "Get your tits out for the lads," "Oi -- you looking at my bird?" or "Cartesian Dualism really doesn't work in the system of morality implied by the eightfold path" (this last, obviously, being restricted to select areas of North Oxford). Lager is most certainly not to be confused with Budvar, although it might be confused with Budweiser. As previously noted, it differs principally in that, rather than depending upon rice for its flavour, it generally substitutes various toxic chemicals left over from when Britain was an industrial power. The difference in quality is largely nugatory.
FTFY.
Admin
US pints are smaller than a English pints, I'm pretty sure he means UK pints.
(+ UK Pint is the right amount to have a pint in)
Anyway, usually milk is metric, but you can get it delivered in pint size bottles too sometimes.
Beer in pubs comes in pints, in supermarkets in cans of 500ml or 330ml.
Admin
Admin
Admin
See, and in Canada, we've moved to metric for everything except distance, which is measured as a unit of time.
I, for example, live 20 minutes away from work, the drug store I got directions for was five minutes up the road, I asked someone the other day how far away from Dryden was from Kenora, and he responded that it was about an hour and a half. That kind of thing.
It's actually much more handy for giving directions, because it's what people really want to know about anyway.
Admin
I believe this is the worst code that I have ever seen, and I've seen a lot of code. I defy anyone to defend anything in this WTF. I do not believe it can be done.
Admin
Sorry! No offense intended, friend.
I agree with that ice has no place in beer, but I think some where between "ice forming" and "cellar temp" you'll find the right temperature for your beer. (well, my beer anyway... it's all in what you like.)
P.S. I think it's also more like we'll vote for our pets and hump any beuaty queen... But agian, that could just be personal preference.
Admin
What about 64 Secs in a min 64 min in an hour 16 Hr in a day =65536 seconds in a day - easier to use than 86400, we can use a smaller variable!!
Admin
Canada and the UK people still use feet and inches for measurement, and in the UK street signs are in miles. So other english speaking countries use both English and metric units and also use the SI system inconsistently.
Admin
Isn't there a dept of weights and measures or Bureau of Standards or some such that cerftifies that a pint glass is really a pint?
When I was visiting Ireland about 20 years ago, I remember hearing a story on the radio about how pubs where running out of pint glasses. (my memory is a little fuzzy here... don't laugh, you'll be old too some day!) Anyway, the story was that either the folks who do the measuring or the folks that engrave the seal on the glass were on strike. As the strike dragged on, and pubs had the occiasional broken glass, the pubs were finding that they were running out of pint glasses during the busy times.
And since you couldn't pump beer into a pint glass without a seal... you had a hard time selling your beer. I do remember one "man on the street" saying something like "that's no problem. We've all walked home with our last pint of the evening a few times... we'll just have to bring those glasses back."
Admin
This one deserves blue text.
Admin
A much better solution would be to mount the rockets on a ring of coiled wire placed in geostationary position around the Earth, spinning the coil in place opposite the direction of the Earth's spin. This would generate electricity from irregularities in the magnetic field and, in the process, slow down the Earth's rotation.
Admin
Thanks for reposting; I missed this one the first time through. But it isn't really a WTF, since it would probably work.
Admin
Most of Australia uses Imperial Pints (570mL/20fl.oz.) and Schooners (425mL/15fl.oz.)
South Australia (in their infinite wisdom) adopted the Metric Pint (425mL/15fl.oz - odd given their milk used to be measured in Imperial pints {rounded to 600mL)) and Schooners (285mL/10fl.oz - called a middy or pot in most of the rest of the country)
In the last couple of decades, an increase in English style Puns in Adelaide (SA) has meant more and more pubs adobt the Imperial pint - provided you ask for an imperial pint or 'handle', but will often still serve metric pints if you merely ask for a pint. Naturally, Interstate travellers are somewhat confused too - Asking for a pint and recieveiving a chooner (or vice versa)....
An Adelaide Brewery seems to have come up with an interesting solution. Their bar in the local airport serves beer in 1 size (425mL/15fl.oz). If you ask for a schooner, they assume you are from interstate. If you ask for a pint you are a local. Either way you get 425mL...
http://en.wikipedia.org/wiki/Beer_in_Australia
(And most Australian beers come in 375mL bottles or cans...Many other sizes are increasingly appearing with bottle redesigns - as small as 285mL {but marketed as a 'standard drink' (For some reason Australians consider a 5%Alcohol drink to be standard in 285mL). Most other small sizes are purely to rip the consumer off.... But we're getting sidetracked....)
Admin
What are you talking about, this code is AWESOME! It has ERROR HANDLING!!
Admin
Probably the best thing about all the Eastern Europeans coming to Britain recently is that decent lager's come with them. Polish and Lithuanian stuff mainly, but I even had an Estonian beer in a London pub the other day. For those of us who don't like ales, it makes a change from Becks.
Admin
You had me at "Internal Access Application"
Admin
Supposedly that does work in Windows Vista. I've never tried it but whenever I plug a USB drive into my laptop it asks if I want to use it to improve performance. As I understand it you can set it up to use the USB drive as virtual memory.
Admin
Why? 60 is divisible by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 and 60.
100 is divisible by 1, 2, 4, 5, 10, 20, 25, 50 and 100 - not nearly as good, especially missing the 3.
In addition there is a good reason for people liking Imperial/English measurements - they're human friendly, they're never too large for the things that humans measure (fnarrr!).
120 would be a good base as well - it adds divisibility by 8, 24, 40 and 120 to the figures 60 is divisible by. That's why 120Hz TVs are great for 24fps film transfers. But being over 3 digits long makes it less human friendly.
Admin
SEVEN AM! It's pitch black at 7am. Decent people don't wake up until 8! 10am is a perfectly acceptable time to get into work (within an hour of 9am, so within flexi hours).
Your lovely work plan was destroyed by imposing your own early bird desires on a population who are mostly night owls.
Admin
Ah, so a cup is 284ml! Never could work out recipes that used such a weird term for measuring things. Like 'cups of banana' - what, chopped? smushed? why not say "2 bananas"!
Admin
Because Bananas aren't a standard size. Or, at least, are even less standard than "cups."
Admin
And if you fill it with the ailing horse urine we call beer, it's still no bargain!
I recently stumbled into a small neighborhood pizza place in (of all places) downtown Little Rock, Arkansas, and discovered they stocked Old Peculier!
It was a wonderful evening!
Admin
A cup is 250mL, as standard in Australia at least.
Admin
I think it's important for non-Imperialists (hah!) to understand that what appear to be vague and fuzzy units, such as cups, tablespoons, and teaspoons, are in fact precisely defined.
Admin
Yeah, when I first read this I assumed that the code was so great he was getting turned on.
Admin
Admin
Admin
I come from AUS. A couple of years after we went metric (to cut trade with the Brit's and the Americans), the height limit notices on bridges all changed to metric. It took a couple of weeks to change all the bridge signs in Melbourne.
About 2 weeks later, it took a couple of weeks to add Imperial measurements back onto all the new signs.
Most of the truckies didn't know how high their trucks were in metric measurements, but they could guess.
Admin
I'm from the US and have been dealing with cups and teaspoon and all that my whole life. What I meant was that while US Cup, or Austalian Cup, or Canadian Cup are all well defined, when you say "cup" it's vague and fuzzy (although not a vague and fuzzy as when you say "banana.")
When you say "cup" do you mean an Australian Cup (250 mL according to Zemm), a Canadian Cup (227.304 mL) or a US Cup(236.588 mL).
Don't even get me started on A, B, C and D cups. You boys should ask you wives, girlfriends etc. to tell you how "standard" those are some time.
Admin
Wiki is your friend.... http://en.wikipedia.org/wiki/Cup_(unit)
And according to wiki whom we all trust....: Imperial Cups = 1/2 (Imperial) Pint = approx 285mL Metric Cup = 250mL (Aus, Can, NZ) Legal Cup = 240mL (US) (US) Customary Cup = 1/2 (Customary) Pint = approx 235mL Japanese Cup = 200mL go~ = approx 180mL (Jap)
Admin
Where's the TopCod3r comments? I think the highlight thingy should always highlight his comments.
Admin
Bring back TopCod3r!
Sure, he made people mad, but he also made people think. And he was funny. I read TDWTF for the funny!
Admin
Dendroclimatological analysis of this sample tends to agree with a hypothesis of a development environment with notably sparse observations of peer review, an atmosphere devoid of technical competence and corrosively high levels of PHB.
While this is of no specific note and is common in this type of sedentary strata it is however unusal to note the tenacity and longevity over which this micro climate has persisted in spite of obvious evolutionary pressures.
Admin
Admin
Even assuming this is the case, this can be done waaaaaaaay better.
Of the top of my head, just storing the exceptions to the rule - individual holidays. Obviously if there's an editor where holidays can be set, you just check if there are holidays falling in the week being tested (5 - num(holidays)).
Besides, why is EVERY day when the app loads (I assume) being stored? Assuming you NEED to store the number of days per week, why aren't there just 52 entries, listing the number of working days in that week? This even allows for custom editing (though individual holidays can't be set).
Nope. This guy didn't know what the fuck he was doing. I'd have liked to see the original requirements.
Dude, I can't believe you tried to justify this code. TopCod3r? That you?
Admin
Admin
(this really made you spit your coffee and/or some other extraordinary reaction?! jesus.)
Admin
Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn. The names of the days from a large proportion of the world are based on the local names of those objects, or the gods associated with them. (in Europe, Latin countries use Roman gods - which are the same as the planet names, and Germanic languages (including English) use the equivalent Viking gods to the Roman god associated with the planet (eg Thor and Jupiter were both gods of thunder, hence Thor's day (Thursday) or Jupiter's day (Jeudi in French) )
Admin
Admin
Admin
@ TopCod3r-fans
It's "Best Practice" to delete trolling.
Either dedicate a website/shrine to him or get over it and move on.
Admin
Admin
I think TopCod3r is a pretty cool guy, eh trolls ppl and doesnt afraid of anything!
Admin
Are you sure? Because I am imperial height, imperial weight inflate my tyres in PSI, oh and don't spent sh1tty Euros but Pounds!!!
Admin