archive: August 2008

09
AUG
2008

Bernie Mac … RIP brother!

Posted by Shane

When I checked the news this morning, I noticed comic actor Bernie Mac has passed away! This is an unfortunate event for such a great person, who I respected as a comic and an actor. Here is a tidbit from CNN:

Comic actor Bernie Mac died early Saturday of complications from pneumonia, according to a family member and his publicist. He was 50.  Bernie Mac, 50, had been hospitalized in his hometown, Chicago, with pneumonia. He had been hospitalized in Chicago, Illinois, for more than a week with the lung infection.

08
AUG
2008

A car that gets 106mpg

Posted by Shane

I was reading the technology news this morning and there was an article on a car that could go over 100 miles on one gallon of gas. The trick? It would used compressed air along with gas to power some of the same engine components.

According to the article on CNN it can still hold 6 passengers, top 90mph, and meet all US highway safety standards. The catch. The car does not exist yet and is in prototype mode only. It will be at the Automotive X Prize later next year, so if it does well we might see it on the streets by 2010. That’s a year and half away folks.

Tonight is the official start of the Summer 2008 Olympics in Beijing. It will be very interesting to see how everyone does with the poor air quality. I still think the US will dominate the medal count. However, we will not know until the first medal events happen at the games.

One of the first of special headers are now displayed! Good luck to all athletes! You are already winners!

06
AUG
2008

About 5 days after the prime suspect, Bruce Ivans, killed himself before he was about to be indicated on 5 counts of murder charges and other crimes in relation to the anthrax attacks of September 2001 and October 2001, the Feds have unsealed about 98% of all related documents to the investigation. I am just going over the information now which should be an interesting way in how our legal system works and how the case progressed through the 7 years of investigations.

There is a ton of information to read. I must say that each of the search warrant affidavits were very well prepared. Goto the U.S. Department of Justice website to read all the information.

05
AUG
2008

Since this design have been evolving, I wanted a Live Comment Preview so you, the reader, would see the comment show up as you typed it. Now there was a number of plugins that did this. I downloaded and uploaded this one and even after I edited the PHP to format the code correctly, even to use Gravatar, I stepped back just for a moment. I just learned jQuery so there got to be a way to do it. Just as quickly as I had uploaded, I deleted it off the system.

So I did some searching and I found this post on the subject. The idea and concept on the post was good, however it lacked a few things that I required. One of them was formatting the preview to what your “comments” would look like when they were posted and when you removed all the content from the “comment” area the Live Preview stuff was still showing; the live comment area should be removed if we are not entering a comment.

For me, that just doesn’t work. So I went ahead and created by own style and built it in directly to my theme. After a number of tries I came up with code that works out perfectly where it has my formatting in place and also disappears if there is no comment.

Anyway, another win for jQuery (2 – 0, Prototyping) and one more section knocked off the “to-do” list for this theme.

NYY goes down in flames!

Posted by Shane

I was watching the last half of the NYY vs. TEX game live on MLB.com and it was the bottom of the 9th. Bases were loaded. Next batter… walk-off grand slam. Game over. 9-5 TEX. VAB!

P.S. I was mad!

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.