These are chat archives for CodeHubOrg/discussions

22nd
Nov 2016
Dave Thomson
@rinse0ut
Nov 22 2016 15:22
@claudialoch Hope you can make the Christmas one. Mince pies and cherry!? :cake: :wine_glass:
I’ve made a proper start on the js101-roadmap. It’s now renamed to js101-guide and is in a new repo:
Please have a play about with it and add new sections and functionality
Katja Durrani
@katjad
Nov 22 2016 15:25
\o/ Can't look at it at the moment as I'm at work, but will check later!
yes mine pies!
mince
Tim Handy
@TimHandy
Nov 22 2016 15:43
@rinse0ut Hi Dave, you'll have to explain this to me next week :-) I get that it's a commandline app (and see that it's inspired by the workshopper node school stuff), but not sure I understand the why for this delivery method? I've used 'learnyounode' and similar before so get how they work. Is it just so it doens't need to be hosted as a website? does this make it simpler as no need for user logins? or just for the fun of creating a retro terminal app? or for learning to create a node module? or am I overlooking something more obvious? #confused :-)
Katja Durrani
@katjad
Nov 22 2016 15:57
I think it would be a chance to have all the Roadmap in one place, in a compavt form, and at the same time practice (also for the user) some of the things we want to use - commandline, JS, Node. I guess the crucial question is, is it relatively easy to update?
Dave Thomson
@rinse0ut
Nov 22 2016 15:58
@TimHandy Good question! My original idea was to make a simple js101 guide mobile app (I’m still keen to get something released this year). Basically with the same menu list and a simple section intro information. The terminal app is a kinda prototype for this (and it would be cool for our group to have an npm module!). It’s also a fun way to learn node (reverse engineer the workshopper module) and I hope everyone can contribute. I also thought it would be cool to have newcomers to the group install node and npm before they get here and then when they arrive to the group we can get them to install the module via npm and within 20 mins or so they can get a good high level view of javascript and what skills they need to acquire to contribute to our group projects.
@katjad Yes the section information is editiable in the guide.md readme files.
Executable code for each guide section is found in index.js
Have a go at adding a new section and let me know how you get on!
Menu items are updated menu.json
Tim Handy
@TimHandy
Nov 22 2016 16:02
Ahh, I see, that's a good explanation, I understand now. Thanks.
Dave Thomson
@rinse0ut
Nov 22 2016 16:03
You’ll also have to update the package.json script files to create new commands to run the executables eg npm run [example-section]
As I said I’m keen that we get an app shipped soon as well. So I might have a simple react-ioinc app ready for next session.
The terminal workshop is cool because you can write custom interactions with the user. Eg a multi choice quiz or anything you can think of.
Give it a try!
Dave Thomson
@rinse0ut
Nov 22 2016 16:13
The first three sections work btw.
Katja Durrani
@katjad
Nov 22 2016 19:17
@rinse0ut I keep getting an error about node-gyp rebuild, just sitting next to @TimHandy and it seems he got the same error, too. I tried googling it and fixing but so far no success. Could there be some dependency missing?
Dave Thomson
@rinse0ut
Nov 22 2016 19:32
What version of node are you using?
Katja Durrani
@katjad
Nov 22 2016 19:32
6.9.1
npm 3.9.5
Dave Thomson
@rinse0ut
Nov 22 2016 19:34
I’m on node -v
v7.0.0
npm -v
3.10.8
I’ve just done a fresh clone and install and it works, so try upgrading and try again.
Katja Durrani
@katjad
Nov 22 2016 19:35
What is the best way to upgrade on Ubuntu. Do you have a link? It always takes me a while to find it
Download it from nodejs.org
?
Ah I found it at the bottom here https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions curl and then npm install, that's what I did last time
What was the error btw?
Katja Durrani
@katjad
Nov 22 2016 19:44

npm WARN prefer global update@0.7.4 should be installed with -g

speaker@0.2.6 install /home/katja/JS101_2016/js101-guide/node_modules/speaker
node-gyp rebuild

make: Entering directory `/home/katja/JS101_2016/js101-guide/node_modules/speaker/build'
CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory

include <alsa/asoundlib.h>

                        ^

compilation terminated.
make: * [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1
make: Leaving directory /home/katja/JS101_2016/js101-guide/node_modules/speaker/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.13.0-96-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/katja/JS101_2016/js101-guide/node_modules/speaker
gyp ERR! node -v v7.1.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
js101-guide@1.1.0 /home/katja/JS101_2016/js101-guide
└── update@0.7.4 extraneous

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm WARN redbox-react@1.3.3 requires a peer of react@^0.14.0 || ^15.0.0 but none was installed.
npm WARN redbox-react@1.3.3 requires a peer of react-dom@^0.14.0 || ^15.0.0 but none was installed.
npm ERR! Linux 3.13.0-96-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install"
npm ERR! node v7.1.0
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE

npm ERR! speaker@0.2.6 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.6 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the speaker 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 information on how to open an issue for this project with:
npm ERR! npm bugs speaker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls speaker
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/katja/JS101_2016/js101-guide/npm-debug.log

I'm still getting it. My npm didn't update for some reason, don't know if that is why :(
Dave Thomson
@rinse0ut
Nov 22 2016 19:45
npm ERR! Make sure you have the latest version of node.js and npm installed.
Katja Durrani
@katjad
Nov 22 2016 19:49
I don't manage to update my npm for some reason. It keeps being 3.9.5
I did sudo npm install npm@latest -g
Katja Durrani
@katjad
Nov 22 2016 19:50
I've been on that page. I've removed .node-gyp..
I’m on a mac book air :/
Dave Thomson
@rinse0ut
Nov 22 2016 20:00
Please pull from master and try again
I removed the package causes the error.
Dave Thomson
@rinse0ut
Nov 22 2016 20:17
@katjad @TimHandy Any joy with the latest update?
Katja Durrani
@katjad
Nov 22 2016 20:24
It wasn't Node, it was a dependency of the speaker package https://www.npmjs.com/package/speaker - On Ubuntu you need to install that libasound2-dev package!
David who runs Hack night worked it out
I've just taken the red pill! wod
wow
Dave Thomson
@rinse0ut
Nov 22 2016 20:28
welcome to the matrix!
try the blue pill anyway lol
but without my update
and turn your volume up!
Katja Durrani
@katjad
Nov 22 2016 20:30
I tried the blue
previously - will try again
But what do you mean without your update?
Dave Thomson
@rinse0ut
Nov 22 2016 20:31
what happened?
Katja Durrani
@katjad
Nov 22 2016 20:31
Btw the terminal-menu dependency is missing again :)
Dave Thomson
@rinse0ut
Nov 22 2016 20:31
did you get the annoying nyan cat and sound?
so you don’t get the menu?
Katja Durrani
@katjad
Nov 22 2016 20:32
Oh I get an error :(
Dave Thomson
@rinse0ut
Nov 22 2016 20:33
what commit are you on?
Katja Durrani
@katjad
Nov 22 2016 20:33
ba1ec2a
Dave Thomson
@rinse0ut
Nov 22 2016 20:33
okay not the latest
what error do you get?
Katja Durrani
@katjad
Nov 22 2016 20:34
Should I try the latest?
Dave Thomson
@rinse0ut
Nov 22 2016 20:34
no
actually yes,
Katja Durrani
@katjad
Nov 22 2016 20:34
Failed at the js101-guide@1.1.0 getting-started script 'node guides/getting-started/index.js'
Dave Thomson
@rinse0ut
Nov 22 2016 20:35
did you get the book section working?
Katja Durrani
@katjad
Nov 22 2016 20:38
It says Books and I get a list of four books
npm run books not doing anything at this stage, right?
Dave Thomson
@rinse0ut
Nov 22 2016 20:38
it does
Katja Durrani
@katjad
Nov 22 2016 20:39
What should it do?
Dave Thomson
@rinse0ut
Nov 22 2016 20:39
try it
Katja Durrani
@katjad
Nov 22 2016 20:40
I see it should open the Eloq JS site, but it's not working for me so far
Dave Thomson
@rinse0ut
Nov 22 2016 20:41
ah okay, something to do with ubuntu
Katja Durrani
@katjad
Nov 22 2016 20:41
Probably
Dave Thomson
@rinse0ut
Nov 22 2016 20:42
We could have a prompt asking the user which book they would like to look at or something about the authors
Katja Durrani
@katjad
Nov 22 2016 20:42
Yes that sounds good
Dave Thomson
@rinse0ut
Nov 22 2016 20:45
What do you think about the other menu items on the README?
Katja Durrani
@katjad
Nov 22 2016 20:50
I got the Nyan cat now! hahaha
Dave Thomson
@rinse0ut
Nov 22 2016 20:50
YAY! :cat:
With sound?
Katja Durrani
@katjad
Nov 22 2016 20:50
The lame module is missing from package.json! Possibly also bindings (I installed bindings before lame, so not sure it is needed)
Yes, with sound!
At first glance README looks good, will have a think about it. Great so far :)
I mean the whole thing :)
Dave Thomson
@rinse0ut
Nov 22 2016 20:56
Good node learning experience as well :)
There is a workshopper module, but this is rolled from scratch.
Thanks, glad you enjoyed it. Hope we can complete it and get it on nom!
*npm
Katja Durrani
@katjad
Nov 22 2016 21:05
yes that would be great