Tips for working with jquery

Posted on

I'm a fan of jQuery because it promotes unobtrusive markup and functionality and has a wealth of plugins to take care of common web development/ajax functionality. Marc Grabanski offers some tips for working with it effectively. I'll need to look at livequery in some apps I've put together. If you need to attach events to elements, and re-attach the same events when parts of the page are updated, it should make keeping track of it all a lot easier. My tip for working with jQuery? Use Firefox with Firebug to inspect the page and debug ajax requests.\

5 Tips for Better jQuery Code: jQuery, Tutorial

\

I've been coding using jQuery since shortly after it came out, and well -- I've been using it almost every work day. Here is a few tips that have saved me time.

Tags: AJAX, jQuery, Programming

─── ✧ ─── ✦ ─── ✧ ───

Practical use of message queues

Posted on

I stumbled on this post over at the flickr developers blog while chatting with Jo about web applications designed and built for "the cloud". An article earlier this week piqued my curiosity about message queues, and got me thinking about how they can be used to move processing tasks out of the way. I'd known already that minimizing those tasks within, let's say, a PHP script that builds a page can help your application scale or seem more responsive.

To do so, I've relied on cron jobs, but the main problem with that approach is either that your cron job runs when it has nothing to do, if you run it too frequently, or it has too much to do and you run the risk of one job starting while another is in progress and working with potentially the same data.

Code: Flickr Developer Blog » Flickr Engineers Do It Offline

For scale, Flickr separates these three lookups into three different places. When you upload that photo, we immediately tell you about it, and get out of your way so you can go off and marvel at it. We don't make you wait while we tell your contacts about it, insert it into the search system, notify third-party partners, etc. Instead, we insert several jobs into our queueing system to do these steps "later". In practice, every single one of these actions subsequently takes place within 15 seconds of your upload while you're free to do something else.

Tags: PHP, Programming

─── ✧ ─── ✦ ─── ✧ ───

We dodged a (Palin) bullet

Posted on

If McCain has won, We could have had a VP that made Dan Quayle look like a Rhodes Scholar. I don't want to be jumping on the "America you did the right thing" bandwagon, since all we did was vote for a president, but I'm soooo relieved Palin is nowhere near the White House. I hope this puts a fork in the Republicans party pandering to Social Conservative extremists, although I seriously doubt it.

Palin Didn't Know Africa Is A Continent, Says Fox News Reporter (VIDEO)

According to Fox News Chief Political Correspondent Carl Cameron, there was great concern within the McCain campaign that Palin lacked "a degree of knowledgeability necessary to be a running mate, a vice president, a heartbeat away from the presidency," in part because she didn't know which countries were in NAFTA, and she "didn't understand that Africa was a continent, rather than a series, a country just in itself."

BTW, yes I'm glad Obama won but as I told Sandy yesterday, "I'm a bit disappointed that Nicholas did not poop gold the following morning." Expectations for his presidency are either naive or delusional.

Tags: Politics

─── ✧ ─── ✦ ─── ✧ ───