This file contains hidden or 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 express = require('express') | |
| , url = require('url') | |
| , util = require('util') | |
| , app = express.createServer() | |
| ; | |
| app.get('/getData', function(req, res){ | |
| console.log(util.inspect(req.query, false, 2)); | |
| res.send('Hello World, ' + req.query.start |
This file contains hidden or 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
| ~/Desktop§ npm install socket.io | |
| npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime' | |
| npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.dev' | |
| npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.ino' | |
| npm ERR! /sw/bin/gtar "-mvxpf" "-" "-o" "-C" "/var/folders/HX/HXMFaA8gFNC4WNt6MCP4v++++TI/-Tmp-/npm-1314473835860/1314473835860-0.012335359817370772/contents/___package.npm" /sw/bin/gtar: Ignoring unknown extended header keyword `SCHILY.nlink' | |
| npm ERR! |
This file contains hidden or 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
| ssh -vv [email protected] | |
| OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 | |
| debug1: Reading configuration data /Users/david/.ssh/config | |
| debug1: Applying options for hollaback.no.de | |
| debug1: Reading configuration data /etc/ssh_config | |
| debug2: ssh_connect: needpriv 0 | |
| debug1: Connecting to hollaback.no.de [64.30.138.193] port 36023. | |
| debug1: Connection established. | |
| debug1: identity file /Users/david/.ssh/identity type -1 | |
| debug2: key_type_from_name: unknown key type '-----BEGIN' |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import roslib; roslib.load_manifest('enclosure_escape') | |
| import rospy | |
| from geometry_msgs.msg import Twist | |
| from turtlebot_node.msg import TurtlebotSensorState | |
| # global variables | |
| bump = False | |
| # listen (adapted from line_follower | |
| def processSensing(TurtlebotSensorState): |
This file contains hidden or 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 redis = require('redis'), | |
| client = redis.createClient(); | |
| client.on("error", function (err) { console.log("Error " + err.stack) }); | |
| client.set('hello', 'mjr'); | |
| var timestamp = (new Date()).getTime() + 400e3; | |
| client.expireat('hello', timestamp, function(err, set) { | |
| client.ttl('hello', function (err, ttl) { | |
| console.log(ttl - timestamp); | |
| }); |
This file contains hidden or 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 fs = require('fs') | |
| var stdout = fs.readFileSync('./tap.log', 'utf8'); | |
| var TapConsumer = require("tap-consumer"); | |
| var tc = new TapConsumer; | |
| tc.on('data', function(c) { | |
| console.log('test result>',c); | |
| }); | |
| tc.on('end', function(err, total, passed) { |
This file contains hidden or 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
| ~/Downloads/node-v0.6.0§ ./configure --debug && make && make test-all >> config-debug-make-make-test-all.log | |
| Checking for program g++ or c++ : /usr/bin/g++ | |
| Checking for program cpp : /usr/bin/cpp | |
| Checking for program ar : /usr/bin/ar | |
| Checking for program ranlib : /usr/bin/ranlib | |
| Checking for g++ : ok | |
| Checking for program gcc or cc : /usr/bin/gcc | |
| Checking for gcc : ok | |
| Checking for library dl : yes | |
| Checking for openssl : yes |
This file contains hidden or 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
| Using built-in specs. | |
| Target: i686-apple-darwin10 | |
| Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 | |
| Thread model: posix | |
| gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) |
This file contains hidden or 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
| ~/Downloads/node-v0.6.0§ gdb --args out/Debug/node test/simple/test-assert.js | |
| GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011) | |
| Copyright 2004 Free Software Foundation, Inc. | |
| GDB is free software, covered by the GNU General Public License, and you are | |
| welcome to change it and/or distribute copies of it under certain conditions. | |
| Type "show copying" to see the conditions. | |
| There is absolutely no warranty for GDB. Type "show warranty" for details. | |
| This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........... done | |
This file contains hidden or 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
| /Dropbox/dev/npmpants/slave/test(master)§ npm test nano | pbcopy | |
| sh: ./node_modules/ensure/bin/tap.js: No such file or directory | |
| npm ERR! [email protected] test: `./node_modules/ensure/bin/tap.js tests/*/*.js` | |
| npm ERR! `sh "-c" "./node_modules/ensure/bin/tap.js tests/*/*.js"` failed with 127 | |
| npm ERR! | |
| npm ERR! Failed at the [email protected] test script. | |
| npm ERR! This is most likely a problem with the nano package, | |
| npm ERR! not with npm itself. | |
| npm ERR! Tell the author that this fails on your system: | |
| npm ERR! ./node_modules/ensure/bin/tap.js tests/*/*.js |