Page 4

June 14, 2010

joeynelson.com 0

Well it took me a while, but I finally got joeynelson.com. Check it out for a centralized compendium of Joey Nelson data.

June 11, 2010

Caching jQuery objects 1

If you deal with the same handfull of elements over and over again on the same page, doing those $('.class_name') selections can put a lot of load on the browser (especially IE). Here’s an easy way to cache those objects without doing any extra work:

var el_cache = {};
 
function e(a){
	if(el_cache[a] != undefined) return el_cache[a];
	el_cache[a] = $(a);
	return el_cache[a];
}

Then you would just change your jQuery calls from this:

$('.class')

to this:

e('.class')

Obviously there are more jQueryish ways of doing this but come on, you can’t beat that simplicity.

June 13, 2009

Some photos 2

studio

tablecloth

sky

baxter

May 4, 2009

iTunes DJ sucks 0

iTunes DJ replaced Party Shuffle in version 8.1. It’s basically the same thing (with some iPhone crap thrown on), except when you double-click a song to listen to it, it moves that song to the top of the list instead of skipping to it. WHY WOULD YOU CHANGE THAT????

November 5, 2008

WTF California? 3

We expect this kind of shit in Arizona or Florida, but seriously? Come on.

And this honorable tactic:

Perhaps more powerfully, the Proposition 8 campaign also seized on the issue of education, arguing in a series of advertisements and mailers that children would be subjected to a pro-gay curriculum if the measure was not approved.

“Mom, guess what I learned in school today?” a little girl said in one spot. “I learned how a prince married a prince.”

As the girl’s mother made a horrified face, a voice-over said: “Think it can’t happen? It’s already happened. . . . Teaching about gay marriage will happen unless we pass Proposition 8.”

Many voters said they had been swayed by that message.

Look how far we’ve come!