|
|
|
| Hurry! Enter The Daily WTF's OMGWTF2 Contest by June 28th! - Prizes! Fame! Trophies! Do your worst: http://omg2.thedailywtf.com/ |
| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Next » |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:07
•
by
Nagesh
|
WASP do not bite, faker! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:12
•
by
Nagesh
|
You must stay in slum outside Charminar. I am in Banjara Hills, madarchod! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:18
•
by
Ben Jammin
(unregistered)
|
Language is meant to communicate ideas. If those on the receiving end can interpret the original idea, then success. "From Cambridge University . Olny srmat poelpe can raed tihs. I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, t he olny iprmoatnt tihng is taht the frist and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Amzanig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!" (What is scary is that my spell check only catches 3 words out of that mess.) |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:33
•
by
Nagesh
|
|
That mail in circulate since birth of internet. Tim Berner Lee write it!
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:43
•
by
Tim Berner Lee
(unregistered)
|
|
Nagesh is right, I did.
Captcha: nimis. My nimis Tim Berner Lee, I help Dan Quail invent the Internet, please to meet you. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:47
•
by
Real Tim Berner Lee
(unregistered)
|
Faker!! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:47
•
by
Strolskon
|
OMG THIS IS SO TRUE I OLWAYS NEW I WAS SMARTER THEN MY FRIENDS (lol i can read it i bet noone else can)).
How is identifying a rearranged set of letters "phaonmneal pweor"? I bet Babbage's analytical engine would have managed to do that. Sorry for the rant. Oh wait, this is TheDailyWTF, I don't have to apologize. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 13:55
•
by
Jeff
(unregistered)
|
I can read it, but only because I've read it before, so I already know what it says. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:00
•
by
Nagesh
(unregistered)
|
All India is slum, excepting Goa. Do not believing what you see on TV. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:15
•
by
Nagesh
|
You are equal fake. Real Tim Berner Lee is not having time to post here, madarchod! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:18
•
by
Tud
(unregistered)
|
Don't insult India Faker! And learn speaking English better! Do not is shorter and more compatible to say Don't. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:19
•
by
Tud
(unregistered)
|
|
Now that was a real fail.
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:19
•
by
Remy Martin
(unregistered)
|
|
I'm sorry to announce that I have some bad news. You've probably already guessed since there was no article today, but Alex unexpectedly passed. This is especially hard on his widow, who is now forced to due both their taxes on her own to avoid an IRS penalty. Please keep her in your prayers.
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 14:51
•
by
Zunetang
(unregistered)
|
Ding! Dong! - The faggot's dead! (Which old fag?) The Grecian fag! Ding, dong, the Grecian faggot's dead! Lot's 'a love, fuck face!!! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:19
•
by
the
(unregistered)
|
You must be new here. Alex frequently posts a lame wtf and then skips a day just to piss people off. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:34
•
by
AGray
(unregistered)
|
|
Best rewritten:
The value of KISS is not lost on me. The engineering principle is pretty good, too. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:34
•
by
AGray
(unregistered)
|
|
Best rewritten:
The value of KISS is not lost on me. The engineering principle is pretty good, too. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:37
•
by
AGray
(unregistered)
|
|
Better still:
If String.IsNullOrEmpty(p_mode) Then Throw New ArgumentNullException("p_mode") End If |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:37
•
by
Ben Jammin
(unregistered)
|
You must be new here. When Alex skips a day to piss people off, Remy notifies us that Alex has passed. P.S. When my Captcha is filled out by my browser's auto form filler... it is probably ineffective. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:44
•
by
Saxton!
(unregistered)
|
Dude, relax. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 15:57
•
by
the beholder
(unregistered)
|
Oh we're not worried. You already said he died a few days ago, and then in the next day he got better. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 16:05
•
by
Impatient Captcha wizard
(unregistered)
|
Doesn't matter. The captcha is just a minor deterrence. What actually prevents users from posting is Akismet. acsi aliquam amet aptent bene consequat cogo eros facilisis genitus gravis haero nimis mara oppeto opto paratus pecus populus plaga praesent quis saepius saluto tation tristique valetudo validus vereor verto vindico PS: I like the fact that when you hit "Preview" it generates a different one with the same word. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 16:31
•
by
Real Advertiser
(unregistered)
|
|
If I was paying a newspaper to run my ads and they decided to put out an issue whenever they darn well felt like it, I'd immediately pull my ads and sue them for damages.
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 16:45
•
by
DirkAndTheMac
(unregistered)
|
|
The bugs fixed were hysterical, the icing on a very splendid cake.... Somehow managed to misspell 'three' in the first iteration and whilst fixing that failed to notice that 5 would be 'four'..... Later on he even admits to having to shorten the name of the function from it's now concise name!!
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 19:18
•
by
Silverhill
|
BFD. You're not paying Alex anything for his freely-provided work, and you think you have a right to complain? Grow up, weenie. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 22:02
•
by
Friedrice The great
(unregistered)
|
Weird Anti-Social Perverts? |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 22:22
•
by
frits
|
I thought he was referring to a bunch of Blackie Lawlesses. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 22:52
•
by
da Doctah
|
Sting != bite, fakir! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-17 22:59
•
by
omfg
(unregistered)
|
|
>13-19 becomes easy (nine) + (teen)
threeteen fiveteen eightteen still better than "five" randomly printed for 4, though |
|
In Hawai`i, we pronounce "3" the same as tree and rarely use plurals.
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 04:52
•
by
oheso
|
Depending, of course, on the sort of shop! |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 04:57
•
by
oheso
|
<3 |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 06:12
•
by
null
(unregistered)
|
Was a he passed as a perimeter? if (todaysWtf == null) return "No Alex was passed."; Captcha 'incassum' -- they should keep a couple of spare Wtf's laying around incassum Alex doesn't feel like posting on a given day. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 08:06
•
by
Real Advertiser
(unregistered)
|
Oh...you must have the ads on the side blocked then. How does your foot taste? |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 10:30
•
by
TheSHEEEP
(unregistered)
|
|
Are you people nuts?
"Tokyo & Beijing - see you at QCon (April 16-20) " I'm pretty sure this has SOMETHING to do with the absence of new articles... |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 10:36
•
by
erat
(unregistered)
|
Just for your information: 700 (setecientos / siete cientos) and 900 (novecientos / nueve cientos) are also irregular... just saying. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 10:37
•
by
daveime
|
|
There's so many WTFs I don't know where to start.
Except it only works for numbers up to 15, including "eleevn" and "forteen". I think I discovered why it's version 15.1 ... that's the range of numbers it actually works for ! Future plans ... after the first 1000 it's going to get easier, so we can start using exponential upgrades ! Although memory is going to get a bit tight by 100 million, as it will take around 7GB just to store the code. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 11:35
•
by
depressed cheescake
(unregistered)
|
Presumably you mean the Buildmaster ads from Inedo, you know the company Alex works for? Guess they're probably not too bothered. More to the point why do *you* give a shit about whether advertising revenue is well spent on this site? |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 11:51
•
by
bad_management
(unregistered)
|
|
Perimeter, parameter.
Toe-may-toe, toe-mah-toe. Poe-tay-toe, poe-tah-toe. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 12:52
•
by
Orwellian_Startrek
(unregistered)
|
|
[quote user="wonk"][quote=Article] 'Sometimes a 'four' would be outputted when '5' was passed through the perimeter[/quote]
NOW that episode of Star Trek makes sense. Heh. 4 lights....[/quote] Lights? Star Trek? You realize that that episode was a ripoff from 1984, right? (4 fingers) |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 12:58
•
by
Jay
(unregistered)
|
Or, The only time people demand this function is when they are high on something. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 13:07
•
by
Jay
(unregistered)
|
Umm, maybe because he has an app that prints checks? RE SpellingNazi: No, that should be UKEnglishNazi. In real modern English, you know, US English, we spell it "checks". |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 13:11
•
by
Jay
(unregistered)
|
We do, however, give bonus points for making text easy to understand. If I write, "I went to the store", you can very quickly discern my meaning. If I write, "i wnet ot het tsoer", you may be able to figure it out, but it takes considerably longer. Likewise if I write, "I perambulated to the retail establishment", or any of other numerous senseless added obfuscations, you have to think for an extra second or two. My time is too valuable to waste on people who cannot express their thoughts clearly. |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 15:30
•
by
HotelBravoMike
(unregistered)
|
|
Well, I took a shot at it:
+ my version can do German and English + the range is bigger than just 0 to 15 + I spell 'eleven' (or 'Elf') correctly - use of global variables not really ideal - limited range (-2*10e9 to +2*10e9) I actually thought this was necessary due to a 32bit machine - however with TCL (everything is a string) this is not really a restriction. As long as I do not calculate with the so called integers. ;) I am not sure if the created german words are to be concatenated or separate. (Embarrasingly for native speake, I know.) For Example: the number 1,403,211 Eine Million Vierhundertdrei Tausend Zweihundertelf ... does not look right to me Einemillionvierhundertdreitausendzweihundertelf ... is not really very readable I decide to present the version which is more readable. If someone could give an educated opinion on that please..... So, code works in 2 parts: a) setup setup de or setup en ... declares 2 global varables called 'language' and 'numbers' b) conversion set text_representation [int2txt decimal_representation] e.g. puts [int2txt 123456789] --> onehundredtwentythree million, fourhundredfiftysix thousand, sevenhundredeightynine or Einhundertdreiundzwanzig Millionen Vierhundertsechsundfünfzig Tausend Siebenhundertneunundachtzig
Looks OK in preview so lets submit. ;) |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 15:54
•
by
HotelBravoMike
(unregistered)
|
|
Arghhh.. what a right mess-up on the main converter call.
(The initial version printed directly to console instead of returning the string.) This should do the trick
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 16:17
•
by
Dutchie
(unregistered)
|
|
Over at stackoverflow.com there are some nice solutions like this one.
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 16:38
•
by
Nemo
(unregistered)
|
|
I found my earlier version had some float/int problems with larger numbers, and I was taking the wrong field for the overall limit. So, version 2:
http://pastebin.com/xq66a3H3 |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 17:07
•
by
NRC
(unregistered)
|
|
Looks like a novice programmer struggling with immutable strings. I wonder how many hours were spent trying to figure out why p_mode.Replace() did not actually replace the characters in that instance, before giving up (but still leaving the pointless code in there).
|
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 17:28
•
by
zzo38
|
Oops! Thanks for notifying me this mistake, I will fix it |
Re: get_words_from_a_number_which_is_passed_as_a_perimeter_into_this_function
2012-04-18 17:53
•
by
Acacio
(unregistered)
|
|
Wow, just wow. I've read a lot of stupid stuff in the DWTF but this one is just ... wow.
In so many dimensions.... We can close DWTF: after this one, all the rest will paleas watered down beer. |
| « Prev | Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Next » |