Aug 17 2012

Make Node.js PUT or POST requests compatible with Rails

Maybe it’s a “duh” moment or an amateur mistake but I could not find this information anywhere. To make a PUT or POST request in Node.js you need to stringify your parameters, place them in the body, and make sure…

MojoTech

Engineering

Jul 16 2012

Introducing stickyMojo

stickyMojo is a contained sticky sidebar plugin for jQuery. It is lightweight, fast, flexible and compatible with Firefox, Chrome, Safari, and IE8+. It will degrade gracefully in older versions of IE. After looking around for a contained fixed position sticky sidebar…

MojoTech

Engineering

Jul 13 2012

Oh, the Files You'll Transcode!

I didn’t know much about file encodings prior to this week. I opened a file in Ruby for reading, or writing and the encoding defaulted to UTF-8. I was happily ignorant about directly interfacing with this layer of data storage.…

MojoTech

Engineering

Jul 09 2012

JavaScript: Page Specific Modules

On many Rails projects, the application.js file can quickly go from a simple manifest (if you’re using the asset pipeline) to a gigantic unmaintainable mess of objects, functions, and on DOM ready initializations. There are many components of your site…

Aaron Rosenberg

Engineering

Jul 06 2012

Incremental Async Recursive JavaScript Functions

Often I find myself needing to query multiple web API’s while iterating over a collection and then use that data to query another web service—fun stuff eh? So in other languages I would simply wait until I received the message and…

MojoTech

Engineering

Jul 04 2012

Getting started with Node.js

Here’s a short HTML5 presentation that I put together to help developers get started on Node.js quickly. Node is event-driven and has a non-blocking I/O model, which makes it great for building real-time apps that run across distributed systems. —Sam Saccone…

MojoTech

Engineering

Jun 29 2012

Custom Selects without JS

So for a project I was working on I needed to implement a custom button to trigger a select list. Instead of using a JS plugin I decided to roll a very simple solution that yielded a highly useful bit of…

MojoTech

Engineering

Jun 28 2012

Async Disqus Loading in Tumblr

We noticed that Disqus was causing our Tumblr blog to load slowly. This was the fix: $(function(){ var links = $('a'); var query = '?'; for(var i = 0; i = 0) { …

MojoTech

Engineering

Jun 21 2012

The new Batchbook is here!

Batchbook just launched a totally new version of their web app, and we’re proud to say that we helped them build it!…

Nick Kishfy

BusinessMojoTech