Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration
, select Apache Configuration
and then click on Reserved IPs Editor
.
var express = require('express') | |
, app = express.createServer() | |
app.use(express.cookieParser()) | |
app.use(express.session({ secret: 'foo' })) | |
app.use(function(req, res, next) { | |
console.log(req.url, typeof req.session) | |
next() | |
}) |
;(function() { | |
var parse = JSON.parse | |
JSON.parse = function(s, f) { | |
var ISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/ | |
return parse(s, f ? f : function(key, value) { | |
return typeof value === 'string' | |
? ISO.exec(value) && new Date(value) || value | |
: value | |
}) | |
} |
// | |
var dnode = require('dnode') | |
dnode({ | |
bar: function(cb) { | |
cb({ | |
foo: 'bar' | |
, date: new Date() | |
}) |
var locals = {} | |
var err | |
do { | |
err = undefined | |
try { | |
with(locals) { | |
foo | |
bar |
$ node | |
> require('dnode') | |
WideCharToMultiByte: ▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒ ▒▒ ▒▒▒ ▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒. | |
{ [Function: dnode] connect: [Function], listen: [Function] } | |
> |
net.js:539 | |
socket._readWatcher.set(socket.fd, true, false); | |
^ | |
TypeError: Cannot call method 'set' of null | |
at doConnect (net.js:539:23) | |
at net.js:696:9 | |
at dns.js:171:30 | |
at IOWatcher.callback (dns.js:53:15) |
// mit licenced | |
var sys = require('util') | |
, child_process = require('child_process') | |
, proc | |
process.title = 'nodie' | |
;(function respawn(app) { | |
console.log('Starting', app) |
html { | |
height:100% !important; | |
} | |
body { | |
height:110% !important; | |
} | |
.main-content { | |
height:0 !important; | |
overflow-y:scroll; | |
} |
- if ( (qa[s].length >= 3 && typeof hwknd.projects[item.name].description !== 'undefined' && !!~hwknd.projects[item.name].description.toLowerCase().indexOf(qa[s]) ) || ( qa[s].length >= 3 && typeof hwknd.projects[item.name].name !== 'undefined' && !!~hwknd.projects[item.name].name.toLowerCase().indexOf(qa[s]) ) || ( typeof hwknd.languages[item.name] !== 'undefined' && !!~this.searchKeys(hwknd.languages[item.name], qa[s]) ) || ( qa[s].length >= 3 && typeof hwknd.readmes[item.name] !== 'undefined' && !!~hwknd.readmes[item.name].toLowerCase().indexOf(qa[s]) ) ) |