Git Product home page Git Product logo

node-websocket-activity-monitor's Introduction

node-websocket-activity-monitor

Show, don't tell

Prerequisite

  • node.js
  • ruby - just to server static files. Can be anything
  • OS which runs "iostat". Most linux and osx should be okay. Don't know about windows.
  • A browser which supports HTML5 canvas

How to get this

git clone git://github.com/makoto/node-websocket-activity-monitor.git

How to setup on WebSocket supported browsers

node server/websocket-server-node.js/server.js
open client/web-socket-js/iostat-client.html # in Websocke supported browser (eg: Chromium, OSX Chrome)

How to setup on NON WebSocket supported browsers (tested on firefox, and safari)

node server/websocket-server-node.js/server.js
cd client/web-socket-js
ruby server.rb
open http://localhost:10080/iostat-client.html

How to make your cpu 100%

From console, type the following

while true; do echo 'a'; done

Crtl + c will terminate the command.

My bits and bobs

  • README.md
  • client/web-socket-js/iostat-client.html
  • client/web-socket-js/style.css
  • client/web-socket-js/server.rb
  • server/websocket-server-node.js/resources/iostat.js

Others (Thanks !!)

  • jquery - The Write Less, Do More, JavaScript Library
  • underscore - Functional Programming Aid for Javascript. Works well with jQuery.
  • RGraph - A canvas graph library based on the HTML5 canvas tag
  • web-socket-js - HTML5 Web Socket implementation powered by Flash
  • websocket-server-node.js - A Web Socket server for local use written in JavaScript, using node.js

NOTE: I forked websocket-server-node.js and implemented support for websocket-server-node.js

Todo

  • Tidy up file structures
  • Remove ruby (please someone let me know nice ways to server static files from node.js)
  • Write a blog post

License

My bits and bobs are MIT, but be aware of others. Especially RGraph has its own license, and you can not use it for commercial purpose, I think...

node-websocket-activity-monitor's People

Watchers

 avatar  avatar

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.