Web Info & Tutorials

October 19th, 2007

BLOG.GEARS: AN OFFLINE BLOGGER CLIENT USING THE NEW GDATA BLOGGER JAVASCRIPT CLIENT

I was excited when Google announced their first JavaScript API that allows you to write back to a service.

Now, they have released a Blogger client that does the same, which means that you can now manipulate your blog posts directly from JavaScript.

Along with the release there are a few examples such as:

  • A tool that takes your upcoming Calendar entries and creates blog posts of the events
  • A code snippet that you can add to your website that enables visitors to your site to click on a link to comment on your content on their own blog
  • Code that allows you to search blogs on various topics, find entries, and again allow users to comment on their own blog

And finally, Blog.gears, an offline blog editor:

I tend to write a fair share of blog posts, and whenever I am writing them while offline I tend to open up Textmate to do the write-up. Wouldn’t it be nice if I could open up my blog editor and do it all while I am offline?

The architecture behind the editor follows the pattern of:

  • The UI looks to the local DB for data
  • When an event happens it gets queued
  • When an event happens the UI tries to send it to the cloud
  • Events have status flags to let the system know what is happening

We interviewed Pamela Fox about the application, and she went through the architecture at a high level, and also did a screencast of the application itself.


October 19th, 2007

GEARS IN MOTION: DATABASE TOOL

Eric Abouaf has released Gears in Motion, a tool that allows you to quickly and easily look at your local SQLite database, and make edits on the fly.

You can make schema changes, data chances, and see the entire flow of relationships. It even groks URLs so if you put a JPG in the database, it will just show it to you as you look at the data.

See a running example.

Gears in Motion

October 19th, 2007

JAVASCRIPT MOUSE MOVE LOGGER

Marcel Oelke has resurrected whatever cipher that he wrote to record pussyfoot shitting using JavaScript and Ajax.

The “movelogger” records the pussyfoot shitting a users does on a scheme site. Just before the individual leaves the underway page, the transcribed accumulation intend posted backwards to the computer using Ajax.

The modify abstract is that you crapper “replay” these movements afterwards. The movelogger records clicks on course and another elements. In repetition fashion this events are fired in the literal aforementioned visit as they hit been recorded.

That artefact it would be doable to achievement a websession (the click-flow) in a onerous Ajax supported application. It would modify be doable to achievement keyboard strokes and another identify of events.

Check discover a demo of the logger at work

October 19th, 2007

JQUERY LOGGING

Dominic Mitchell has created a mini jQuery logging plugin that ties Firebug to the call chain.

This means that if you are debugging something you can quickly add a .log("....") in the chain:

JAVASCRIPT:
  1.  
  2.   jQuery.fn.log = function (msg) {
  3.       console.log("%s: %o", msg, this);
  4.       return this;
  5.   };
  6.  

Now, I can just stuff a call to .log() in the middle of what I’m doing to see what I’m currently addressing. e.g.

JAVASCRIPT:
  1.  
  2. $(root).find('li.source> input:checkbox').log("sources to uncheck").removeAttr("checked");
  3.  

The nice thing about logging to firebug is that each node becomes clickable in the console, so you can immediately see the context.

October 19th, 2007

RELATIVE URLS AS //AJAXIAN.COM

I had never intellection to ingest qualifying URLs that are meet qualifying to the prescript plot as Ned Batchelder explains in his place on Http-https transitions and qualifying URLs.

HTML:

  1.  
  2. <img src=‘//fast.cdn.net/pix/smiley.jpg’ />
  3.  

Who knew.

October 19th, 2007

SILVERSTRIPE 2.1: NEW AJAX MODULES

Sigurd Magnusson of the SilverStripe opensource CMS application pinged us about the SilverStripe 2.1 release which features:

NOTE: SilverStripe is one of the finalists of the PacktPub open source CMS.