- 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
Isn't it called "Mandelbrot"?
"Madelbrot" has a slightly different meaning in German :)
Note from Alex: Ugh... fixed! I really should start writing these before 2AM...
Admin
OK, I admit it, I've been known to stare into the cosmic wonder of the Mandlebrot Set while under the influence of a mind-numbing ... uh, margarita.
But in this case I think it would be much more interesting to gaze into the depths of the brightly colored source code.
Admin
Is there really any point to censoring the phrase "What The Fuck" when everyone knows what "WTF" stands for anyway?
Come on, this is a submarine! This is not a monastery! Can you say s u b m a r i n e? Ah, forget it. I'll pull something from my personal library.
Admin
And this is why programmers should not be math majors.
Admin
The T-SQL Madlebrot I could use T-SQL to generate... Madelbrot." a text-representation of a Mandelbrot Set.
Three different version! What the fuck?
Admin
Which would be...? "Mädelbrot" macht keinen Sinn, "Madenbrot" scho, aber "Madelbrot"?
Admin
This reminds me of when (many years ago now) we sent a postscript file to our brand-new 300dpi printer which computed and displayed the Mandelbrot set at maximum resolution, with all computations performed in the PS interpreter. I don't remember if it was an overnight job or an "over a long weekend" job, but it was definitely awesome...
No, I don't have the code.
Admin
I like it, let's see more like this. Probably like most folk here, I wish I had more time at work to be bored and produce similar inanity.
Admin
I coined a term for this type of entertaining, yet uselss code a long time ago: "MSSQLbation".
Admin
Dammit, Alex, now I'm going to have to rewrite one of the questions on our 15 minute handwritten pre-interview test.
Admin
In Austrian dialect, Mädel is maiden (Mädchen), and who knows, maybe there is some kind of bread made by maidens. Or maybe, if you put it into the context of the file "Hostel", bread made out of maidens...
Admin
Seems like the text was generated by a Mandelbot...
Admin
that easily owns any of my usual bored activies.
Admin
I take it this is SQL Server 2005+ only, I bravely tried to crash our server running this but just got syntax errors!
Admin
How about [i]Impressively Useless[i] Coding Tricks?
Could be an interesting regular feature!
Admin
Just for fun I took the ispell 354984 word list and rot13'd it. then I checked how many encoded strings matched real words from the original list. Zero matches :( I am very disappointed. I expected at least 1% to encode into another valid string. I was amazed how quickly the following commands ran cat ROT13.LST | uniq -u > BIG.LST cat mword10/SINGLE.TXT | uniq -u >> BIG.LST cat BIG.LST | uniq --repeated > ROTRES.LST ROTRES.LST was empty, uniq -u removed any duplicates. echo owl >> test.file echo fox >> test.file echo owl >> test.file echo owl >> test.file cat test.file | uniq --repeated Gave the correct result "owl"
Admin
Depends on the region. Here in Bavaria, it's "Madel" for girl. So "Madelbrot" would be girlybread?
Admin
My WTF on this is why was he at work on a Sunday (10-12-2008) with nothing better to do?
Admin
2005+ (as it uses PIVOT).
It only took 11 seconds to run on my local VM, so I think you'll be alright ;)
Admin
This reminds me of a friend of mine, who was working on writing a raytracer in SQL last time I talked to him.
Admin
http://warp.povusers.org/MandScripts/ps.html
Admin
Admin
http://partmaps.org/era/unix/award.html
Admin
I made a 2.5D rolling ball application made out of WinForms buttons once.
facilisis = the new syfilis, get it NOW!
Admin
Here’s an ASCII mandelbrot in dc(1) i made a few years ago:
Admin
Oh, since the article mentioned quines, i might as well include a dc quine:
Admin
TRWTF is that you made a screenshot out of plaintext you had on hand. Clearly you should have pasted it into Paint first, shot that, and pasted that into another imaging app, and included a shot of that.
Admin
Admin
Stupid coding trick? This is awesome! :D This is a clever waste of time, not a WTF!
Admin
Admin
Doesn't "Mandel" mean tonsil? Back in the day we used to laugh about old tonsil bread and his set. Seriously.
Admin
Admin
Courtesy of the great JoCo:
Take a point called Z in the complex plane Let Z1 be Z squared plus C And Z2 is Z1 squared plus C And Z3 is Z2 squared plus C and so on If the series of Z's should always stay Close to Z and never trend away That point is in the Mandelbrot Set
Mandelbrot Set you're a Rorschach Test on fire You're a day-glo pterodactyl You're a heart-shaped box of springs and wire You're one badass fucking fractal And you're just in time to save the day Sweeping all our fears away You can change the world in a tiny way
Admin
I guess I thought that mentality had been put aside with the demise of the "Worse Than Failure" idiocy.
Besides, people don't really think he actually changed the name because of his grandmother, do they?
Admin
It's an inkblot test. I see my wife's episiotomy.
Admin
Is there really any point to spelling out the phrase "What The Fuck" when everyone knows what "WTF" stands for anyway? Or are you just some juvenile script kiddie who still gets his kicks saying bad words.
While everyone knows what it means, some of us appreciate the censorship so that it's a little less NSFW. You know, those of us who are grown up enough to actually have jobs? You'll get there someday, kid, if you're lucky.
Admin
Great. Another loser heard from who has to get his kicks from criticizing typos. Yay.
We adults with basic reading skills knew what he meant. Perhaps you should take a class.
Admin
OH NO!
And here we thought that a text-only display could prevent us from BLIT. :P
Admin
Upon reading this, I got all excited and decided that my sql client had to show me this work. The screenshot was just not enough.
As I was watching it think, I realized I just ran some sql found on the interweb without really reading or understanding it. Wow. TRWTF is me.
Admin
This is awesome. I want that guy on my team.
Admin
[quote user=memals] Zero matches :( I am very disappointed. I expected at least 1% to encode into another valid string. [/quote]
You have to sort the input before using uniq; it only looks at adjacent lines.
Admin
Ouch!
Admin
Käsebrot, imo.
Admin
TRWTF would have been if you ran it on a production database server.
Admin
Admin
I did the same thing, only I went "huh, the only thing it does is select letters" and hit F5.
Admin
Jaw droppingly cool...
But how do you get it to "zoom in" to one of the curls?
Admin
Well done! Hadn't had a good laugh yet this morning.
Admin
uniq expects the list to be sorted.
From the man page:
you should be using sort | uniq there.
Admin