This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Copyright (c) 2008 Luke Galea www.ideaforge.org | |
%% Permission is hereby granted, free of charge, to any person obtaining a copy | |
%% of this software and associated documentation files (the "Software"), to deal | |
%% in the Software without restriction, including without limitation the rights | |
%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
%% copies of the Software, and to permit persons to whom the Software is | |
%% furnished to do so, subject to the following conditions: | |
%% The above copyright notice and this permission notice shall be included in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Copyright (c) 2008 Luke Galea www.ideaforge.org | |
%% Permission is hereby granted, free of charge, to any person obtaining a copy | |
%% of this software and associated documentation files (the "Software"), to deal | |
%% in the Software without restriction, including without limitation the rights | |
%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
%% copies of the Software, and to permit persons to whom the Software is | |
%% furnished to do so, subject to the following conditions: | |
%% The above copyright notice and this permission notice shall be included in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = path = require('path'); | |
require.paths.unshift(path.join(__dirname, "../node_modules")); | |
require.paths.unshift(path.join(__dirname, "../vendor")); | |
require('noop'); | |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema, | |
ObjectId = Schema.ObjectId; | |
var ObservationSchema = new Schema({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = path = require('path'); | |
require.paths.unshift(path.join(__dirname, "../node_modules")); | |
require.paths.unshift(path.join(__dirname, "../vendor")); | |
require('noop'); | |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema; | |
mongoose.connect('mongodb://localhost/pumper'); | |
var ObservationSchema = new Schema({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = path = require('path'); | |
require.paths.unshift(path.join(__dirname, "../node_modules")); | |
require.paths.unshift(path.join(__dirname, "../vendor")); | |
require('noop'); | |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema; | |
mongoose.connect('mongodb://localhost/pumper'); | |
var ObservationSchema = new Schema({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Pumper</title> | |
<link rel="stylesheet" href= | |
"http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" | |
type="text/css"> | |
<script src="http://code.jquery.com/jquery-1.5.min.js" type= | |
"text/javascript"> | |
</script> | |
<script src= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// your_prompt_$ sudo sysctl -w kern.maxfiles=65536 | |
// your_prompt_$ sudo sysctl -w kern.maxfilesperproc=32768 | |
var exec = require('child_process').exec, | |
http = require('http'), | |
_ = require('underscore'), | |
crypto = require('crypto'); | |
var md5 = function(str) { | |
var hash = crypto.createHash('md5'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Panopticon is a type of prison building designed by English philosopher and social theorist Jeremy Bentham in 1785. | |
// The concept of the design is to allow an observer to observe (-opticon) all (pan-) prisoners without the incarcerated being able to tell whether they are being watched, | |
// thereby conveying what one architect has called the "sentiment of an invisible omniscience." | |
// Bentham himself described the Panopticon as "a new mode of obtaining power of mind over mind, in a quantity hitherto without example." | |
var lastAction = new Date(), | |
timeoutMins = 2, | |
keepAliveMins = 1, | |
timeoutEvent, | |
keepAliveEvent, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> [email protected] preinstall /var/www/apps/dsharp/releases/20110513005251/node_modules/canvas | |
> node-waf configure build | |
> [email protected] install /var/www/apps/dsharp/releases/20110513005251/node_modules/mongodb | |
> ./install.sh | |
./install.sh: line 2: [: too many arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: Object function (){ | |
var state = { | |
count: 0, | |
countWriten: 0, | |
field: '', | |
line: [], | |
lastC: '', |
OlderNewer