Oct 03 2012

Resque Background Jobs - A Redis Library | MojoTech

Resque is a great library for creating background jobs. Usually these jobs are fire and forget tasks that may take considerable computation time, or may contain expensive operations. But what if you need to monitor these processes after they are…

MojoTech

Engineering

Sep 18 2012

A Fireside Chat About Optional Parentheses

In ruby (and in CoffeeScript) you can say:…

MojoTech

Engineering

Sep 17 2012

Modding Out Bob

Meet Bob. Bob works in a warehouse gathering items to ship out for fulfillment of online orders. Customers hate to pay for extra shipping, so companies like Bob’s often group items going to the same destination together into the same…

MojoTech

Engineering

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