What would you program if you knew how?

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Post by sdetoni »

Driller wrote:I'd program something that would program something else to make a machine and that machine to make another machine that clones people so I would have six of me so I wouldn't have to go out to work every day.
But since they are a clone you, they would become very lazy and start building a machine that would clone themselves so the wouldn't need to do the work of building a machine for the clone of them selves....
User avatar
GeeZa
Baaaaaaa!
Baaaaaaa!
Posts: 7156
Joined: Thu Aug 07, 2003 5:04 pm 0
Location: Taghazout.

Post by GeeZa »

fritx wrote:A properly random number generator :)
:D Take a naturally-occuring random input and you're laughing. Easy.
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Post by piku »

GeeZa wrote:
fritx wrote:A properly random number generator :)
:D Take a naturally-occuring random input and you're laughing. Easy.
It's quite hard to find truly random input. People bashing keys "randomly" tend to just hit the middle row or repeatedly type "asda" in varying patterns. Network traffic isn't random.

I suppose sampling the soundcard would produce randomly occurring data, then again it's obviously got patterns in it of people talking and everything.

Best sample the background radiation of the universe :)
return (0);
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

If I knew how I would code a really good stock market player program, give it a couple of hundred quid, and live off the revenue stream it generated. Then I could work on what interested me instead of towing clients out of whatever technological shit creek they've drifted into this month.

Of course, eventually the program would be generating so much wealth that I'd have to spend quite a bit of time flying around in my private jet buying tropical islands and such, and shagging famous actresses. But I would still find time to code.
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Post by piku »

Firefox wrote: Of course, eventually the program would be generating so much wealth that I'd have to spend quite a bit of time flying around in my private jet buying tropical islands and such, and shagging famous actresses. But I would still find time to code.
Well you could combine your money with Driller's cloning machine, make a clone of yourself and let that go off and do the shagging. This would give you more time to code.
return (0);
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Post by GoatFoam »

Plenty of scope for code reuse. For a start both the cloning machine and the shagging code are going to have to use fork().
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Post by adam »

i think someone wrote a program to play hedge funds... worked really well for a while, almost like a money making machine... but when the underlying assumptions they'd made changed.. the program became somewhat innaccurate :?

random numbers & naturally occuring sources.... i read that vegas fruit machines (the ones that are all linked together to control the total amount the house profits by) use a random generator that generates numbers at millions of Hz... then a rnd number is selected when someone pushes a button on the machine

naturally occuring sources... something accessible on the net..... the weather somewhere? the temperature or windspeed from a random therm or annemometer.... one of those things that isn't truly random but rather difficult to guess... feeding the output from one gen into another.... friday afternoon... scrumpy...
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Post by piku »

For a good source of randomness, just tap the brainwaves coming off a class of low-ability school kids. So much randomness...
return (0);
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Post by adam »

hee hee... i suppose a good substitute for random is "a number that nobody could possibly guess" used as the seed value
User avatar
GeeZa
Baaaaaaa!
Baaaaaaa!
Posts: 7156
Joined: Thu Aug 07, 2003 5:04 pm 0
Location: Taghazout.

Post by GeeZa »

adam wrote:hee hee... i suppose a good substitute for random is "a number that nobody could possibly guess" used as the seed value
Silicon Graphics used images of lava lamps I believe. Intel used thermal noise.
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Post by KlaxonCow »

If you want genuine randomness then how about the quantum uncertainty of a radioactive decay?

You can actually buy "genuine random numbers" from this website:

http://www.fourmilab.ch/hotbits/

They've hooked up a computer to a Geiger counter thingy and it measures the timing between successive pairs of radioactive decays. When you buy a bunch of numbers then only you get those particular unique random numbers (possibly useful for securty things or some such).

A mad way to make money, eh? Selling people random numbers. But the site's been up for years, so it must generate a tidy income somehow. :lol: :D
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
Post Reply