- 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
Intern is being need for supervision, no?
Admin
Good thing they didn't want 32 bit colours
Admin
That intern is FAST!
Admin
Timmy needs to learn that when someone invites questions, asking questions is OK. (And the related conundrum: people who say it but don't mean it. In this case, Timmy needs to develop a thick skin.)
P.S. Am I the only one who thought of Ratbert and Timmy the Toilet Roll Man?
Admin
Admin
I'm willing to bet TDWTF's home-grown CAPTCHA generator would blow Timmy's mind.
Admin
There should be 16777216 colours here but all I see is #BADBAD
Admin
Or, if one is an intern, one might not be expected to know tricks like the masking technique and assume that one was handed this job because of the grunt work of creating all those images. -1 to Matthew for not checking in on the intern's approach when the job started to take longer than expected.
Admin
I call shenanigans. Would anyone even do this for money (by hand - we'd all write a program assuming we could), let alone for free?
Admin
Like a Bauss!
Admin
Obviously he should have written a stored procedure in SQL that constructs an image file with the right color at run time.
Admin
604800 seconds in a week. 16,777,216 JPGs.
0.036 seconds each.
That's pretty impressive. The made up ones really annoy me.
Captcha: facilisi. Tautology?
Admin
I assume he spent ages learning about some method of generating images, but failed to make it work on-the-fly.
Admin
They should have been GIFs.
Admin
Admin
The story says "generate" not "draw by hand."
Admin
Yea, anyone working out the time is an idiot, it would have taken years to do this by hand. The part that doesn't make any sense is why he had to stay awake while his script was running.
Admin
If it was automated then there wouldn't be a need to be up all night, surely? And even some generating software would struggle producing 30 a second, and that'd only be if he started right away.
I demand proof - upload them all to Flickr so I can verify.
Admin
Should be a "teachable moment" no? Clearly Timmy must have written some kind of program in some kind of environment to generate the images. So ask to see it, and discuss porting it the server and then discuss the trick of doing it all in CSS.
Seems like a pretty minor WTF. He delivered what needed, although in a completely insane way, but he's a fucking intern. He works for free and in return you're supposed to help him learn.
Admin
I call shenanigans too, its not completly unplausable, I can see a younger version of myself doing something like this for something smaller but not for the guts of 17 million jpgs. And why JPG surely png or gif is more appropriate
Admin
Hey, I want timmy on my team.. Not knowing what to do, and solving the problem (but in a curious way) is better than developing a process of 10000 lines of code to say hello world!
Kudos to timmy in this case.. the WTF was not him... The WTF is that you now have a folder with 16m jpg :)
Admin
It never ceases to amaze me that people expect interns to know anything beyond the most basic things.
BTW: who said the files were generated in a single thread of a single task? For all you know, Timmy may have recognized that it would take too long, so he launched multiple copies of his script on different machines to produce subsets of the total.
Junior people might be able to make that leap, if not the one to the correct way of doing it.
As others have noted, interns are there to LEARN, implying those in the know must TEACH them!
Admin
I've never spotted the cornify() js in the stories before - it is truly awesome but made my colleagues notice my browsing, so I'll avoid clicking around to activate them in future!
Admin
I hope he did it with a script. Manually creating those sounds pretty impossible.
Admin
I want to know what file system he was on that didn't get irritable about having 2^24 files (in one directory!)
Cute stork, queue laugh track.
Admin
I guess at least he automated the circle image creation process. Otherwise he is really fast!, about 27 images per second!!
But my guess is that the guy is very smart. He took a week off, and made the method in a way it looks like it would take him some time. I would do the same if someone tells me to something that easy and then explains it to me as if I'm retarded or something.
Cheated days off: smart interim 7 - senior developer 0
Admin
Remember that if you're using PNG or GIF, you have the option of transparency, and probably can cut the total down. Not sure exactly how well it will work.
If not (pesky management issues) you can stick with divs. Just make 1 for each pixel, and position them manually with code. (The total amount of computation should be smaller, so you can guarantee the page will display within a week!)
Admin
[south park]
Timmy!
Admin
> each perfectly round
That would require infinity by infinity resolution, which could explain why it took such a long time...
Admin
Admin
Bad move, Timmy. You could have simply generated a single JPG (a PNG would have better) with 16,777,216 evenly spaced circles, then used the width, height, and background-position properties to the display the correct one. Get to work calculating those offsets, Timmy!
Admin
I'm schocked that people suggest 8-bit GIF as alternative. 33% is not a pass...
But at least you can technically render a better perfect circle in GIF than JPEG....
Admin
Admin
TRWTF is competent supervisors.
Admin
Admin
Lol if you click on 'little round' in the article it cornifies the page :D I love the unicorns!!
Admin
If would have worked perfectly, the 8 bit is an index in CLUT. gif can represent 2^24 colors but only 256 at a time.
Admin
Bug report:
On the preferences page, setting your swatch colour does not always work properly.
Steps to reproduce:
Expected result: round swatch should show colour #12AA12 Actual result: round swatch shows colour #10AA12
Admin
FTFY
Admin
I'm pretty sure I would have strangled the intern instead of telling him what he did wrong.
Admin
Admin
Admin
See Timmy make JPGs. Make JPGs, Timmy, make JPGs.
Admin
My question is when does the "hmm, there has to be a better way of doing this" moment kick in? In this case, never. Would I hire him back next summer? Never...
Yes, yes, interns learn, blah blah, but all but the most retarded of individuals would stop, think, and maybe even ask someone if they know of a better way when trying to fill the gas tank with a thimble, no?
Also, assuming images are 4k each, wouldn't that be roughly 64 gig of "circles"? And how would the OS handle having that many images in a single folder?
Admin
We're gonna need a new Timmy!
Admin
Putting relevant content in a comment tag is what passes for "clever" these days?
Admin
<!doctype html>
<head/> <body>n
n
n
n
n
n
n
</body> </html>Admin
Assuming Timmy was generating these by hand at the pace of one per second (highly optimistic!) it would take at least 27 days.
Something about this story doesnt add up.
Admin
The intern shows great potential!
Admin
As what, a door jam?