Skip to content

Instantly share code, notes, and snippets.

@Fabryz
Fabryz / gist:1176680
Created August 28, 2011 13:42
The damn favicon error
data: 2011-08-28T13:39:26.727Z: Error: No such file or directory
data: 2011-08-28T13:39:26.727Z: at /usr/local/src/Fabryz/wander/wanjitsu/server.js:67:20
data: 2011-08-28T13:39:26.727Z: at callbacks (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/lib/router/index.js:272:11)
data: 2011-08-28T13:39:26.727Z: at param (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/lib/router/index.js:246:11)
data: 2011-08-28T13:39:26.727Z: at pass (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/lib/router/index.js:253:5)
data: 2011-08-28T13:39:26.727Z: at Router._dispatch (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/lib/router/index.js:280:4)
data: 2011-08-28T13:39:26.727Z: at Object.handle (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/lib/router/index.js:45:10)
data: 2011-08-28T13:39:26.727Z: at next (/usr/local/src/Fabryz/wander/wanjitsu/node_modules/express/node_modules/connect/lib/http.js:19...
data: 2011-08-28T13:3
@Fabryz
Fabryz / gist:1176665
Created August 28, 2011 13:25
Locking error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: Application is locked while it is being stopped
error: at [object Object].stop (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:411:21)
error: at Object.<anonymous> (/root/nodejitsu/lib/nodejitsu/resources/app/service.js:165:25)
error: at Object.<anonymous> (/root/nodejitsu/node_modules/journey/lib/journey.js:257:46)
error: at Object.go (/root/nodejitsu/node_modules/journey/lib/journey.js:423:33)
error: at /root/nodejitsu/node_modules/journey/lib/journey.js:349:30
error: at /root/nodejitsu/node_modules/journey/lib/journey.js:281:39
@Fabryz
Fabryz / index.html
Created April 3, 2011 10:04
NowJS Introduction: Simple Chat Server in 12 Lines of Code
<!DOCTYPE html>
<html>
<head>
<title>NowJS test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="/nowjs/now.js"></script>
<script>
$(document).ready(function() {
now.name = prompt("What's your name?", "");
now.receiveMessage = function(name, msg) {
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
from socket import *
print "*** Client - Welcomato nella chat a turni ***\n"
IP = 'localhost'
PORT = 4000
ADS = (IP, PORT)
tcpsoc = socket(AF_INET, SOCK_STREAM)
tcpsoc.connect(ADS)