kenperlin / chalktalk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We're moving documentation to the GitHub wiki, we should make sure it has everything from the doc folder and then remove that folder.
Doc's files (tick when moved to wiki is confirmed):
Before it was possible to run the Chalktalk server on one machine and view the same Chalktalk instance from another machine by loading ip_address_of_server_machine:11235. This works on the master branch, but not on the mr branches. Also, I notice that on the mr branches, the server crashes if you try refreshing the page. In the master branch this does not happen. I wonder if the issues with server connectivity are related.
We should restore this if possible to allow for easier testing when we try implementing multiple cursors.
On the subject of multiple cursors, I thought it may be possible to start with a cursor per sketchPage since I found the following:
g.js L 1747
events_canvas.keyDown = function(key) { e2s(); sketchPage.keyDown(key); }
events_canvas.keyUp = function(key) { e2s(); sketchPage.keyUp(key); }
events_canvas.mouseDown = function(x, y, z) { e2s(); sketchPage.mouseDown(x, y, z); }
events_canvas.mouseDrag = function(x, y, z) { e2s(); sketchPage.mouseDrag(x, y, z); }
events_canvas.mouseMove = function(x, y, z) { e2s(); sketchPage.mouseMove(x, y, z); }
events_canvas.mouseUp = function(x, y, z) { e2s(); sketchPage.mouseUp (x, y, z); }
However, I doubt this would work since there are other global variables not tied to the page that probably control mouse movement and actions. It may be worth a try though!
Sorry for the simple question, but when I try to clone using
git clone [email protected]:kenperlin/chalktalk.git --depth=1
I get a permissions error. Not a frequent user of git, so perhaps a simple fix for this?
thanks
Steve Lewis
The camera needs to be initialized with:
console.log("chroma-key: start video", stream);
// init video object
this.videoStream = stream;
this.video = document.createElement("video");
this.video.autoplay = true;
this.video.srcObject = stream;
(Line 169 in chroma-key js)
If you try to install with node 12 you get a lot of errors like:
~\chalktalk\server\node_modules\bufferutil\src\bufferutil.cc(25): error C2039: 'Handle': is not a member of 'v8'
Seems to be utf-8-validate
and bufferutil
causing the problem.
Looks like a similar error to nodejs/node-gyp#1804 (comment)
Might be worth upgrading these packages or just putting a note in the install page on the wiki.
>npm --version
6.9.0
>node --version
v12.0.0
Saw another issue mentioning about not being able to install on Node 12. Therefore upgraded to the latest Node 14.6.0 but still couldn't install.
Mac OS version: 10.15.5
NodeJS version: 14.6.0
The errors began with:
[email protected] install /Volumes/TBack/Development/chalktalk/server/node_modules/bufferutil
node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
../src/bufferutil.cc:25:30: error: no template named 'Handle' in namespace 'v8'
static void Initialize(v8::Handlev8::Object target)
~~~~^
../src/bufferutil.cc:33:86: error: too few arguments to function call, single
argument 'context' was not specified
...Nan::New("BufferUtil").ToLocalChecked(), t->GetFunction());
~~~~~~~~~~~~~~ ^
/Users/soro/Library/Caches/node-gyp/14.6.0/include/node/v8.h:6475:3: note:
'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/soro/Library/Caches/node-gyp/14.6.0/include/node/v8config.h:431:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
Create a ./font directory , move font files in it, bulk edit all links/usages of these files within the project.
Also, maybe we might add a few more sketch types if it becomes obvious they are missing.
Also, we should take inventory of THREE.js sketches and decide what to do about them.
I can draw stuff but nothing gets recognized.
I'm using google-chrome on ArchLinux
When I run the command ./run.linux
I get:
[3117:3159:1106/205432.945107:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
Created new window in existing browser session.
In Google DevTools I get:
THREE.WebGLRenderer 70
midi.js:15 Something went wrong while requesting MIDI access: InvalidStateError: Platform dependent initialization failed.
I m trying to have Chalktalk load/start with in an app that I'am developing.
I have added this to the background-process.js file like this
require('./chalktalk/server/main.js')
When the app starts Chalktalk throws the following error
App threw an error during load
RangeError: "port" argument must be >= 0 and < 65536
Is there a way to start Chalktalk server using require ?
Is it possible to start Chalktalk sever without it launching chrome ?
Thanks
Regardless of OS, all users will have Nodejs / npm.
Also, installing the server via node / npm scripts would ease install by standizing it.
Proposal :
/Chalktalk
└─┬ /Server/
├── /node_modules/ -- we want to install that !
As it looks like we're working towards removing THREE.js as a dependency (#22).This issue breaks that out into its own issue with a listing of sketches so we can update progress.
I am unsure of the state of Ken's replacement for THREE.js, so I'll leave it to others as to how to proceed.
Please Help ! I kick started the README.md which is now a decent manual.
Still, the section #UI's API doesn't look good with the current few holes XD
Need someone with Chalktalk's usage knowledge to finish this README.md. Who could help to complete the empty [ ]
??
Pardon me. I'm new and a novice when it comes to working with GitHub so forgive me for sounding like one. I followed all of the installation instructions for ChalkTalk and when I try and run ChalkTalk in my browser by typing in localhost:11235, I get this message: "localhost refused to connect". Any tips are appreciated.
One of the biggest stumbling blocks for new users is the fact that in Chalktalk, stroke order and direction matters, and if you draw a sketch that looks like, say a pendulum, but you do it with the wrong stroke order, you end up with a completely different-looking sketch instead.
We can easily loosen these restrictions. When sketches are loaded, rather than just adding their strokes to the recognizer, Chalktalk could also generate every possible variation of the strokes (different orders, different directions) and recognize based on those as well. This would be a relatively simple way of removing one of the bigger stumbling blocks that new Chalktalk users have with the system.
In doing so, we'd have to address the issue that certain sketches would have to be changed for being too similar to each other (such as the handful of sketches that are shaped like a circle, or the two speaker-shaped audio sketches).
Note that stroke count would still matter, and this is necessary because stroke count is used to narrow down the number of sketches that a freehand drawing could possibly be (making recognition much more efficient).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.