Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: Marcb on October 18, 2010, 12:49:03 PM

Title: Facepalm moments
Post by: Marcb on October 18, 2010, 12:49:03 PM
I just had a facepalm moment when I finally tracked down a bug in a little program I'm writing...
I was fixated for a month on a piece of code I just knew must be causing the problem... I re-wrote it in dozens of creative ways and guru every time...
I re-read the Rkms, googled and still guru every time..

Decided tonight to get on with other bits and come back to it...
Reading further down the code I saw it:
Turns out I forgot to free an exec list memory block instead... 2 seconds later, bugs gone...

What are some of your face palm moments?
Title: Re: Facepalm moments
Post by: djrikki on October 18, 2010, 01:25:47 PM
Looking through source code wondering why the hell it isn't working only to find you missed one measly closed curly } bracket or other such delimiter like an 'end if' or an 'end tell'.
Such basic branching always ends up in a facepalm moment for me
Title: Re: Facepalm moments
Post by: jj on October 18, 2010, 01:27:40 PM
Do it loads of times in work.  Reading through code to see why it doesn't work only to realsie you have used a ( instead of a { or vice versa.  Really easy to miss in amongst loads of code.
Title: Re: Facepalm moments
Post by: Tension on October 18, 2010, 02:43:48 PM
See the story of the Hedley Davis Memorial Disk Drive.

