Sun, 28 Sep 2003

10:14 AM - AHHHH

I've been trying to figure out a bug for 4 days now, and I can't believe how stupid it was..

Damn MICROSOFT PRODUCTS. I wrote this damn handling rate update/view page and it used a data transfer object between a DAO and the .NET gui page. No problem right... well every time i updated the value it trunicated everything after the decimal point.

For example, the regular value is 1.50. If i tried to change it to 1.60, it would return 1. If i changed it to 2.5 it would return 2.

Now I figured it was the conversion of the decimal variable to a string to store it. See it has to go into a sql server table that contains a varchar 50 field as its the params table. It doesn't make sense to create a whole table to store 1 decimal.

I was using stored procedures to do the update and views. Guess what the damn stored proc looked like this:

CREATE PROC handling_rate_u
@rate varchar

...

well @rate varchar translates to 1 character instead of just saying its the character data type.. HOW IRRITATING. With other data types, you can just say int... not int 4 or some shit like that.

Sure from a C standpoint its a DUH.. i should have known that. I guess i expect a database server to be a few levels away from obvious ARRAYS of a fixed size.

(technicall malloc'd i'm sure)

What bullshit.

so i fixed it by changing it to
VARCHAR(50)
i could make it smaller being a decimal, but screw it.. it works.

location: Home
mood: Bitchy

()

Sat, 27 Sep 2003

9:32 AM - new java framework

I've been playing around with several frameworks trying to pick one. I finally found one that allows you to use XSLT extensively for presentation. Its such a fit for me. I'm going to implement it on JJ very soon. I also plan on doing something drastic with foolishgames.com.

location: Home
mood: Hungry

()

Fri, 26 Sep 2003

6:01 PM - Eww Cleaning...

I just spent a solid hour cleaning the apartment. Sadly it still looks like crap. 15 of that was spent on the cats water bowl.. poor kitties.

Caryn should be home from work soon. I'll have to tell her that her mom called.

File sharing services suck now, i tried to use one earlier but there wasn't anything. I won't download any audio tracks on them anyway.. that lawsuit crap is BS. Hell i've bought 150 songs on the apple music service anyway. MP4 audio sounds so much better than MP3 anyway. You should hear the difference when i encode cds in mp4 vs mp3. I tried it out on 0304 by jewel and it was very noticable. For one thing, there is BASS. The balance of frequencies is much better. Linux people use OGG format.. my only problem with that is lack of decent players. I went through the underground movement crap with MP3 and look what happened there.. it sucks now. I'll just deal with good old compression stuff. Now if i was a musician, I might consider ogg format.. but i'd probably try to keep everything in a wav or aiff format for quality reasons.

I turned in my c++ lab assignment tonight. The values worked with what she gave us in class. I'm hoping that it will be right. i just didn't feel like debugging it any more than that.. hell i'd like to use functions! We haven't "learned" that yet. It sucks. I hate when they won't let you use a language feature till its taught.. you have to try to remember what they taught you so you don't go beyond that.

Just journal is starting to look better now. I actually feel like its coming along.. i still don't like the header though.. all well.

I need to finish the damn preferences.. i hate making them.. its like a control panel.. nothing fun in that repetition. Maybe i will grow to have more patience in it in the future.

Its 80 degrees in the apartment. i opened the window. Three computers were on plus we are on the third floor.

location: Home
mood: Blah

()

Thu, 25 Sep 2003

6:54 PM - too many moods!

I've been adding moods to JJ for half the day now. I have over 120 moods now. I probably have at least 30 more to add. think i need to increase the data type size for the id field at this point.

location: Home
mood: Tired Tired

()

9:42 AM - lab...

I haven't gone to classes since tuesday.. aside from my cs lab today. I got a terrible coughing spell in the lab. It sucked. I had to leave class for 10 minutes to get it under control. Hell I had a Halls drop fly out of my mouth and peg the wall in the bathroom. Gross, but it explains my day.

Western had a engineering job fair going on, but I didn't look the part to take advantage of it. I got a chance to look at half the booths, and none of them were looking for CS majors. (well maybe the army guy was, but why?)

location: Home

()

Wed, 24 Sep 2003

7:37 AM - First Web Browser...

The first web browser was written for the Next operating system... Think Different!

location: Home

()

Sat, 20 Sep 2003

11:24 AM - journal bug?

I noticed the update journal command isn't working right if i'm not logged in.. i'll have to look at that later.. seems to be netscape specific.

i lost my previous entry as a result...

location: Home
mood: Accepted

()

Thu, 18 Sep 2003

6:08 PM - i feel like shit

I am sick.. this sucks. i hate colds.

location: Home
mood: Annoyed

()

6:03 PM - security advisory crap

There have been so many problems over the last few days.. i'm still waiting on the sendmail patch in ports. According to cvsweb they patched it five hours ago but cvsup12.us.freebsd.org is not updated. I'm going to try the main cvsup server.

