Thursday, May 31, 2007

A Story Remembered

So, we were talking about coders and the crazy things we do to our applications when we're bored or confused and I happened to remember a particular story which I think I'll post here.

I used to work for a company called ASI that wrote software for cruise ships. Our flagship product at the time was the Tour Reporting System. It was designed to interface with the Tour Point of Sale system and was able to generate all kinds of reports for the tour office and other departments about what the passengers were doing and when, how much they had to pay the local agents, etc.

Now... the way it was set up is similar to any other heirarchy. An Itinerary had a collection of Ports, a Port had a collection of Tours and a Tour had a collection of Tickets. While working on a copy feature of the edit screen in the tour section one day, I was typing out all this code to verify that the parent objects existed. This was well before the days of database engines that were smart enough not to let you create orphaned records.

Now in order to set this up... the idea here was the ability to automagically create new itineraries based on existing ones. So one the user had entered the new itinerary structure information and selected the old one, it began the copy process. All the while, based on code that we had already written, validating the existence of the parent records. It occurred to me while writing the validation code that since it's a brand new Itinerary, I shouldn't have to validate it's existence after when creating the tours for it since I had just created the Itinerary record. If the Itinerary record creation had failed, it would have exited the copy function completely. So this was ridiculous code and unnecessary.

While I was writing this code, the client's representative... oh let's call her Monica for that was her name... was waiting patiently for me to go to dinner. When I stopped writing code and had the thought I just told you about, she asked what was going on.

Me: "Well, this code is required... but would never run. ... so I don't know what the point is of creating a message to the user about this... but it's a requirement."
Monica: "Let me write the message."

I had already written "The New Itinerary record is missing. This is a serious error." She then completed this with "You must be a complete idiot to have found yourself in such a pathetic state."

We had a good chuckle about it and then I closed the code and we went to dinner.

Note to self: There's no such thing as code that can not be executed.

Fast forward a few months... different client... different ship. I was building the database for the client and getting things ready to go. While creating multiple itineraries that were somewhat different from each other but mostly identical, we ran into a duplicate key error for an itinerary that was created manually previously. Therefore the creation of the itinerary record failed. While it was at the prompt, asking us what to do about the itinerary record, on another computer we opened the itinerary editor and changed the key values of the previously created itinerary so that the program could continue.

The error code logic was a module that presented the user with the typical options at the time: Abort, Retry, Ignore. Anyone who knows anything about life should know that one should never ignore anything out of the ordinary. And I had not coded for the Ignore response in the itinerary building process during a copy. So of course... what did the user do when I told him that he could "just ignore that message now?" You guessed it... he clicked ignore.

As a result, the code continued on, not knowing there wasn't an itinerary record and tried to create the ports... when the itinerary validation code discovered that the itinerary record was missing... history came back and bit me square in the ass.

Fortunately, the user did not require therapy from the rude comment the computer made about him. Just remember, if you put it out there... somewhere, sometime... it will come back to you.

Peace,
Jenna

Just For Fun

One day Steven and I were creating "motivational posters" at Despair's website. Here's one I came up with and hadn't posted anywhere yet.



Peace,
Jenna

Lightening Likes Me

So, there's that old saying that lightning rarely strikes twice. Maybe we're just thinking in all too much of an all-or-nothing attitude when we say that. Every electrician knows that there's little shocks and there's big shocks (just ask my brother).

A friend asked me to go to lunch with him yesterday and have drinks with him after work. This is a guy I've been interested in for a while. He's good looking with a very calming, loving personality and we've been out together before. Every time we've gotten close tho, there's been a wall that has come up between us. I've tried to identify this wall and figure out if it's me or him or both of us. He's had some hurt in his past with past relationships (including someone that he says I remind him of). I've had my run-ins with emotions and love and romance as well... not to mention the whole gender fiasco (which I hadn't mentioned to him at all since it was obvious to me then that it wouldn't matter). Each time that we've gone out, it was always at my suggestion. This was the first time he asked me to hang out with him. So I said sure.

Lunch was ... well lunch. We ate at this pizza place called American Pie and it was filled with people so we couldn't really chat about much more than how interesting the flatbread was. But the evening is a different story altogether.

We went to the Ale House and had ... a few drinks. :) We could both feel the chemistry starting (he started it first this time). And as the night went on it built and built and we began talking earnestly about life, how it felt to us and found that we both share the same vision of it. I could sense the wall in the distance and knew we were headed for it. Sure enough, it wasn't long before we hit it and the chemistry fizzled. It happened when we started talking about committments, expectations, obligations, etc. I could tell that it was a sore spot for him and that he had some scars from where he'd been hurt in the past. I knew that there was only one thing I could do to show I truly trusted him... but how to work that into casual conversation?

Well, the opportunity arose when the discussion automagically turned to the female anatomy and the periodic cycle. He asked me what it was like to have to deal with that.