Facepalming wasn`t about in those days..
Title: Re: Facepalm moments
Post by: TheGoose on October 18, 2010, 03:42:44 PM
Here's a good one for you:

(http://www.motifake.com/image/demotivational-poster/0903/epic-face-palm-face-palm-demotivational-poster-1236742013.jpg)
Title: Re: Facepalm moments
Post by: tone007 on October 18, 2010, 03:54:28 PM
Plugging in a Zorro card backwards and powering up the A2000.  Luckily the board was a crappy revision anyway.
Title: Re: Facepalm moments
Post by: Tripitaka on October 18, 2010, 05:11:06 PM
Pulling a PCI graphics card from a PC at work, then I realised...it was still powered up. Oops, amazingly it did no harm to the PC or card.
Title: Re: Facepalm moments
Post by: Heiroglyph on October 18, 2010, 05:29:41 PM
Reading the docs, being aware of the fact I could blow up a USB port and still managing to plug in  one of the USB cables on my brand new Deneb backwards.  Port blown.

That was just last Friday and my forehead still hurts. :(
Title: Re: Facepalm moments
Post by: LoadWB on October 18, 2010, 05:34:25 PM
I was writing a screen blanker for the Commodore 64.  It was meant to work like the simple one on the TI-99/4A: countdown timer (I actually used a CIA TOD alarm) then set a bit to blank the screen, then reset that bit once a key is pressed.  Simple!

Except it would not work.  I removed the TOD alarm and implemented a countdown using an unused zero-page word.  I rewrote the TOD alarm handler.  I checked and checked.  Hours staring at this simple code, not understanding why it would not work.  I even duplicated functionality in BASIC (with an ML helper for the TOD alarm) to verify that I was POKEing the right places.

The next day it hit me.  Square in the gonads.  I had a BNE when I should have used a BEQ.  STUPID STUPID STUPID!  I was using the WarpEngine's ML monitor to write my code, and I probably could have found it if I had stepped through the code line-by-line (which, now I think of it, I believe the WarpEngine can do.)

Ah, well.  Lesson learned.

Another really good one would be when I was attempting a hardware upgrade for a client running an Exchange 2003 server.  I had diligently moved the Exchange database files to the D: partition so I could nuke the Windows installation in case the hardware move did not go so well.  Everything worked perfectly except that I had missed moving the log files, and they got nuked.  It took this poor machine 30 hours to do an eseutil repair on 42GB of email for a multi-million dollar company, and made me sweat every minute of it.  That has been the only major failure this server has suffered in the past eight years -- by my own hand!
Title: Re: Facepalm moments
Post by: Tension on October 18, 2010, 06:37:06 PM
Quote from: LoadWB;585528
It took this poor machine 30 hours to do an eseutil repair on 42GB of email for a multi-million dollar company, and made me sweat every minute of it.


I believe I would have shat myself in that situation.
Title: Re: Facepalm moments
Post by: LoadWB on October 18, 2010, 06:55:06 PM
Quote from: JJ;585493
Do it loads of times in work.  Reading through code to see why it doesn't work only to realsie you have used a ( instead of a { or vice versa.  Really easy to miss in amongst loads of code.


I remember reading somewhere that this error is what actually caused the AT&T outage in 1990.

http://www.phworld.org/history/attcrash.htm

(This just talks about the technicals, not the actual cause of the error other than a coding error.)
Title: Re: Facepalm moments
Post by: spirantho on October 18, 2010, 08:13:34 PM
Not a facepalm from my own doing, but a worthy one.

My local Uni has an email forwarding service for students who go away for holidays etc. One particular student set up an email forward to his home account.
Unfortunately he forgot to remove the email forwarding he'd previously set up from his home account to his uni account.

You can guess what happened. It resulted in a very irate sysadmin and a ton of headaches as a wonderful company checking for spammers thought the entire uni was a spam account and blocked everyone on it. I believe he may still be trying to get it unlocked....
Title: Re: Facepalm moments
Post by: kolla on October 18, 2010, 10:24:57 PM
Realizing what i had done when the old powermac refused to boot up with a zip-drive stuck into the SCSI port... the funny smell... fuuuu.... luckily the machine survived, the zip-drive didn't. To my defence, it was 8 o'clock in the morning, and it seemed like an obvious thing to do for some weird reason. Had a similar experience with my old A3000 and DSS8+ ... both survived.
Title: Re: Facepalm moments
Post by: marcfrick2112 on October 18, 2010, 10:38:50 PM
Ohhhh, Man ... My poor A4000T looking sad in my closet...:(

Anyway, I buy a nice A4000T from a guy for $1000. CS MK3, Toaster/Flyer/PAR/TBC3. But all was never well with the machine.... Anywho, I have to take it apart.... And guess what? I forgot to note the orientation of the ribbon cables to the ports module.... Poof! I got it fixed.... now, it's broken again.....:madashell:
Title: Re: Facepalm moments
Post by: yssing on October 18, 2010, 11:09:29 PM
Working on a rather big php project, and I had an annoying problem when moving from wamp til lamp. That I finally solved, was really because I did not read my own source and the error message correctly.
I also realised that LAMP is more strict than WAMP, which is good though..
Title: Re: Facepalm moments
Post by: CaptChaos on October 19, 2010, 12:21:19 AM
Quote from: Heiroglyph;585527
Reading the docs, being aware of the fact I could blow up a USB port and still managing to plug in  one of the USB cables on my brand new Deneb backwards.  Port blown.

That was just last Friday and my forehead still hurts. :(


I fried a subway usb card the exact sameway, I saw the magic smoke escape and everything...
Title: Re: Facepalm moments
Post by: ElPolloDiabl on October 19, 2010, 12:45:28 AM
I can't get my A2000 to start. Strip out all the resellable parts and to pick it up to chuck it in the bin, then I hear a rattle. A screw is rolling loose on the motherboard. Facepalm.

Get charged 300$ plus $50 labour to replace what I knew was a dead floppy drive, in 1989. I could have got one for $220 and put it in myself. This was also before you got any warranty on a computer/electronics (probably a weeks worth at least).

Not being around when you could charge people $150 per hour to 'service' their computer and then tell them it can't be fixed. Facepalm.
Title: Re: Facepalm moments
Post by: AmigaEd on October 19, 2010, 12:47:58 AM
Quote from: Heiroglyph;585527
Reading the docs, being aware of the fact I could blow up a USB port and still managing to plug in  one of the USB cables on my brand new Deneb backwards.  Port blown.

That was just last Friday and my forehead still hurts. :(


Been there, done that on a IBM single board computer... my coworkers USB thumb drive got so hot it melted the outer plastic enclosure. Amazingly, both the drive and the SBC are still working.

I'd really like to meet the accountant who decided it was a great idea to not put a keyed connector on a USB header.

Regards,
AmigaEd
Title: Re: Facepalm moments
Post by: Marcb on October 19, 2010, 12:56:22 AM
(http://img149.imageshack.us/img149/5844/facepalm.gif)
Title: Re: Facepalm moments
Post by: LoadWB on October 19, 2010, 01:08:33 AM
Quote from: Marcb;585608
  • Putting together a proposal & quick demo program as a 22yo to show Management at my work how we could get clients to dial in and place their orders and manage their accounts only to be told noone would bother to buy a modem

hehehehe I know the feeling.  Back in 1996-ish (22-ish as well) when I worked for a shoe store I started to develop an interactive kiosk system on my 1000 to show off shoes, features, kids sizing information, etc.  Right before I completed it and was getting ready to demo, I was told corporate was not interested because they felt it would take away from the one-on-one customer experience.

These days when you walk into the local store you are lucky if you can get a "hello" from the manager sitting on the floor behind the counter sending text messages.

*sigh*