1:18 PM - remote SSH X111 session
i finally got X11 forwarding to work!
Its so easy, i don't know who i didn't get it before.
i finally got X11 forwarding to work!
Its so easy, i don't know who i didn't get it before.
Fucking apache group. They made me go through hoops again to get tomcat upgraded. Its so irritating. Every release something goes wrong. I dread upgrading it. I needed 2.4 spec features or i wouldn't have bothered. Hell its slower so far that 4.1.
JJ is running like crap. I haven't tuned it yet since there is no documenatation on the frickin' commands.
location: Home
Went to the mall and picked up 2 dvd/vhs bookshelf style storage units. Also picked up O'reilly JDBC book, a toslink cable for my cd player/new USB sound device, the expansion pack for starcraft and some jeans.
Caryn got a cover for the comforter and a new winter coat. We had starbucks and bought the christmas blend to take home.
We also went out to lunch at Jimmy Johns. It was rather nice.
No one is using JJ but me now. :(
location: Home
mood: Mellow
I just finished another game of tropico. I gave up with 10 years left. Tourism was starting to pick up, but i couldn't get the construction workers to finish half of my island. How annoying.
Caryn is trying to sleep at the moment.
Its not christmas anymore.
location: Home
I'm working on the comment system. I rewrote the database code and compiled it into a Data access object. I really like this model on the data tier.
Basically I'm creating a class (object) that has four methods...
add()
update()
delete()
view()
Each task is broken up into data access objects that i can reuse. For example, on JJ i have an EntryDAO, CommentDao, EmoticonDao. On kards.com, i started using this model for the new control panel in .NET.
Then to make them easy to write, i have all my database access code in its own class. In .NET i compile the password in and in java its part of the app container. I have a connection pool on JJ.
Normally when i write a function, i pass it each field as an argument.. for example addComment( String subject, String Body, int eid). Instead of that mess, i use Data Transfer Objects.. which are really just classes for each item i want to represent. They have public methods to get and set properties and private variables. I also do input checking at that level.
Well I'm done explaining the background, here's the kewl part.
I'm almost done adding edit comments, spell check comments, delete comments, etc.
My only problem is what they call the "view". Basically a view is what the users sees.. an HTML page (or RSS, XML, WAP) that displays the information in a web applicaition. In java, most people do views in one of two ways... jsp pages OR some proprietary template language. JSP is very limiting in one sense because you can't write a lot of code like in ASP/ASPX. JSP forces you to half render the crap in java classes BEFORE you get to JSP making it shitty for web designers. They get no control. The template languages each have their own pros and cons.. each involves learned multiple languages. Irritiating.
Now i have been using JSP in java and in .NET a combination of HTML, VB and XML/XSLT. I used to use XSLT exclusively on foolishgames.com toward the end of my Win NT run. I hate include files now.
So my problem is that i want to use XSLT to render data tables and what not but also want a simple, good template for jj/foolishgames/kards. How do i fix this?
Every solution means a road block. the new JSP 2.0 spec fixes about half of my bitches about JSP but i have to upgrade tomcat and learn all the new stuff. Using a framework like struts is out because that only solves back end problems. Tapestry is neat but a big learning curve with outdated documentation. I don't like velocity that much.
Basically java lets me have more freedom on the backend but sucks at the presentation level compared to .NET or even ASP.
i've already developed work arounds in .NET like using dll's for DAO and TO objects.. making web services, and other such stuff. Java requires innovation. Its 2 years ahead and 2 years behind at the same time. I'd just use Microsoft stuff if win 2k was SECURE and VIRUS FREE. Its also so expensive to run microsoft stuff. The TCO is more than development in Java costs me.
Basically the speed i get in .NET is lost in price of windows, servers, and SQL licenses. If i ever had to do a project super fast and price was no object microsoft would be the way to go.
My own language got started in XML/XSLT template stuff but i stopped work after hitting limitations on it. I need to run code from it. Some people have used javascript inteperation for this problem. I may resort to that. (server side)
Apple webobjects uses HTML tags like cold fusion and the html is 3.2.. EWWW. If they'd upgrade to XHTML i'd go that route. Their web service stuff looks as nice as microsoft's.
location: Home
Merry Christmas everyone.
Caryn and I went to my families events yesterday in flint. It was something else. Carol was "sick". My aunt came in with an attitude and chilled out eventually. She started to be a bitch about my new computer because it was a Mac. I just said "it has windows 2000 on it too" and she shutup about it. (i have virtual pc)
Everyone was weird this year. My dad's house went better than my grandmothers. I got out of eating the ham! I went veggie recently. :)
My dad bought us Indiana Jones on DVD (the trilogy) and Terminator 3: Rise of the Machines. We have all 3 movies on DVD now. Henry loves Indy.. heck we gave him the middle name jones. (indiana jones first name is Henry or specifically Henry Jones Jr.)
Caryn is playing tropico on her G4 right now. That game rocks.
I feel so tired. We got home at midnight and there was some crappy weather the last 20 miles or so. I 75 was lousy when we started too. Switchng my diet has made me so tired.
location: Home
mood: Lazy
Great i just found 2 bugs in spell check.
It looks like apostrophes in spell check cause the database connection to take a dump until restart of tomcat. Also i noticed that the session variable didn't get cleared with the previous entry after post. Joy. I'll have to force it in the next build.
The apostrophes were espaced which is really odd. I will need to look at the code when i'm awake.
location: Home
mood:
Tired
I just cant seem to get sleep today. How irritating! This is the forth time ive woken up tonight. Caryn woke up for a minute around 1:30 i think.
Its probably the dread of relatives tomorrow.
location: Home
mood:
Tired
I just can't seem to get sleep today. How irritating! This is the forth time i've woke up tonight. Caryn woke up for a minute around 1:30 i think.
Its probably the dread of relatives tomorrow.
mood:
Tired
I have bought 280 songs from apple now. Lately, i've been buying 70s music mostly. Its rather weird.
location: Home
music: Bob Dylan - Knocking on heavens door
I now have an external emagic a26 usb sound device. Basically its a sound card/mixing device that can do 16 bit audio w/ dolby 5.1 OR 24 bit stereo.
It sounds REALLY good. In fact, I like it better than my audigy gamer.
Of course the device is Mac/Windows compatible.
location: Home
mood: Nerdy
I learned some more about the PowerPC chip today. It seems that the PowerPC prior to the G5 had a feature that allowed it to switch between endian modes IN the processor 5 times faster than doing it in memory with bit shifts.
I also found out that the Altivec Instructions fixed the biggest flaw with the PowerPC. It seems the G3 and lower were very slow when converting between integer and float.. so if you cast an int as a float in your code like this
float y;
int x;
y = (float)x;
it would really slow down the app. Altivec has instructions for doing this really quick.
The reason its slow on G3 is because the floating point and integer stuff is seperate in the chip (RISC) and had to go between memory to function on the chip.
location: Home
mood: Nerdy
My asteriods clone has undergone some new improvements. I'm trying to make it visually more interesting. I learned several new opengl commands and the basics are getting more clear.
In opengl the center point is (0,0,0). You position yourself with a translate function to a point.. and then all calls are relative to that point.
To draw stuff, you pick a mode.. point, triangle, etc and then draw the point(s) needed for that mode in between begin/end statements. If you are drawing a multipoint object, you can do blending by changing the color of each point and it will do it for you.
For 2d games, you can do a layer for each type of object.. background, forground objects, etc. There is also a function to do 2d stuff all on the same layer, but collision detection is easier on different levels.
Eventually i'll stop hacking trek and switch to my own game from scratch. I got some Objective C sample code today.. i could write a totally macintosh game.
location: Home
mood: Nerdy
I went to the funeral home today. Ran into Ila and my aunt cheri there. we chatted for a bit and then went to my moms. the trip took awhile.
I told my mom that i went vegitarian. I guess its totally happened.
location: Home
Caryn and I have been playing tropico. Its a kewl game. Much harder than i thought. AOE2 Gold for mac was also given to me by caryn's parents. :)
location: Home
Hmm.. rob has an odd journal entry about wanting to be like hitler. I couldn't resist commenting on that one.
You can view the content at:
livejournal user: nigmatech.
location: Home
I just downloaded the latest UPS sample code for rates. Its rather vague.
Dinner was rather lame. Caryn should be home from work soon. I'm having trouble with DNS tonight.
I just changed the DNS settings on my laptop. Hope it helps.
I played RTCW for awhile.. i wanted to upgrade tomcat to 5.x but i can't resolve apache.org.
location: Home
http://www.foolishgames.com/next2.htm
Its not finished, but thats very close to what i am thinking.
The images are large, and i need to try to make them smaller downloads. Save as web.. doesn't work in photoshop for some reason. Imageready is messed up too.
location: Home
mood:
Tired
I'm taking a break listening to itunes and surfing around. Its a nice change
location: Home
mood: Indifferent
music: CCR - I heard it through the grape vine.
I just changed a bunch of sql statements to make them perform better. Hopefully it will help a bit. I also found several problems with componets not cleaning up properly. That should be fixed.
90 percent of the class files were updated.
location: Home
mood: Okay