Amplify
Enjoy the conversation.
Amplify is a place to talk about what's going on.
It's as simple as that.
   

/*Code Clips*/

Things I Amplify from the web

HTML5 Showcase for Web Developers: The Wow and the How

Amplify clipping likes the HTML5 also. I wish all the web pages were using the html5 transition, so I could clip multiple pages.

Gotta see the Google demo on Chrome. Make sure to enable about:flags | Web Audio

Amplifyd from www.htmlfivewow.com
HTML5 Showcase for Web Developers:
The Wow and the How
Read more at www.htmlfivewow.com

All code is open sourced at http://html5wow.googlecode.com

Please give us feedback! http://goo.gl/ac8n7

Ask questions in Google Moderator: http://goo.gl/mod/XKDL

Read more at www.htmlfivewow.com
Binary data on the web is was painful!
var xhr = new XMLHttpRequest();
xhr
.open('GET', '/path/to/image.png', true);

// Trick to pass bytes through unprocessed.
xhr.overrideMimeType('text/plain; charset=x-user-defined');

xhr
.onreadystatechange = function(e) {
 
if (this.readyState == 4 && this.status == 200) {
   
var binStr = this.responseText;
   
for (var i = 0, len = binStr.length; i < len; ++i) {
     
var c = binStr.charCodeAt(i);
     
//String.fromCharCode(c & 0xff)
     
var byte = c & 0xff;  // byte at offset i
   
}
 
}
};

xhr
.send();
Read more at www.htmlfivewow.com
HTML5 ♥ binary data

New features let you:

  • Import from the filesystem or the web.
  • Create new files from scratch.
  • Manipulate existing file data.
  • Store file data on the client.
  • Publish files back to the web.
Read more at www.htmlfivewow.com
New data types
DataView
ArrayBuffer
Uint8Array
Uint16Array
Uint32Array
Int8Array
Int16Array
Int32Array
Float32Array
Read more at www.htmlfivewow.com
var xhr = new XMLHttpRequest();
xhr
.open('GET', '/path/to/image.png', true);

xhr.responseType = 'arraybuffer';

xhr.onload = function(e) {
 
if (this.status == 200) {

   
var uInt8Array = new Uint8Array(this.response); // Note: not xhr.responseText

   
var byte3 = uInt8Array[4]; // byte at offset 4
 
}
};

xhr
.send();
Read more at www.htmlfivewow.com
<input type="file" id="files" accept="image/*" multiple>
document.querySelector('#files').onchange = function(e) {
 
var files = e.target.files; // FileList of File objects.

 
for (var i = 0, f; f = files[i]; ++i) {
    console
.log(f.name, f.type, f.size,
               
f.lastModifiedDate.toLocaleDateString());
 
}
};
Read more at www.htmlfivewow.com
mport Directory upload
<input type="file" id="dir-select" webkitdirectory />
document.querySelector('#dir-select').onchange = function(e) {
 
var out = [];
 
for (var i = 0, f; f = e.target.files[i]; ++i) {
   
out.push(f.webkitRelativePath);
 
}
  document
.querySelector('output'),textContent = out.join('/n');
};
Read more at www.htmlfivewow.com
Read more at www.htmlfivewow.com
 

Pure Browser QR-Code Generation jQuery Plugin

Note to self...

Amplifyd from www.webappers.com

jquery.qrcode.js is jquery plugin for a pure browser qrcode generation. It allow you to easily add qrcode to your webpages. It is standalone, less than 4k after minify+gzip, no image download.

It doesnt rely on external services which go on and off, or add latency while loading. It is based on a library which build qrcode in various language. jquery.qrcode.js wraps it to make it easy to include in your own code. You can also try out QR-Code Generator.

qrcode-jquery

Requirements: jQuery Framework
Demo: http://jeromeetienne.github.com/jquery-qrcode/
License: MIT License

Read more at www.webappers.com
 

Google APIs & Developer Products

Note to self:..

Amplifyd from code.google.com

Google APIs & Developer Products

  • Mobile
  • Search
  • Gadgets
  • Data APIs
  • Social
  • Misc
  • Ads
  • Geo
  • Tools
  • Chrome
Read more at code.google.com
 

Hopefully I can get some help in this.

Currently I have a nightly process which pushes a freshly created file to certain Blackberries while using Blackberry HTTP API. Users will view the file content only during IT emergency-- when network is down.

These options are not going to work:
--Email as attachment
--User will pull the file manually (either running a program on his/her iPhone or downloading from a web app)
--Dropbox, etc.

I had googled for a while and have not crossed any solution for iPhone. Any suggestions?

...We mostly focus on back end programming and design part is mostly using a template we had developed years ago. Lately I am working on one of the workflow app which targets the iPhone, iPad and Android phones. I am experimenting with webkit properties and it is fun.

However, I know what I like, but creating something I like is not easy though. I need a touch of artist sparkle.

Making your HTML5 and CSS3 faster

Enjoyed watching it and passing along.

Sorting algorithms as dances

There is one more video at the source as Insert sort.

Amplifyd from www.i-programmer.info

Take one Central European folk dancing team, a small folk band and an added overlay showing array locations and get them to dance the algorithms in time to "appropriate" folk music. The result is slightly surreal and for a time at least slightly hypnotic.

To see what I mean try the simplest of all sorts, the Bubble sort:

If you think that was too simple, try the Shell sort:

Shell sort is just a bubble sort but with the swaps occurring over greater distances reducing each time.

And for something simpler the Insert sort:

See more at www.i-programmer.info
 

Never seen Visual Studio slammed and crashed while trying to open a style sheet file--should not underestimate an innocent looking css file. I haven\'t opened with text editor and looked into the file, but wow. Just to make sure that it was that specific style sheet file which was causing the crash; yes indeed.

Code Standards: Front-end Development

I have not finished reading the whole document, but what I have read so far makes me think it is worth to add to the standards documentation.

Amplifyd from na.isobar.com
Overview

This document contains normative guidelines for web applications built by the Interface Development practice of Isobar North America (previously Molecular). It is to be readily available to anyone who wishes to check the iterative progress of our best practices. If you have any feedback, please leave a comment on the announcement blog post.

Code Standards Back to top

Read more at na.isobar.com

This document outlines our de-facto code standards. The primary motivation is two- fold: 1) code consistency and 2) best practices. By maintaining consistency in coding styles and conventions, we can ease the burden of legacy code maintenance, and mitigate risk of breakage in the future. By adhering to best practices, we ensure optimized page loading, performance and maintainable code.

Read more at na.isobar.com
 

We are switching to use Microsoft Team Foundation as our source safe repository and it is quite different than previous Visual Source Safe. I had read/tested and came up with a solution for the team to follow, but there were some parts I was not happy with it. We had a meeting and while doing a show and tell, the brain storming session started and now we have a process in place which makes better sense for all and usability is also extended.

Gotta love different perspectives and covering up some of the hidden future downfalls from the beginning.

See ZN Moment's profile

ZN Moment's other Amplogs