Best T-SQL Ever! (The T-SQL Mandelbrot)

This is just pure awesome, from a geek standpoint. Thanks to The Daily WTF and Graeme Job for sharing this wonderful little jewel of code and making my day just a bit more interesting. 😉

Here’s the quote from The Daily WTF:

“So I was bored at work one day,” Graeme Job explains, “and wondered, what’s the most useless thing I could do with my time without actually doing anything. Then it hit me. I could use T-SQL to generate… Mandelbrot.”

Graeme continued, “Following is a single T-SQL SELECT statement that generates a text-representation of a Mandelbrot Set. The results are best viewed in text-mode.”

You can grab the code from The Daily WTF, and run it via SQL Server Management Studio. Of course, I tried it myself, and got this result:

2008-11-20_113348

(via http://thedailywtf.com/Articles/Stupid-Coding-Tricks-The-TSQL-Madlebrot.aspx)

Slashdot: F/OSS Flat-File Database

Good question, actually. See the link for some answers from the /. community:

Leemeng writes “I’m looking for a simple, free, and F/OSS flat-file database program. I’m storing info about Wi-Fi access points that I come across, maybe 8-9 fields per entry. I’ve outgrown Notepad. This info is for my own reference only; it is not going on a Web server. Googling was unhelpful, with results skewed towards SQL, Access (MS), and Oracle, all of which would be overkill for my purposes. My criteria are: it must be simple, F/OSS, must work in Windows Vista, preferably use a portable format, must not be an online app, and must not require Java. Does such a beast exist?”

(via http://developers.slashdot.org/article.pl?sid=08/05/20/2150246)