The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Jim Bastard programs a true WTF

Last post 04-20-2008 10:59 PM by Eternal Density. 46 replies.
Page 1 of 1 (47 items)
Sort Posts: Previous Next
  • 03-26-2008 1:01 AM

    Jim Bastard programs a true WTF

    Hey guys....I've posted a new story on my site that you may enjoy: http://www.jimbastard.com/Jim_programs_a_true_WTF.html 

    Jim programs a true WTF
    Occurred: April 2000

    Once upon a time I was a huge noob.  I wasn't a noob in the classical sense. I was just young, and still had much to learn about life and even more to learn about programming. I was in my high school computer science class. We were working with Borland Turbo C++ 3.0 on Gateway boxes that were barely able to run Windows 98. Our class work for the semester was determined by a project based sylabus.You were expected to complete a project every couple of weeks and complete all projects by the end of the semester. We were about half way through the semester and I was nearing the end of the project list. After completing all the easy projects (pointers, arrays, recursion,  dates, etc..) I had moved on to working with datasets. Our project was to build and manipulate a simple linked list. Create a few nodes, do a few sorts, perform a few searches. A very simple data structure. I'm an RDBMS pro these days, but as a young bastard this concept was quite daunting.

    After a few hours of messing around I had managed to create a linked list structure and I had created an addNode function. I had just begun to build my first bubble sort with recursion. I hit compile. I saw the familiar DOS prompt and saw my application's menu. I hit 'A' to add a node. After adding a few nodes I type 'S' for Sort.

    Let's stop here for a moment and review: I'm on a Windows 98 machine running a Turbo C++ application in DOS. I'm using no headers or libraries except IOStream.h. I have absolutely no reference in my code to anything that is related to color or style of font/text or video.

    I'm looking at the output of my DOS prompt. I see half of my linked list and what seems to be an ASCII dump of every single character ever (including the leet ASCII smiley character I totally made this from an Adventure screen shot. ) in every single 8-bit color. All the text on the screen (including my previous input echos) are blinking in blocks of random colors. Hot pink, lime green, red, light grey....

    I'm a bit little puzzled. I type 'exit' to return to Turbo C++.

    My IDE is completely FUBAR. Just like the DOS prompt, the screen is covered in blocks of random 8-bit colors. Having some common sense, I close down Turbo C++ and reboot the computer. As the Gateway struggles to restart I see the BIOS information displaying on the loading screen. Green, Red, Pink, and Yellow blocks are flashing everywhere. The familiar black and white DOS has taken on all the colors of the 8-bit rainbow.

    Now I'm starting to get freaked out.

    Windows boots and everything seems to be fine. I load up Turbo C++ and the IDE is still FUBAR. Flashing colors are everywhere. Hot Dog Man and Jay are sitting next to me and have taken interest in my misfortunes. I call our teacher Mr. Stroker over.

    Mr. Stroker thinks I have messed up a setting in Turbo C++ and tries to reset the compiler's colors to default. It doesn't work. He looks at the code and although he can see it is incorrect, he is adamant that my code couldn't change the DOS colors. He thinks I'm up to no good and tells me to log onto Hot Dog Man's computer. With Mr. Stroker watching over my shoulder I load Turbo C++ and run the code. Green, Yellow, Red, Pink, oh my! Mr. Stroker is watching in disbelief and makes me move to another machine. The exact same thing happens. DOS is now completely trashed on three machines. No one can use any DOS applications and the screens violently blink random colors while being booted.

    The machines are removed from the computer lab and are never seen again. I restart the project from scratch.

    A note from Jim: I wish I still had the code so I could post what I had actually written but all my electronic media was confiscated (and never returned) by police in 2001 due to The World Famous Priceless Story

     

  • 03-26-2008 3:51 AM In reply to

    Re: Jim Bastard programs a true WTF

     One time I farted and a pig came flying out my butt. I wish I still had the pig so I could show you, but I fell upon hard time and had to eat it. It really happened though. WTF!!

  • 03-26-2008 4:18 AM In reply to

    Re: Jim Bastard programs a true WTF

     I'll say this once: This WTF is 100% true.

    I wouldn't even think of posting a WTF as outlandish as this without witnesses. I barely believe it myself.

    Hot Dog Man and Jay can be found on irc.arg-irc.net (www.arg-irc.com) any day of the week. Jay is the server administrator and owner.... They watched all the events transpire and were laughing the whole way. Apparently one of them was helping throw out/donate some of the school's old machines a few years later....and came across the ones I trashed.

  • 03-26-2008 8:42 AM In reply to

    Re: Jim Bastard programs a true WTF

    Nandurius:
     One time I farted and a pig came flying out my butt. I wish I still had the pig so I could show you, but I fell upon hard time and had to eat it. It really happened though. WTF!!
     

    I don't doubt the general story.  I used Turbo C++ in high school, and you'd often get fantastical results from trying to print random memory, flashing ASCII characters were common, color was a bit trickier.  But I can confirm that it definitely was possible to muck up the IDE's display.  Now the part about it still being mucked up after a reboot?  I don't buy that at all.

  • 03-26-2008 8:48 AM In reply to

    Re: Jim Bastard programs a true WTF

    bstorer:

    Nandurius:
     One time I farted and a pig came flying out my butt. I wish I still had the pig so I could show you, but I fell upon hard time and had to eat it. It really happened though. WTF!!
     

    I don't doubt the general story.  I used Turbo C++ in high school, and you'd often get fantastical results from trying to print random memory, flashing ASCII characters were common, color was a bit trickier.  But I can confirm that it definitely was possible to muck up the IDE's display.  Now the part about it still being mucked up after a reboot?  I don't buy that at all.

     Probably could be done, but almost impossible unless if it was your intent. Even invalid pointers would simply overwrite things that were in ram. Maybe the ram wasn't fully cleared on a warm boot. A cold boot probably would have done the trick.

  • 03-26-2008 2:03 PM In reply to

    Re: Jim Bastard programs a true WTF

     Maybe the ram wasn't fully cleared on a warm boot. A cold boot probably would have done the trick.

     

     

    It was about a week before the machines were removed from the ITC. They sat completey shut down over night several times. They were usable for the most part, except when a student had to use a DOS application. 

    I wouldn't try to rationalize what happened. I've had eight years to think about and I still go WTF?!?! 

  • 03-27-2008 3:44 PM In reply to

    Re: Jim Bastard programs a true WTF

    So you'd show us the code, except you can't show us the code because of an interesting story you'd tell us, except you can't tell us the story either?
  • 03-27-2008 3:56 PM In reply to

    Re: Jim Bastard programs a true WTF

    Lawsuits and injunctions are curious creatures.

     

    :-( 

  • 03-27-2008 5:03 PM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:

    Lawsuits and injunctions are curious creatures.

     

    :-( 

    What are you worried about... Is your real name really Jim Bastard that the police will come knocking as soon as you tell ?

  • 03-27-2008 5:20 PM In reply to

    Re: Jim Bastard programs a true WTF

     

    pitchingchris:

    What are you worried about... Is your real name really Jim Bastard that the police will come knocking as soon as you tell ?

     

    :-( :-( :-( :-( 

  • 03-28-2008 10:52 AM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:
    My IDE is completely FUBAR. Just like the DOS prompt, the screen is covered in blocks of random 8-bit colors.

    ....

    he is adamant that my code couldn't change the DOS colors

     

    Why is this a WTF? Your program had a loose pointer, it stomped all over the low 1meg of memory and trashed the VGA font tables. The video aperture's memmapped into 640k-704k [A000:0000-B000:0000]. Since supporting dos mode isn't a priority of Microsoft, no surprise that they don't redo vga font tables after reboot.

    Did you try cold-booting the machines? The corrupted font tables would survive a warm boot. 

    -- Never play leapfrog with a unicorn
  • 03-28-2008 11:07 AM In reply to

    Re: Jim Bastard programs a true WTF

    MarcB:

    Why is this a WTF? Your program had a loose pointer, it stomped all over the low 1meg of memory and trashed the VGA font tables. The video aperture's memmapped into 640k-704k [A000:0000-B000:0000]. Since supporting dos mode isn't a priority of Microsoft, no surprise that they don't redo vga font tables after reboot.

    Did you try cold-booting the machines? The corrupted font tables would survive a warm boot. 

     

     

    Did you try reading the post? Reading compreshension FTL.  

  • 04-02-2008 1:54 PM In reply to

    Re: Jim Bastard programs a true WTF

     I've got a lot more WTF ish stories that due to thier extreme nerdiness I probaly won't post on my site. Would you guys like to see more stories like this catered just to TDWTF?

  • 04-02-2008 2:36 PM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:

     I've got a lot more WTF ish stories that due to thier extreme nerdiness I probaly won't post on my site. Would you guys like to see more stories like this catered just to TDWTF?

     

    No, go away douchebag troll/spammer.

  • 04-02-2008 3:19 PM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:
     I've got a lot more WTF ish stories that due to thier extreme nerdiness I probaly won't post on my site. Would you guys like to see more stories like this catered just to TDWTF?
    Amuse us.
    irc://irc.slashnet.org/#TDWTF
    <Ling> Looks like [lotus] notes was indeed clock sucking and pissing wildly on my disk
    <Duplication_Prevention_Bot> Wow, that was a disturbing image.
  • 04-02-2008 3:34 PM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:

    I have more relevant content I could post. Would you like to see more content?

      

    MasterPlanSoftware:

    No, go away douchebag troll/spammer.

     

     

    Hrmmmmmmmmmmmmmmmmm.......................................................I don't think I like you.

  • 04-02-2008 3:41 PM In reply to

    Re: Jim Bastard programs a true WTF

    JimBastard:
    I don't think I like you.
     

    Join the club.

    Why don't you actually try not being a flaming asshole?

  • 04-02-2008 3:59 PM In reply to

    Re: Jim Bastard programs a true WTF

     Because if I wasn't a flaming asshole the only diffirence between us would be my leet coding skills and good looks. Ohh yeah also my superstar like rap ability.

  • 04-02-2008 4:06 PM In reply to

    Re: Jim Bastard programs a true WTF

    MasterPlanSoftware:

    JimBastard:
    I don't think I like you.
     

    Join the club.

    Why don't you actually try not being a flaming asshole?

     

    On a random note, flaming asshole would be a really uncomfortable illness. 

  • 04-02-2008 4:09 PM In reply to

    Re: Jim Bastard programs a true WTF

    DIARRHEA CHA CHA CHA

  • 04-03-2008 4:13 PM In reply to

    Re: Jim Bastard programs a true WTF

    We are not amused.

    Go play in traffic - bring Lysis along with you. 

    The Daily WTF Forums. You will never find a more wretched hive of scum and villainy.
  • 04-03-2008 6:16 PM In reply to

    • kirchhoff
    • Top 150 Contributor
    • Joined on 02-27-2007
    • ECE 280 (Circuit Analysis)
    • Posts 216

    Re: Jim Bastard programs a true WTF


  • 04-04-2008 3:40 PM In reply to

    • chebrock
    • Top 500 Contributor
    • Joined on 02-18-2008
    • New York City
    • Posts 123

    Re: Jim Bastard programs a true WTF

    It's unimportant whether this story is true or false. What matters is, I didn't really care for the tone. 

  • 04-04-2008 3:50 PM In reply to

    Re: Jim Bastard programs a true WTF

    Whether the story is true or not (I think it could be true, maybe he overwrote some thing in some ROM.  DOS had no protection those days), I think his site is a pretty interesting read. On par with TDWTF IMHO.

     

  • 04-04-2008 3:52 PM In reply to

    Re: Jim Bastard programs a true WTF

    russ0519:
    maybe he overwrote some thing in some ROM
     

    He overwrote Read Only Memory?

  • 04-04-2008 5:08 PM In reply to

    Re: Jim Bastard programs a true WTF

    russ0519:
    Whether the story is true or not (I think it could be true, maybe he overwrote some thing in some ROM.  DOS had no protection those days), I think his site is a pretty interesting read. On par with TDWTF IMHO.
     

    Sockpuppetsayswhat?