a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
var connect = require('connect') | |
, proxy = require('http-proxy') | |
function redirect(loc) { | |
return connect.createServer(function(req, res){ | |
res.writeHead(301, { "Location": loc }); | |
res.end(); | |
}); | |
} |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'geoip' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /root/.npmrc | |
verbose config file /usr/etc/npmrc | |
silly exec /usr/bin/node "/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js" "kuno" 0 | |
silly output from getuid/gid {"uid":1000,"gid":0} | |
silly output from getuid/gid | |
verbose into /usr/lib [ 'geoip' ] |
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'socket.io' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /root/.npmrc | |
verbose config file /usr/etc/npmrc | |
silly exec /usr/bin/node "/usr/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0 | |
silly output from getuid/gid {"uid":99,"gid":0} | |
silly output from getuid/gid | |
verbose into /usr/lib [ 'socket.io' ] |
pkgname=v8-current | |
pkgbasename=v8 | |
pkgver=3.6.2 | |
pkgrel=1 | |
pkgdesc='A fast and modern javascript engine' | |
arch=('i686' 'x86_64') | |
url='http://code.google.com/p/v8' | |
license=('BSD') | |
makedepends=('subversion' 'scons') |
---------- Forwarded message ---------- | |
From: Mark S. Miller <[email protected]> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: [email protected] | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |
# -*- coding: utf-8 -*- | |
""" | |
amazon_sender.py | |
~~~~~~~~ | |
Python helper class that can send emails using Amazon SES and boto. | |
The biggest feature of this class is that encodings are handled properly. | |
It can send both text and html emails. | |
This implementation is using Python's standard library (which opens up for a lot more options). |
import re | |
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone | |
from metaphone import dm as double_metaphone | |
# get the Redis connection | |
from jellybean.core import redis | |
import models | |
# Words which should not be indexed |
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |