Ali Ghali
@alighali85
@ninabreznik thanks nina i did it with enum, 🌼
Fannie Yeh
@fannietaeyang
@ninabreznik @serapath
I'm following the video about lesson 113. I think you still haven't fixed the bug issue with scroll.
It just needs to correct a code line in css at the below
body, html {
height: 100%;
width: 100%;
overflow-y: auto;
}
Alexander Praetorius
@serapath
oh ok. wait. let me check. sry :-)
hm, is it lesson 113 on the app or in the video description?
Or is the scrolling related bug, that you can't see all of the preview in requirebin.com?

We are working on the next version of the app, so that's why we are kind of not updating the current one so much :-)
One solution would be to not use "requirebin.com", but instead use "codepen.io" and copy/paste a snippet that allows to use "require" on codepen :-)

Can you just tell me again what this "bug" is about and on which lesson it is on the app? (is it app lesson 104?)

Alexander Praetorius
@serapath
What is the content about @fannietaeyang
Nina Breznik
@ninabreznik
@fannietaeyang So by adding this to css, it works for you?
@serapath I think @fannietaeyang is talking about lesson number not youtube. So, I guess lesson 113?
Alexander Praetorius
@serapath
dat://aae8505a1469bb295e6921d5866f60e329cf0f00fb78536b99d38afc32e186b2
Alexander Praetorius
@serapath
var http = require('http')
var fs = require('fs')
var websocket = require('websocket-stream')


var serverHTTP = http.createServer(handler).listen(8080, function (error) {
  if (error) console.error(error)
  else console.log('server listens on', 'http://localhost:8080')
})

function handler (req, res) {
  if (req.url === '/index.html' || req.url === '/') {
    res.end('<!doctype html><meta charset="UTF-8"><body><script src="index.js"></script></body>')
  } else if (req.url === '/index.js') {
    var bundle = fs.createReadStream('bundle.js')
    bundle.pipe(res)
  } else if (req.url === '/json') {
    console.log(req.url)
    res.end(JSON.stringify({ a: 5 }))
  }
}


var wss = websocket.createServer({ server: serverHTTP }, connect)

var clients = []
var rooms = {}

var counter = 0
var hello = 0

function connect (stream, request) {

  clients.forEach(function (stream) { stream.write('new client connected') })
  clients.push(stream)

  console.log(stream)
  // console.log(stream._ultron.id)
  stream.on('data', function (data) {
    var msg = data.toString().split(':')
    if (msg.length === 2) {
      console.log(msg)
      var command = msg[0]
      var args = msg[1]
      if (command === 'join') {
        var roomName = args
        var room = rooms[roomName] || (rooms[roomName] = [])
        room.push(stream)
        room.forEach(function (stream) { stream.write('client joined ' + roomName) })
      }
    } else {
      console.log(data)
      counter++
      stream.write(counter + ' messages have been received')
    }
  })

  setInterval(function () {
    stream.write('hello from server, for the ' + hello + ' time')
    hello++
  }, 3000)

}
chire888881
@chire888881
@serapath this is my account haha. i am Jerry.
Alexander Praetorius
@serapath
ah :-) great
do you also have a twitter account?
@chire888881
Stefan G.
@itbsStefan
hi Alex & Nina just listen to Rico Albrecht new essay https://www.youtube.com/watch?v=ZdhYbcErI74&feature=youtu.be
Nina Breznik
@ninabreznik
Coding is the way to go :) Yesterday we were working from Ethereum office, since we have a contract with them for the last few months. Cryptocurrencies are on the rise and I will definitely be watching the field closely. It's inspiring :)
Alexander Praetorius
@serapath

@itbsStefan Hi Stefan. Ziemlich langes Video das sich sehr einfach auf 4 Minuten zusammenstauchen lässt - denn letzten endes - alles wahr - nur: who cares :-) ...he is talking to "beginners" ... 99% of what he is telling - even though it's true - is irrelevant and more a long complaint of how bad everything is. Somebody just woke up and figured out that things are not very nice. The only part that matters is https://www.youtube.com/watch?v=lrQX4CF6Bxs

...and after you know the problem from those 3 minutes, then you know. that this image: http://imgur.com/a/KK8hA ...is irrelevant, because only the upper part:Herrschaftsform: kapitalistisch` is what is relevant and it means: market economy + central banking** ...and if you agree that a free market economy is nice, because you have all those services and products and everyone can start something... then you might start focusing on how an alternative to central banking can look like... which brings you to look at technology like blockchain or more technically: merkle tree or merkle dag and how it can be used to enable a market economy...

  • => which means you can finally start getting productive and stop wasting time with endless talking and complaining like the very long video from above ;-)