Me: "Well, if I'm going to stick with this whole idea of honesty that I've developed for myself, I guess I should say 'I don't know.'"
Him: "So, you can't have any children?"
Me: "Nope. Would you like to know why?"
Him: "Sure."
Me: "Are you sure? Because there's no turning back after this."
Him: "Yeah, I want to know."

I took his hand and put it on my throat so he could feel my adam's apple. I knew that if he were the wrong kind of person, he could've started choking me right there and then. But he didn't. His eyes got big and his smile returned and the warmth from him returned.

Him: "So you went the whole way?"
Me: "Yup."
Him: "That's great!"

From that point on we started really talking. He didn't ask any further questions (I'm pretty sure he's going to have more now) but there was some understanding there now about me and my life and that I truly did recognize the pain he was feeling from his past.

I don't know where it goes from here. It may go nowhere... it may start to take off. But I took the step I knew I had to take to clear the air and be honest with each other. Until I know that he shares the same feelings... that life is "empty and meaningless and the fact that it's empty and meaningless is empty and meaningless" and that nothing we can say about our lives or do in our lives can be affected by anyone else unless we allow it... until I know that for sure... I will keep his trust and secure his identity and his life in my heart. Besides... this journal's about me and my feelings... what else can I truly know anything about anyway?

Much Love to All,
Jenna

Jokes From Work

So, one of my buddies at work started IMing me some jokes yesterday. This will be a long post because these are some great jokes. Here they are. Enjoy! :)

#1


Reaching the end of a job interview, the Human Resources Person asked the young Engineer fresh out of MIT, "And what starting salary were you looking for?"

The Engineer said, "In the neighbourhood of $75,000 a year, depending on the benefit's package."

The HR Person said, "Well, what would you say to a package of 5-weeks vacation, 14 paid holidays, full medical and dental, company matching retirement fund to 50% of salary, and a company car leased every 2 years - say, a red Corvette?"

The Engineer sat up straight and said, "Wow!!! Are you kidding?"

And the HR Person said, "Certainly, ...but you started it.

#2

During the French Revolution a priest, a lawyer and an engineer are about to be guillotined.

The priest puts his head on the block, they pull the rope and nothing happens -- he declares that he's been saved by divine intervention -- so he's let go.

The lawyer is put on the block, and again the rope doesn't release the blade, he claims he can't be executed twice for the same crime and he is set free too.

They grab the engineer and shove his head into the guillotine, he looks up at the release mechanism and says, "Wait a minute, I see your problem...."

#3

Three engineers and three accountants are traveling by train to a conference. At the station, the three accountants each buy a ticket and watch as the three engineers only buy one ticket.

"How are three people going to travel on only one ticket?" asks an accountant.

"Watch and you'll see," answered an engineer.

They all board the train. The accountants take their respective seats but all three engineers cram into a rest room and close the door behind them.

Shortly after the train has departed, the conductor comes around collecting tickets. He knocks on the restroom door and says, "Tickets, please!" The door opens just a crack and a single arm emerges with a ticket in hand. The conductor takes it and moves on.

The accountants see this and agree it is a clever idea. So after the conference, the accountants decide to copy the engineers on the return trip and save some money.

When they get to the station, they buy one ticket for the return trip. To their astonishment, the engineers don't buy a ticket at all.

"How are you going to travel without a ticket?" says one perplexed accountant.

"Watch and you'll see," answered an engineer.

When they board the train all three accountants cram into a restroom and the three engineers cram into another one nearby. The train departs.

Shortly afterward, one of the engineers leaves his restroom and walks over to the restroom where the accountants are hiding. He knocks on the door and says, "Tickets, please!"

Here you go Business Majors!! No competition for the Engineers!!

#4

There was a doctor, a civil engineer, and a computer scientist sitting around late one evening, and they got to discussing which was the oldest profession. The doctor pointed out that according to Biblical tradition, God created Eve from Adam's rib. This obviously required surgery, so therefore that was the oldest profession in the world.
The engineer countered with an earlier passage in the Bible that stated that God created order from the chaos, and that was most certainly the biggest and best civil engineering example ever, and also proved that his profession was the oldest profession.

The computer scientist leaned back in her chair, and with a sly smile responded, "Yes, but who do you think created the chaos?

#5

Boudreaux went into the fish market to apply for a job. The boss thought to himself - I'm not hiring that lazy Cajun, so he decided to set a test for Boudreaux hoping he wouldn't be able to answer the questions and he'd be able to refuse him the job without getting into an argument.
The first question was, "Without using numbers, represent the number 9."

Boudreaux says, "Dat's easy" and proceeds to draw three trees.

The boss says, "What in the world is that?"

Boudreaux says, "Tree 'n tree 'n tree makes nine."

"Fair enough" says the boss. "Second questions, same rules, but represent 99".

Boudreaux stares into space for a while, then makes a smudge on each tree.

"Der ya go sir," he says.

The boss scratches his head and asks, "How on earth do you get that to represent 99?"

Boudreaux answers, "Each tree is dirty now, so it's dirty tree 'n dirty tree 'n dirty tree - dat 99."

