943,361 Members | Top Members by Rank

Ad:
Apr 10th, 2004
0

It's Alive!! Program with a mind of it's own....

Expand Post »
Hi,
What's the crazies thing you're program has ever done?

It was meant to add the numbers together - but instead it placed a picture of your granny on your desktop and started singing "God save the Queen"?

You know what I'm talking about....those times that your program goes off a tangent and starts reviving your most deep fears about all computers, that they're out to get you:evil: ....

Or what about the most pointless programs you ever wrote? The one that says "Hello World", the one that increases the volume of you WMP from your Excel spreadsheet....
Similar Threads
Reputation Points: 11
Solved Threads: 1
Newbie Poster
doubleglazing2 is offline Offline
16 posts
since Apr 2004
Apr 10th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

one of my programs drew random lines everywhere on the screen becuase of a logic error I had in it . it was pretty amusing until i relized my computer was going to run out of memory and that I needed to save my research paper before that happened.
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Apr 10th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

In heindsight that must make it even more funny, no?
Reputation Points: 11
Solved Threads: 1
Newbie Poster
doubleglazing2 is offline Offline
16 posts
since Apr 2004
Apr 11th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

I once wrote a program in Turbo pascal while i was in school. All I did was make it run through the autoexec.bat then display a blank screen and wait for some sort of password before it continues to boot. I did that because I always run out of computer in the internet lab... then the idiot who checks on the lab didn't know any of this, every time i go to the internet lab he tells me that everything is occupied and a computer is broken coz` it wont boot... I'd suggest that I can fix it but in doing so will make me a priority user whenever i needed to use one...
Team Colleague
Reputation Points: 72
Solved Threads: 14
cyberkill(ed)
oalee is offline Offline
506 posts
since Feb 2004
Apr 11th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

i did something like that, since all logons are authenticated against a network server, I created a fake one, so everytime a user would try to logon to a server it would re-route to locahost and the user would get an error. Then when I wanted to logon, I would switch to the appropraite server, which was named after another server to prevent students from using it.

Not as cool as yours though
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Apr 30th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

Hello,

I have a sin from Iowa State too.... before I had a computer of my own, I also did a little bit of darkness to make sure a computer was available for me. Came back an hour later, and the disabled computer was there for me. I would sit down, and someone else would say "it's broke", and I would nod and fix it. then do the research / paper / whatever.

The program that had a problem with was a recursive C++ thing that used the fork command to cause the computer to use up all of the available processes with useless children. I brought down the unix box with everyone on it, and caught the error in a hurry. Thankfully, they did not find me, as well, no one could open a process to see what was wrong with the box! Also, am thankful that I saw the error right away, and quickly fixed it.

Christian
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004
May 4th, 2004
0

Re: It's Alive!! Program with a mind of it's own....

Quote originally posted by BountyX ...
one of my programs drew random lines everywhere on the screen becuase of a logic error I had in it . it was pretty amusing until i relized my computer was going to run out of memory and that I needed to save my research paper before that happened.
wow....plz gimmi some insight on ur program...wut u used and the source code if ur willing to share...im just a noob startin out in this huge world:!:
Reputation Points: 8
Solved Threads: 0
Newbie Poster
vtecman04 is offline Offline
6 posts
since May 2004
Jun 21st, 2004
0

Re: It's Alive!! Program with a mind of it's own....

Well, once I was working some a function that would return a string along the lines of : "This system has been running for 1 week, 3 days, 2 hours, 1 minute, 0 seconds."

I was doing this in VB and using a DLL to retrieve the TSC (Time Stamp Counter: contains the number of clock pulses since the comp was booted). It would divide by the clock freq. (unfortunately I had to hard-code this, I don't know how to get a real value) to get the number of seconds since reboot and then use the mod statement and some multiplication and division to come up with the string. All my variables were doubles (I want this thing to work even when the computer has been booted more than 10 minutes), but I was getting an overflow error when I did this:

dim weekDivider as Double
weekDivider = 7 * 24 * 60 * 60

I was up until 4:30 AM finding the bug. It turns out that when you do math on ordinal values, VB assumes that you're putting it in an Integer data type unless you put a pound sign after each of the numbers, like this:

weekDivider = 7# * 24# * 60# * 60#

I will never understand why VB does this...
Reputation Points: 115
Solved Threads: 5
Junior Poster
Toba is offline Offline
192 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: QuickSort
Next Thread in Computer Science Forum Timeline: Suggestions on what type of programming language would be best for the situation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC