Older blog entries for sness (starting at number 3836)

Backbone.js Views events « Yoel Gluschnaider

Backbone.js Views events « Yoel Gluschnaider: "Tapping this element would just not work! You need to bind the tap event manually after the element is added to the view, so instead of writing this:

events: {'tap .class1': 'eventHandler'}
Which will cause this call:

$(this.el).delegate('.class2', 'tap', method);
You should call this:

$(this.el).find('.class2').tap(this.eventHandler);"

'via Blog this'

Syndicated 2012-02-25 00:13:00 from sness

10 Things I Learned from the jQuery Source « Paul Irish

10 Things I Learned from the jQuery Source « Paul Irish: "It’s jQuery on the big screen. We’ll open the jQuery source and run through how the jQuery object works, covering self-executing anonymous functions as a global abatement technique, several interesting jQuery methods, internal jQuery paradigms, and hiddenhancements. You’ll learn JavaScript techniques you can apply to your own code, as well as the basic workings of jQuery itself."

'via Blog this'

Syndicated 2012-02-25 00:13:00 from sness

HTML5 code example: Intelligently store Images in localStorage for faster page loads! (design @ IBM developerWorks)

HTML5 code example: Intelligently store Images in localStorage for faster page loads! (design @ IBM developerWorks): "However I hit an immediate challenge, as localStorage only supports String objects, which is fine for Javascript and CSS, however I was also interested in storing binary Images.
 
 
Given this limitation in localStorage, the first step required for my implementation is to base64 encode the binary Images.   I found a website that offers an online tool to perform this encoding, however there are many shareware tools available to encode/decode binaries from your workstation or dynamically from a server application.  I converted my Images at OpinionatedGeek, which offers a simple web interface tool to quickly encode Images. Once you have base64 encoded your Images,  you will need to implement the Javascript and localStorage API to read & write your Images from the local client:
 "

'via Blog this'

Syndicated 2012-02-24 20:57:00 from sness

javascript - How do I grab a single image and put it in localStorage? - Stack Overflow

javascript - How do I grab a single image and put it in localStorage? - Stack Overflow: "Try storing base64 data, use canvas. Check this: Get image data in Javascript?"

'via Blog this'

Syndicated 2012-02-24 20:49:00 from sness

jQuery Mobile Docs - Quick start

jQuery Mobile Docs - Quick start: "In the body, a div with a data-role of page is the wrapper used to delineate a page, and the header bar (data-role="header") and content region (data-role="content") are added inside to create a basic page (these are both optional). These data- attributes are HTML5 attributes are used throughout jQuery Mobile to transform basic markup into an enhanced and styled widget."

'via Blog this'

Syndicated 2012-02-24 18:41:00 from sness

The Sun is Setting on Rails-style MVC Frameworks « caines.ca/blog

The Sun is Setting on Rails-style MVC Frameworks « caines.ca/blog: "The AtomPub protocol, if you ignore its XMLiness,  gets this right -- The thick client just knows the root URL (which serves up a simple service document) and is aware of a bunch of relationship types (the 'rel' attribute on 'link' and 'a' tags) that it can follow as necessary.  If a game client needs to access a list of players, it just goes to the root url, and follows the link with the rel property called 'players' (and probably remembers that link until the server says it has moved via 301 status code).  JSON has no concept of links or rel, but this is still easy to imagine and implement, and while it's a teeny bit of extra work up front, the standardization buys you the ability to start writing smarter HTTP/REST clients for your frontend that take care of much more for you automatically, so you can spend time on real business logic and actually do something more productive than fiddle with the javascript version of a routes.rb file."

'via Blog this'

Syndicated 2012-02-24 17:00:00 from sness

The Sun is Setting on Rails-style MVC Frameworks « caines.ca/blog

The Sun is Setting on Rails-style MVC Frameworks « caines.ca/blog: "The server is no place for view logic
The devices available for running a web app are vastly different from when these web frameworks first sprung up.  The slide towards thicker / richer clients has been proceeding on pace with increases in processing power since the Web 2.0 days.  It's much simpler to handle views and view logic in only one place, and that place is slowly moving away from the server side.  MVC has always been a strained pattern for a server-side, non-gui application and it is been a confusing and complicated trade-off to have the backend generating front-end logic.    Front-end frameworks like backbone.js, as well as advances in web technologies like HTML5's history.pushState are now making server-free views a realistic quality of cutting-edge front-ends.   Rendering on the client-side also gives us the opportunity to create responsive designs based on device capability rather than having the server try to somehow figure out what the capabilities are without actually running on that device."

'via Blog this'

Syndicated 2012-02-24 16:59:00 from sness

Serious game - Wikipedia, the free encyclopedia

Serious game - Wikipedia, the free encyclopedia: "A serious game is a game designed for a primary purpose other than pure entertainment. The "serious" adjective is generally prepended to refer to products used by industries like defense, education, scientific exploration, health care, emergency management, city planning, engineering, religion, and politics."

'via Blog this'

Syndicated 2012-02-23 22:51:00 from sness

3827 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!