header

Marcus visits April 19

My brother Marcus visits for some pre-wedding bliss on April 19th. While he’s here, his schedule is as follows (as far as I can tell):
Wednesday: picked up from airport, dinner at Aunt Barb’s, sleep at Uncle Barry’s.
Thursday: goes to Bagby with Uncle Barry, sleep at Ray’s.
Friday: dinner at Uncle Bob’s, sleep at Bob’s.
Saturday: day with Ray, bachelor party, etc., sleep at Ray’s.
Sunday: church with Ray, dinner at Aunt Brenda’s, sleep at ?.
Monday: government camp and timberline with Uncle Bob and Uncle Barry, dinner at Uncle Bruce’s, sleep at Uncle Bruce’s.
Tuesday: Bruce takes to airport.

I have lots of school work to do on Wednesday, and I won’t be finished until about 8 p.m. I also have a test Friday. The next week for me is “dead week” (the week before finals), which means that I would be pretty busy…

Since I took work off during these days, I should only be gone at the following times for school related appointments:
Wednesday until 8pm
Thursday until 5pm
Friday until 1:30pm
Monday until 1:30pm

But the above seems to not conflict. We’ll see when the time comes ;)

Comments (0)

Error for Cross Domain AJAX

I was running into an issue at my work. When I clicked a certain link that was supposed to activate an AJAX portion of the site, in Firefox it wouldn’t work and in IE I would get:

This page is accessing information that is not under its control. This is a security risk. Do you want to continue?

The problem was caused by doing an http.open on a domain that was other than that which the script was being run. This wasn’t my intention, so to avoid this issue, I added some server-side host checking, and inserted it into the javascript where necessary:

function getSite(){
var host=<?php echo "'http://".$_SERVER["HTTP_HOST"]."'"; ?>;
if(host != 'http://host1'){
host+='/subdir';
}
return host;
}

I’m sure there’s an easier way, but this worked for me to utilize a “public” and “private” copy of this script without manually editing that value.

Comments (0)

Nested SQL / Incrementing Counter

I stumbled upon some SQL work I’ve done in the past that will increment a counter in a MySQL table. The table has (for instance) a primary key “ID” and a counter “count”. The SQL statement to increment count, given an ID is as follows:
UPDATE table SET count= ( SELECT count )+1 WHERE ID = 4 LIMIT 1

I’ve looked for this in the past and have been unable to find it, so hopefully it helps some others.

It works great on MySQL 4.*

If you don’t have this, you have to do two queries, one to pull the value, one to update with the incremented value. Since that is a hassle and ugly as can be, this is much more preferable.

Comments (1)

Havoc Command Prototype Released

I present to you, Havoc Command. Havoc Command Demo is a 2D turn based strategy game for PC with voiced actors and an enticing storyline ;) .

As the Senior Design projects of four Computer Science majors at University of Portland Ray Dehler, Brandon Moreno, Tom Watson and Will Supinski, the project uses LibSDL and C++ using MS Visual Studio 2003.

This project includes three levels, many dialog scenes, four playable classes, four playable unit types, and endless possibilities! We worked on this project over 500 combined hours, and the project has well over 10,000 lines of source code.

Additional contributions:
Music: Kessa Kagi
Artwork: Kara White, Will Supinski, Anna Supinski
Voices: Brandon Moreno, Dustin Thomas, Kelly Brown, Nicole Lesage, Kyle Rene, Kelly Brown, Andrew Baldavin, Eric Paugh, Ray Dehler
Script: Will Supinski

Feel free to download the Beta/Prototype and let us know of any bugs you find, and what you think of our game in general. We’re not sure how we’re going to proceed on this project after our Senior Design is finished. < ?php showfile("HavocCommand.zip"); ?> If you download and play the game, you agree to not use any of the media included with Havoc Command, except for during gameplay. All images, audio and music is copyright © 2006 Havoc Command, and is the sole property of the respective owners. They are not to be reused without explicit permission.

Revision 1 Apr 8, 2006, 2:30 PM PST:
Thanks for Brandon’s bug report, the maps have been fixed and the download is updated.

Revision 2 Apr 10, 2006, 2:45 PM PST:
Thanks to Dan, Marcos, and others, the “smear”, “ghosting”, “goo”, whatever you want to call it has been temporarily resolved. For some reason this shows up for us as a side effect of compiling our Sprite class using “Maximize Speed /O2″, which is the default for Release Configuration in Visual C++ 7. The problem does not occur when compiling it with our debug configuration, which uses “Disabled /Od”. (This is also why we didn’t spot the problem at first.) Thanks to Josh and Dr. Lillevik, the missing DLL should now be resolved. The download is updated.

Update 3 Apr 25, 2006, 2:25 PM PST:
Not to gloat (a month late anyway), but we were voted #1 project for University of Portland senior design class. We’re honored that our hard work has been rewarded.

Comments (19)

Viewsonic VA902b 19inch LCD Review

I purchased a Viewsonic VA902b 19inch Flat Panel LCD Monitor on March 13, 2006. Here is my review.

Introduction
Let me preface this review by saying I’ve never owned an LCD, nor have I ever owned a 19″ display. I went after this display for a couple of reasons:

  • I’ve owned Viewsonic displays in the past and have been very happy with them.
  • The price of $160 (after rebates and coupons) was very right
  • Comments suggested the refresh was fast enough for no ghosting in video games

Thus far it has surpassed my expectations for being a “cheap” display.

I set my resolution at 1280×1024 @ 60Hz, which is the native resolution.

Technical Specifications

19″ color TFT active matrix SXGA LCD
Display Area: 14.8″ horizontal x 11.9″ vertical; 19.0″ diagonal
Native Resolution: 1280×1024
Contrast Ratio: 550:1 (typ)
Viewing Angle: 160° horizontal, 160° vertical @ contrast ratio > 5:1
Response Time: 8ms (typ)
Brightness: 270 cd/m2 (typ)
Light Source: Long life, 50,000 hrs. (typ)
Panel Surface: Anti-glare
Analog RGB Analog (75 ohms, 0.7p)
Frequency Fh: 30~82kHz, Fv: 50~85Hz
Sync H/V Separated (TTL)
VGA up to 1280×1024 non-interlaced
Dimensions 414mm x 407mm x 219mm (16.3″ x 16.0″ x 8.6″)
Three-year limited warranty on parts, labor and backlight

Gaming
School has been busy, but I was able to test a couple games on this display.

Warcraft 3:
This game performed perfectly, with seemingly less eye strain than on my previous 17″ Viewsonic CRT. Of course, that could be from my new glasses

Battlefield 2:
Played by my friend, all I could extract from him was “it looks good.”

Of course, I plan to test this more as time allows…

My Personal Thoughts and Opinions
Even though I’ve never owned an LCD, or even a CRT over 17″, I’ve used many. At my work I have a 4×19″ LCD system setup, Kessa uses a 19″ CRT, and Robin uses a 15″ LCD… and of course my 12″ laptop LCD.

The idea was to move to LCDs in order to reduce heat and electricity usage. Since the power outages we had at New Years, I’ve been looking for moderately priced (good quality) LCDs to do this. The first one was located :) .

Pictures:
How could I have a review with pictures? Click on each for a larger image, or see the album.


That’s one big display, dog.

Quite stylish.

Wow, that’s THIN! And so is the display… :) . Nice expression, too.

Welcome to your new home, VA902b.

“it looks good”.

Overall I would rate this screen a 10/10. I’ve yet to see a flaw, and quite a buy!

Comments (0)


blogtimes