|
Testing out other people's entries
-
05-27-2007 12:37 AM
|
|
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Testing out other people's entries
Who else has already started playing around with everyone's entries?
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
wacco


- Joined on 05-13-2007
- Posts 11
|
Re: Testing out other people's entries
That'd be no-one, since they're not online yet. Or did I miss something?
|
|
-
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Re: Testing out other people's entries
wacco:That'd be no-one, since they're not online yet. Or did I miss something?
I doubt many people have been lucky and/or l33t ski11d enough to work it out, but they can all currently be downloaded. I'll let people have some more time to work it out for themselves before I post it though (unless someone asks nicely). If you don't believe me, post your entry's id number and I'll have a look and see if I can't prove it :D PS: I had dumb luck, not ski11z
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
wacco


- Joined on 05-13-2007
- Posts 11
|
Re: Testing out other people's entries
Einsidler: wacco:That'd be no-one, since they're not online yet. Or did I miss something?
I doubt many people have been lucky and/or l33t ski11d enough to work it out, but they can all currently be downloaded. I'll let people have some more time to work it out for themselves before I post it though (unless someone asks nicely). If you don't believe me, post your entry's id number and I'll have a look and see if I can't prove it :D PS: I had dumb luck, not ski11z
Ah, you have to do some effort to see them. In that case, you're probably the only one. Still, if you feel like gloating; #100239 ;)
|
|
-
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Re: Testing out other people's entries
wacco: Einsidler: wacco:That'd be no-one, since they're not online yet. Or did I miss something?
I doubt many people have been lucky and/or l33t ski11d enough to work it out, but they can all currently be downloaded. I'll let people have some more time to work it out for themselves before I post it though (unless someone asks nicely). If you don't believe me, post your entry's id number and I'll have a look and see if I can't prove it :D PS: I had dumb luck, not ski11z
Ah, you have to do some effort to see them. In that case, you're probably the only one. Still, if you feel like gloating; #100239 ;)
Love your model.c: /* I honestly don't know what to do here. */ ;D Like I said, dumb luck is really what led me to the url for the entries, there's probably plenty of others that had more than 500 characters in their descriptions...
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
Welbog


- Joined on 02-08-2007
- Posts 586
|
Re: Testing out other people's entries
OK, I'll bite. Can you please tell me how you download entries?
|
|
-
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Re: Testing out other people's entries
Welbog:OK, I'll bite. Can you please tell me how you download entries?
They can be downloaded from http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=foobar, eg mine is this. I had to use Save target as... though, because firefox just displayed them as text. After downloading it just a matter of renaming to 189.zip, 069.tar.gz etc and unzipping. I used this javascript to give me a list of them all ready for downloading:
for (i = 1; i <= 352; i++) { document.write ('<a href="http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=100' + (i < 10 ? '00' : (i < 100 ? '0' : '')) + i + '">' + i + '</a><br>'); }
I guess this is just one more WTF of OMGWTF
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
asuffield


- Joined on 05-31-2006
- Posts 2,137
|
Re: Testing out other people's entries
Einsidler:
I used this javascript to give me a list of them all ready for downloading:
for (i = 1; i <= 352; i++) { document.write ('<a href="http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=100' + (i < 10 ? '00' : (i < 100 ? '0' : '')) + i + '">' + i + '</a><br>'); }
Good grief. This bizarre notion of 'automation' is a WTF in its own right. I can just imagine a government operation employing somebody to sit and click on each of these and download them.
for i in `seq -w 1 352`; do wget -O $i "http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=100$i"; done
|
|
-
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Re: Testing out other people's entries
asuffield: Einsidler:
I used this javascript to give me a list of them all ready for downloading:
for (i = 1; i <= 352; i++) { document.write ('<a href="http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=100' + (i < 10 ? '00' : (i < 100 ? '0' : '')) + i + '">' + i + '</a><br>'); }
Good grief. This bizarre notion of 'automation' is a WTF in its own right. I can just imagine a government operation employing somebody to sit and click on each of these and download them.
for i in `seq -w 1 352`; do wget -O $i "http://omg.worsethanfailure.com/Entries/DownloadEntry.ashx?id=100$i"; done
Well that doesn't work on windows, and it doesn't seem to take into account that 100001 isn't 1001 (though it might, i don't know shell scripts). The main reason I did this is because of the problem saving them in firefox, this let me use Save link as... without my old method of: Create new thread, make link to entry, preview entry, right-click, print, lay on wooden table, take photograph, scan in, OCR into a text file, save as zip
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
asuffield


