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
$ jspp serve www | |
/usr/local/bin/jspp: line 1: syntax error near unexpected token `(' | |
/usr/local/bin/jspp: line 1: `var jspp = require('jspp')' |
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
Peter@PeteLappy ~/dAmnServer | |
$ npm install rbytes | |
npm info it worked if it ends with ok | |
npm info using npm@0.3.1 | |
npm info using node@v0.4.0 | |
npm ERR! gzip "--decompress" "--stdout" "/usr/local/lib/node/.npm/.cache/rbytes/0.0.2/package.tgz" | |
npm ERR! gzip "--decompress" "--stdout" "/usr/local/lib/node/.npm/.cache/rbytes/0.0.2/package.tgz" gzip: /usr/local/lib/ | |
node/.npm/.cache/rbytes/0.0.2/package.tgz: unexpected end of file | |
npm ERR! gzip "--decompress" "--stdout" "/usr/local/lib/node/.npm/.cache/rbytes/0.0.2/package.tgz" |
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 http = require('http'); | |
var https = require('https'); | |
/** | |
* @name deviant.js | |
* @author Peter Lejeck <peter.lejeck@gmail.com> | |
* @description deviantJS, handles the process of logging in. | |
* @version 0.1 | |
*/ |
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
exports.A = function(){ | |
var bar = function( ) { | |
return true; | |
} | |
/** | |
* Public stuff | |
**/ | |
return { | |
bar: bar, | |
}; |
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 test-mongo-1.js | |
node.js:116 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: undefined is not a function | |
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native) | |
at Schema.path (/usr/local/lib/node/.npm/mongoose/1.1.5/package/lib/mongoose/schema.js:139:24) | |
at Schema.add (/usr/local/lib/node/.npm/mongoose/1.1.5/package/lib/mongoose/schema.js:106:12) | |
at new Schema (/usr/local/lib/node/.npm/mongoose/1.1.5/package/lib/mongoose/schema.js:38:10) |
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 http = require('http'); | |
var https = require('https'); | |
var ejs = require('ejs'); | |
var pages = { | |
chat: { | |
list: '<% var rooms = [{owner:\'nuck\',name:\'chat:GoNuckYourself\',desc:\'Just go nuck yourself.\'},{owner:\'botdom\',name:\'chat:botdom\',desc:\'The home for bots on dAmn!\'}];%><html><head><title>dAmnode :: Chat List</title></head><body><center><table><tr><th>Chatroom Name</th><th>Creator</th><th>Description</th></tr><%for(var i = 0, l = rooms.length; i < l; i++) {var room = rooms[i].name.replace(\'chat:\',\'\');%><tr><td style="width:220px"><strong><a class="a" href="/chat/<%= room %>">#<%= room %></a></strong><br><span style="color:#6C7F77">10 deviants chatting</span></td><td style="padding-left:0; width:160px">$<a class="u" href="/user/<%= rooms[i].owner %>"><%= rooms[i].owner %></a></td><td colspan="2"><%= rooms[i].desc %></td></tr><% } %></table></center></body></html>', | |
}, | |
'': '<center><h1>Coming Soon: Nuck\'s dAmn Server!</h1></center>' | |
}; |
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
TypeError: Cannot read property '_httpMessage' of null | |
at ServerResponse.end (http.js:696:50) | |
at Object.<anonymous> (/cygdrive/c/Users/Peter/nuck.no.de/server.js:104:8) | |
at param (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/middleware/router.js:147:21) | |
at pass (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/middleware/router.js:163:10) | |
at Object.router [as handle] (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/middleware/router.js:169:6) | |
at next (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/http.js:204:15) | |
at Object.cookieParser [as handle] (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/middleware/cookieParser.js:44:5) | |
at next (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/http.js:204:15) | |
at Object.bodyParser [as handle] (/usr/local/lib/node/.npm/connect/1.1.1/package/lib/middleware/bodyParser.js:76:7) |
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@nuck ~]$ node-service-log | |
at Function._load (module.js:272:10) | |
at Array.<anonymous> (module.js:393:10) | |
at EventEmitter._tickCallback (node.js:108:26) | |
[ Apr 20 23:38:31 Stopping because all processes in service exited. ] | |
[ Apr 20 23:38:31 Executing stop method (:kill). ] | |
[ Apr 20 23:38:32 Executing start method ("env `cat /home/node/node-service/profile` /opt/nodejs/v0.4.1/bin/node /home/node/node-service/releases/20110420233831/server.js &"). ] | |
[ Apr 20 23:38:32 Method "start" exited with status 0. ] | |
node.js:116 |
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
<? | |
function get_birthdays() { | |
$socket = fsockopen( "birthdays.24bps.com", 80 ); | |
if ($socket === false) { | |
return false; | |
} | |
try { | |
$headers = ""; | |
$headers .= "GET /feed/today HTTP/1.1\r\n"; | |
$headers .= "Host: birthdays.24bps.com\r\n"; |
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
exports.flex_get = function(key, secret, path) { | |
return function(req, res, next) { | |
var apisig = crypto.createHash('md5').update(secret + 'ApiKey' + key + 'ServicePath/v1' + path + 'AuthToken' + req.flex_auth_token).digest('hex'); | |
var options = { | |
host: 'api.website.com', | |
port: 443, | |
path: '/v1' + path + '?AuthToken=' + req.flex_auth_token + '&ApiSig=' + apisig, | |
method: 'GET' | |
}; | |
var request = https.request(options, function(response) { |
OlderNewer