04
AUG
2008

jQuery > Prototype

Posted by Shane

So today I was doing some surfing online and I noticed someone was talking about jQuery. I was always interested in what jQuery was so I watched the video screencast of them using it first. jQuery is..

…a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML.

After watching the screen cast, I was amazed on how little code was used versus what Prototype would use to do the same thing.

That lead me to the fact that I could use jQuery instead of a massive lines of code I was using to format the module lists (the sidebar boxs) to the right with by adding the “first” and “last” class to the first and last list (LI) elements.

So after a little reading on the jQuery tutorial site I took the plunge. After a few failed attempts I got it working perfectly. It transformed from 40 lines of code using the prototype way to now just 6 lines of code. *shock* (Click here to view the JavaScript file here on the web.)

Just so your clear on the title of this blog, JQuery is far more superier than prototype. With promots me to wonder why one of the plugins I am running is using prototype when jQuery is much better. I might add more jQuery to do more fancy stuff as jQuery has a solid user base.

Mr. Freeman was in a car wreak in Mississippi last night. He is in “ok” shape, though the news media is unsure of how severe his injuries are. There is a report that he lucid. God speed on a speedy recovery!

03
AUG
2008

Spy Awards

Posted by Shane

On a related note to Team Fortress 2 gaming, I checked out my stats today on the server I play on, and I noticed I had gotten every spy award for the day (August 2, 2008) plus points captured. Below is a screen shot of the same link above.

I am l33t Spy

I am l33t Spy

w00t to me!

WordPress and Revisions

Posted by Shane

One of the new features of WordPress is the revision storage. Now I am very used to being a revision nut (Being part of the Battlestar Wiki and all..), but one thing Mediawiki excels on and not WordPress is where the revisions are stored.

Mediawiki has a separate database for all revisions which keeps the regular page table clear. (I like to point out I strongly object to Mediawiki coding style also….) WordPress places them inside the “posts” table and this makes it awfully huge. This post now is like post ID #268 even though there are less than 30 posts, 5 pages, and no more than 10 attachments — so far.

So I just cleared out the revisions by using Andrei Neculau SQL statement and it worked perfectly. However,  the next time you read this should be post #30 #32 as I plan on clearing the database and reloading it so the index is correct. If WordPress makes a separate database just for revisions I might re-enable the feature.

Update: After several tries, the database now reflect the correct index numbers as if revisions never existed in the first place.

I play a game called Dangerous Waters, which is a naval simulation game. You can command a Perry-class frigate, Seawolf-class submarine, or a Russian Akula class submarine. The main object of the game (if you are playing another person) is to hunt them down before they do the same to you.

There is one problem with the game. One of them details with the number of people that play the game. There are not many — even with the game being released on Steam. Another problem with the game is that it hasn’t been updated or even touched by the  makers of the game for years and for now it doesn’t even look like there might be any new versions out there.

I bring this up because there is a huge potential to make a new version of this game in a Massive Multiplayer Online (MMO) game and nothing is being down about it. Wouldn’t this be cool to be in a “sub” or a “ship” and sail around the globe with friends looking for enemy patrols. I been thinking about creating such a game, but I have yet to find a engine that could support under-water rendering. I have tons of ideas on how to do such a game and it be really neat to find people who share my ideas with and write the game together.

For the third time in a row, the privately funded rocket Falcon by SpaceX, has failed to reach orbit. While the launch was fine, the insertion into low-earth orbit failed and had to be blown up 2 minutes and 30 seconds into the flight. Usually I would say that the third time is the charm, but maybe we will see it on the 4th attempt.

The billionaire backer, Elon Musk, of PayPal Fame, has two more rockets left to prove that private space launches are possible. This way there will be no US gap of non-US launches to the ISS during the US Space Shuttle retirement to Orion spacecraft. I wish him the best for the next attempt and God Speed.

02
AUG
2008

Team Fortress 2

Posted by Shane
The Logo for Team Fortress 2

The Logo for Team Fortress 2

One of the games I been playing a lot of is a game by Valve called Team Fortress 2 (Check out their blog here.) This game is one of the most well thought out games and updated game out there. Since Valve uses their Steam software to keep the game up-to-date it also allows them to update the game play itself to everyone who plays it keeping the game fresh.

read more ‘Team Fortress 2