Bork Bork!
 FAQ  •  Search  •  Memberlist  •  Usergroups   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 Stupid logic! View next topic
View previous topic
Post new topicReply to topic
Author Message
Uty
Tang Soo Techie


Joined: 03 May 2003
Posts: 9583
Location: On a never ending quest to save my girlfriend

PostPosted: Tue Dec 05, 2006 3:20 pm Reply with quoteBack to top

So I spent way too long figuring out why this was throwing an out of index exception.

Code:

Byte[] messageBytes = new Byte[200];
clientSocket.Receive( messageBytes );

for( int counter = 0; counter < 200 || messageBytes[counter] != '\0'; counter++ )
{
...
}


Kinda funny how such a silly, thoughtless mistake can set you back hours.

_________________
Roses are #FF0000
Violets are #0000FF
All my base
Are belong to you
View user's profileSend private messageSend e-mailAIM Address
Stealthr4v3r
Mother Superior


Joined: 02 May 2003
Posts: 3113
Location: West Chester, PA

PostPosted: Tue Dec 05, 2006 5:30 pm Reply with quoteBack to top

hehe!

on the logic topic, I used the Java XOR operator for the very first time just last week! I had to look it up Razz and I've been doing this for more than 3 years... ah well.
View user's profileSend private messageAIM Address
BrianW
Court Jester


Joined: 02 May 2003
Posts: 7505
Location: Probably an ice rink in Newark

PostPosted: Tue Dec 05, 2006 5:48 pm Reply with quoteBack to top

Stealthr4v3r wrote:
hehe!

on the logic topic, I used the Java XOR operator for the very first time just last week! I had to look it up Razz and I've been doing this for more than 3 years... ah well.


Dare I even ask why?

One of the questions I got during my interviews was "What causes segmentation faults?" So I quoted from the programming commandments, "Do not follow the null pointer, for there lies madness." They said it was the best answer they'd ever heard, and I'm not even a C coder.

_________________
assert "It's going to be okay."; - xkcd.com
Hockey Schedule
View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerICQ Number
Uty
Tang Soo Techie


Joined: 03 May 2003
Posts: 9583
Location: On a never ending quest to save my girlfriend

PostPosted: Wed Dec 06, 2006 9:47 am Reply with quoteBack to top

Were you asked any hard questions? I'm curious since I'll be doing that soonish.

_________________
Roses are #FF0000
Violets are #0000FF
All my base
Are belong to you
View user's profileSend private messageSend e-mailAIM Address
BrianW
Court Jester


Joined: 02 May 2003
Posts: 7505
Location: Probably an ice rink in Newark

PostPosted: Wed Dec 06, 2006 11:15 am Reply with quoteBack to top

I got some database and RMI stuff that I wasn't too sure of. And some things that I'd look up in a book if I really had to know.

_________________
assert "It's going to be okay."; - xkcd.com
Hockey Schedule
View user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerICQ Number
Stealthr4v3r
Mother Superior


Joined: 02 May 2003
Posts: 3113
Location: West Chester, PA

PostPosted: Wed Dec 06, 2006 2:51 pm Reply with quoteBack to top

BrianW wrote:

Dare I even ask why?


so I could make 2 easy to read lines into 1 hard to read line of course! Smile
View user's profileSend private messageAIM Address
Uty
Tang Soo Techie


Joined: 03 May 2003
Posts: 9583
Location: On a never ending quest to save my girlfriend

PostPosted: Wed Dec 06, 2006 3:32 pm Reply with quoteBack to top

You would make a great perl programmer.

_________________
Roses are #FF0000
Violets are #0000FF
All my base
Are belong to you
View user's profileSend private messageSend e-mailAIM Address
Stealthr4v3r
Mother Superior


Joined: 02 May 2003
Posts: 3113
Location: West Chester, PA

PostPosted: Wed Dec 06, 2006 3:35 pm Reply with quoteBack to top

Uty wrote:
You would make a great perl programmer.


Ask the hostmysite people about my scripts Smile
View user's profileSend private messageAIM Address
jeboleth
Slutzilla


Joined: 12 May 2003
Posts: 523

PostPosted: Wed Dec 06, 2006 4:28 pm Reply with quoteBack to top

Funny you mention that. Your name came up at lunch today when Arthur and I were talking about all the apps we run and about who wrote the infrastructure inventory interface.
View user's profileSend private messageSend e-mailAIM Address
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: All times are GMT - 5 Hours