Blog

Introduction Node.js, a server platform built on Chrome’s JavaScript engine, is changing the face of web development. While Node.js itself is fast and scalable, the open source community surrounding Node.js is constantly discovering new ways to make application development more productive. This article will show how Node.js network code can be easier to write automated […]

This post talks about the development of RapBot, my freestyle 80s battle rap generator. You might want to see it in action before reading on, and you can check out the source code here. For the past year I’ve been using the Wordnik API in my projects to generate random words. I’ve made extensive use […]

This post is the third in a three-part series describing our investigations into scalability for a second screen application we built for PBS. You can read the series introduction here. Being familiar with the stress testing procedure is all well-and-good, but that knowledge won’t really help you unless you have a server to test. In […]

CC BY-SA

This post is the second in a three-part series describing our investigations into scalability for a second screen application we built for PBS. You can read the introduction here. This guide assumes you have a production server up and running. If you need help getting there, check out the final post in the series for […]

CC BY-SA

This post is the first in a three-part series describing our investigations into scalability for a second screen application we built with PBS. You can read more about the project in the series introduction here. Some Background We built the Map Center second-screen application in Node.js with the help of a number of open-source libraries. […]

CC BY-SA

This summer, Bocoup worked with Mozilla and PBS to build an open source, real-time web application for the 2012 US Presidential election. When we began, PBS (specifically, the folks at News Hour) had already completed a client-side application called “Map Center“. Map Center enabled users to view US demographic data and experiment with electoral college […]

CC BY-SA

GitHub offers a great feature called WebHook URLs. You can add a url to take advantage of git’s post-receive hook and get a POST request containing data related to a repository push (e.g., commits, tags, and head-resets). While the data is very detailed and thorough, its complexity and focus on mimicking the git operations make […]

In case you missed it, Rick Waldron and I got together recently to talk about Johnny Five, a library that lets you control an Arduino using JavaScript. Rick showed off some of his Johnny Five creations — including a dancing robot — and I got to geek out a bit more about shift registers and […]

Welcome to the third tutorial in our series geared towards Arduino programming on Node.js, using the Johnny-Five framework. Get caught up here. Johnny-Five is a Firmata based Arduino programming framework. See: JavaScript: Arduino Programming on Node.js. In the first tutorial you created a program to control a servo via REPL; then, in the second tutorial […]

Welcome to the second tutorial in our series geared towards Arduino programming on Node.js, using the Johnny-Five framework. Get caught up here. Johnny-Five is a Firmata based Arduino programming framework. See: JavaScript: Arduino Programming on Node.js. In the previous tutorial, you created a program that gave you a simple REPL control interface to a servo […]