Archive for October, 2005

Oct 31 2005

Episode III DVD complaint

Published by dave under General

I haven’t bought it yet, but I read something about it that disturbed me…

Did anybody, when watching the end of the episode 3, where they started setting up the subplots for the original trilogy, think to themselves, “hey, what happened to yoda arriving on dagobah?” If you think about it, his ending is one of the saddest. Everyone else sort of ends up with a family. Leia w/ the Organas, Luke w/ Uncle Owen and Aunt Beru, Obi-wan not too far. But Yoda, Great Jedi Master of reknown, lands by himself, on a lonesome swamp planet, to do nothing but be by himself until maybe another came back to be trained in the Force.

Well, it turns out that they did shoot his landing on Dagobah, but cut it out! Leaving him with no recognition at the end of the original trilogy except for a “Deleted Scene” on the DVD. Yoda got shafted!

Anyways, to geek out thoroughly, I was reading the review on Amazon.com and came across the Jedi code:

“There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.”

In contrast, here is the code of the Sith:

“Peace is a lie, there is only passion.
Through passion I gain strength.
Through strength I gain power.
Through power I gain victory.
Through victory my chains are broken.
The Force shall set me free.”

actually, there is another:

There is no fear, there is power.
There is no death, there is immortality.
There is no weakness, there is the Dark Side.
I am the Heart of Darkness.
I know no fear,
But rather I instill it in my enemies.
I am the destroyer of worlds.
I know the power of the Dark Side.
I am the fire of hate.
All the Universe bows before me.
I pledge myself to the Darkness.
For I have found true life,
In the death of the light.

No responses yet

Oct 29 2005

How things have changed…

Published by dave under General

Let’s just set expectactions right out of the box and make it clear that this isn’t a sentimental/emotional post. Although, it is sad in a way.

But I just spent ~$850 for a new comp.

The specs are as follows:
Antec Sonata II Case with 450 W Power Supply
EPoX EP-9NPA+Ultra NForce4 Ultra Socket 939 Motherboard
connect3D 3038 Radeon X800GTO 256M
AMD 64 Venice 3500+ Socket 939
1 GB Corsair 2×512 PC3200 Value CL 2.5
Hitatchi SATA2 160 GB 8MB Buffer
NEC 16X DVD+/-RW Black

This is effectively the Mid-Range Buyer’s system put forth by Anandtech earlier this/last month, with the CPU downgraded slightly, hard drive capacity downgraded from 250 GB to 160 GB and the video card upgraded a lot (and a lot more than i wanted to, but anything in between didn’t really seem worth it).

But anyways, why is this sad? Because I almost regret having to have to buy it! A couple of years ago, I would have jumped on the opportunity for an excuse to buy a new computer. But now, even with this one sputtering, randomly rebooting at least twice a day, I was hoping I could hold out.

It’s time though. This mish-mash of hardware has been running for 5+ years, is running on a refurb hard drive to replace the original that crashed, and is going only on the RAM I bought to upgrade the machine about 6 months ago, since the original two sticks appear to be fried. It’s lived a good life and it’s time to go…

No responses yet

Oct 16 2005

switched to fedora

Published by dave under General, geek

with the imminent end of my machine’s life as a windows box, i’ve switched over to fedora. for the most part, things are working swimmingly, but i have a laundry list of questions that i’m trying to find documentation on:
1. how to modify your buddy list’s font size in gaim. i’ve tried updating .gtkrc, but doesn’t seem to do the trick.
2. how to set up the vpn tunnel to my work network.
3. other stuff that i haven’t run into yet. eventually i will put a significant amount of work into prettying things up and a lot of questions will probably originate from that.

I’m moving this into the fedora page.

No responses yet

Oct 09 2005

media weekend

Published by dave under General, geek

i had a random spending binge this weekend and bought 11 dvds and 3 books. i blame this partially on the fact that there were a lot of $7.49, $9.99, and 2 for $20 dvd deals this weekend that i was interested in.

that, and the fact that i was forced to step foot out of the house to go to work on saturday - thus creating opportunities for me to plan trips to circuit city on the way there and best buy on the way home.

and additionally, the fact that i was looking at a sunday ad that was delivered on saturday, and thus, when i went to circuit city on saturday and found that their dvds weren’t priced right, i went ahead and bought three dvds and then went back again sunday to get the ones i wanted at $9.99.

it started friday w/ 3 books:
the game - neil strauss
a history of god - karen armstrong
slaughterhouse-five - kurt vonnegut

saturday, seven dvds:
forrest gump
kinsey
love actually
hero
the italian job
i, robot
dodgeball

and then today, four more dvds:
closer
spiderman 2
star wars: clone wars volume 1 (the cartoon network series)
the aviator

i’ve also been busy trying to keep my computer alive. it’s such a sad situation. my computer, which i built a ways back in 2000, has been slowly dying. it started with me having to power it on twice before it started… then three times… then maybe four or five… and finally to the point where i didn’t count… i would just sit there turning it off and on until it completed the boot cycle. it seriously would take in the area of 5 minutes just to get the computer to start the OS load/boot process.

then… it would just start dying. i would leave it on during the day, but when i came and used it for a while, it would just randomly restart. once it restarted, it was pretty hopeless. it was guaranteed that within a minute or two of use, it would just restart again. this was especially painful since it started doing this one night when i came home to get on a 9:30pm conference call for which i needed some spreadsheets. i finally gave up and used my laptop.

then finally yesterday, in addition to randomly rebooting… it just plain wouldn’t start, even after windows loaded. basically, the windows xp startup screen would come up, the mouse cursor would appear on the screen as it does right before your background comes on… and then, nothing. it would just hang.

since i just replaced the power supply last month, i ruled that out as a problem. then thanks to sri’s suggestions, i first verified that the cpu wasn’t just overheating. so i opened up the case - no luck. then i unscrewed the fan off the heat sink and cleaned out some of the dust - no luck. next thing he suggested was the RAM. i took out all the DIMMs except for the one that i most recently installed… that seemed to work. it ran steady for the rest of the evening. i also tried to re-install the old DIMMs, one at a time, in order to determine which one, or if both, were bad. both sticks brought up the BSOD… so i decided to leave them out for the time being.

then, the next day, when i started it up, it started fine on the first try. for now, i’m willing to call the RAM the root cause of the issue. either way, i’m backing up this data now and have decided to convert this to a linux box. i’m going to start using my laptop as my main comp. it’s more powerful than this old (but faithful) box anyways…

No responses yet

Oct 02 2005

At last, some movement

Published by dave under General, geek

for a while now i’ve been trying to get myself to make some code changes in the gallery viewing script. as it was, when you opened up a picture, it would just display the image on a new page and you’d have to hit “back” on your browser to get back to the gallery page.

after gaining some experience with DHTML/CSS, i’ve made it now so that when you open up a picture, it just opens in a floating frame (div, technically) that you can drag around and close (just click it) at your leisure.

you can check it out in the vegas pictures that i posted from our trip to vegas last week vegas pictures. don’t expect anything too exciting though. there was actually no alcohol involved whatsoever this last weekend.

anyhow, doing this actually took a lot longer than i expected. there were two main hurdles:
1. figuring out what the behavior should be when you attempt to drag the image outside of the window
2. in most browsers, when you click on an image and attempt to drag it, it assumes you’re trying to save it to another folder or open it in a new window. this is bad because the event handlers (unless you’re using the ondrag event handler supported only by IE) do not fire during this drag.

problem 1, it looks like it’s a limitation for almost all web apps. the two options are (1) disable the drag once the cursor leaves the window or (2) allow the drag to continue when the cursor leaves the window - however, if the mouse button is released outside of the window, that event will not be detected, and thus, the picture will continue to follow the cursor when the cursor comes back into the window.

I ended up going with option (1) since for the most part, if you’re dragging a picture and you leave the window, it’s most likely on accident, and it would be annoying to have to re-select the picture to start the drag again. and even if you do leave the pane, you’re probably not going to release the mouse button if you’re trying to drag something.

the second problem was more irritating. i had what i thought was a fairly cleverly devised solution in firefox, where i would place another div on top of the div (let’s call it the “drag div”) containing the image. this would effectively prevent the event from ever hitting the image, thus preventing the application-initiated drag function. the problem is, when i tried this in IE, this was a problem because since the “drag div” had no background, events aren’t captured by it).

okay, so i went ahead and applied a background of transparent gifs. then the problem was, you could no longer right-click and save the image. and also, this was just a really ugly thing to do.

finally, after much pain, i found the information i needed. there is a way to disable application initiated actions for DOM events. of course, there are two ways of doing it, one for IE, and one for everyone else, but in the end, it comes down to this:

function preventDefaultEventAction(e) {
  e.returnValue = false;
  if(e.preventDefault) e.preventDefault();
}

whenever a DOM event is received, in IE, you can prevent the default action for that event by setting e.returnValue = false. And in everything else, you can all the preventDefault() method. I just wrapped it up in a function call to try and keep things clean. But anyways, this worked out wonderfully and it obliviated the need for having two divs to move around one picture, and the performance is pretty good.

there are still a couple of features to implement:
1. the event handlers aren’t assigned until the entire body is loaded, and this takes a while. this means you can open up the picture in the image display, but won’t be able to drag it/close it until all the images in a gallery have finished loading. i’ll have to fix it somehow. probably just move the onload statement into the image display div. even more importantly, in IE, it appears to prevent the page from loading (impairs functionality) - fixed.

1b. maybe print a “Loading” message in the display window until all images are loaded? otherwise, you can’t move the div around until the page has finished loading. I think another option might be to create the div node in the javascript so that the init() function doesn’t have to be tied to the onload statement.

2. if you close the image display, and then re-open it by opening a new picture, it opens where it was last. this is a problem if you open a picture at the top of the page, and then scroll down and open a picture at the bottom of the gallery. the image display will still re-appear at the top, which might be off the screen. i’ll have to change it so that if the box is off the screen, make sure it appears somewhere within the current view (practical, low-hanging fruit)

3. add captions to the image display (low-hanging fruit).

4. add prev/next links to the display (feature)

5. add image cross-fading functionality, make sure it’s optional. (totally frivolous feature and might kill some CPUs).

it would also be cool if i could get images to fade into each other during the transition, but that may be a bit ambitious… i’ll have to check and see what css has on that for me.

No responses yet