- Joined on 05-31-2006
- Posts 2,137
|
Re: Testing out other people's entries
Einsidler:Well that doesn't work on windows
Then it's a good example of why windows wastes your time. And anyway, cygwin. and it doesn't seem to take into account that 100001 isn't 1001 (though it might, i don't know shell scripts)
It does.
|
|
-
-
wacco


- Joined on 05-13-2007
- Posts 11
|
Re: Testing out other people's entries
Einsidler:Love your model.c: /* I honestly don't know what to do here. */ ;D Like I said, dumb luck is really what led me to the url for the entries, there's probably plenty of others that had more than 500 characters in their descriptions...
Well yeah, I mean, I had a controller and a view, so I just had to have a model, right? 8)
Nice find about the links, but I'll wait untill the jury is out on what the best ones are. I'm not that enthousiastic about looking at 352 entries. And for the ones that I did randomly opened, they all had hardcoded testcases in them. Not that much originality there...
|
|
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
Re: Testing out other people's entries
I just got them all and am feeling a bit guilty for possibly overloading the server. Not too guilty; after all, one of them is mine, and there are only 352 of us. I wonder if I should make a torrent out of it and post it on piratebay as a really expensive business calculator suite ;) Then , just for laughs, we can count how many PHBs decide to roll it out companywide...
|
|
-
-
IMil


- Joined on 05-26-2006
- Posts 30
|
Re: Testing out other people's entries
I, too, couldn't hold myself from downloading it all. I promise to click on some of Google ads in return for all the bandwidth. The simple wget solution didn't work for me because of all people who decided to include .ncb files in archives. Should've been prohibited by the rules, that. Luckily, I had a ruby script that downloads all xkcd pictures, it was easy enough to retarget at the contest entries... welcome back, #175! missed you. So far, I've just looked at some of the descriptions. #308 with its calculating filesystem looks simply great! A bluescreen in response to the invalid input - what can be better?
|
|
-
-
Xeron


- Joined on 04-28-2007
- Posts 14
|
Re: Testing out other people's entries
Well, I tried to get them, but attempting to download any of them seems to send Firefox into an infinite redirect loop for me.. :-(
|
|
-
-
Worf


- Joined on 05-15-2007
- Posts 14
|
Re: Testing out other people's entries
Was't there a WTF entry on URL haxx0ring? Though, I know there are several real life cases of 'hacked' out URLs that got someone (usually the site owner) angry...
|
|
-
-
Einsidler


- Joined on 11-15-2006
- Posts 99
|
Re: Testing out other people's entries
Chemisor:I just got them all and am feeling a bit guilty for possibly overloading the server. Not too guilty; after all, one of them is mine, and there are only 352 of us. I wonder if I should make a torrent out of it and post it on piratebay as a really expensive business calculator suite ;) Then , just for laughs, we can count how many PHBs decide to roll it out companywide...
That would be really good; so far I've just been downloading and trying random entries, it would be great to get a full set at once.
Download my OMGWTF entry, Romanorum Computus
|
|
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
Re: Testing out other people's entries
Einsidler: Chemisor:I just got them all and am feeling a bit guilty for possibly overloading the server. Not too guilty; after all, one of them is mine, and there are only 352 of us. I wonder if I should make a torrent out of it and post it on piratebay as a really expensive business calculator suite ;) Then , just for laughs, we can count how many PHBs decide to roll it out companywide...
That would be really good; so far I've just been downloading and trying random entries, it would be great to get a full set at once.
I suppose it depends on whether the judges have a problem with this. Despite the big warning not to submit your atm pin, medical records, or genetic history with the code, some might have done it :) I haven't been examining them that closely.
I'll see if I can get a torrent put together. Since I've never done that before, it might take a while for me to rtfm. I'd also like to cut down on the size (currently 132M) by removing the .ncbs and other VC garbage people so thoughtfully left in. If nobody objects before, say, 8pm EST, I'll post the torrent link here and seed overnight.
|
|
-
-
Whiskey Tango Foxtrot? Over.


