Giter Club home page Giter Club logo

test's Introduction

test

test's People

Contributors

dat-bot avatar finn-bot-test[bot] avatar finnp avatar greenkeeper[bot] avatar greenkeeperio-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

test's Issues

NodeSchool #29

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

NodeSchool #28

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

httpserver ECONNREFUSED

the TCP net server worked for the previous exercise (time server), but when running the code for the httpserver through learnyounode run/verify, it will refuse all connections:

Error

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:45134): connect ECONNREFUSED
127.0.0.1:45134

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:8049): connect ECONNREFUSED
127.0.0.1:8049

If I just run it via node .\fileserver.js 45134 timeserver.js (or any other port, file in directory) I can then point my browser at http:/localhost:port/ and see the response without issue.

Note that I've also tried using the solution from learnyounode\exercises\http_file_server\solution\solution.js with the same connection refusal.

Ideas?

My Code

var http = require('http');
var fs = require('fs');

var port = Number(process.argv[2]);
var file = process.argv[3];

var server = http.createServer(function(req, res){
	res.writeHead(200, { 'content-type' : 'text/plain' });
	fs.createReadStream(file).pipe(res);
});

server.listen(port);

NodeSchool #30

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

NodeSchool #27

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

test

node test another

httpserver ECONNREFUSED

the TCP net server worked for the previous exercise (time server), but when running the code for the httpserver through learnyounode run/verify, it will refuse all connections:

Error

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:45134): connect ECONNREFUSED
127.0.0.1:45134

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:8049): connect ECONNREFUSED
127.0.0.1:8049

If I just run it via node .\fileserver.js 45134 timeserver.js (or any other port, file in directory) I can then point my browser at http:/localhost:port/ and see the response without issue.

Note that I've also tried using the solution from learnyounode\exercises\http_file_server\solution\solution.js with the same connection refusal.

Ideas?

My Code

var http = require('http');
var fs = require('fs');

var port = Number(process.argv[2]);
var file = process.argv[3];

var server = http.createServer(function(req, res){
	res.writeHead(200, { 'content-type' : 'text/plain' });
	fs.createReadStream(file).pipe(res);
});

server.listen(port);

Learnyourreact is not letting me select a workshop. Giving me errors if I type a workshop name.

menu.writeLine(chalk.bold(__('title'))

TypeError: Cannot read property 'writeLine' of null
at LegacyWorkshopper.Adventure.printMenu (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:499:7)
at LegacyWorkshopper.Adventure.execute (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:223:8)
at new LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:14:8)
at LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:8:12)
at Object. (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\learnyoureact.js:10:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

NodeSchool #28

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

Learnyourreact is not letting me select a workshop. Giving me errors if I type a workshop name. #81

menu.writeLine(chalk.bold(__('title'))

TypeError: Cannot read property 'writeLine' of null
at LegacyWorkshopper.Adventure.printMenu (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:499:7)
at LegacyWorkshopper.Adventure.execute (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:223:8)
at new LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:14:8)
at LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:8:12)
at Object. (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\learnyoureact.js:10:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

Learnyourreact is not letting me select a workshop. Giving me errors if I type a workshop name.

menu.writeLine(chalk.bold(__('title'))

TypeError: Cannot read property 'writeLine' of null
at LegacyWorkshopper.Adventure.printMenu (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:499:7)
at LegacyWorkshopper.Adventure.execute (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:223:8)
at new LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:14:8)
at LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:8:12)
at Object. (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\learnyoureact.js:10:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

NodeSchool #31

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

help

learnyounode not working

NodeSchool #27

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

f

f

Learnyourreact is not letting me select a workshop. Giving me errors if I type a workshop name.

menu.writeLine(chalk.bold(__('title'))

TypeError: Cannot read property 'writeLine' of null
at LegacyWorkshopper.Adventure.printMenu (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:499:7)
at LegacyWorkshopper.Adventure.execute (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\adventure.js:223:8)
at new LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:14:8)
at LegacyWorkshopper (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\node_modules\workshopper-adventure\index.js:8:12)
at Object. (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\learnyoureact\learnyoureact.js:10:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

d

d

NodeSchool #26

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

test

another node test

hello.bash not verifying

Error output

 Solution ===================

    Hello, world!

 Your Attempt ===================

    Hello, world!

 Difference ===================

    Hello, world!
    Hello, world!

My Code

#!/usr/bin/env bash
echo "Hello, world!"

This code is not executing despite having the same output. Thanks!

NodeSchool #27

  • ๐Ÿ“† Agree on a date:
  • ๐Ÿ“ Create ti.to page
  • ๐Ÿซ ๐Ÿป Post event on nodeschool.io
  • ๐Ÿ  Update homepage
  • ๐Ÿ’ธ Start ticket sale
  • ๐Ÿฆ Tweet about the event

httpserver ECONNREFUSED

the TCP net server worked for the previous exercise (time server), but when running the code for the httpserver through learnyounode run/verify, it will refuse all connections:

Error

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:45134): connect ECONNREFUSED
127.0.0.1:45134

PS path\to\lyn> learnyounode run .\fileserver.js
โœ— Error connecting to (http://localhost:8049): connect ECONNREFUSED
127.0.0.1:8049

If I just run it via node .\fileserver.js 45134 timeserver.js (or any other port, file in directory) I can then point my browser at http:/localhost:port/ and see the response without issue.

Note that I've also tried using the solution from learnyounode\exercises\http_file_server\solution\solution.js with the same connection refusal.

Ideas?

My Code

var http = require('http');
var fs = require('fs');

var port = Number(process.argv[2]);
var file = process.argv[3];

var server = http.createServer(function(req, res){
	res.writeHead(200, { 'content-type' : 'text/plain' });
	fs.createReadStream(file).pipe(res);
});

server.listen(port);

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.