Skip to content

{ Category Archives } Programming

Sexy Alphabet Image Generator

When my girlfriend came across this erotic alphabet, the first thing she wanted was to be ableĀ  to spell out various things with it. Add a pinch of python and php and the result is the Erotic Alphabet Image Generator. The source code of the script used to generate the images is available here.

Tagged , , , , , , ,

M-Set update

So, I know that I’ve been harping on this a bit, but I’ve re-written my M-Set renderer in C, so it’s faster, and I’ve added a few more command line flags to make it easier to use. Get the code here.

Tagged , , , , , ,

More Mandelbrot

I just recently revisited the M-Set code from my Perl Snippets post. The code I had was pretty ugly, so I decided to rewrite it in Python. The result is not only a lot cleaner and easier to understand, but it’s also a lot faster: $ time python mandel.py > \dev\null real 0m0.051s user 0m0.036s [...]

Tagged , , , , , ,

Perl Snippets

I’ve been getting into a mood lately that makes me fiddle around with fun Perl stuff, but sadly school’s picking up to the point that writing anything up isn’t going to happen. However, I have a couple short scripts that I’m just dying to share. Just Another Perl Hacker I figured that it was about [...]

Tagged , , , , , , , , , ,

Genetic Algorithms in Perl

Inspired by recent genetic algorithms floating around, I decided to try my hand at implementing one in perl. I’d thought for a long time that it would be quite difficult, but really it’s quite easy. My biggest hangup was dealing with data structures, but once I did that, it turns out that all you really [...]

Tagged , , , , ,

Fast and Simple Stock Quotes Using Perl

One of the things that makes perl so powerful and fascinating is the huge number of modules that are available online, especially through the CPAN repository. Today I stumbled upon one called Finance::Quote, which does one thing, very simply: it retrieves stock (or mutual fund) quotes. You feed it a ticker symbol and it gives [...]

Tagged , , , , , , , , ,