Introduction I recently ran into a situation that required files to be directly posted to S3 without using an intermediate machine as a middleman. This brought about some obvious challenges including but not limited to showing a progress bar or spinner during upload, the fact that the file needed to be posted directly to S3 […]
Category: JavaScript
A Zend Framework like MVC approach to building NodeJS enterprise applications in an easy to install NodeJS module. The new Zenhance NodeJS MVC Framework is up and running and available for install. The entire framework is comprised of a single NPM module and can be installed and running in less that 5 minutes once you […]
If you’re an avid user of ThreeJS you have more than likely at some point run into the situation where you need to either create a texture from scratch for the point of coloring it, or have had the need to update/draw on a texture for one reason or another. The following will walk you […]
I have previously released a jQuery Rubik’s cube plugin comprised of only HTML, JavaScript and CSS. Although pretty nifty, there were a few issues with regards to support from some browsers, most notably Firefox and Internet Explorer. I decided to recreate the plugin using WebGL. The result is my jquery.cube.threejs.js plugin. As seen below. The […]
I consider myself an avid speed cuber. Not world class, but fast enough and not too obsessed with it. That being said all the sites I’ve seen in the past with references to algorithms all seem to use really clunky client side Java or Flash plugins to handle the demonstration of moves. I wanted to […]
I’ve recently had the need to store information using HTML5’s local storage API. To my surprise the API itself is geared toward only letting you store strings. That being said I needed to store and retrieve information in a way that would make it easy to retain types as well as store complete objects. The […]
D3 and jQuery utilize distinctly different approaches to node manipulation and internal array storage. However, there are mechanisms available for converting between D3 and jQuery, and vice versa. D3 and jQuery Internals Let’s assume the following HTML structure: [codesyntax lang=”html4strict”] <div class=”test-node”>Test One</div> <div class=”test-node”>Test Two</div> <div class=”test-node”>Test Three</div> <div class=”test-node”>Test Four</div> [/codesyntax] Now let’s […]
If you’re a solid user of jQuery or just a tinkerer you may have thought to yourself “I have a great idea for a jQuery plugin”. Your next steps of course would probably be to look at the jQuery documentation and eventually to have a look at someone else’s jQuery plugin source code. In doing […]
You may or may not have heard the new buzz about promises being introduced into JavaScript and if you don’t know what they are, you’re not alone. I’ll attempt to explain what they are and why you should or maybe shouldn’t care about them. First let’s understand what promises are. Promise defined: “The Promise interface represents a […]
Ever find yourself needing to do some number crunching, or create an off time rendering hook or perhaps just needing to create a separate thread for some other purpose, this is how you do it. First things first, we need to create a separate javascript file which will house our thread execution code. In this […]