- Joined on 03-10-2006
- I'm a Nashville carpetbagger.
- Posts 332
|
Re: Testing out other people's entries
I have nothing to be afraid of, so I went ahead and actually submitted my real name/email address. Although the approach is entirely WTF for a calculator, my code is (at least in my mind) good, solid code.
Agile Team-Oriented Waterfall-Centric Cowboy Coder.
|
|
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
I have combined all the entries into a single torrent file, available from Mininova here. I was able to reduce the size from 132M to 26M by removing all the generated files; executables, object files, .ndbs, and yes, even precompiled headers which people have so thoughtfully provided. I also flattened the directory tree where possible. All this work has given me much appreciation for intern Boyd, who actually had to compile all these. So get them while they're hot! I'll be seeding until morning.
|
|
-
-
-
bugmenot1


- Joined on 05-05-2007
- Posts 47
|
Chemisor:I have combined all the entries into a single torrent file, available from Mininova here. I was able to reduce the size from 132M to 26M by removing all the generated files; executables, object files, .ndbs, and yes, even precompiled headers which people have so thoughtfully provided. I also flattened the directory tree where possible. All this work has given me much appreciation for intern Boyd, who actually had to compile all these. So get them while they're hot! I'll be seeding until morning.
What's the difference between the l/ and w/ directories?
|
|
-
-
dsharp


- Joined on 05-10-2007
- Posts 9
|
Just a guess but: L-> Linux calculators W-> Windows Calculators.
|
|
-
-
rotalever


- Joined on 05-10-2007
- Posts 9
|
No seeders are available :-( edit: I wrote this waited one second, et voilà: one seeder is listed in azureus^^
|
|
-
-
rotalever


- Joined on 05-10-2007
- Posts 9
|
dsharp:Just a guess but: L-> Linux calculators W-> Windows Calculators.
No this cannot be correct because my entry (which is called entry #153) is linux based and listed in the "W"-DIR...
|
|
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
rotalever: dsharp:Just a guess but: L-> Linux calculators W-> Windows Calculators.
No this cannot be correct because my entry (which is called entry #153) is linux based and listed in the "W"-DIR...
That is correct. However, I did not look that closely at each item. I started out by sorting .tar.gz entries into l and .zip entries into w, since no real Linux geek would use zip ;) While deleting executables I did find a few that were gtk entries in a zip and moved them, but I am not surprized that I did not get them all.
|
|
-
-
rotalever


- Joined on 05-10-2007
- Posts 9
|
Chemisor:
since no real Linux geek would use zip ;)
I only used zip because I was not sure whether "they" can handle my tar.gz file...
Ok, I really tried it but the fff* made something wrong with tar.gz) * fancy frontend - file-roller
|
|
-
-
th0mas


- Joined on 05-05-2007
- Posts 19
|
rotalever:
Ok, I really tried it but the fff* made something wrong with tar.gz) * fancy frontend - file-roller
obligatory: "no linux geek would use a frontend to tar"
|
|
-
-
SamP


- Joined on 05-05-2007
- Posts 25
|
|
-
-
-
hort_loring_millicent


- Joined on 05-24-2007
- Posts 2
|
Re: Testing out other people's entries
I think some entries just calculate the answer as one would expect a normal calculator app to in the doAdd, doMul etc functions.. now thats a WTF
|
|
-
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
Re: Testing out other people's entries
hort_loring_millicent:I think some entries just calculate the answer as one would expect a normal calculator app to in the doAdd, doMul etc functions.. now thats a WTF
I think those are the early versions. People were encouraged to submit more than once and quite a few did. I am, in fact, guilty of that myself, having submitted 033. I intended that one to be posted as the GTK skeleton but after searching the site for some hint of how to submit that to the contest I gave up and just submitted it as an entry with an appropriate comment and title. Unfortunately, the email verification system was not working at the time, so I doubt they even looked at it. On the other hand, it might win the "least wtf entry" award ;) It's pretty darn clean and compiles to under 1k of code, which is less than half the size of the official skeleton.
|
|
-
-
phaedrus


- Joined on 03-20-2007
- Seattle Ex-Pat living in the Bay Area
- Posts 111
|
Re: Testing out other people's entries
hort_loring_millicent:I think some entries just calculate the answer as one would expect a normal calculator app to in the doAdd, doMul etc functions.. now thats a WTF
Yes, but at least one of those checks for the division by zero case, sets 'isErr' and then does the division anyway. (Of course, that means since it was one of the *nix entries, he couldn't pass all the test case, since he'll get terminated by a SIGFPE on the 1/0 case.) (Not my entry, I think much bigger than that.)
All men are frauds. The only difference between them is that some admit it. I myself deny it. -- H. L. Mencken
|
|
-
-
phaedrus


