Archive for the ‘Uncategorized’ Category

JQuery Parsed Ajax Errors

December 15, 2011 Leave a comment

A very cool code fragment I ran into while looking for something else — funny how that happens.

jQuery Deferreds and the jQuery Promise Method


  1. $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
  2.   if ( options.parseError ) {
  3.     jqXHR.pipe( null, function( jqXHR, statusText, errorMsg ) {
  4.         var parsed = $.parseJSON( jqXHR.responseText );
  5.         return $.Deferred().rejectWith( this, [ jqXHR, statusText, parsed ] );
  6.     }).promise( jqXHR );
  7.     jqXHR.success = jqXHR.done;
  8.     jqXHR.error =;
  9.   }
  10. });

Categories: Uncategorized

JQuery 1.7 Callbacks

October 30, 2011 Leave a comment


The general idea behind pub/sub (the Observer pattern) is the promotion of loose coupling in applications. Rather than single objects calling on the methods of other objects, an object instead subscribes to a specific task or activity of another object and is notified when it occurs.

Categories: Uncategorized

ParseResponse({“title” : “Get Your JSON Response Anywhere”})

October 7, 2011 Leave a comment

From Programmable Web

JSONP simply wraps the response in a function call named by the developer. The P stands for “padding,” where the provider needs only pad the results with a bit more information. Supporting JSONP is a cinch.

258 JSONP APIs: Get Your JSON Response Anywhere

Categories: Uncategorized

Elements of Design?

April 29, 2011 Leave a comment

An interesting take on what a design is, rather than how to accomplish one.

By exploring these elements individually—and by thinking about design as not just a noun (the design) but also a verb (to design)—we can approach the abstract question of “What is design?” in a productive way.

Read the full article

Categories: Uncategorized

Apple in Ascension

October 20, 2009 Leave a comment

Apple does some things right.  There is still the pricing issue, the proprietary issue, the lock in issue, but the only real innovator in the computer and gadget industries.

Ok Microsoft makes Zune, but no one wants to own one.  That’s the other part of the equation, the burnt bridge factor.

From the NYTimes article

Apple, based in Cupertino, Calif., posted particularly strong gains in the computer segment while many of its rivals were still struggling to recover from the recession’s impact on consumer spending. Apple said it sold 3.05 million Macs in the quarter, up about 17 percent from the 2.6 million it sold in the same quarter last year.

They keep making cool computers too.

Apple iMac refreshes link

Categories: Apple, Financial, News