The boss is getting worried he's going to have to hire Boudreaux so he says, "All right, question number 3. Same rules again, but this time represent the number 100."

Boudreaux stares into space again, then he shouts, "I got it!" He makes a little mark at the base of each tree and says, "Der ya go sir - 100."

The boss looks at Boudreaux's attempt and thinks, "Ha! got him this time." He then tells Boudreaux, "Go on, Boudreaux, you must be crazy if you think that represents a 100."

Boudreaux leans forward and points to the little marks at the tree bases and says, "A little dog comes along and craps by each tree, so now ya got dirty tree an' a turd, dirty tree an' a turd, and dirty tree an' a turd, which makes 100. When do I start my job?"

#6 (Last One)

One day a group of engineers got together and decided that man had come a long way and no longer needed God. They picked one engineer to go and tell Him that they were done with Him. The engineer walked up to God and said, "God, we've decided that we no longer need you. We're to the point that we can clone people and do many miraculous things, so why don't you just go on and get lost."

God listened patiently to the man and after the engineer was done talking, God said, "Very well! How about this? Let's have a man-making contest."

The man replied, "Okay, great!"

But God added, "Now we're going to do this just like I did back in the old days with Adam."

The engineers said, "Sure, no problem." He bent down and grabbed himself a handful of dirt.

God just looked at him and said, "No, no, no. Go get your own dirt!"


Peace

Wednesday, May 30, 2007

Don't Stop

Yeah... music is definitely my preferred method of expression. Here's a great one from Fleetwood Mac.

Don't Stop

If you wake up and don't want to smile,
If it takes just a little while,
Open your eyes and look at the day,
Youll see things in a different way.

Don't stop, thinking about tomorrow,
Don't stop, it'll soon be here,
It'll be, better than before,
Yesterday's gone, yesterday's gone.

Why not think about times to come,
And not about the things that you've done,
If your life was bad to you,
Just think what tomorrow will do.

Don't stop, thinking about tomorrow,
Don't stop, it'll soon be here,
It'll be, better than before,
Yesterday's gone, yesterday's gone.

All I want is to see you smile,
If it takes just a little while,
I know you don't believe that its true,
I never meant any harm to you.

Don't stop, thinking about tomorrow,
Don't stop, it'll soon be here,
It'll be, better than before,
Yesterday's gone, yesterday's gone.

Don't you look back,
Don't you look back.


Peace Peeples,
Jenna

The Screwtape Letters

Just a quick note (yes, I know I'm supposed to be leaving for work... shush) about a book I'm reading. I've read it before a VERY long time ago. My old copy was dog-eared and worn and I loved it so. But I couldn't find it and so I went to B&N and bought a new copy. It's called The Screwtape Letters and I HIGHLY recommend this book to anyone and everyone.

It's a... collection of letters written by a senior demon named Screwtape to a junior demon named Wormwood containing valuable information on how to win and keep a man's soul. Regardless of the mythology you spout, the teachings in this book of how darkness, drama, laziness, hatred, cowardice, falseness, etc. keep up from laughter and light and mirth are invaluable. When reading it, consider that the context is placed firmly within the camp of Christianity and just... go with it for a while... until you start really listening to what Screwtape is saying and can apply it within your own beliefs. I'm not suggesting you follow his advice... LOL... quite the contrary. I'm suggesting you listen to what he is saying and try to recognize your OWN demon's efforts in your life.

The opening of the book has two quotes which I have come to adore:

The best way to drive out the devil, if he will not yield to texts of Scripture, is to jeer and flout him, for he cannot bear scorn. -- Luther

The devil... the prowde spirite... cannot endure to be mocked. -- Thomas More


Take that with you today and life will be a little better, I promise. :)

Peace,
Jenna

Shrek The Third

So I got home last night and was expecting to sit in my room and either watch a movie, read a book or play WoW with Jose... when all of a sudden I got a call from Veronica. I must admit, I was a little hesitant about answering the call but since one never knows why someone is calling until one answers... I chose to answer. I'm SO glad I did too!

We talked for a little bit on the phone and she asked if I had any plans for the evening. I said no and she suggested we take in a movie. After going through some of the choices at the theatre closest to her, we picked Shrek the Third. What a great movie that is! :) I was glad that it used elements of the 2nd movie but didn't suck as hard as the 2nd movie. It was truly a good one! She and I then went back to her house (which is cute as all get out) and had a nice non-emo, no-drama visit. It was a great night and totally an unexpected and much welcomed change from recent events.

It was so good to see her and rekindle a friendship that has been beaten up quite a bit by drama over the years. (Some day we'll ALL sit down and laugh at all the drama, too... because it SOOOO needs to be laughed at and mocked). Her courage and spontaneity has always been empowering to anyone who's ever met her. Now, in my opinion, she has forged and tempered it with understanding and wisdom as well. It was a little slice of wonderful to see it.

Today I am more energized and ready to face the world and get some work done. Speaking of which, I better get going.

Peace,
Jenna