Daily Digest for September 25th

googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Aww… bitly fail [SeanJA]
twitter (feed #2)
twitter (feed #2)
Dear Rap… what happened to you? http://bit.ly/cYaUx [SeanJA]
twitter (feed #2)
Pretty sure someone got fired over this one… http://bit.ly/nmWdb [SeanJA]
twitter (feed #2)
How Ravelry Scales to 10 Million Requests Using Rails http://bit.ly/FGcWR [SeanJA]
twitter (feed #2)
Yes we cane #glee [SeanJA]
twitter (feed #2)
RT @alyankovic: It always helps to dress appropriately when you’re playing Beatles Rock Band. http://twitpic.com/izjnc [SeanJA]
twitter (feed #2)
Help stop the #crtc from making a terrible decision! http://www.competitivebroadband.com/consumer/ #broadband [SeanJA]
twitter (feed #2)
@zeldman What about naptime policy? [SeanJA]
googlereader (feed #5)
twitter (feed #2)
@zoster Oh wow… [SeanJA]
twitter (feed #2)
Ooohhh someone on dzone got mad at me for voting down pay for content [SeanJA]
twitter (feed #2)
@gavinblair How is it that you have not gained anything on StackOverflow? [SeanJA]
googlereader (feed #5)
twitter (feed #2)
Why is it that I always have problems with @netbeans versions that are X.X.1 ? [SeanJA]
delicious (feed #4)
googlereader (feed #5)
twitter (feed #2)
RT @StephenAtHome: of course easter is under attack. how else do you explain the organized, systematic hunting of its eggs? [SeanJA]
twitter (feed #2)
twitter (feed #2)
Sometimes I miss knowing exactly what a function will return: public int checkDigit(){…} #php [SeanJA]
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
IE8 runs 10 times faster with Google plug-in http://bit.ly/8VgS7 [SeanJA]
twitter (feed #2)
LSAT tomorrow! I am sure that @lyndzrokz is really excited! [SeanJA]
twitter (feed #2)
Proof that Windows is simpler than OS X http://bit.ly/3hM1mS [SeanJA]
twitter (feed #2)
Announcement from AC/DC coming in three days! http://www.acdcbacktracks.com/us/home [SeanJA]

flattr this!

Daily Digest for July 20th

twitter (feed #2)
New blog post: Daily Digest for July 1st http://bit.ly/1Sw9EO [#]
twitter (feed #2)
New blog post: A better way to use jQuery in WordPress Themes http://bit.ly/4d8XZb [#]
twitter (feed #2)
stupid allergies [#]
twitter (feed #2)
@lyndzrokz watched Harry Potter 1 and 2 today?!?! O_o [#]
googlereader (feed #5)
googlereader (feed #5)
Shared The Boondocks – 2 July 2009
twitter (feed #2)
It would have been nice had someone not fired off fireworks at 3 am last night… [#]
twitter (feed #2)
http://bit.ly/bSxlT This one was juuuuussttt right [#]
delicious (feed #4)
twitter (feed #2)
@markstahler I would install xampp instead of wamp server… that way you get perl too [#]
twitter (feed #2)
@gavinblair It would be nice if my stuff had best before dates… [#]
googlereader (feed #5)
twitter (feed #2)
twitter (feed #2)
RT @WilliamShatner: Watch for me on G4 Ill be on Attack of the Show in a few mins [#]
twitter (feed #2)
and — critically — at least one Ewok. http://bit.ly/3Uuwfw [#]
twitter (feed #2)
mojito bit my hand and got through the skin :| [#]
twitter (feed #2)
Once they get the taste for blood… [#]
googlereader (feed #5)
delicious (feed #4)
googlereader (feed #5)
twitter (feed #2)
Doubting every step of the plan is no reason to doubt the plan itself [#]
twitter (feed #2)
RT @jimmycarr How could anyone see this headline & not read on. That’s a story, I guess ‘i love it’. http://twitpic.com/99b2x [#]
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
@gavinblair Beware the Mongolian… no wait… that is the Haitian… [#]
googlereader (feed #5)
delicious (feed #4)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Catching up on Top Gear… Apparently I missed one in the 12th season [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Dilbert – 7 July 2009
delicious (feed #4)
twitter (feed #2)
Moe didn’t bite me today [#]
delicious (feed #4)
delicious (feed #4)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
@gavinblair if(testing){sleep(10)} that way you don’t have to worry about forgetting to remove it ;) [#]
twitter (feed #2)
damn it #php… get your naming scheme straight… flock, array_flip, htmlspecialchars… [#]
twitter (feed #2)
Not to mention str_replace and strlen… they are both for strings for crying out loud! #php [#]
twitter (feed #2)
Bikini Girls WIth Machine Guns – http://bit.ly/JghRu [#]
twitter (feed #2)
twitter (feed #2)
@hashphp You got my messages backwards, and you might want to add a space to the end of the #php hash tag if it is at the end of a message [#]
twitter (feed #2)
RT @meyerweb: @jcroft I would never argue with someone so obviously wrong. [#]
twitter (feed #2)
@gavinblair I have a rabbit! Maybe we should get together :P [#]
twitter (feed #2)
Breaking Bad Season 2 -> GO! [#]
twitter (feed #2)
RT @codinghorror: English localization of Street Fighter 4 http://bit.ly/VmCeG [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Dilbert – 8 July 2009
googlereader (feed #5)
Shared Pedantic
delicious (feed #4)
googlereader (feed #5)
Shared 2038
twitter (feed #2)
Google Chrome OS! [#]
twitter (feed #2)
VLC 1.0!!! [#]
delicious (feed #4)
twitter (feed #2)
I suppose the average computer science geek is generally a sort of power mad fancy plumber. http://lupoleboucher.livejournal.com/29014.html [#]
delicious (feed #4)
twitter (feed #2)
I think I like Sass even more than less http://sass-lang.com/ [#]
twitter (feed #2)
RT @paperclippy:  @ev It looks like you’re in Idaho. Would you like help finding something to eat other than potatoes? [#]
twitter (feed #2)
@markstahler Why would it launch on boot? I don’t disagree with the linux comment, but look what apple did with unix [#]
twitter (feed #2)
Hmmm… seems that this happens every time a new Windows OS comes out… http://bit.ly/1qN6Vp [#]
twitter (feed #2)
delicious (feed #4)
twitter (feed #2)
Bought macaroni and cheese… didn’t buy milk… good jorb [#]
twitter (feed #2)
…and people who will cut the power lines to your house to destroy your internet spaceship. http://www.tentonhammer.com/node/65475 [#]
delicious (feed #4)
twitter (feed #2)
@codinghorror Not sure… but wingrep (or is it grepwin?) works quite well [#]
twitter (feed #2)
I need a new barbecue… maybe this one? http://bit.ly/14Jvfp [#]
twitter (feed #2)
Apparently I am hard to shop for because I say that I want everything [#]
twitter (feed #2)
http://basicinstructions.net/?p=1128 "A man never stands so tall…" [#]
twitter (feed #2)
@codinghorror esq? Really? [#]
twitter (feed #2)
Turns out that the XP Pro EULA is only a test http://www.microsoft.com/windowsxp/eula/pro.mspx [#]
googlereader (feed #5)
googlereader (feed #5)
Shared Dilbert – 9 July 2009
googlereader (feed #5)
Shared Full Frontal Nerdity – 9 July 2009
googlereader (feed #5)
delicious (feed #4)
delicious (feed #4)
twitter (feed #2)
@gavinblair I can help you with that perhaps…? [#]
twitter (feed #2)
RT @netbeans: When was the last time you visited Planet NetBeans? http://planetnetbeans.org/ [#]
twitter (feed #2)
Damnit firebug… I just updated you this morning… [#]
twitter (feed #2)
Got me a Heroes of Newerth beta key… cannot say anything more otherwise they might kill me… or something… [#]
googlereader (feed #5)
twitter (feed #2)
RT @paperclippy:  @gruber It looks like you’re working on a new James Bond movie. Would you like help hiring George Lazenby to star in it? [#]
twitter (feed #2)
So you want us to build something that’s the size of everything with nothing? … TWICE?!? [#]
twitter (feed #2)
Must not have power steering. http://bit.ly/12FnHW [#]
twitter (feed #2)
DS9… time for war! [#]
twitter (feed #2)
Tweeting like a manic squirrel cranked up on caffeine and sugar [#]
twitter (feed #2)
@gavinblair Maybe you should update php… [#]
twitter (feed #2)
Synthetic Electronic Assassination and Nocturnal Judo Android http://cyborg.namedecoder.com/ [#]
googlereader (feed #5)
delicious (feed #4)
googlereader (feed #5)
googlereader (feed #5)
Shared Bizarro – 10 July 2009
twitter (feed #2)
Silverlight 3 debuts ahead of Friday’s launch… So… it is trying to catch flash’s version number http://bit.ly/10ZRbH [#]
twitter (feed #2)
Hackers are using malicious QuickTime files to hijack PCs (typical Steve Jobs…) http://bit.ly/irdk [#]
twitter (feed #2)
RT @zeldman: Perhaps once in a while I should try letting gratitude toward my wonderful friends stand in the way of a wisecrack. [#]
twitter (feed #2)
How can windows 7 have a customer rating of 4.19 on the futureshop website??? It hasn’t come out yet… Sneaky #M$ [#]
twitter (feed #2)
@markstahler Nah… even php has goto… and there is a goto for javascript too [#]
twitter (feed #2)
@gavinblair Was your full name too long? :P [#]
twitter (feed #2)
@rtraction I thought that was awesome… you just have to make them not move [#]
twitter (feed #2)
@rtraction Roller babies are creepy and unnatural [#]
twitter (feed #2)
RT @codinghorror: for female adventurers, armor class 4 has a whole different meaning http://bit.ly/npIiL [#]
googlereader (feed #5)
twitter (feed #2)
Man it is hot… [#]
twitter (feed #2)
@gapingvoid Dear god man… have you no shame? [#]
twitter (feed #2)
RT @stephenfry: Pleasing that http://bit.ly/aB1oG was the featured front page article on Wikipedia all today. [#]
twitter (feed #2)
@rtraction They already have an adobe air app… how hard could it be to move it to the web? [#]
twitter (feed #2)
generic (feed #6)
Posted Changeset [126]: Added error.log to the ignore list
generic (feed #6)
Posted Changeset [127]: Fixed the 404 page so that it would not display the error twice (didn’t …
twitter (feed #2)
Working on the diving site [#]
twitter (feed #2)
Ok… so that didn’t last long… turned out I was hungry instead [#]
googlereader (feed #5)
twitter (feed #2)
You call that a model airplane? This is a model airplane. http://bit.ly/mEjyg [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
http://bit.ly/htpD9
Don’t copy that what what? [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
No, that would terrify my grandchildren http://bit.ly/GveLt [#]
twitter (feed #2)
Rapunzel? http://darkgate.net/comic/images/bizarro/1247383227.gif [#]
twitter (feed #2)
Gotta stop doing this… http://darkgate.net/comic/images/foxtrot/1247399352.gif [#]
googlereader (feed #5)
twitter (feed #2)
Had a great time at @zoster and @gavinblair ‘s over the weekend in #ldn , went to sunfest and the beach [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Dilbert – 13 July 2009
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
@gavinblair It is a hybrid [#]
twitter (feed #2)
@gavinblair did you watch the first episodes of DS9 yet? [#]
twitter (feed #2)
@gavinblair Trippy? [#]
twitter (feed #2)
twitter (feed #2)
What’s the Nagus doing in my closet? [#]
twitter (feed #2)
RT @hijinksensue: Own The Operative’s Sword from Serenity http://bit.ly/1as8YP [#]
googlereader (feed #5)
twitter (feed #2)
twitter (feed #2)
Ironically, the 404 page went missing [#]
generic (feed #6)
Posted Changeset [128]: More SEO friendly urls, they have dashes instead of underscores Added …
generic (feed #8)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Elements of the past and future combining to make something not quite as good as either [#]
googlereader (feed #5)
Shared Evil Inc. – 14 July 2009
twitter (feed #2)
twitter (feed #2)
Dear Rogers… I am not getting what I paid for… http://bit.ly/7eTPV [#]
twitter (feed #2)
http://bit.ly/l5zor Internet throttling benefits customers: Rogers, Shaw [No seriously… they think that…] [#]
googlereader (feed #5)
googlereader (feed #5)
delicious (feed #4)
twitter (feed #2)
Ahoy Criminals! http://bit.ly/3qdfEN [#]
twitter (feed #2)
Ninja! #PHP [#]
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Meet Gene, he has Motonuraldymilonation http://bit.ly/ajYmH [#]
twitter (feed #2)
RT @codinghorror: you know what romance novels need? some NASCAR that’s what http://bit.ly/bL7NY [#]
googlereader (feed #5)
twitter (feed #2)
This will go with the shower curtain I am going to get http://www.thinkgeek.com/homeoffice/kitchen/b517/ [#]
twitter (feed #2)
If you don’t dress up as a gorilla all the animals will get poor and they won’t be able to afford toboggans and sausages [#]
generic (feed #8)
generic (feed #8)
twitter (feed #2)
Is it true you can kill someone just by looking at them? Only when I am angry. [#]
twitter (feed #2)
Well hello @AllTheSausages [#]
twitter (feed #2)
@AllTheSausages is possibly the strangest bot on twitter #sausage [#]
googlereader (feed #5)
Shared Sheeple
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Bizarro – 15 July 2009
twitter (feed #2)
Gmail has added Tasks apparently (it popped out of gmail labs into the real world I guess? [#]
twitter (feed #2)
@rtraction Score! It might tempt me if I had more money… [#]
googlereader (feed #5)
googlereader (feed #5)
delicious (feed #4)
twitter (feed #2)
@zoster I got one at the market in peterborough, might want to start at a similar place in #ldn ? [#]
twitter (feed #2)
googlereader (feed #5)
googlereader (feed #5)
generic (feed #8)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Seeing Harry Potter tonight [#]
twitter (feed #2)
Maybe we should have gotten here earlier [#]
twitter (feed #2)
He’s like a fat Michael Moore [#]
twitter (feed #2)
@gavinblair Do it! [#]
googlereader (feed #5)
twitter (feed #2)
Harry Potter was great! Read the books a long time ago so I forgot it all! That is the secret you know ;) [#]
twitter (feed #2)
@zoster Mint is really tall and easy to spot (at least mine was) [#]
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
RT @rtraction: Apparently you can get $2500 in rebates from the Ontario and Canadian Governments if you install a solar hot water heater. [#]
twitter (feed #2)
I just took the "Which Hogwarts Staff Member Are You?" quiz and got: Professor Minerva McGonagall! Try it: http://bit.ly/HFPZN [#]
twitter (feed #2)
Once is an accident. Twice is a coincidence. Three times is a policy. [#]
generic (feed #6)
Posted Changeset [129]: svalidate.class.php, scontroller.class.php =>Fixed up the validation class …
twitter (feed #2)
@markstahler I wish… I keep meaning to look at setting it up myself, but I never get around to it [#]
twitter (feed #2)
@hijinksensue +1 for `Godspeed you Fancy Bastard` [#]
twitter (feed #2)
@zoster No… the turn signals are optional on all Ontario cars [#]
twitter (feed #2)
Was php.net down? #php [#]
twitter (feed #2)
Ugh… too many carrots [#]
twitter (feed #2)
Oh wow! RT @americanmcgee: beautiful game trailer: http://bit.ly/b52sW [#]
twitter (feed #2)
- What about freedom of the press? – Please, tell me you’re not that naïve [#]
googlereader (feed #5)
Shared Fiesta!
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Comic: Laying the groundwork
googlereader (feed #5)
googlereader (feed #5)
Shared Toothpaste for Dinner – 17 July 2009
generic (feed #6)
Posted Changeset [130]: update will now always return a value Add columns should now work properly
googlereader (feed #5)
twitter (feed #2)
Apple ‘Hey, you need to stop running those ads, we lowered our prices.’ http://bit.ly/SLPbb [#]
twitter (feed #2)
RT @codinghorror: three funny Public Service Announcements http://bit.ly/12BYPZ [#]
twitter (feed #2)
Don’t talk to robots [#]
generic (feed #8)
generic (feed #8)
generic (feed #8)
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
twitter (feed #2)
Went to see the World Rock Symphony Orcestra [#]
googlereader (feed #5)
googlereader (feed #5)
googlereader (feed #5)
Shared Estimation
delicious (feed #4)
delicious (feed #4)
twitter (feed #2)
Wii Car lighter adapter + Wii bowling ball = seconds of fun, until the ball flies into the front seat and bounces off the drivers skull [#]

flattr this!

JQuery and WordPress

Update: New Post – A better way to use jQuery in WordPress Themes

I was making a new template for my site. I was originally going to make it all curvy and web 2.0… but I figured, since I am not the best at the visual design of things I went with this. I like it.

While I was making it, I was looking at using jQuery to do the curvy web 2.0 things. Now, if you have not used jQuery before, you should check it out, it is simple and there are a million plugins for it. There is one for corners (which I was going to use), there is a lightbox one, so on and so forth. It is also really small, the version included with the latest wordpress install is 1.2.3 which is about 30 KB. The latest version is 1.2.6.

Since I was not going to make it all curvy I decided to add an easter egg to my blog using jQuery.

At first I kept getting the error:

Error: $ is not a function
Source File: http://localhost/blog/
Line: 22

That is apparently because WordPress uses a lot of different javascript libraries and apparently they have done a bit of rewritting. instead of using the $(“”) to start your jQuery javascript, you use jQuery(“”). This took a bit of searching and testing to find out, but in the end I got that figured out. It was then on to the code to make the easter egg work. Here it is:

jQuery(document).ready(function(){
 jQuery("h4").click(function(){
  jQuery(this).fadeOut("fast", function() {
      jQuery(this).html("π").fadeIn("fast");
      });
  });
});

Step by step:
1 -> Load this when the page loads
2 -> Whenever a h4 is clicked (there is only one here so its fine to do it this way)
3 -> Fade out what we clicked on fast
4 -> fade in pi

Nice and easy (and it looks cool too). This could be put to much more practical uses like translations or possibly a slide show of images (fadeIn pause fadeOut, fadeIn next image). For now it will just be a small easter egg that I added to my site.

Oh, and apparently the google syntax highliter has decided not to work in this version of wordpress so, I am now using wp-syntax instead.

Oh ya… and you have to have these lines in your code before you call any of the jQuery functions.

<script src="./wp-includes/js/jquery/jquery.js" type="text/javascript"></script>
<script src="./wp-includes/js/jquery/jquery.corner.js" type="text/javascript"><!--mce:1--></script>

(PI is an inside-ish joke by the way)

Edit: You do not need the jquery.corner.js part… unless you want fancy corners.. you would also have to download it too… if not you will get an error.

Ok, I think there is a bug somewhere, if you click through using the page links, and do a search the pi thing will work. If you rely on the cache (go to the same page by clicking on the title link of a post/page) it does not work at all. (At least in FF3)

flattr this!