September 2012
1 post
Nginx and Lua ← →
For several months, we’ve been gradually integrating Lua into Mixlr’s front-end Nginx configuration.
Lua is a dynamic scripting language which can be embedded inside Nginx config files. This means that arbitrary Lua code can be executed inline during any phase of the Nginx request-handling process.
We started off just using Lua to route requests around backend servers, but it has...
August 2012
4 posts
Vanilla JS →
Vanilla JS is a fast, lightweight, cross-platform framework for building incredible, powerful JavaScript applications.
The 7 Habits of Highly Effective Mediocre... →
big fan.
Infinity.js →
∞ is a UITableView for the web: it speeds up scrolling through long lists and keeps your infinite feeds smooth and stable for your users
OpenMasse by juliangruber →
About to finish work on OpenMasse.
The ui still needs some heavy polishing.
Want to open multiple links at once but too tired to click on each?
OpenMasse to the rescue! When activated, this bookmarklet lets you draw a rectangle over the links you wish to open. Drop, and all the links are opened! (in tabs!).
July 2012
4 posts
TJ Holowaychuk: Components →
tjholowaychuk:
With the advent of numerous client-side JavaScript package managers, I wanted to write up some of my thoughts about the fragmentation that we have today, and some ways that I think we could really improve delivering packages a community. Keep in mind that these are only my opinions, everyone has…
Optimizing for Happiness // Speaker Deck →
<3
June 2012
3 posts
namebench - Open-source DNS Benchmark Utility →
Cross-platform utility that tests your DNS and other global DNS providers for speed. Only consider the first run of the bench suite since others following will only show proximity. The fastest one for me is Google’s.
http://felixge.s3.amazonaws.com/11/nodejs - best... →
when using callbacks:
pass errors as the first parameter
throw errors if they happen
try/catch for anything that could anyhow go wrong
log uncaught exceptions globally and exit the process
2 tags
Why I switched back from CoffeeScript to Vanilla...
And there are several reasons:
Documentation generators work better with the C comment syntax
Future Compability: EcmaScript 5, 6 etc. fix a lot of the problems CoffeeScript fixes in a native way. Who knows whether CoffeeScript will be as fast as V8 in implementing new features
Consistent syntax for calling functions: foo 1337 for foo(1337) is cool but foo(1337).bar ‘leet’...
May 2012
16 posts
Improving HTML5 Canvas Performance - HTML5 Rocks →
Why Our Code Smells - opensoul.org →
read this…and http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627 and http://www.amazon.com/Test-Driven-JavaScript-Development-Developers-Library/dp/0321683919
Js2coffee: convert JavaScript code to CoffeeScript →
Come on, convert your old code bases to coffeescipt :)
Js2coffee: convert JavaScript code to CoffeeScript →
Come on, convert your old code bases to coffeescipt :)
Algorithm for automatic cache invalidation -... →
Beautiful algorithm explainable using graph theory
What makes a good engineering culture? - Edmond... →
jQuery Knob demo →
vdemedes/restie →
JavaScript ORM that talks to RESTful interface, rather than database. For Node.js and browsers
Findings from JSPerf
I looked through JSPerf and noted the imo most important or surprising benchmarks.
Run them in your browser to see the exact results. Note that I only checked them in Chrome Dev.
I am going to write an extra post just for templating libraries with other browsers and syntax etc. taken in account.
Check object for property: === undefined is the fastest...
maritz/nohm →
Nohm is an object relational mapper (ORM) written for node.js and redis.
Zero downtime deploys for Rails apps →
niklasvh/html2canvas →
This script allows you to take “screenshots” of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
osuushi/Smooth.js →
Smooth.js takes an array of numbers or vectors and returns a parametric function that continuously interpolates that array. Smooth.js supports several interpolation methods, and flexible options for boundary behavior.
Delayed Image Loading on Long Pages →
Jenga - Physijs →
this…is…JENGA-IN-THE-BROWSER-LIKE-NEVER-BEFORE!!!
multi-server continuous deployment with fleet ::... →
April 2012
36 posts
CoffeeScript/Google Closure Demo →
compile coffeescript straight to google closure style javascript!
Semicolons in JavaScript are optional →
Meteor →
Meteor is a set of new technologies for building top-quality web apps in afraction of the time, whether you’re an expert developer or just getting started.
…all the same APIs are available on the client and the server — including database APIs…
…Just write your templates. They automatically update when data in the database changes… Supports any templating...
Walking on water and developing software from a specification are easy if both...
– Software Development Quotations by Edward V. Berard
azer/onejs →
converts nodejs (commonjs) packages into single, stand-alone javascript files that can be run on web browsers
Profiling Node.js « node blog →
need linux, put prints beautiful and informative charts
javascript - How to disable text selection using... →
mroth/lolcommits →
Takes a snapshot with your Mac’s built-in iSight/FaceTime webcam every time you git commit code, and archives a lolcat style image with it.
stroll.js - CSS3 Scroll Effects →
VALVE Handbook for new Employees →
visionmedia/git-extras →
GIT utilities — repo summary, repl, changelog population, author commit percentages and more
nelhage/reptyr - Reparent a running program to a... →
reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don’t want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.
JavaScript Module Pattern: In-Depth - by Ben... →
must read for js devs
JavaScript in JavaScript (js.js): Sandboxing... →
JavaScript Module Pattern: In-Depth →
with advice on how to split modules into files and more
Meteor →
Meteor is an ultra-simple environment for building modern websites. What once took weeks, even with the best tools, now takes hours with Meteor.
The web was originally designed to work in the same way that mainframes worked in the 70s. The application server rendered a screen and sent it over the network to a dumb terminal. Whenever the user did anything, that server rerendered a whole new...
Mumakil/Standalone-Deferred · GitHub →
This is a standalone implementation of the jQuery.Deferred interface. I wanted to use the wonderful Deferred interface in projects where I don’t want to include the whole big jQuery library but use for example zepto.
This project is trying to mimic $.Deferred as much as possible, but I wouldn’t be surprised if there are differences.
isaacs/node-supervisor →
A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.
Manage Linux init or startup scripts →
EPx - Small introduction to HTML5 Audio API →
explains real-time generation of audio with a function that is called when the buffer is running out of data. sweet.
TojiCode: Javascript memory optimization and... →