I did rebuild the OS today to fix the open ssh crap.. and get a few patches/ bug fixes.

ncftp3 is crashing like a microsoft product though.. damn it.

6 updates TODAY for linux on my desktop.. that makes 8 this week not counting the initial packages.

location: Home
mood: Annoyed

()

6:42 AM - Waiting...

I'm waiting for my C++ lab to start...

I'm download the new ports on the server right now. I have so much to update with the recent vulnerabilites and such... at least it isn't everyday like windows boxes.

location: Home
mood: Tired Tired

()

Tue, 16 Sep 2003

11:26 AM - So tired...

I am so tired.. i think i could sleep for a month. I've got so much left to do today.

Caryn got her Maple 9 disk today. (she bought maple for one of her classes)

Maple is a Math program for those not in the know.

I am going to try to play enemy territory for a little bit. I have the laundry and dishes running so i can take a break.

location: Home
mood: Accomplished

()

Mon, 15 Sep 2003

6:57 PM - AHHHH

I hate ece250.. digital logic. I'm taking a break from it.. i feel dumber after trying to do it. it sucks.

I find myself logged into redhat linux. I think I might try to get this on my mom's computer so she can't get windows spyware anymore. I'm tired of that crap. She could use linux.. well at least as well as windows me.

my fucking ece class is getting on my nerves. This damn circuit design stuff is NOT ME. What a pain in the ass. Its like this.. he gives us a list of circuits diagrams and ICCs. We are supposed to know what an AND4 is and how to build one with a NAND4 + an inverter.. hell i didn't know what an inverter was last week.

Sure it sounds easy, but figure this out.. there are 3 inputs to a 4 input device.. plus either ground or VCC. Now how do i build an AND3 ? I have no idea. It just sucks.

Once i get through drawing these things i have to figure out the boolean logic to them and then simplify it and draw/design another series of compatible circuits. Mind you this is for PRE LAB. Come on.. now each of these on seperate problems for homework would not piss me off, but if i didn't do the first part write my entire pre lab is fucked up. Is that right? I think not.

God, i'm using linux.

what next?

location: Home
mood: Angry Angry

()

6:38 AM - calendar

I finally got the calendar code working on this site last night. Woo HOO!

Its only taken me how many months? that link has been sitting there for so long.

Development time in java is much slower than microsoft technologies, but much faster once its up. This site is flying.

I plan on switching over to a more OO design soon which means major code reuse. For example, the friends, entries and calendar day views all use similar code to display journal entries.. those can be consolidated. I just havent' had the time.

I'm working on a gui component design that uses beans with special rendering methods. The calendar year view was the first code to take advantage of my ideas. I learned a lot from that experience. Its quite peppy cosidering its several objects.. in fact its an arraylist of several objects. (thats not a regular array btw)

I plan on implementing a new system soon to fix all the shortcommings in this design. I want this site ready for a community by 2004. We shall see. If not, at least i have an awesome private journal site.

Movable type sucks.

location: Home

()

Sun, 14 Sep 2003

10:19 AM - Linux, IRC, ET and other stuff

Last night, I installed Redhat 9 on my pc. (dual boot w/ xp) It took over my pc network.. the port turned off on my router. Very odd. Anyway, linux is working suprisingly well consider its linux. The audigy and radeon 9000 were detected right away. I got enemy territory working on it quite nice.. its fast!

I am trying to find an IRC client for my mac. I used to like mIRC quite a bit, but of course thats windows based. I tried the OSX reincarnation of ircle but i hate it. I used to use it at USOL on OS 8.1. All well. I also tried an app written in real basic but it locked up on the channel listing on Undernet. (thats a good test btw)

Now, I am compiling BitchX on my mac. THe configure script takes a while!

I'm also happy to report that dippy scans of my server have declined after I did some "research" on the attackers system. Here is a tip.. its NOT LINUX OR WINDOWS. Don't be stupid people!

I hate windows servers. THey suck. I'm a BSD person now. Everyone get over it!

I do administer a windows server, but I don't like it. My website IS NOT ON IT.

location: Home
mood: Amused
music: Jewel - Fragile Heart

()

Thu, 11 Sep 2003

12:18 AM - CS111 Lab and Linux

I had to use Redhat 9 today. I was rather suprised. The gui was very nice.. i liked it better than XP actually. It reminded me of a shitty version of Mac OS X! I think it was the workstation version which costs 150 per seat. What a pain in the ass.. microsoft type pricing.

Redhat is the microsoft of the linux world!

I must say though that it impressed me, and if they get the speed issues fixed it would be a good pc os, second to Mac OS X. I think FreeBSD will catch up though.

