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
| getData = function(field, callback) { | |
| console.log('this would get the data from ' + field + ' then continue'); | |
| db.getFromField(field, function(error, response) { | |
| if(!error) { | |
| data = response | |
| callback(data); | |
| callback('some data'); | |
| } | |
| } |
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
| getData = function(field, callback) { | |
| console.log('this would get the data from ' + field + ' then continue); | |
| // db.getFromField(field, function(error, response) { | |
| // if(!error) { | |
| // data = response | |
| // callback(data); | |
| callback('some data'); | |
| //} | |
| } |
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
| File '/home/pennyfan/webroot/apps/node/build/default/node' does not exist | |
| Waf: Leaving directory `/home/pennyfan/webroot/apps/node/build' | |
| Could not install the file '/home/pennyfan/webroot/local/bin/node' | |
| make: *** [install] Error 1 |
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
| ubuntu@domU-12-31-38-02-50-19:~$ npm install libxmljs | |
| npm info it worked if it ends with ok | |
| npm info using npm@0.2.4 | |
| npm info install libxmljs@0.4.1 | |
| npm info preinstall libxmljs@0.4.1 | |
| scons: Reading SConscript files ... | |
| OSError: [Errno 2] No such file or directory: | |
| File "/usr/local/lib/node/.npm/libxmljs/0.4.1/package/SConstruct", line 43: | |
| cflags = shellOut([xml2config, '--cflags']) | |
| File "/usr/local/lib/node/.npm/libxmljs/0.4.1/package/SConstruct", line 19: |
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 sys = require('sys'), | |
| http = require('http'), | |
| count = 0; | |
| initConnect = function(clientID) { | |
| connectSite = http.createClient(80, 'ws30.sync.skoreit.com'); | |
| connectRequest = connectSite.request('POST', '/request.ashx?key=11111111-1111-1111-1111-111111111111&token=' + new Date().getTime(), { | |
| 'host': 'ws30.sync.skoreit.com', | |
| 'Content-type': 'text/json; charset=utf-8', | |
| 'Connection': 'keep-alive', |
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
| paf@PAF:~/webroot/node.modules/node_pcap$ cd $(npm config get root)/.npm/pcap/active/package ; node-waf configure build | |
| npm info it worked if it ends with ok | |
| npm info version 0.2.0 | |
| npm ok | |
| 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 node path : ok /home/paf/.node_libraries |
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
| paf@PAF:~/webroot/node.modules/node_pcap$ node -v | |
| v0.2.1 | |
| paf@PAF:~/webroot/node.modules/node_pcap$ npm rm pcap | |
| npm info it worked if it ends with ok | |
| npm info version 0.2.0 | |
| npm info not installed pcap | |
| npm ok | |
| paf@PAF:~/webroot/node.modules/node_pcap$ npm install pcap | |
| npm info it worked if it ends with ok | |
| npm info version 0.2.0 |
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
| paf@PAF:~/webroot/node.modules/node_pcap$ npm link | |
| npm info it worked if it ends with ok | |
| npm info version 0.2.0 | |
| npm info link /home/paf/webroot/node.modules/node_pcap | |
| npm info install pcap@0.2.1-1-LINK-eeccddb4 | |
| 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 |
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
| root@PAF:~/webroot/node.modules/node_pcap# http_trace | |
| node.js:275 | |
| throw new Error("Cannot find module '" + request + "'"); | |
| ^ | |
| Error: Cannot find module './build/default/pcap_binding' | |
| at loadModule (node.js:275:15) | |
| at require (node.js:411:14) | |
| at Object.<anonymous> (/usr/local/lib/node/.npm/pcap/0.2.1/package/pcap.js:8:18) | |
| at Module._compile (node.js:461:23) |
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
| root@PAF:~/webroot/node.modules/node_pcap# npm install . | |
| npm ERR! sudon't! | |
| npm ERR! sudon't! Running npm as root is not recommended! | |
| npm ERR! sudon't! Seriously, don't do this! | |
| npm ERR! sudon't! | |
| npm info it worked if it ends with ok | |
| npm info version 0.2.0 | |
| npm info install pcap@0.2.1 | |
| npm info install pcap@0.2.1 | |
| Checking for program g++ or c++ : /usr/bin/g++ |