Node, Backbone and Raphaël: Pre-User Group Study Notes

To prepare for tomorrow’s SydJS, there will be 3 topics on existing JavaScript libraries/plugins:

Node.js

What is it? Node.js is an evented I/O framework for the V8 JavaScript engine. It is often associated with server-side network programming on JavaScript. Development started in 2009 and its current stable version is 0.4.2.

When to use it? I don’t know. Perhaps asynchronous JavaScript as a service.

 

Backbone.js

What is it? Backbone.js is a MVC like structured framework for applications using RESTful JSON interface. It is similar to the JavaScript library you familiar with, except you get to write it this time. Development started in 2010 and its current stable version is 0.3.3.

When to use it? Need for writing  medium to large scale javascript library from scratch.

 

Raphaël

What is it? Raphael is a vector graphic library for drawing complex shapes on webpage. Its capability covers from data visualisations to image manipulations. Development started in 2009 and its current stable version is 1.5.2.

When to use it? Display high quality statistic report; Photo manipulation within your web application; 2D/3D games using JavaScript and HTML 5 Convas.

 

Summary

This is a section I like to call it “Pre-User Group Study Notes”, where I drop down some self-education notes and links as preparation for coming technical user group. These notes tends to be ambiguous and/or inaccurate as they are the reason I am going to learn more about them, however some might happen to gain a byte or 2 from it.

SE Trick – Modify RSS Feed URL using jQuery

This is a simple tutorial (to the original question) on how you can replace your existing StackExchange questions feed link with a third-party feed tracker service such as FeedBurner.

By default, your questions feed should look something like: http://{SITE_NAME}/feeds where you will also have answers feed: http://{SITE_NAME}/feeds/question/{QUESTION_ID}, user feed: http://{SITE_NAME}/feeds/user/{USER_ID} and tags feed: http://{SITE_NAME}/feeds/tag?tagnames={TAG_SLUG}&sort={SORT_VERB}.

Using simple jQuery, you can replace existing questions feed link to specified URL without effecting other feed links:

$(document).ready(function()
{
    if($("#feed-link-text a").text() == "recent questions feed")
    {
        $("#feed-link-text a").attr("href", "{NEW_FEED_URL}");
    }
});

Done!