google / coding-with-chrome Goto Github PK
View Code? Open in Web Editor NEWAn Open Source Educational IDE.
License: Other
An Open Source Educational IDE.
License: Other
Perhaps add a 'x'
has been modified. Continue? <Yes|No>
What does continue mean? Continue Editing? Or Continue Exiting? (ok, I now know it means continue exiting)
Suggest changing to
changes have not been saved. Exit? <Yes|No>
Sphero:
Website:
Hi,
I had a play with coding-with-chrome at the BETT show in London, and it is quite awesome, great work guys!
I tried installing this locally (Windows 10 x64, node 5.0 x64) and encountered the following error:
> [email protected] build-cwc-files E:\workspaces\git\coding-with-chrome
> node build/cwc_files.js
[14%] cwc.ui.Builder Compiling 52 soy files to C:\Users\Carlos\AppData\Local\Temp\closure-builder-9H34MN4 (0.0 sec)soynode: Compile error
Error: spawn java ENOENT
[Soy Compiler Error] Failed for C:\Users\Carlos\AppData\Local\Temp\closure-builder-9H34MN4:Error: Error compiling templates
Then if I tried to run the chrome app anyway, it gets locked at "Building the Coding with Chrome UI" build step, which I guess it would be expected.
When you open blocks>EV3 or blocks>sphero the toolbox is color-coded, as indicated by a colored bar to the left of the toolbox. The toolbox for 'drawing' has no such color coding. Why? Perhaps add?
I compiled 2.1.9 and it still says 2.0.0
Currently "0 degrees" is pointing right. I would find it more intuitive if we make 0 degrees point up.
It flashes past quickly but when loading CwC I get a couple of strange characters, like § etc I think..
At the moment we assume the following setup:
But because we know which Type of actor and sensor is connected to which port we should get rid of this and use the auto-detected sensors and actors.
Need some location of video resources. Very important to have them next to the main interface, but would also put them in the 'built in gallery' you have created. Perhaps consider a 'group of videos'
Suggest opening main UI and starting the video in separate window.
Perhaps make it a default-on option, but for computer beginners it's too easy to accidentally click outside the window and then lose the app.
The first steps help is mildly useful (we should update it) but it blocks using the rest of CWC. Can we create a new window?
Whatever Sphero Sensors are available, implement in blockly and javascript. Ideally multiple blocks including a binary "triggered or not" and perhaps a full "value"
Remove it?
Cmd-Q quits without warning
Cmd-S does not save file.
Perhaps this is a Chrome quirk, but the example form javascript works, but if you try to edit the input name box (and use backspace to remove what you typed) it doesn't work.(and I'm worried what I deleted.. I heard a 'rrrip' sound... possibly a blockly block delete sound)
This screens -> These screens
Maybe we should integrate Python as input language as well.
1/ It says its disabled but it is not?
2/ It says 'checking bluetooth state' but never gives any outcome. Suggest "no bluetooth devices found" or
Currently, we can tell sphero to go direction degrees, where (say) 90deg is 'right'.
It would be very good if we can also implement a block that allows us to program the sphero in a more relative way, i.e. "turn x degrees" and then "move forward".
Reason is that it is a lot more easy to use variables and loops ("turn x degrees, move forward, repeat a few times")
The npm install command fails with this log...
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! path /Users/rahulbawa/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall opennpm ERR! package.json ENOENT: no such file or directory, open '/Users/rahulbawa/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.npm ERR! Please include the following file with any support request:
npm ERR! /Users/rahulbawa/npm-debug.log
As subject, advanced -> robots -> ev3 -> new project opens a blockly interface, should be Javascript
Intro video should be in the Welcome Screen. Perhaps a 3rd option next to the choice of 'beginner' and 'advanced user'
The closure compiler failed for some instances with:
...
Sample usage: --compilation_level (-O) VAL --externs VAL --js VAL --js_output_file VAL --warning_level (-W) [QUIET | DEFAULT | VERBOSE]
Run with --help for all options and details
...
I'm running crouton on an Acer C720P and npm run build
fails. At first it failed because I didn't have a Java installation on my machine but after sudo apt-get install default-jdk
that worked itself out nicely. However, now it fails with the below. Any ideas on how to proceed?
[ ... lots of removed output here ... ]
[100%] HTMLHint files [Done] (0.0 sec)
[14%] CodeMirror css Saving output to genfiles/external/codemirror/codemirror.css (0.9 sec)/var/host/media/removable/SD Card/Projects/coding-with-chrome/node_modules/closure-builder/build_compilers.js:375
var message_info = message.match(message_reg);
^
TypeError: undefined is not a function
at Function.<anonymous> (/var/host/media/removable/SD Card/Projects/coding-with-chrome/node_modules/closure-builder/build_compilers.js:375:34)
at /var/host/media/removable/SD Card/Projects/coding-with-chrome/node_modules/closurecompiler/ClosureCompiler.js:289:21
at ChildProcess.<anonymous> (/var/host/media/removable/SD Card/Projects/coding-with-chrome/node_modules/closurecompiler/ClosureCompiler.js:276:15)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
npm ERR! Linux 3.8.11
npm ERR! argv "node" "/usr/local/bin/npm" "run" "build-extra-files"
npm ERR! node v0.12.9
npm ERR! npm v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build-extra-files: `node build/extra_files.js`
npm ERR! Exit status 1
[ ... and more removed output here ... ]
Suggest "copyright 2013-<$date_latest_build>"
New project button should probably behave the same as 'quit cwc, restart cwc', i.e. check 'show welcome screen' is ticked or not, and jump immediately to beginner or advanced home screen.
see subject
E.g. load a blockly example from gallery, then try to go back to main screen. It will say changes are not saved, even if I didn't change anything.
1/ install git
2/ install node.js
3/
Last login: Mon Jan 18 00:44:34 on console
Martens-Mac:~ marten$ git clone git://github.com/google/coding-with-chrome.git
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Martens-Mac:~ marten$ git clone git://github.com/google/coding-with-chrome.git
Cloning into 'coding-with-chrome'...
remote: Counting objects: 1140, done.
remote: Compressing objects: 100% (249/249), done.
remote: Total 1140 (delta 107), reused 0 (delta 0), pack-reused 878
Receiving objects: 100% (1140/1140), 993.41 KiB | 335.00 KiB/s, done.
Resolving deltas: 100% (578/578), done.
Checking connectivity... done.
Martens-Mac:~ marten$ cd coding-with-chrome/
Martens-Mac:coding-with-chrome marten$ ls
CONTRIBUTING.md build resources
LICENSE-HEADER doc spec
LICENSE.md documentation.json src
README.md karma.conf.js test
app package.json third_party
Martens-Mac:coding-with-chrome marten$ git checkout jquery-turtle
Branch jquery-turtle set up to track remote branch jquery-turtle from origin.
Switched to a new branch 'jquery-turtle'
Martens-Mac:coding-with-chrome marten$
Martens-Mac:coding-with-chrome marten$ npm install
loadDep:jquery-turtle → n ▀ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:jquery-turtle → n ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
^C
Martens-Mac:coding-with-chrome marten$
(stuck)
I tried to do some Basic coding, but when I wrote the following program, I got a weird error that I couldn't cut & paste:
10 print "Hello, World!"
20 goto 10
@MartenvanWezel told me to file a bug report.
I'm running crouton on an Acer C720P and npm install
fails. Any ideas on how to proceed?
(trusty)johan@localhost:/media/removable/SD Card/Projects/coding-with-chrome$ npm install closure-builder
[email protected] /var/host/media/removable/SD Card/Projects/coding-with-chrome
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 3.8.11
npm ERR! argv "node" "/usr/local/bin/npm" "install" "closure-builder"
npm ERR! node v0.12.9
npm ERR! npm v3.5.3
npm ERR! path ../acorn/bin/acorn
npm ERR! code ENOSYS
npm ERR! errno -38
npm ERR! ENOSYS, symlink '../acorn/bin/acorn'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/host/media/removable/SD Card/Projects/coding-with-chrome/npm-debug.log
Subject says it all, put the credits of the app into the app somewhere.
chrome://credits is a nice example but doesn't have to be fancy, a verbatim copy and paste of Notice.md is fine.
When 'save as' is used: delete author name (and overwrite with current username if we know it)
Update title of file to match filename
Menu -> Open -> Local file -> cwc/resources/examples/Pencil Code - Turtle Catch.cwc
Runs the 'draw a star with cubes' demo program.
Put next to Advanced EV3 new project
So with the default value of the block ("20") my sphero doesn't move.
With a value of 100 it moves fine
Switches from black when window is small to white when larger
1/ Open example, new project, whatever
2/ Click on the title of the project eg "Untitled Basic Blockly File"
3/ In the small window, hit 'cancel' or push the 'escape' button
4/ Title disappears
Given that the sphero block we have moves forward forever, we need a timer.
Your example (that chains move forward, 90, 180, 270..) does drive a square but it seems to be some implicit wait time between processing blocks? Not intuitive or I don't get it..
In Code>Basic Coding (and all other Code items), the system draws a triple-dot menu button in the top-middle of the screen. The button does nothing (in blocks mode it switches to editor). If it does nothing, remove/hide it?
I guess the 'use beginner mode' text link would be a bit redundant but I don't think this is a big problem.
When opening a new file I would expect an 'unsaved changes, save?' type dialog..
There is a separator between the 'code' section and the 'output' section.
To resize these two windows, you move the pointer to that separator, the mouse pointer changes to 'move slider' and then you drag and drop to then desired location.
In OSX at least, the pointer only switches from normal to 'adjust the separator' if you move your pointer in from the left. Strange.
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.