- Joined on 03-20-2007
- Seattle Ex-Pat living in the Bay Area
- Posts 111
|
Taejo: SamP:
Ahem... I think you mean "l = l33test" and "w = worst"
Yours ended up in 'l' too then, eh?
All men are frauds. The only difference between them is that some admit it. I myself deny it. -- H. L. Mencken
|
|
-
-
BsAtHome


- Joined on 05-15-2007
- Posts 15
|
Chemisor:I have combined all the entries into a single torrent file, available from Mininova here. I was able to reduce the size from 132M to 26M by removing all the generated files; executables, object files, .ndbs, and yes, even precompiled headers which people have so thoughtfully provided. I also flattened the directory tree where possible. All this work has given me much appreciation for intern Boyd, who actually had to compile all these. So get them while they're hot! I'll be seeding until morning.
I agree that the intern has done a lot of work. However, the compiled torrent contains also duplicates (only checked the GTK stuff). So the total number of submissions should be a bit less. It also occurred to me that not all entries follow the specification. Anyway, there are quite a few "interesting" code examples to be found.
|
|
-
-
rotalever


- Joined on 05-10-2007
- Posts 9
|
BsAtHome: Anyway, there are quite a few "interesting" code examples to be found.
Yeah, but many of the entries use just "simple" strategies like: saving all the test cases in a big array or whatever.
The interesting entries are quite rare.
|
|
-
-
BsAtHome


