Friday, December 15, 2006

DBase Project -- Grade

Just got my grade for my DBase, project: 108/100
Which tells me the TA was *very* lax in grading. Here are some screenshots(As always, click for full size pictures).

This is of a student logged in:
Notes:
  • The messages, holatest1 and Hitest2, were done by the TA and not me.
  • All of them are titled class report, since I forgot to change the name when I copied classReport.java to make everything else for the student.

Here's another one of the faculty side:


Actually nothing wrong with it by the picture(Except both forms with table are called Class Report)...but it wouldn't calculate student grades always.

Anywho, one funny loop I had was of the form(This was written very late at night, so it's somewhat forgivable):

try{
for(int i = 0; true; i ++)
// DO_STUFF
}
catch(exception e){
// DONE
}

Basically I didn't have an easy way to get the size of a list from the database, so I did an infinite loop and just caught it when it crashed on an out of bounds error, and continued normally. Definitely not the best coding practices :-D

Ohh, and the class names in the lists in the pictures, the ": :" between them is actually used to tokenize it back out and pass it into another function. So if you ever used : : in a class name it would crash and burn.

Also to return multiple values from any function, I just concatenated them all as strings with #><# as a delimiter returned the string and then used Integer.parseInt(part[x]) for any number. So putting #><# in anything would have murdered my program.

By the end of this project my code was making me physically ill to look at it was so bad. I just ran wc -l *.java and found that I had 2442 lines of code, all of pure horribleness.

Just glad to be done with it...back to studying for security now :(

Wednesday, December 06, 2006

Texting Script

Something pretty cool I didn't know is that e-mailing to:
CellPhoneNum@teleflip.com will send a text message to that number.

I made a small script to notify me if the Wii ever comes up again at Amazon(Inserted a picture due to irritating editing by the website, and being too lazy to fix it:
-------------
I shoulnd't need to point out that's not the complete URL for the Amazon Wii page.
-------------

With the script obviously as .scriptName and in it's own directory so it doesn't murder itself or others.

Sometime I'll probably augment it to do something more interesting...maybe like pass on important e-mail or something.

Tuesday, December 05, 2006

DBase Project


Bleh, just posting a screenshot(Click for full image) of my dbase project to postpone working on it for now. It's more-or-less a webct clone, this is from the faculty part, there is a student part too. The GUI is the horribly long part, but I think I'm about done, now to work on more of the Oracle interface. Alot of it is just debug info that's populating everything now, IE glorwell is the faculty member's ID, and classes in the drop down box would be of the form:
ClassName :: Semester :: Year
So for example) CS348 :: Fall :: 2006
And obviously the room in the table wouldn't be the faculty member's ID

Friday, December 01, 2006

Personal Note

I'm going on 26 straight hours of pretty much constant school work without sleep. I'm averaging about a pot of coffee every 3 hours. I did watch an episode of Star Trek TNG last night while I ate...and maybe spent an hour on the computer recreationally. Other than that it has been classes, math homework, security project, and driving...
I noticed I haven't even changed my clothes or showered either, since the previous night(34 hours ago)! Just 3 more hours and I can go home and rest a bit.

(Edit: I ended up being up for a grand total of 40 hrs, from about 7 am till 11 pm the next day)