But I AGREE :-) This very on talk which looks happens in a setting that looks very traditional and german - might be appealing/attractive to beginners (who dont know anything yet) with a german background. But that can only be a first step on a very very long journey that requires a lot of education, so that: insight = leads to => a plan = and then => skills to turn that plan into reality

...most people dont have the plan and once they finally realize who they could escape this madness...
...they have to educate themselves with the skills necessary to turn that plan into a reality...
...and that will requires many many years of hard work on one self and ppl around one self...
=> more importantly to search and ally up with ppl who already know and leave those behind who prefer to continue to stay asleep

Alexander Praetorius
@serapath
@pepebecker did you try something like below?
var websocket = require('websocket-stream')
var ws = websocket('ws://localhost:8080')
setup(ws)

function setup (ws) {
  ws.on('error', waitAndTryToReconnect)
  // ws.on('close', waitAndTryToReconnect) // is that needed?
  // .... do and send and/or receive stuff with websocket `ws`
}

function waitAndTryToReconnect (error) {
  if (error) { /* maybe check error first? */ }
  setTimeout(function connect () {
    ws = websocket('ws://localhost:8080')
    setup(ws)
  }, 500)
}
Stefan G.
@itbsStefan
yes you are right ;-)
denibbb
@denibbb
@serapath yo brother
I joined
Alexander Praetorius
@serapath

Welcome :-)

denibbb
@denibbb
is this only for JS learning group
?
Alexander Praetorius
@serapath
mainly
yes
denibbb
@denibbb
ok
great
Alexander Praetorius
@serapath
we have another community chat http://gitter.im/codingamigos/chat and a web page http://codingamigos.com which is the larger community of freelance remote developers trying to make the world a better place
but this here is our community learning channel and http://wizardamigos.com and the related app is our elearning platform for javascript
Nina Breznik
@ninabreznik
If you are complete beginner, you can follow video lessons and start first with a game, to get used to the syntax and to have some fun and later in the video lessons, you learn how to make your portfolio page and then how to build a quiz app for mobile phone.

http://app.wizardamigos.com

But if you want, you can also checkout the list of resources and learn alone - you can check some project examples and try to understand them and/or you checkout different free resources from the list here https://github.com/wizardamigosinstitute/service/blob/master/skillTree.md

mbsyaswanth
@mbsyaswanth
how to conmplete this lesson 1
Nina Breznik
@ninabreznik
Try playing it again and click all the link that appear and answer the questions in the video. @mbsyaswanth let me know if it works
Alexander Praetorius
@serapath
@mbsyaswanth did it work?
BetaGlucanSam
@BetaGlucanSam
I am not sure if this at all matters but is this programming lesson based on Python?
ok never mind. I just started watching the video.
Nina Breznik
@ninabreznik
@BetaGlucanSam all Javascript <3
BetaGlucanSam
@BetaGlucanSam
Are there many people coming to tonights meetup?
Nina Breznik
@ninabreznik
@BetaGlucanSam Our meetups are usually smaller, more personal, we don't have big presentation and guests but rather sit together and learn and/or co-work on stuff and exchange ideas and learnings. There is very rarely more than 10 people. Mostly somewhere around 5 :)
And we also meet once a week in Taipei and twice a week in Berlin
BetaGlucanSam
@BetaGlucanSam
@ninabreznik I went to the meetup last night and it was great! Thank you for organizing this. I feel I have many more meetups to attend and so much more to learn. Also, the amount of people there was perfect .
Oo Kang Zheng
@ookangzheng
just suggestion, in http://app.wizardamigos.com/ is it posibble add a course list, much more easy to find the course ( like not newbie, want get into deeper)
Alexander Praetorius
@serapath
i agree @ookangzheng this is important :-)

@ookangzheng we have a list of resources that we recommend to people who are more advanced already (check: https://github.com/wizardamigos/service/blob/master/skillTree.md)

Otherwise - you could go here and extract the video id's to play them on youtube directly https://github.com/wizardamigos/service/tree/master/curriculum

We are planning to remake the whole wizardamigos app in the next months, but are currently a bit busy :-)
...all this wizardamigos stuff is open source and free, so we have to see how we can find time, but it's definitely planned ;-)

Nina Breznik
@ninabreznik
@BetaGlucanSam That's nice to hrar. Yep, in the flood of meetups you can easily get overwhelmed so just go step by step, it's all about lifelong learning so there will always be something ;)
@ookangzheng Thanks for your feedback ;) what type of a course list would you recommend?