Jump to content

idjhalo

Member
  • Posts

    7
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

idjhalo's Achievements

  1. Hey guys so I'm trying to make a special compilation video of my favorite gamers matches. Sometimes the all 3 of my favorite streamers play in the same squad or duo's and I wanted to download both of their angles and make a comp video where the audio jumps to their prospective video as they chat but when I go to download the videos they are super poor quality. Anyone have any video downloading software they recommend?
  2. If you're looking for a website that focuses on cyber security cybrary.it has some really good options but they don't really "teach" they mainly help push what you already know if that makes sense?
  3. I'd call it the basics in the sense that I've already worked with a weather API that would pull the weather forecast via node.js but my hand was held by the course. I want to try one from scratch. I'm sorry I dont know how to be more specific as to what I know but I've been over the following; Loops, arrays, arrays, the dom, ajax basics, node, conditionals, fetch, get.
  4. I'm new to this forums here. Can you direct me to the site you're talking about?
  5. Hey guys so I'm just learning to code in Javascript and APIs and how it all works. I want to practice but idk where to start? Does anyone have any recommendations or can point me towards a free API that would be "fun" to work with as my first project?
  6. @pyroTheWise Yeah apparently it IS! lol smh. the tutorial video I'm watching must be older and they must have registered that after the fact? idk but in the tutorial the instructor used www and it was giving him the proper code so given that I was practically copy and pasting i thought the issue was my code. thank you so much.
  7. so I'm trying to create an error event handler in javascript. I'm purposely adding the website wrong so that I get a specific error message but thats not what I'm getting. When I run my code I get the following: undefined:1 SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/Users/elmaschingon/Desktop/app.js:24:30) at IncomingMessage.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1201:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) Here is my code below // Problem: We need a simple way to look at a user's badge count and JavaScript points // Solution: Use Node.js to connect to Treehouse's API to get profile information to print out const https = require('https'); // Function: to pring message to console function printMessage (username, badgeCount, points) { const message = `${username} has ${badgeCount} total badge(s) and ${points} points in Javascript.` console.log(message); } function getProfile(username) { // Connect to the API url const request = https.get(`https://wwwteamtreehouse.com/${username}.json`, response => { let body = ""; // Read the data response.on('data', data => { body += data.toString(); }); // Parse the data response.on('end', () => { const profile = JSON.parse(body); printMessage(username, profile.badges.length, profile.points.JavaScript ); }); }); request.on('error', error => console.error(`Problem with request: ${error.message}`)); } const users = process.argv.slice(2) users.forEach(getProfile); The really weird thing is that when I make the site "https://wwwwteamtreehouse.com" (adding an additional w and still missing the '.') I get the right error code that I'm looking for which is: Problem with request: getaddrinfo ENOTFOUND wwwwteamtreehouse.com Any help would be GREATLY appreciated guys
×