Random numbers with Javascript
Date: January 16th, 2008

So you may be asking? Didn't you do this one already? Short answer, yes in PHP. This is a javascript example to show why javascript isn't best for everything in the world. This script has an interesting flaw while trying to create 2, non-repeating numbers 1-10. What is this error you might ask? Very occassionally, it will echo, 3 variables, a X,1,0. What does this mean? Realisically, nothing other than JavaScript sucks at creating random numbers. But what if say this where a random quote generator?
Quick answer, it will dump quote number 1 and then the number zero. Great isn't it? Not really. A quite simple example of JavaScript rearing its own limitations.


Try the live demo
Download the tarball
Download the zip file

Random numbers with no repeats
Date: January 4nd, 2008

So one thing that always drove me mad was trying to come up with multiple without repeating numbers. Many solutions you'll find online are rather complex and not very straight forward. I wrote this script as I felt many programmers and designers might want a rather simple solution.


Try the live demo
Download the tarball
Download the zip file

Craigslist Troller
Date: January 2nd, 2008

Tired of visiting Craigslist every 10 minutes to see what the latest posts are? I made this program to parse out 6 feeds at once for whichever catagories you deem most useful. I set the defaults for the Houston area.


Try the live demo
Download the tarball
Download the zip file

QMargin
Date: January 2nd, 2008

This script finds the margins from 0 to 99 percent based on a set cost in USD. I found that it's fairly accurate, although the numbers get a bit obsurd around the 90 percentile. Even though this script is XHTML compliant, the W3C validator will not mark it as compliant. Why? The validator is broken on forms compliance.


Try the live demo
Download the tarball
Download the zip file

Quack Random Quote Generator
Date: January 2nd, 2008

Well, it's a quote generator that spits out a set quote based on a randomly drawn number. I prefer to use the Mersenne Twister method as I feel it gives better random results.


Try the live demo
Download the tarball
Download the zip file