- Joined on 05-15-2007
- Posts 15
|
rotalever: BsAtHome: Anyway, there are quite a few "interesting" code examples to be found.
Yeah, but many of the entries use just "simple" strategies like: saving all the test cases in a big array or whatever.
The interesting entries are quite rare.
It depends a bit on what you mean by simple. I did f.x. enjoy the NFA implementation (#223, #224; both identical). Or #273 with a set of doc files you become scared of and a couple of nasty C tricks (f.x. "brake" after a "return" in a switch). What about #280 which lacks any conditional statements in its implementation and uses gotos with variables as argument.
On the other hand, there are quite a few which use similar methods. Many use Google as the source of calculation. Grep'ing 'google\.' in all files without checking for duplicates gives #028, #106, #107, #112, #123, #131, #140, #147, #160, #167, #208, #212, #227, #241, #247, #270, #295, #311, #327, #330, #331 and #341. I find "wget" in #007, #045, #121, #227, #258, #331 and "curl" in #140, #155, #227, #230, #241, #246, #247, #303, #310, #321. Also, a lot seem to use the Client/Server model and many of them have XML encapsulations. I have not seen any "normal" code yet...
|
|
-
-
phaedrus


- Joined on 03-20-2007
- Seattle Ex-Pat living in the Bay Area
- Posts 111
|
BsAtHome: rotalever: BsAtHome: Anyway, there are quite a few "interesting" code examples to be found.
Yeah, but many of the entries use just "simple" strategies like: saving all the test cases in a big array or whatever.
The interesting entries are quite rare.
It depends a bit on what you mean by simple. I did f.x. enjoy the NFA implementation (#223, #224; both identical). Or #273 with a set of doc files you become scared of and a couple of nasty C tricks (f.x. "brake" after a "return" in a switch). What about #280 which lacks any conditional statements in its implementation and uses gotos with variables as argument.
On the other hand, there are quite a few which use similar methods. Many use Google as the source of calculation. Grep'ing 'google\.' in all files without checking for duplicates gives #028, #106, #107, #112, #123, #131, #140, #147, #160, #167, #208, #212, #227, #241, #247, #270, #295, #311, #327, #330, #331 and #341. I find "wget" in #007, #045, #121, #227, #258, #331 and "curl" in #140, #155, #227, #230, #241, #246, #247, #303, #310, #321. Also, a lot seem to use the Client/Server model and many of them have XML encapsulations. I have not seen any "normal" code yet...
Depending on your co-workers, #009 might qualify as normal code.
All men are frauds. The only difference between them is that some admit it. I myself deny it. -- H. L. Mencken
|
|
-
-
d++


- Joined on 05-30-2007
- Posts 4
|
The comments in #132 bring tears to my eyes. Take a look at POSTCONDITIONS for GtkSevenSegmentArray::WriteClock. And, as noted in the documentation, all comments end exactly in column 77.
|
|
-
-
BsAtHome


- Joined on 05-15-2007
- Posts 15
|
phaedrus:
Depending on your co-workers, #009 might qualify as normal code.
Well, I would say that this
float DoMul(float op1, float op2)
{
float imtodrunktocode = op1 * op2;
return imtodrunktocode;
}
would have been written as
float DoMul(float op1, float op2)
{
return op1 * op2;
}
Otherwise, I agree, my collegues also like to represent their mental state in the code.
|
|
-
-
BsAtHome


- Joined on 05-15-2007
- Posts 15
|
d++:The comments in #132 bring tears to my eyes. Take a look at POSTCONDITIONS for GtkSevenSegmentArray::WriteClock. And, as noted in the documentation, all comments end exactly in column 77.
Pedantic comes into mind... Or maybe an old serial 80x24 TTY (remember the vt100)?
|
|
-
-
d++


- Joined on 05-30-2007
- Posts 4
|
phaedrus:Depending on your co-workers, #009 might qualify as normal code.
Not just normal, but GOOD code! Maybe the Real WTF (TM) is that it has no real WTF...
|
|
-
-
Carnildo


- Joined on 03-30-2005
- Posts 741
|
Re: Testing out other people's entries
I don't suppose anyone used a neural net for doing the calculations?
|
|
-
-
d++


- Joined on 05-30-2007
- Posts 4
|
#290 uses a new paradigm: the Conveyor Belt #133 is pretty lame
|
|
-
-
Massimo


- Joined on 04-25-2007
- Posts 84
|
BsAtHome: rotalever: BsAtHome:Anyway, there are quite a few "interesting" code examples to be found.
Yeah, but many of the entries use just "simple" strategies like: saving all the test cases in a big array or whatever.
The interesting entries are quite rare.
It depends a bit on what you mean by simple.
I did f.x. enjoy the NFA implementation (#223, #224; both identical). Or #273 with a set of doc files you become scared of and a couple of nasty C tricks (f.x. "brake" after a "return" in a switch). What about #280 which lacks any conditional statements in its implementation and uses gotos with variables as argument.
On the other hand, there are quite a few which use similar methods. Many use Google as the source of calculation. Grep'ing 'google\.' in all files without checking for duplicates gives #028, #106, #107, #112, #123, #131, #140, #147, #160, #167, #208, #212, #227, #241, #247, #270, #295, #311, #327, #330, #331 and #341. I find "wget" in #007, #045, #121, #227, #258, #331 and "curl" in #140, #155, #227, #230, #241, #246, #247, #303, #310, #321. Also, a lot seem to use the Client/Server model and many of them have XML encapsulations.
I have not seen any "normal" code yet...
I'm rather curious about how you "early adopters" guys will react to my object-oriented "suicide-and-reincarnate" paradigm... ;-)
|
|
-
-
gunny


- Joined on 05-20-2007
- Posts 7
|
BsAtHome:On the other hand, there are quite a few which use similar methods. Many use Google as the source of calculation. Grep'ing 'google\.' in all files without checking for duplicates gives #028, #106, #107, #112, #123, #131, #140, #147, #160, #167, #208, #212, #227, #241, #247, #270, #295, #311, #327, #330, #331 and #341. I find "wget" in #007, #045, #121, #227, #258, #331 and "curl" in #140, #155, #227, #230, #241, #246, #247, #303, #310, #321. Also, a lot seem to use the Client/Server model and many of them have XML encapsulations.
I have not seen any "normal" code yet...
Has no one abandoned the oh-so-1999 Client/Server model and move to a Peer-2-Peer system (BETA!) ???
|
|
-
-
d++


- Joined on 05-30-2007
- Posts 4
|
Massimo:I'm rather curious about how you "early adopters" guys will react to my object-oriented "suicide-and-reincarnate" paradigm... ;-)
What is the number of your submission?
|
|
-
-
Chemisor


- Joined on 03-24-2005
- Posts 19
|
BsAtHome: d++:The comments in #132 bring tears to my eyes. Take a look at POSTCONDITIONS for GtkSevenSegmentArray::WriteClock. And, as noted in the documentation, all comments end exactly in column 77.
Pedantic comes into mind... Or maybe an old serial 80x24 TTY (remember the vt100)?
You obviously did not catch all those Mary Tyler Moore show references :) Or perhaps you just aren't old enough to have seen it...
|
|
-
-
-
BsAtHome


- Joined on 05-15-2007
- Posts 15
|
Re: Testing out other people's entries
Carnildo:I don't suppose anyone used a neural net for doing the calculations?
Oh yes,... #159 and #268 do.
|
|
|
|
|