Redhat did have a nicer gui than Sun and SGI though. Nice improvement. It looks like they are using some of the KDE stuff, but i'm not positive on that. I suspect an opengl accelerated driver would make it rock. Well if linux can do that like freebsd, it would.

At least linux would support my fucking sound card. FreeBSD does not! (its an audigy)

If i didn't have requirements for .NET, i'd probably switch to linux with wine actually. I could play enemy territory on linux.

I think i'd prefere a new Macintosh with virtual pc though. (no ET, but i'd have a new Mac to game on) I'd like to get a powerbook with 10.3 panther on it. Wireless of course!

Anyway the lab went fine, aside from being a bit bored. I connected to my server with ssh and surfed with lynx. :)

Lynx actually supports iframe, and image maps btw. (seperate link)

I'm such a Unix geek lol!

location: Home

()

12:16 AM - jj fix

I corrected the issue with comments today. Stupid thing was crashing cause i forgot to upload a new copy of addcomments.class... lol. Thats a java file for those of you who are programming illiterate. You know i really need a spell checker on this thing.

location: Home
mood: Amused

()

12:06 AM - fixed pasv mode ftp

i finally fixed passive mode ftp. I haven't been able to use it since i installed the firewall on the server. Turns out that there is a valid range of ports that pasv uses. Shitty ftp servers use all of them above 1024, but only 49152-65534 can be used according to the registration with IANA.

I added a rule to allow this traffic. I am not sure if i need to tighten it or not.. we shall see. I decided to allow inbound and outbound on those ports. Nothing runs that high anyway unless someone were able to compromise the box and start a process on one of those ports. It really sucks that i have to leave them open. Theoretically though if someone could run an app as root they could do the same thing on the ftp data ports cause its usually not bound unless in use.

Of course, unpriveledged users can run stuff on ports above 1024.

Most server programs on my box don't run as root anyway. For example, apache, mysql, and bind do NOT run as root. They give up privledges and run as unique users. I don't pull a fred and run everything as nobody... that would be foolish. If i get time soon, i'm going to chroot most of that stuff anyway. Sendmail, imap, and ftp i can't do anything about (unless i changed products). I could chroot the ftp space, but then apache would still need to access it. Maybe i could do a double chroot??? ftp inside of apache? ftp is more likely to get hit anyway. I'll think that over. I need to change the filesystem layout for all the web crap soon anyway.. i could make it a lot more secure than it is... its just a lot more work when i deploy.

Rob used to leave everybody permissions in NT. Now that was funny. He was just too lazy to figure out what files needed. Hell authenicated users would have been slightly safer.. but that was a 2k thing I think. Maybe that permissions upgrade thing for NT4 did it to? its been to long.

location: Home
mood: Amused

()

Tue, 9 Sep 2003

12:16 AM - this and that

I finally figured out the PERT/critical path analasis stuff in my discrete book. I feel dumb now. It just clicked...

I'm getting the same answers as the book now.. i had trouble understanding the books diagrams.. mine were fine.

Doing laundry how fun...

Today is our wedding anniversary. Its been 3 years today. Caryn should get home in a few hours.. then we are off to dinner.

I had a lab today in ece today.. ewe. Circuit design stuff is so dull to me. Its like shitty programming, aka Perl. I think i need to allocate more time to that class now. I wish i could malloc my brain sometimes! Wouldn't it be nice to store school crap in an easy to search array.. just allocate more and put a pointer to it for each class your taking.. just a thought.

btw malloc is a function (or macro?) that allocates memory in C "dynamically." For example, lets say you have 200 characters you want to store for some reason.. say an address field on a form, you could simply do this.. malloc( 200 * sizeof(char) ). That would allocate 200 bytes of ram to your storage area. You can then address it similar to an array. You must use the sizeof part because everything is a different size.. integers, characters, floating point numbers, etc. Not everything uses only one byte. In fact, if it was unicode it would use two!

Back to work...

location: Home
mood: Accomplished

()

Sun, 7 Sep 2003

5:28 PM - jj patch

I just fixed a bug with RSS content.. i forgot to fix the ampersand issue. Now if i could only port foolishgames.com to java to fix it there...

location: Home
mood: Accepted

()

5:00 PM - Fun security stuff

I beefed up security on the server today. I now have daily antivirus updates, plus a new trojan scanner. In addition, i fixed the problems with my firewall setup.. although i don't allow icmp for now. I also found a way to save the state of the firewall setup finally. I can load it in manually now and will setup an automated loader in my rc.firewall file later.

Some of you might not know what an rc.firewall file is.. lol.

OH AND ROB I AM NOT RUNNING WINDOWS ON THE SERVER.

See p0f caught traffic from an ip matching s2z.com.. interesting eh?

The traffic was aimed at microsoft networking ports.. you know 135-139.

I'm actually looking into snort now.. its an IDS.

I've been running tripwire for months already.

location: Home

()