Giter VIP home page Giter VIP logo

socket.io-computer's People

Contributors

kevin-roark avatar rauchg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

socket.io-computer's Issues

Cannot find module 'browserify-middleware' on my mac air

I have executed npm install -g browserify-middleware, but when I execute node app.js, it had errors as follows:

module.js:340
    throw err;
          ^
Error: Cannot find module 'browserify-middleware'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/yanshuai/Downloads/socket.io-computer/app.js:2:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

How can I fix it?

Will it ever come back?

The site of this (socket.computer) has been restoring to a broken snapshot (or has completely frozen)
I was just wondering if it'll ever come back, or if it won't at all.

"THE EMULATOR DIED"

After running the command COMPUTER_IMG=winxp.img node emu-runner.js I receive the repeated messages:

running emu
THE EMULATOR DIED

I tried this on two separate machines, same problem, I'm using Ubuntu 14.04.

Issue: abuse

I was just curious if there is a safe-guard against people who create a new account, log-out, and then jump ship. I witnessed this just now and felt troubled how easy it was for the demo to be taking advantage of.

Do you re-provision the windows install after so many hours, so as to account for those who abuse the demo?

screenshot from 2015-01-08 17 01 49

Which version of nodejs should I use in Ubuntu?

Hello, everyone~
I'm trying to buld a socket.io-computer in ubtuntu 15.10, but I meet error in nodejs 0.8 & 0.10.
I can see the pages works well ,but I can't run the qemu because the package canvas can't be installed.

log are like that:

in node.js 0.10

./util/has_cairo_freetype.sh: line 4: pkg-config: command not found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while tryin to load binding.gyp
ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/root/.nvm/v0.10.39/lib/node_moduls/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:82012)
gyp ERR! System Linux 3.19.0-20-generic
gyp ERR! command "node" "/root/.nvm/v0.10.39/lib/node_modules/npm/node_modules/ode-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/socket.io-computer/node_modules/canvas
gyp ERR! node -v v0.10.39
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

> [email protected] install /root/socket.io-computer/node_modules/socket.io/ode_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory '/root/socket.io-computer/node_modules/socket.io/node_odules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/root/socket.io-computer/node_modules/socket.io/node_mdules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'

> [email protected] install /root/socket.io-computer/node_modules/socket.io-lient/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory '/root/socket.io-computer/node_modules/socket.io-clien/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/buil'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/root/socket.io-computer/node_modules/socket.io-clientnode_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.3","npm":"1.4.28"})

> [email protected] install /root/socket.io-computer/node_modules/socket.io/nodemodules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory '/root/socket.io-computer/node_modules/socket.io/node_odules/engine.io/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
make: Leaving directory '/root/socket.io-computer/node_modules/socket.io/node_mdules/engine.io/node_modules/ws/node_modules/bufferutil/build'
\
> [email protected] install /root/socket.io-computer/node_modules/jpeg
> node-gyp configure build

make: Entering directory '/root/socket.io-computer/node_modules/jpeg/build'
  CXX(target) Release/obj.target/jpeg/src/common.o
  CXX(target) Release/obj.target/jpeg/src/jpeg_encoder.o
In file included from ../src/jpeg_encoder.cpp:1:0:
../src/jpeg_encoder.h:6:21: fatal error: jpeglib.h: No such file or directory
 #include <jpeglib.h>
                     ^
compilation terminated.
jpeg.target.mk:86: recipe for target 'Release/obj.target/jpeg/src/jpeg_encoder.' failed
make: *** [Release/obj.target/jpeg/src/jpeg_encoder.o] Error 1
make: Leaving directory '/root/socket.io-computer/node_modules/jpeg/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/root/.nvm/v0.10.39/lib/node_modulesnpm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:82012)
gyp ERR! System Linux 3.19.0-20-generic
gyp ERR! command "node" "/root/.nvm/v0.10.39/lib/node_modules/npm/node_modules/ode-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /root/socket.io-computer/node_modules/jpeg
gyp ERR! node -v v0.10.39
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.39,"npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.39,"npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.0.39","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.39,"npm":"1.4.28"})

> [email protected] install /root/socket.io-computer/node_modules/socket.io-cliet/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory '/root/socket.io-computer/node_modules/socket.io-clien/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
make: Leaving directory '/root/socket.io-computer/node_modules/socket.io-clientnode_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls canvas
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.19.0-20-generic
npm ERR! command "/root/.nvm/v0.10.39/bin/node" "/root/.nvm/v0.10.39/bin/npm" "nstall"
npm ERR! cwd /root/socket.io-computer
npm ERR! node -v v0.10.39
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

in nodejs 0.8

npm ERR! Error: No compatible version found: debug@'^0.8.0'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.1.0","0.2.0","0.3.0","0.4.0","0.4.1","0.5.0","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.8.0","0.8.1","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","2.0.0","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0"]
npm ERR!     at installTargetsError (/root/.nvm/v0.8.28/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR!     at /root/.nvm/v0.8.28/lib/node_modules/npm/lib/cache.js:641:10
npm ERR!     at saved (/root/.nvm/v0.8.28/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:302:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.19.0-20-generic
npm ERR! command "/root/.nvm/v0.8.28/bin/node" "/root/.nvm/v0.8.28/bin/npm" "instal"
npm ERR! cwd /root/socket.io-computer
npm ERR! node -v v0.8.28
npm ERR! npm -v 1.2.30

And with

npm WARN package.json [email protected] No repository field.

Total control possible since turn checking is clientside only

It's possible to set the value of hasTurn from the Chrome developer window to consistently be able to send mouse and keyboard commands to the computer, regardless of whether it's my turn or not.

This is because the server does not check whether the messages received were really from the current user.

Wrong JPEG library version: library is 80, caller expects 90

Hello.
I'm having a problem running socket.io-computer. I can get everything to work properly and even when I point to localhost:5000 I can see the webpage working. However when attempting to run the emu-runner.js, I get the following error:

Wrong JPEG library version: library is 80, caller expects 90
THE EMULATOR DIED

I have libjpeg9 but I'm still getting the error. Help?

Failed install on win7

Here is the output of the cmd window.

C:\socket.io-computer-master\node_modules\jpeg>if not defined npm_config_node_gy
p (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_m
odules\node-gyp\bin\node-gyp.js" configure build ) else (configure build )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\socket.io-computer-master\node_modules\jpeg
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok

[email protected] install C:\socket.io-computer-master\node_modules\canvas
node-gyp rebuild

C:\socket.io-computer-master\node_modules\canvas>if not defined npm_config_node_
gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node
_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\socket.io-computer-master\node_modules\canvas
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp configure build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp configure build'.
npm ERR! This is most likely a problem with the jpeg package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls jpeg
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\socket.io-computer-master\npm-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.