PHP, PUTs, POSTs, and Backbone.js

PHP has a small error where it does not put querystring results for a HTTP PUT inside a superglobal such-as $_PUT[] or $_POST[]. The second issue is that Backbone.js likes to send JSON vs a querystring. Therefore the following code was written to use $_POST[] to access PUT and…

MicIO.js

The Problem: Sending data from a microcontroller to any smartphone/computer While you can use the usb interface on non-mobile devices, very few smartphones allow you to use this easily. For example using the iOS lightning port requires purchasing a 100k+ license. Then there's bluetooth with its multitude of native…

Backbone.js + HTML5 PushState + Apache Virtual Host

If you're hosting a backbone.js app, where your backbone files are stored in: /app/* /dist/* /vendor/* /styles.min.css /source.min.js /index.html Where all other web requests should be re-directed to index.html, then these mod_rewrite rules will probably come in handy: <IfModule mod_rewrite…

A better way to write AMD Declerations

It seems that the current trend is to trash AMD javascript function declarations. If styled properly, AMD really doesn't suck, nor does it waste valuable vertical real-estate. The Wrong Way, Newline Hell Some people just don't appreciate vertical real-estate and will put a newline for each dependency. Have fun reading…