DailyJS

Resumable.js, Open Source Android WebGL Implementation, Coderbyte

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

html5 node modules webgl

Resumable.js, Open Source Android WebGL Implementation, Coderbyte

Posted by Alex R. Young on .
Featured

html5 node modules webgl

Resumable.js, Open Source Android WebGL Implementation, Coderbyte

Posted by Alex R. Young on .

Resumable.js

Resumable.js (GitHub: 23 / resumable.js, License: MIT) from 23 is a library for managing concurrent and resumable uploads using the HTML5 File API:

The library is designed to introduce fault-tolerance into the upload of large files through HTTP. This is done by splitting each files into small chunks; whenever the upload of a chunk fails, uploading is retried until the procedure completes. This allows uploads to automatically resume uploading after a network connection is lost either locally or to the server.

Since the File API has limited support, the author's example should degrade:

var r = new Resumable({  
  target: '/api/photo/redeem-upload-token',
  query: { upload_token:'my_token' }
});
// Resumable.js isn't supported, fall back on a different method
if (!r.support) location.href = '/old-uploader';  

Resumable.js's API is event based, and events include fileAdded, fileSuccess, and fileError.

To implement the server-side part of this, the state of uploaded chunks should be managed. The documentation notes that on unstable networks the same chunk may be uploaded more than once, so appropriate HTTP status codes should be returned as chunks are received.

 Open Source Android WebGL Implementation

Sony Ericsson announced WebGL support for Android 4.0 and published the source on GitHub at sonyericssondev / WebGL:

It is based on ics-mr1, and requires that webkit is built with USE_ACCELERATED_COMPOSITING and that the browser application is built with hardwareAccelerated=true.

This is the code that will be used on forthcoming Xperia phones running Ice Cream Sandwich.

Coderbyte

Coderbyte is a service designed to "practice and perfect" programming skills. At the moment it includes challenges for client-side JavaScript, and there are some guest challenges that you can try out here: Coderbyte Coding Area.

With the right community tools I think Coderbyte could be a little bit like Stack Overflow in reverse.