- 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
I have seen scripts that actually do that. Well, eventually.
Admin
Simples solution, create Circular Color Generator script, and let it run with all the variants.
Admin
<a rel="nofollow" href=""http://www.whattheduck.net/strip/1250" target="_blank" title=""http://www.whattheduck.net/strip/1250">[image]
Admin
Monday morning, 2.00
"Hey Timmy, have you heard of that nice ImageMagick thing? It's really cool! It can be used to generate images by script!"
And yes, 20 minutes later...
It's perfect. It explains everything.
Admin
If you're using PNGs, it will work great: you can make exactly ONE image, in the page's background color, with a transparent circle in the middle (and partial transparency even allows for smoothing the circle border somewhat). Insert it into the page, and with CSS, set the image's "background-color: #aabbcc", using the hex code the client picked. Very fast (as there's only one image to load), simple, no horrible hacks needed.
Admin
Admin
So what would be the Right Thing in this situation, anyway?
My instinct is to make a square GIF consisting of a transparent-color circle on a white background, and then set the background color to the hex code. But I'm the sort of programmer who reads TDWTF to reassure himself that "at least I'm not this guy," so...
Admin
Okay. But before I'll believe your rebuttal, you have to examine every single one of those images and demonstrate that they could not have been produced as described in the story.
Admin
One easy way to solve this would be to display a period with the font color set to the desired color and the font size set to 3000 points.
I intended this as a joke, but after typing it, hey, that might actually work.
Admin
Admin
Admin
Admin
Admin
It's a good thing there was no need to support the alpha channel.
Admin
Admin
Admin
(Tonight we comment in HTML.)
Admin
Admin
Agreed - I've done "grunt work" jobs where things needed to be done by hand (usually because it was a one-off effort, and it was faster to brute-force it once.)
Can't pin any of this on the intern. Matthew gets pinged for not sending the intern away for a day to think about it, then having them come back and outline the plan (which would then give the opportunity to say "yes, you could do that, but..." and... y'know... teach the intern?
Admin
poor, poor timmy
Admin
Timmy should have known better than to work for Matthew...
Admin
Admin
TRWTF is that every intern story is an indictment of the management or FT employees, not the interns.
Admin
Timothy???? Matthew???? WTF is up with all the Biblical names?!?!?!?
Admin
Jesus Christ you're right... I'm sure it's just pure Luke. We should Mark this one, or maybe it'll just Peter out.
Admin
That's quite a nice light green...
Admin
Brian is TRWTF. You can't solve this solution with CSS. If you do, anyone using IE6 is SOL. I have solved a similar problem with a small, ActiveX control. Works every time.
Admin
The real TDWTF is I fogot to quote what I was referring to. (the colour #BADBAD).
Admin
Is this any different from a right-winger complaining about middle-eastern or African names?
Admin
intern != architect. You can't expect the newbie to know all the options. That comes with experience.
What I see in the story is the intern made the delivery using programmatic image generation at the sacrifice of personal time.
Assuming this guy keeps learning: potential FTE. I can teach syntax and semantics. I can't teach morals, values or ethics.
Admin
DECLARE @x int DECLARE @y int SET @y = 0
WHILE @y < @size BEGIN SET @x = 0 WHILE @x < @size BEGIN IF (POWER((POWER(CAST(@x AS float) + 0.5 - (@size/2.0), 2) + POWER(CAST(@y AS float) + 0.5 - (@size/2.0), 2)), 0.5) > (@size/2.0)) SET @bmp = @bmp + 0xFFFFFFFF ELSE SET @bmp = @bmp + CAST(@r AS binary(1)) + CAST(@g AS binary(1)) + CAST(@b AS binary(1)) + 0xFF
SET @x = @x + 1 END SET @y = @y + 1 END
RETURN @bmp END GO
SELECT dbo.MakeBitMap(10, 128, 128, 128)
Admin
Admin
Am I the only one who notices that Matthew believes you can have a round JPG? A PNG, using transparency, yes, I can see that at least looking round. But a JPG? How can that end up round? It can have a picture of a circle, sure, but it still ain't round.
Admin
Guess it's "Time for a new Timmy!" (Science dude from the Dinosaurs show)
Admin
If I were Matthew I would have been like "Sorry, Timmy, there was a change in requirements. We no longer want the swatch to be round, we now want hexagon-shaped swatches."
Admin
I never said he was or should be an architect. What I did say was that most people are born with at least a few grains of common sense. Things like fight or flight, moving your hand when it's getting burned, going to a toilet when you have to shit, etc. I think he lacked that very basic underpinning.
This isn't about syntax, style or semantics. It's just fucking outright retarded what he did... I obviously wouldn't can him for something like this, but if I detected a real "you're doing it the wrong/hard way" in all of his solutions despite mentoring/guidance, then he is in the wrong profession and should immediately transfer to marketing or worse, sales.
Admin
...or you could just use border-radius, a CSS3 feature.
Admin
... Unless someone isn't using Internet Exploder, err i mean Internet Explorer
Admin
Why would you make them all by hand when you could just make a Photoshop macro?
Admin
ahahahahaha jesus christ
Admin
When dealing with off-shore employees, I sometimes will put in a boundary condition. So in my request I'll say "After X hours, report back what you have so far" as a sanity check in case they're WAY off base.
In addition, I always put a time limit on requests; something like "Do not spend more than X hours on this task". For competent workers, you rarely need it. But for the clueless ones, you'll be very surprised when they bill you for 30 hours of work for a 5 hour task. Even for an average rate of $10 USD/hour for a graduate educated Indian performing semi non-trivial business tasks that can add up fast.
I can't tell you how much I keep telling them "If you have questions, ASK me. I don't want you wasting my money because of something I wasn't clear about. Always ask me for further clarification if you need it, or ask me for help in sending you in the right direct." etc. etc. etc. And rarely do they listen. The ones that do; they stay employed.
Admin
TRWTF is not knowing about js libraries which can do vector graphics using VML/SVG depending upon browser.(and efficiently)
CAPTCHA:capio - cap the i/o...
Admin
I don't understand: Why do we suddenly need a 40 GB SAN?
Admin
Interns are young and tend to party.
He saw two options:
Spend 8 hours figuring out the right way to do this.
Spend 1 hour writing a script to generate images, let the script run, party and have fun until it's done, then come into work and explain that the red eyes and gaunt look are the result of a weeks worth of work and some overnighters instead of a weeks worth of partying, banging, etc., with the occasional check in to see if the script is done.
If I'm an intern, it's Option 2. If you're my boss and expect perfect dedication from me now--for free--then who knows what you'll expect when I start getting paid.
Admin
For a 16x16 circle with transparency, it's
47 49 46 38 39 61 10 00 10 00 80 01 00 RR GG BB ff ff ff 21 f9 04 01 0a 00 01 00 2c 00 00 00 00 10 00 10 00 00 02 1d 8c 0d a9 c7 a1 bf 18 9c e0 50 8a 2e 74 ba fb 0f 86 a2 c7 7d 99 79 6a 4d d7 58 1b 53 00 00 3b
Easy enough to wrap up in a CGI script / php script / jsp / aspx / whatever.
Admin
I hope that is a bad joke...that image would be huge.
How about an all white image with a transparent circle in the middle of it, just change the background color w/ css.
Admin
Whoops I see everyone beat me to it, dunno why I only saw the one comment.
Admin
Definately a problem in managing the intern rather than a problem with the intern.
And, by the way, not all interns are free. The AVERAGE hourly salary for an undergraduate intern is between $16 and $17 per hour; for a post-graduate (e.g. going for their masters degree, the averare is close to $25. These are USA national averages across all fields. For Computer Interns in New York City the average is 40%-50% higher.
Admin
Why wouldn't they use IE? The others are all open source, which means they have security holes.
Admin
Sounds like 5 days work using ImageMagick.