These are chat archives for FreeCodeCamp/Help

12th
Jan 2018
Bjorn
@bjorno43
Jan 12 2018 00:00 UTC
Which actually made me think about maintaining / updating it
But I'd like to cooperate with others on it. I mean, I'm good with PHP, but I'm not "amazing" with it. I'm sure lots of improvements can be made if users that do will colaborate with me :)
Daniel
@dkapexhiu
Jan 12 2018 00:03 UTC
how can i redirect a specified user after login to a specified page that contains his user id in url in php?
Bjorn
@bjorno43
Jan 12 2018 00:05 UTC
@dkapexhiu Header("Location: url.php?userid=". $userid);
Keep in mind that it can only done that way if no output has been sent to the browser yet
Gersho
@Gersho
Jan 12 2018 00:06 UTC

But I'd like to cooperate with others on it. I mean, I'm good with PHP, but I'm not "amazing" with it. I'm sure lots of improvements can be made if users that do will colaborate with me :)

i can't php but i added a star to your repo :p

Bjorn
@bjorno43
Jan 12 2018 00:07 UTC
IE: Don't use echo before it ;) @dkapexhiu
@Gersho Thanks :D
CamperBot
@camperbot
Jan 12 2018 00:07 UTC
bjorno43 sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 573 | @gersho |http://www.freecodecamp.org/gersho
@bjorno43 nice idea actually, was a great read
Bjorn
@bjorno43
Jan 12 2018 00:08 UTC
@RuinIsProbablyTaken Thanks :)
CamperBot
@camperbot
Jan 12 2018 00:08 UTC
bjorno43 sends brownie points to @ruinisprobablytaken :sparkles: :thumbsup: :sparkles:
:cookie: 753 | @ruinisprobablytaken |http://www.freecodecamp.org/ruinisprobablytaken
when i was doing my 1 year course, i would make sure that all of my assignments were super secure just cuz everyone jerks off about how much of a rotten language php is, as if it's actual malware lmao
Gersho
@Gersho
Jan 12 2018 00:11 UTC
surely they were thinking about flash :P
Bjorn
@bjorno43
Jan 12 2018 00:11 UTC
^ lol
the meme languages of the interwebs
Bjorn
@bjorno43
Jan 12 2018 00:12 UTC
But ye. Any language is dangerous in the wrong hands, lol
Daniel
@dkapexhiu
Jan 12 2018 00:12 UTC
thank you @bjorno43
CamperBot
@camperbot
Jan 12 2018 00:12 UTC
dkapexhiu sends brownie points to @bjorno43 :sparkles: :thumbsup: :sparkles:
:cookie: 183 | @bjorno43 |http://www.freecodecamp.org/bjorno43
ya, php is extra liberal tho
i would always get people going "ewww php use js/ruby/go" or whatever tangent there's an active circle jerk for at the time
and then you ask them "ok so what's that much better about language x" and they go "it's just.. it's just better okay"
Bjorn
@bjorno43
Jan 12 2018 00:15 UTC
Yup, I know. It's true that Node for example used to be a lot faster than PHP. But with the release of PHP7 that's all history
i kinda wanna update my php version and try php7 out but it's sooooooooooooooo much hassle
Bjorn
@bjorno43
Jan 12 2018 00:17 UTC
lol. I simply installed ISPConfig on my local server here. It takes about 3 hours to do it, but it's a lot easier to maintain from that point on
It allowes you to install multiple versions of PHP and switch between them for example :)
welp i use wamp cuz it was the best solution at the time and i never bothered with looking for something better, you can still install new versions on it
and switch between them
but it's really annoying, about an hour of figuring out how to do it and then doing it uwu
Bjorn
@bjorno43
Jan 12 2018 00:21 UTC
Haha. Wamp is good for local testing. But I wouldn't want Windows at all for a server
That's why I've installed a laptop with Ubuntu and ISPConfig. A laptop is lot cheaper in power consumption so it's an easy choice to have it running 24/7
And the good thing about ISPConfig is that they have tutorials for most unix versions on how to install everything from scratch. Including the unix version
Gersho
@Gersho
Jan 12 2018 00:27 UTC
wamp ? is there some windows without graphical interface ?
oh ISPconfig looks cool, bind9 is annoying me so maybe i'll try that
Bjorn
@bjorno43
Jan 12 2018 00:29 UTC
Nah. Wamp is just a program that installes Apache, MySQL and PHP
Gersho
@Gersho
Jan 12 2018 00:29 UTC
yeah i know
but i mean, lamp would be better since windows would hog ressources for a screen nobody is gonna look at
Bjorn
@bjorno43
Jan 12 2018 00:30 UTC
True. I used to call a server that has a monitor, keyboard and mouse "fancy" xD
Gersho
@Gersho
Jan 12 2018 00:31 UTC
btw about your laptop thing, i had a similar idea, but i was wondering, is that ok to have multiple projects on the same OS ?
Jeremy Cherer
@JavaLavaMT
Jan 12 2018 00:32 UTC

https://codepen.io/JavaLavaMT/pen/baMEPO

I used the same method for .getJSON as i did for the weather project but this one isnt working and i cant understand what is different

Bjorn
@bjorno43
Jan 12 2018 00:32 UTC
As long as they don't interfere with eachother, it should be fine. But keep in mind that multple projects running at the same time means more resources used. It can slow everything down
Gersho
@Gersho
Jan 12 2018 00:34 UTC
@JavaLavaMT var title=main.query.pages.title; is wrong
Bjorn
@bjorno43
Jan 12 2018 00:34 UTC
@JavaLavaMT $.getJSON="http://en <-- use HTTPS
Gersho
@Gersho
Jan 12 2018 00:34 UTC
there's an array
{"batchcomplete":true,"query":{"pages":[{"pageid":15580374,"ns":0,"title":"Main Page","revisions":[{"contentformat":"text/x-wiki","contentmodel":"wikitext","content":"<!
so main.query.pages[0]title i guess ? lazy to check
Jeremy Cherer
@JavaLavaMT
Jan 12 2018 00:35 UTC
@Gersho correct @bjorno43 i have tried that
@Gersho if you dont mind how did you see the array
Gersho
@Gersho
Jan 12 2018 00:36 UTC
there's a [
Bjorn
@bjorno43
Jan 12 2018 00:36 UTC
I'm not saying it solves your issue. I'm saying that you have to do it. Codepen won't work if you use http
Jeremy Cherer
@JavaLavaMT
Jan 12 2018 00:36 UTC
@Gersho I missed that, thank you!
CamperBot
@camperbot
Jan 12 2018 00:36 UTC
javalavamt sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 574 | @gersho |http://www.freecodecamp.org/gersho
looking at the things that were removed from php7 lmao
lynnchuh
@zhuzhulyn
Jan 12 2018 00:45 UTC
0
Eunice Park
@eunicode
Jan 12 2018 00:48 UTC

I'm having trouble with a problem bc I'm not sure how the arguments get passed

Problem: Create a function addByX that returns a function that will add an input by x.

For example I should get these results:

var addByTwo = addByX(2);
addByTwo(1); //should return 3 (1 + 2)

var addByThree = addByX(3);
addByThree(1); //should return 4 (1 + 3)

var addByFour = addByX(4);
addByFour(1); //should return 5 (1 + 4)

I've tried

function addByX(x) {
    return function(input) {
    let total = input + x;
    return total;
  }
}

var addByTwo = addByX(2);
addByTwo(1);  // Returns 3

But I'm not entirely sure why this works, and when I add console logs some unexpected things get printed

Bjorn
@bjorno43
Jan 12 2018 00:54 UTC
In your example, input is undefined. So you'll have to start like this: function addByX(x, input){ ... }
Aditya
@ezioda004
Jan 12 2018 00:54 UTC
@eunipa It works because of closure
Eunice Park
@eunicode
Jan 12 2018 00:56 UTC
@bjorno43 thank you, but I don't think input is undefined?
function addByX(x) {
  return function(input) {
    console.log(`input: ${input}`); // Prints 1
    let total = input + x;
    return total;
  }
}

var addByTwo = addByX(2); 
addByTwo(1);
CamperBot
@camperbot
Jan 12 2018 00:56 UTC
eunipa sends brownie points to @bjorno43 :sparkles: :thumbsup: :sparkles:
:cookie: 184 | @bjorno43 |http://www.freecodecamp.org/bjorno43
Eunice Park
@eunicode
Jan 12 2018 00:56 UTC
@ezioda004 thank you, that's a topic I'm still hazy on
CamperBot
@camperbot
Jan 12 2018 00:56 UTC
eunipa sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 375 | @ezioda004 |http://www.freecodecamp.org/ezioda004
Aditya
@ezioda004
Jan 12 2018 00:56 UTC
You can read about it here .They have an adder example there if you scroll down a little bit.
Bjorn
@bjorno43
Jan 12 2018 00:58 UTC
@eunipa Seems odd to me. Unless you've defined input somewhere else..
Eunice Park
@eunicode
Jan 12 2018 00:59 UTC
@ezioda004 Thanks for pointing me to the adder example
CamperBot
@camperbot
Jan 12 2018 00:59 UTC
eunipa sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
api offline
Eunice Park
@eunicode
Jan 12 2018 01:00 UTC
@bjorno43 I haven't, just some how, mysteriously, the argument passed to addByTwo becomes input in the anonymous function
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:02 UTC
Because addByX returns a new function, and that new function's only argument is input.
Gersho
@Gersho
Jan 12 2018 01:02 UTC
could you use console.log(arguments) at the start of the AddbyX function ? we could see what happens to the 1
Eunice Park
@eunicode
Jan 12 2018 01:03 UTC
@HeinousTugboat Ahhh, thank you. I guess I'm not used to the idea of a function returning a function
CamperBot
@camperbot
Jan 12 2018 01:03 UTC
eunipa sends brownie points to @heinoustugboat :sparkles: :thumbsup: :sparkles:
:cookie: 307 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:03 UTC
@eunipa NP! Yeah, it's definitely weird. That's a big part of FP, though. Functions being first class and all that jazz.
Aditya
@ezioda004
Jan 12 2018 01:05 UTC
@eunipa Basically when you do var addByTwo = addByX(2);, addByTwo becomes the reference to the inner function
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:05 UTC
With a closure where 'x' = 2. ;-)
Bjorn
@bjorno43
Jan 12 2018 01:05 UTC
@HeinousTugboat Ah, now I see how it works. Thanks for the explanation :)
CamperBot
@camperbot
Jan 12 2018 01:05 UTC
bjorno43 sends brownie points to @heinoustugboat :sparkles: :thumbsup: :sparkles:
:cookie: 308 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
Aditya
@ezioda004
Jan 12 2018 01:09 UTC
I still need to learn closures further, Im pretty sure I'll get confused if someone asks me to explain what exactly it is
Kyle Holm
@thekholm80
Jan 12 2018 01:11 UTC
closures still confuse the heck out of me
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:13 UTC
Basically functions just remember everything they had access to.
They each get their own little mini-set of globals.
So any variables they can see, they can always see.
Eunice Park
@eunicode
Jan 12 2018 01:16 UTC
@ezioda004 Really interesting, I'm guessing that has something to do with why my first call to addByTwo prints three statements, while my second call only prints two statements?
function addByX(x) {
  console.log(`first x: ${x}`);

  return function(input) {
    console.log(`input: ${input}`);
    console.log(`second x: ${x}`);
    let total = input + x;
    console.log(total);
    return total;
  }

}

var addByTwo = addByX(2); 
addByTwo(1); 
addByTwo(2);
I have to go, but I'll come back to check all the discussions and ruminate over what everyone said :)
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:18 UTC
So, addByX should print 1 statement, then addByTwo should print 2 strings and a number each time it executes.
image.png
That's how it outputs for me.
That first statement is actually from addByX, not addByTwo.
Aditya
@ezioda004
Jan 12 2018 01:27 UTC
See, this is what I meant, not sure why the first x only got printed once
@HeinousTugboat Can you explain why this happened?
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:32 UTC
Because the outer function is only executed when you call it.
So when you call addByX, it executes it, then returns a new function.
If you were to call addByX(3), it'd print it again.
Then each time you call the returned function, it executes the other 3 log statements.
Aditya
@ezioda004
Jan 12 2018 01:34 UTC
But when you do addByTwo(3), isn't addByX(2) being called implicitly?
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:39 UTC
Nope. It's only being defined.
JS doesn't really execute functions implicitly that I'm aware of.
Not sure if that makes sense. addByTwo is in a closure built by addByX. But once it's built, nothing else changes with it.
Oh, I take that back. I suppose getters/setters are executed implicitly.
Aditya
@ezioda004
Jan 12 2018 01:52 UTC

I still don't get it, can you tell me where Im wrong here? When you write

function addByX(x) {
  console.log(`first x: ${x}`);

  return function(input) {
    console.log(`input: ${input}`);
    console.log(`second x: ${x}`);
    let total = input + x;
    console.log(total);
    return total;
  }

}

var addByTwo = addByX(2); 
addByTwo(1); 
addByTwo(2);

in the console, var addByTwo gets hoisted and in execution phase when engine goes line by line addByX(2); executes and we get first x: 2. After that addByTwo(1); creates an execution context looks at var addByTwo = addByX(2); and then doesnt execute it? why

Apparently since addByTwo is a reference to inner function it's skipping that, but I don't understand why
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:56 UTC
These are essentially the same:
var addByTwo = addByX(2);

var addByTwo = function(input) {
    console.log(`input: ${input}`);
    console.log(`second x: ${2}`);
    let total = input + 2;
    console.log(total);
    return total;
}
That's because what addByX is returning is that second function.
But it's only actually executing what's inside of the addByX function body when you execute addByX.
So, if you want to step through it line by line, the variable addByX is declared and defined as its function. It isn't executed. The next line of execution then jumps down to the var addByTwo = addByX(2);. Here, we declare addByTwo, then we execute addByX. At this point we jump back up to addByX's function body, and it returns back the new function, but, just like addByX wasn't executed when it was defined, addByTwo isn't executed yet. Then the last two lines are only executing addByTwo's function body.
When you return a function, and then execute it, you're only executing the returned function, not the entire parent function.
Aditya
@ezioda004
Jan 12 2018 02:01 UTC
Oh..
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:03 UTC
Is that making more sense now? :-) It helps if you think of Functions as fancy Objects.
So when you return a Function, you're really just returning an Object with a () method.
Aditya
@ezioda004
Jan 12 2018 02:05 UTC
It kinda made some sense, so addByTwo is stored in the memory and the addByTwo(1); executes it?
just do addbyx(1)(2)
1 argument for the function itself, second argument for the returned function (it actually runs that way)
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:07 UTC
Right, @ezioda004. That's what the var declaration's doing. It's storing the function addByX returns in a new variable.
And yeah, addByX(3)(2) would also work fine.
i don't see why would he assign it to a different variable in the first place, does it not lose the scope that way?
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:09 UTC
It doesn't.
well that's curious
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:09 UTC
And because if you're currying, generally you want to keep the function around. :-P
If you want to addByTwo a bunch, it's a lot of overhead to call through addByX every time.
Maybe I misunderstand what you mean by losing the scope? What scope do you think it's losing?
idk both make sense honestly
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:10 UTC
I mean, you'll lose the scope immediately after it's executed since the transient addByTwo will get GC'd shortly after.
But whatever you do inside of addByX will be there with addByTwo.
That's actually the only way to get anything remotely resembling private variables in JS. IIFEs.
figured, it wouldn't make sense to return a function from a function that loses the parent function's scope
then the whole point of returning a function is kinda useless
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:12 UTC
Yeah. ;-)
Also that's how this and constructors generally work.
it just mindfucks me that you're able to do that especially cuz there's always a better or just as good of a way to do it
but then again it's fun to do it this way
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:15 UTC
How do you mean?
the only use case i've seen so far of returning a function from a function was in exercises(and i've read lots of js code). everyone just opts for a different approach
Aditya
@ezioda004
Jan 12 2018 02:19 UTC
@HeinousTugboat Thanks for explaining, I think I get it atleast most of it, being sleep deprived doesn't help.
CamperBot
@camperbot
Jan 12 2018 02:19 UTC
ezioda004 sends brownie points to @heinoustugboat :sparkles: :thumbsup: :sparkles:
:cookie: 310 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
can't imagine a situation where you'd absolutely have to do that
@ezioda004 we're all sleep deprived here
Aditya
@ezioda004
Jan 12 2018 02:21 UTC
It's 8am here, I slept ~28hrs ago
Should prob call it a day
you should go sleep or else in the next 10 hours you'll end up replying to people in javascript
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:23 UTC
One sec, I've actually got an example I used.
i'd love to see that
Aditya
@ezioda004
Jan 12 2018 02:26 UTC
Taking in js doesnt sound so bad.
I was asked about how closures work in a bootcamp interview a week ago, that's why this topic has been effing me
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:28 UTC
Trying to remember where I did that at now. :-|
i've had that problem when i was learning python just by doing projects in it; i spent ~48 hours just writing python and once i had to invest some of my time into human interaction i wrote a genuine conditional to a guy who just asked me what i'm up to
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:29 UTC
Here's one example:
const debug = require('debug');
const log = debug('cumulus:log');
const logAPI = debug('cumulus:api');
const logRx = debug('cumulus:Rx');
log, logAPI and logRx are all separate log levels.
pretty op
i'm off to do my nails, friends
see ya o/
Kyle Holm
@thekholm80
Jan 12 2018 02:30 UTC
@RuinIsProbablyTaken :wave:
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:31 UTC
And this silly thing:
const insertRes = (req: express.Request, res: express.Response, id: string) => (data: any) => res.status(201).location('' + req.get('origin') + url.parse(req.url).pathname + '/' + data[id]).send(data)
Claudio Restifo
@Marmiz
Jan 12 2018 02:36 UTC
hello lovely people :)
Kyle Holm
@thekholm80
Jan 12 2018 02:44 UTC
@Marmiz :wave:
@thekholm80 who are you and what did you do to kyle
Manish Giri
@Manish-Giri
Jan 12 2018 02:54 UTC
Resurrection 2.0
Kyle Holm
@thekholm80
Jan 12 2018 02:55 UTC
kind of like angular 2, but less users
@Manish-Giri you told me you'd give me input on my portfolio btw
get back on slack or dms and gimme uwu
Manish Giri
@Manish-Giri
Jan 12 2018 02:55 UTC
oh yes
i got held up moving my dropbox
how df do you mention people on slack anyway >:C
Manish Giri
@Manish-Giri
Jan 12 2018 02:56 UTC
@
since it's not like gitter, i think gitter's mentioning is so nice
maybe it's like irc
Claudio Restifo
@Marmiz
Jan 12 2018 02:56 UTC
oh, hey @Manish-Giri, @RuinIsProbablyTaken. long time no see :)
Manish Giri
@Manish-Giri
Jan 12 2018 02:56 UTC
@Marmiz hola amigo
@Marmiz sup fam
Manish Giri
@Manish-Giri
Jan 12 2018 02:57 UTC
@Marmiz did you notice Kyle 2.0
Claudio Restifo
@Marmiz
Jan 12 2018 02:58 UTC
I'm 99% that's not him... just a scammer trying to catfish us
kyle 2.0 looks like he codes indie games and identifies as a feminist tbh
Manish Giri
@Manish-Giri
Jan 12 2018 02:58 UTC
it's Kyle sent by Skynet
from the future
Kyle Holm
@thekholm80
Jan 12 2018 02:58 UTC
speaking of which, I have to leave my castle in Nigeria, can someone help me get my money out? I'll let you keep some
maybe it's the beard
Manish Giri
@Manish-Giri
Jan 12 2018 02:58 UTC
prolly to get rid of Kyle O Connor
do you reckon it's the beard or the glasses
i think it might just be the pose and the lighting
@thekholm80 will you first give me a small loan of one million dollars so i can buy slri.com and start my business?
Kyle Holm
@thekholm80
Jan 12 2018 02:59 UTC
i absolutely will
give me your bank account numbers and I'll make it happen
Manish Giri
@Manish-Giri
Jan 12 2018 02:59 UTC
oh hey what about my ferrari @thekholm80
Kyle Holm
@thekholm80
Jan 12 2018 03:00 UTC
@Manish-Giri hot wheels or matchbox?
haHAAA
@Manish-Giri my friend i need that one million dollar critique uwu
Manish Giri
@Manish-Giri
Jan 12 2018 03:01 UTC
x
just like we had discussed
i guess i can populate my website with some content while i wait
oh that one looks nice
@Manish-Giri do you need a bride?
Kyle Holm
@thekholm80
Jan 12 2018 03:01 UTC
that's what @Manish-Giri is going to buy me when he takes over apple
Manish Giri
@Manish-Giri
Jan 12 2018 03:01 UTC
a bride? what for
lol apple
@Manish-Giri ok i can just give birth to your babies and steal large sums of money from you in child support
be the true steve jobs
actually that would end bad for me nvm
steve jobs was a dick
Manish Giri
@Manish-Giri
Jan 12 2018 03:03 UTC
lol
Kyle Holm
@thekholm80
Jan 12 2018 03:03 UTC
5 baby minimum
Manish Giri
@Manish-Giri
Jan 12 2018 03:03 UTC
I like the idea
Kyle Holm
@thekholm80
Jan 12 2018 03:03 UTC
and no ugly kids
3.5 and a brownie?
doing fcc projects in php is harder than i thought ;A; it actually takes more than one line!!!
Claudio Restifo
@Marmiz
Jan 12 2018 03:30 UTC

all I remember from php is the <php tag.
cool language tho...

even tho I don't like that files become super duper long with lots of scripts inside...
or at least that's what I always saw in php

Kyle Holm
@thekholm80
Jan 12 2018 03:30 UTC
that's one thing i love about React. compact, succinct files
@Marmiz apparently not even that cuz it's <?php lmao
check out projects built with laravel tho, laravel is bae
Claudio Restifo
@Marmiz
Jan 12 2018 03:34 UTC

:clap: :clap: :laughing:

I should change on my resume at the voice php from 'ninja' to 'expert' then

heard many good things about laravel... big active community as well
i just realized your name is claudio, i named my laptop(god bless her soul) claudia
she died in 2015 sadly, but i keep her remains (although i took her apart and she's basically just components everywhere)
Claudio Restifo
@Marmiz
Jan 12 2018 03:36 UTC
:O
Sorin Ruse
@sorinr
Jan 12 2018 03:36 UTC
laravel is really great but i also love symfony
Kyle Holm
@thekholm80
Jan 12 2018 03:36 UTC
that's how I'd like to go
laravel was built on symfony, you gotta love symfony
one of these days i'll take her out of the moving box and send y'all a claudia corpse nude for all the necrophiliacs here
Sorin Ruse
@sorinr
Jan 12 2018 03:38 UTC
i know. what i love most in symfony is the routing part. the router in laravel in bigger apps become some kind of a mess
she had 2gb of ram and a 1 core amd processor :'C
@sorinr take that back
although if used badly, any router will make a mess
i worked on a huge crm which was a fork of some other project, it was basically a prototype and it was filled with italian comments with routes badly organized
that was a pain to work with
but as soon as i started working on the project i started refactoring the parts i was working on and it started looking great
Claudio Restifo
@Marmiz
Jan 12 2018 03:41 UTC
italian comments
// if it doesn't work: mamma mia!
@Marmiz there was a guy who wrote comments like "if it works it was made by so and so. if it doesn't work i don't know who made it"
i forgot who was it, that was a great comment and it was at the start of the file as well
god damn it i forgot so many things
Sorin Ruse
@sorinr
Jan 12 2018 03:42 UTC
if it doesn't work = fuori servizio
:)
i just realized you're romanian
is it just me or are romanians starting to get into fcc more nowadays lmao
i used to use "vulpia" as my irc handle, it's basically one of the only words i know in romanian aside from telling someone to eat dog shit
Sorin Ruse
@sorinr
Jan 12 2018 03:44 UTC
no, we are not alone. there are a lot joining
don't be confused by my outstanding romanian fluency; i am absolutely not romanian
Claudio Restifo
@Marmiz
Jan 12 2018 03:45 UTC

A guy in a company I worked before wrote a code as
alert('sta ceppa')
which roughly translated as "deez nutz" (like the meme)

forgot to remove it when shipping in prod.
A manager found it...
The guy didn't end up well

what language is that even
Claudio Restifo
@Marmiz
Jan 12 2018 03:46 UTC
italian
oh duuuuuuuuuuuuuuuuuh gj me
Claudio Restifo
@Marmiz
Jan 12 2018 03:46 UTC
slang italian, to be precise
i would only write meme-y comments sometimes
i was plotting to contribute to my ex's open source project and reorder his css to spell out "name is a dickhead" xd
never did it tho, too much hassle
and i'd actually need to like contribute for it to be hard to notice
Sorin Ruse
@sorinr
Jan 12 2018 03:51 UTC
btw, irc is still there? the last time i used it was by the time of undernet
well, only proper nerds use it, no one really bothers with it that much. i only got into it cuz of my friend and he's into irc to the point where he made his own functional ircd which aims to fix all the problems other daemons have
i think he also made his own client, but don't quote me on that
Nicolas Palopoli
@NPalopoli
Jan 12 2018 03:56 UTC
Hi! Any of you guys is experiencing problems with beta.freecodecamp.com?
Sections on the map are not opening, code is being run but always accepted as correct and error afterwards
@bjorno43 ^ where's the qa team? >:C
artbohr
@artbohr
Jan 12 2018 04:16 UTC
@NPalopoli ye, it's bugged
Claudio Restifo
@Marmiz
Jan 12 2018 04:24 UTC
you can always open a PR and address those issues :)
make the OSS a better place :rose:
ehutchllew
@ehutchllew
Jan 12 2018 04:27 UTC
Bought 3 courses during the huge udemy discounts
how huge
i got like 3 courses for $12 each once
ehutchllew
@ehutchllew
Jan 12 2018 04:28 UTC
yeah that one,
oboi
@Manish-Giri hold my beer
How to use "font-size"?
Sweet Coding :)
@SweetCodingInc
Jan 12 2018 09:00 UTC
font-size: 16px; for example
Tychro van den Broeke
@tychro
Jan 12 2018 09:23 UTC
can anyone help me? i need to sharpen an image but how??
@tychro take a new one
Tychro van den Broeke
@tychro
Jan 12 2018 09:30 UTC
yeah but the picture i have was good and sharp
but when i added it, it became blurry
@tychro added it where?
Tychro van den Broeke
@tychro
Jan 12 2018 09:32 UTC
in an site from someone
give me some context so i know what's going on
ok so show me the site where the picture is
Tychro van den Broeke
@tychro
Jan 12 2018 09:33 UTC
okay wait
in codepen you don't even see the image
RafaelRoman
@RafaelRoman
Jan 12 2018 09:36 UTC
The problem is to link
Tychro van den Broeke
@tychro
Jan 12 2018 09:36 UTC
how do you mean
RafaelRoman
@RafaelRoman
Jan 12 2018 09:37 UTC
You have a image to google?
Tychro van den Broeke
@tychro
Jan 12 2018 09:37 UTC
no i took it from google
RafaelRoman
@RafaelRoman
Jan 12 2018 09:38 UTC
Ok
an image can be seen in codepen if it has the correct link
Tychro van den Broeke
@tychro
Jan 12 2018 09:43 UTC
it can't find the image
but it's correctly linked
@tychro ok send the link to the image then
the one you're using
that's the image
for some reason i see that it sends you to aliexpres ahha
that's the right one
@tychro you need a direct image link. you'll know that it's a direct image link if you have the image format extension at the end of the link
Skylar
@skyboy1997
Jan 12 2018 15:57 UTC
can someone help me a coding question that I have?
artbohr
@artbohr
Jan 12 2018 16:03 UTC
@skyboy1997 first you have to post your question, there is no need to ask that since it's a help channel ^^
Darren
@DarrenfJ
Jan 12 2018 16:11 UTC
morning fCC
artbohr
@artbohr
Jan 12 2018 16:14 UTC
@DarrenfJ :wave:
Darren
@DarrenfJ
Jan 12 2018 16:15 UTC
hello!
Kyle Holm
@thekholm80
Jan 12 2018 16:16 UTC
@DarrenfJ :wave:
Gersho
@Gersho
Jan 12 2018 16:16 UTC
hi @DarrenfJ
who the hell are you and what happened to kyle ? @thekholm80
Kyle Holm
@thekholm80
Jan 12 2018 16:17 UTC
@Gersho lol
Gersho
@Gersho
Jan 12 2018 16:17 UTC
only Manish is allowed to change his profile picture !
Kyle Holm
@thekholm80
Jan 12 2018 16:17 UTC
last pic was ~6 years old, figured it was about time
Kaz Baig
@kbaig
Jan 12 2018 16:17 UTC
WTF That's not the Kyle I know
Darren
@DarrenfJ
Jan 12 2018 16:18 UTC
who the eff is that????
Gersho
@Gersho
Jan 12 2018 16:18 UTC
and as usual gitter doesn't update zoomed avatar right away
Darren
@DarrenfJ
Jan 12 2018 16:18 UTC
kudos on the beard my beardy brutha! it's got mine beat
Kyle Holm
@thekholm80
Jan 12 2018 16:18 UTC
I <3 my beard
Kyle Holm
@thekholm80
Jan 12 2018 16:18 UTC
can't wait until it's Dumbledore length
Gersho
@Gersho
Jan 12 2018 16:18 UTC
i can't beard genetics
Kyle Holm
@thekholm80
Jan 12 2018 16:19 UTC
@Gersho here you go
Darren
@DarrenfJ
Jan 12 2018 16:19 UTC
:thumbsup:
we have finally found our replacement gandalf
someone please inform @Margaret2 over in the main channel
Kyle Holm
@thekholm80
Jan 12 2018 16:20 UTC
is she still around?
Gersho
@Gersho
Jan 12 2018 16:20 UTC
oh we can see the full size image on the gfithub page
Darren
@DarrenfJ
Jan 12 2018 16:21 UTC
and for whatever lost soul it is who goes over the wall... if you do'lt make it back.... we'll build a monument to your glory!
@thekholm80 I've seen her periodically in the main chat room
although since i never go in there... she could be gone now...
Kyle Holm
@thekholm80
Jan 12 2018 16:21 UTC
I don't go there, 'tis a silly place
Gersho
@Gersho
Jan 12 2018 16:21 UTC
you beard is a bit grey but somehow you look younger
Darren
@DarrenfJ
Jan 12 2018 16:22 UTC
there, be dragons
Kyle Holm
@thekholm80
Jan 12 2018 16:22 UTC
I'm not crazy about the gray, but coloring it is not an option
it grows so fast i'd have to dye it 2 times a day
Kaz Baig
@kbaig
Jan 12 2018 16:23 UTC
I got rid of the main room from my list
f it
Gersho
@Gersho
Jan 12 2018 16:24 UTC
same
my beard is like: epic sideburns , but it doesn't grow along the jawbone
Kyle Holm
@thekholm80
Jan 12 2018 16:24 UTC
grow the sides long and then comb over?
Gersho
@Gersho
Jan 12 2018 16:24 UTC
also they look like ass air :/
Kaz Baig
@kbaig
Jan 12 2018 16:25 UTC
There - I'm finally a human and not an auto-generated-hashtag-looking-thing
Gersho
@Gersho
Jan 12 2018 16:25 UTC

grow the sides long and then comb over?

yeah sure,i'll dye it orange and run for president too

Kyle Holm
@thekholm80
Jan 12 2018 16:25 UTC
@kbaig holy crap you're a real boy
Kaz Baig
@kbaig
Jan 12 2018 16:25 UTC
Yes sir
Gersho
@Gersho
Jan 12 2018 16:26 UTC
that's what you want us to think, we're onto you skynet
Skylar
@skyboy1997
Jan 12 2018 16:26 UTC
I just want the number of clicks to update In the database after I click a button. This is what the database currently looks like https://imgur.com/z6OlovM. the number of clicks should be under one document and thats it. Any help would be amazing.
console.log('Server-side code running');

const express = require('express');
const MongoClient = require('mongodb').MongoClient;

const app = express();


app.use(express.static('public'));


let db;


const url = 'mongodb://localhost:27017/clicks';

MongoClient.connect(url, (err, database) => {
  if (err) {
    return console.log(err);
  }
  db = database;
  // start the express web server listening on 8080
  app.listen(8080, () => {
    console.log('listening on 8080');
  });
});


app.get('/', (req, res) => {
  res.sendFile(__dirname + '/index.html');
});


app.post('/clicked', (req, res) => {
  const click = {
    clickTime: new Date()
  };
  //console.log(click);
  //console.log(db);

  db.collection('clicks').save(click, (err, result) => {
    if (err) {
      return console.log(err);
    }
    console.log('click added to db');
    res.sendStatus(201);
  });
});


app.get('/clicks', (req, res) => {
  db.collection('clicks').find().count((err, result) => {
    if (err) return console.log(err);
    res.end(result + '');
  });
});
Darren
@DarrenfJ
Jan 12 2018 16:27 UTC
oh man catching up on the past convos... ha!
Albert Cardona II
@daddycardona
Jan 12 2018 16:27 UTC
what up everyone ;)
Darren
@DarrenfJ
Jan 12 2018 16:27 UTC
shakes head sorry i missed it.. you guys are on fire!
Gersho
@Gersho
Jan 12 2018 16:27 UTC
Yo Albert !
Darren
@DarrenfJ
Jan 12 2018 16:27 UTC
indie games and feminism HA!
@daddycardona buddy!
Kyle Holm
@thekholm80
Jan 12 2018 16:27 UTC
@daddycardona :wave:
Darren
@DarrenfJ
Jan 12 2018 16:28 UTC
@daddycardona apparently between yesterday nad today kyle grew a massive beard
Kyle Holm
@thekholm80
Jan 12 2018 16:28 UTC
@Gersho x
Gersho
@Gersho
Jan 12 2018 16:28 UTC
feminism ? france is going full drama on this
Albert Cardona II
@daddycardona
Jan 12 2018 16:28 UTC
:) you done a lot @DarrenfJ
Gersho
@Gersho
Jan 12 2018 16:28 UTC

@Gersho x

allowed only as haloween costume

Albert Cardona II
@daddycardona
Jan 12 2018 16:28 UTC
Feminism is for the birds. I agree if women do the same job as me then should get paid the same
Kaz Baig
@kbaig
Jan 12 2018 16:29 UTC
@Gersho pff what are the chances of skynet choosing a brown kid as its fake profile pic tho
Kyle Holm
@thekholm80
Jan 12 2018 16:29 UTC
i just treat everyone the same. it's easier and i'm lazy
Gersho
@Gersho
Jan 12 2018 16:29 UTC
well a couple days ago ~100 womens signed a manifest AGAINST #metoo

i just treat everyone the same. it's easier and i'm lazy

i don't discriminate i hate everyone

Gersho
@Gersho
Jan 12 2018 16:37 UTC
is there a way to group repos on github ? like a folder or something, i want to put my fCC challenges there but i'd like them grouped if possible
Darren
@DarrenfJ
Jan 12 2018 16:39 UTC
off to test.. poke ya'all later
Kyle Holm
@thekholm80
Jan 12 2018 16:40 UTC
@Gersho maybe create a single repo just for FCC stuff?
then you can group within the repo however you'd like
Gersho
@Gersho
Jan 12 2018 16:42 UTC
hmm i didn't really want to do that, guess i'll compare the pro/con and make my choice
Bjorn
@bjorno43
Jan 12 2018 17:17 UTC
@RuinIsProbablyTaken It was 5 AM in the morning for when you asked that question. I was asleep :P And ye, problems tend to happen on beta scripts, lol
Liam Docherty
@ldocherty1
Jan 12 2018 17:30 UTC
Hi does anyone know how to output a pdf document within a java program? Does anyone have a link to some code which will do this?
Bjorn
@bjorno43
Jan 12 2018 18:00 UTC
@ldocherty1 Java isn't part of the FreeCodeCamp curriculum, so this might not be the best place to ask such a question. Not to mention that a simple Google search "Java generate PDF" would've given you as the first result, this Stack Overflow post: https://stackoverflow.com/questions/7355025/create-pdf-with-java where you will find several libraries and tips on how to do it
@Gersho make a project?
@bjorno43 yeah yeah, that's what all slackers say uwu
Gersho
@Gersho
Jan 12 2018 18:51 UTC
project ? i don't see that anywhere
only thing i found seem to be more like a roadmap
@Gersho oh my bad, projects are only on codepen and bitbucket.
B̵̛̛̟̤̦̖̀̈̌́̍̾̿̍̈́͌͋̊͋̐͘͘̕͘͝ͅî̵̛̳̱̫̓́̃̔͑̊̄͆͂̃̽̒̌̉͝͝͠͠t̷̛̲̖̰̦͙̺̞̭̹͍͇͙̱̰͕̘̝̙̠̟̩̹͎̟̟̦̲͗̊̽̂́̏͘͠ͅB̵̡̢̧͈̬̂̈́̽̄̀̃̇̑̀͌͐̽͆͂͊͆̕u̵͓͉̥̳̍̊̏́͋̊̂́͐̔̍̅̕͘͝͝͠ç̵̡̡̡̨̝̱̰͈̲̪̺̯̤͖͍̰̦͚̟̲̯̯͙̠̥͈̤̼͇͕̳͚͎͛͊̇̇̀͊̓͘k̴̳̭̝̺̜̦̊̂͐͗̋̂̏͂̑̆͛̋̈́̅͌̓̇̈́̑̔̇̊̅͂͒̕͝͝͝ͅě̴̡̫͍̭̠͎͎̰̻̽̔͐̐̈́͌̕͝͠͝t̵̨̢͔͔̳̼̙̺̘͎͖̲̱͖̞̜̳̼̘͙̘̹̪̻̮̣͈͔̹̜̠͔͓̃͒̀̐̐͗̚̚͜͝ ̶̨̡̙̹̹̲̙̻̙͇̥̦̹̹͖̪̩͔̥͕̱̪̩̣͉͕̙̻̿̓̀̈́́̿̆̊̀͒͒̊͌͊͑̐͘͝͝m̸̨̡̼̻̥͍̝̬̮͚̳̖͈̟̘̘͇̳̞͉̙̱̦͚̳̟̗̪̗̣̳͑̄͒̈̀͌͐̉̓̐͑͋̽̏̏̇͆̈́̋̃̅̔͑̽͋̄̆́͝͝͝a̵̡̛̖͇̣͉̙̱̮͇̠̱̦̭͕͎̲̹̻̣̍͌̌̋̐̋͒̓͗̓̓͑̌̎͂̀̌̌̌̒̈́́͒̐̾̈̂̕͘͜͠͝͝͠͝s̵̢̛̪̙̤͕̓͋̀̎̏̀͋͌̍̆͋͛͑̐͂̐͌̃͂̈́͊͆̔̾͐̃͘͝͝͝͠ṯ̸̨̧̨̢̛̛͍͙̮̝͈͙̖̩̜̲̖͚̟̾̓̈́̂̂̾̀̔̾͌̋͌͊͂̉͆̀̑͋̏͛̊́̾̄͒͌̈́͗̐̇̆̕͘͜͜͝ͅę̸̡̧̡͕͔̣͔͍̣̫̬̱̯͍̼̰̥͍̱̩͍̱̹̱̬̝́̆̏̎̇̓̾̕͜͜͠r̸̡̛͉͉̦͙͈̹̥̝̜̗̞̭͍͚̲̰̭̀̓͆̆͗̑̆̾̃̉̒͒́̽͗͗̚͜ ̸͇̫̹̭͚̣͙͉͉̠̥̼̠̭͕̗̳̣͕̖͔͚̀̌͑͒̊͂́̌̏͂̓̾͘r̷̛͍̽͑̓͛̏͗̂͛̅̔̄ḁ̶̧̧̨̮̞̹͕̩̩̠̭͉̣̹̯̝̦͈̯͙̺̼̟̗͖̈̐̇̔́̏͜͜ç̴̛̖̻͔̟̫̬̗̣̙̬͔͕͉̱̻͔̰͖̪͔̦̞̣̼͙͙͔̋́͐̎̊͒̏̍̅̓̄͑́̏͑̎͛͛̊́͋͑̈̂̆̄̈̓̚̕͜͝ě̷̛̛̙͉̮̹̹̰̍̑̎̄̄̽͂̏̂̎͑͌̃̆̎̇̉̊̌̿́̕̕̚͝
Kaz Baig
@kbaig
Jan 12 2018 19:23 UTC
Oh dear.
I have this pinned up at work lol
Gersho
@Gersho
Jan 12 2018 19:25 UTC
are you trying to escape the matrix ?
Kaz Baig
@kbaig
Jan 12 2018 19:26 UTC
ZALGO IS TONY THE PONY
he comes
@kbaig that's my all time favourite answer, i've even taken a screenshot of it and look back at it every now and then
Brianna
@brisourceful
Jan 12 2018 19:34 UTC
I'm blanking on how to do this but how would I iterate through an array of values to check if the first value is equal to the next value, without using two for loops?
Kaz Baig
@kbaig
Jan 12 2018 19:36 UTC
@brisourceful why not just use one loop's i and i + 1
@kbaig oi stop stealing my thunder
Kaz Baig
@kbaig
Jan 12 2018 19:37 UTC
@RuinIsProbablyTaken you're gonna have to get better at procrastinating actual work than me
Kyle Holm
@thekholm80
Jan 12 2018 19:37 UTC
image.png
not sure if glitch or @RuinIsProbablyTaken is leet hacker
Kaz Baig
@kbaig
Jan 12 2018 19:37 UTC
l33t h4x0rz
@thekholm80 hackerwoman
Kyle Holm
@thekholm80
Jan 12 2018 19:38 UTC
Ms Robot
Kaz Baig
@kbaig
Jan 12 2018 19:38 UTC
shehacker
you guys lmao
i escaped the matrix, took pictures, and came back sassy hair flip
Brianna
@brisourceful
Jan 12 2018 19:39 UTC
@RuinIsProbablyTaken :clap: :woman:
Kyle Holm
@thekholm80
Jan 12 2018 19:39 UTC
@brisourceful :wave:
Brianna
@brisourceful
Jan 12 2018 19:40 UTC
@thekholm80 hey!
Kyle Holm
@thekholm80
Jan 12 2018 19:40 UTC
any luck on the job hunt?
Brianna
@brisourceful
Jan 12 2018 19:42 UTC
I have two interviews next week. A phone interview with Google and a 4 hour in-person technical interview with Avalara.
Kyle Holm
@thekholm80
Jan 12 2018 19:42 UTC
oh dang
Brianna
@brisourceful
Jan 12 2018 19:42 UTC
I'm nervous asf
Kyle Holm
@thekholm80
Jan 12 2018 19:42 UTC
you'll crush it
you're a smartie
Kaz Baig
@kbaig
Jan 12 2018 19:43 UTC
papa bless
Brianna
@brisourceful
Jan 12 2018 19:43 UTC
hahah yeah we'll see about that...
Kaz Baig
@kbaig
Jan 12 2018 19:43 UTC
Is this for dev jobs?
Brianna
@brisourceful
Jan 12 2018 19:43 UTC
yup
Kaz Baig
@kbaig
Jan 12 2018 19:44 UTC
Gotcha gotcha
that's great
Brianna
@brisourceful
Jan 12 2018 19:44 UTC
@kbaig did you go to BU?
Kaz Baig
@kbaig
Jan 12 2018 19:44 UTC
I did! Just finished May '17
Brianna
@brisourceful
Jan 12 2018 19:45 UTC
I went to Northeastern :satisfied:
graduated '13
Kaz Baig
@kbaig
Jan 12 2018 19:45 UTC
ooooooo nice
Kyle Holm
@thekholm80
Jan 12 2018 19:45 UTC
holy crap you're old
Kaz Baig
@kbaig
Jan 12 2018 19:45 UTC
imo I shoulda gone to NEU. I got in
Brianna
@brisourceful
Jan 12 2018 19:45 UTC
oh fuck off Kyle :joy:
Kyle Holm
@thekholm80
Jan 12 2018 19:45 UTC
:P
Kaz Baig
@kbaig
Jan 12 2018 19:46 UTC
Better entrepreneurship scene, student activities support, job opportunities/supportive alum network
BCG doesn't even take apps from BU but they take coops from NEU
Brianna
@brisourceful
Jan 12 2018 19:47 UTC
@kbaig I loved NEU. I'd probably never get into it now if I was a high school student. They are so much more selective
Kaz Baig
@kbaig
Jan 12 2018 19:47 UTC
The downside that mattered to me was the international name recognition of BU over NEU (I'm foreign)
Also, coop would have helped me a lot more in getting a job willing to sponsor my H1-B
Brianna
@brisourceful
Jan 12 2018 19:48 UTC
Who gives a rats ass about name recognition aboard? Wasn't the point of you coming to a school in the USA is to try to get a job in the USA?
*abroad
Kaz Baig
@kbaig
Jan 12 2018 19:48 UTC
No not necessarily. Tons of people come to study in the US because the quality of education (and therefore prestige associated with the degree) is higher than their home country
Brianna
@brisourceful
Jan 12 2018 19:49 UTC
I can understand that.
I will have to say that having the co-op was super valuable.
Kaz Baig
@kbaig
Jan 12 2018 19:50 UTC
When I came to the US to study, I didn't know where I wanted to work. I haven't lived in Pakistan since I was 12, so I was open to anywhere really
Brianna
@brisourceful
Jan 12 2018 19:51 UTC
What did you study at BU?
Kaz Baig
@kbaig
Jan 12 2018 19:51 UTC
Business w/ concentrations in entrepeneurship, finance, and management information systems
Brianna
@brisourceful
Jan 12 2018 19:52 UTC
cool! :)
@thekholm80 respek wemen okay
Kyle Holm
@thekholm80
Jan 12 2018 19:55 UTC
:point_up: January 12, 2018 9:29 AM @RuinIsProbablyTaken
Kaz Baig
@kbaig
Jan 12 2018 19:56 UTC
respek on name put
@brisourceful btw gz on interviews, i'm extremely nervous when just sending out applications
Brianna
@brisourceful
Jan 12 2018 19:58 UTC
@RuinIsProbablyTaken thanks! Yeah I feel the same way
CamperBot
@camperbot
Jan 12 2018 19:58 UTC
brisourceful sends brownie points to @ruinisprobablytaken :sparkles: :thumbsup: :sparkles:
:cookie: 755 | @ruinisprobablytaken |http://www.freecodecamp.org/ruinisprobablytaken
good thing is that i never had to deal with interviews xd
Kaz Baig
@kbaig
Jan 12 2018 19:59 UTC
wat
how
Brianna
@brisourceful
Jan 12 2018 19:59 UTC
@RuinIsProbablyTaken are you working as a dev?
remote jobs and people generally saw what i could do before they hired me (either from referrals or they worked with me)
Kaz Baig
@kbaig
Jan 12 2018 20:00 UTC
dank
@brisourceful nah, looking for work. startup i used to work for has been low on work and i get payment from the actual work i do
Brianna
@brisourceful
Jan 12 2018 20:01 UTC
nice! I'm working as a front end dev right now for an eCommerce company and they were so desperate for someone, they asked me a few questions, nothing technical and then hired me the same day.
but that is not typical of the interview process here in Seattle
Kyle Holm
@thekholm80
Jan 12 2018 20:01 UTC
I've had to interview for a job I already had
Kaz Baig
@kbaig
Jan 12 2018 20:01 UTC
...
SAD
@thekholm80 my sort of luck lmao
@brisourceful oh that's pretty cool! i think that the most important thing is that the person wants to learn which is why i wanna puke whenever i see degree requirements
Brianna
@brisourceful
Jan 12 2018 20:03 UTC
@RuinIsProbablyTaken Oh I completely agree. I despise whiteboarding interviews. Like this has nothing to do with my day-to-day job ffs.
Kyle Holm
@thekholm80
Jan 12 2018 20:03 UTC
I love reading "experience / education" requirements
I saw someone looking for 8 years of swift experience
good thing about the job i have/had is that i was the lead dev (well, it was me on front end, myself on backend, and i on everything else)
Kaz Baig
@kbaig
Jan 12 2018 20:03 UTC
The business world equivalent of that would be like case interviews for consulting
Gersho
@Gersho
Jan 12 2018 20:03 UTC
25 years of experience on a frameworks released 3 years ago
Kaz Baig
@kbaig
Jan 12 2018 20:03 UTC
My god those are the worst
tbh most ask for 5+ years even for a mid position
Kaz Baig
@kbaig
Jan 12 2018 20:04 UTC
Or the (also consulting) "How many golf balls fit in this room" type questions
Kyle Holm
@thekholm80
Jan 12 2018 20:05 UTC
"what if you were 2 inches tall and trapped in a blender?"
and i'm just like "yeah i've got 5 years of programming experience, but you won't know how well i'll do just based on my experience"
@kbaig is that the rainman position i've been hearing so much about?
Kaz Baig
@kbaig
Jan 12 2018 20:05 UTC
The what in the what
I really need to see that movie...
Kyle Holm
@thekholm80
Jan 12 2018 20:06 UTC
if you can stomach Tom Cruise it's a good one
Gersho
@Gersho
Jan 12 2018 20:06 UTC
well he's ok when he's acting
what if i was actually stewart little and i was trapped in a washing machine????
Gersho
@Gersho
Jan 12 2018 20:06 UTC
the rest of the time...
Kyle Holm
@thekholm80
Jan 12 2018 20:07 UTC
I did like The Edge of Tomorrow
but a lot of that was Emily Blunt
Stevie
@StevieBland
Jan 12 2018 20:07 UTC
helllo
Kyle Holm
@thekholm80
Jan 12 2018 20:07 UTC
@StevieBland :wave:
Kaz Baig
@kbaig
Jan 12 2018 20:07 UTC
He needs to stick to being a smirky, sometimes quippy, full on action dude
Gersho
@Gersho
Jan 12 2018 20:08 UTC

what if i was actually stewart little and i was trapped in a washing machine????

Downsizing is a pretty bad movie i heard

Honey i shrunk the kids <3
@StevieBland hi are you johnny depp?
Kaz Baig
@kbaig
Jan 12 2018 20:09 UTC
hey it's me ur depp

Honey i shrunk the kids <3

lmfaoooooooooooooooo

Kyle Holm
@thekholm80
Jan 12 2018 20:09 UTC
it's weird seeing Kaz next to Kaz instead of the #
Kaz Baig
@kbaig
Jan 12 2018 20:09 UTC
@RuinIsProbablyTaken why can't I pm you :'(
Stevie
@StevieBland
Jan 12 2018 20:09 UTC
@RuinIsProbablyTaken ive gotten that once or twice :o
Gersho
@Gersho
Jan 12 2018 20:10 UTC
you mean the avatar ? i still see the blue # @thekholm80
Kaz Baig
@kbaig
Jan 12 2018 20:10 UTC
@thekholm80 it's time you were graced by my beauty
Kyle Holm
@thekholm80
Jan 12 2018 20:10 UTC
lol
@kbaig why can't you pm me?
Kaz Baig
@kbaig
Jan 12 2018 20:10 UTC
@Gersho prob if you clear cache and reload, you'll see it
Gersho
@Gersho
Jan 12 2018 20:10 UTC
let's see
Kaz Baig
@kbaig
Jan 12 2018 20:10 UTC
@RuinIsProbablyTaken i hovered your name and i only saw the mention button :'(
@kbaig see, i'm a proper hackerwoman
Gersho
@Gersho
Jan 12 2018 20:11 UTC
indeed same for me
oh i see Kaz ! you should have choosen a lighter background imo
we lost you in the dark lmfao
Kaz Baig
@kbaig
Jan 12 2018 20:13 UTC
@Gersho that's what the photographer chose :'(
Gersho
@Gersho
Jan 12 2018 20:13 UTC
he's bad at his job
Kaz Baig
@kbaig
Jan 12 2018 20:13 UTC
you don't like brown on brown??
Stevie
@StevieBland
Jan 12 2018 20:13 UTC
so off topic LOL
Jesse
@ki4jgt
Jan 12 2018 20:13 UTC
Is Cloud 9 still the best service to use now that AWS is in charge of it?
@kbaig nice ignore to my pm
Gersho
@Gersho
Jan 12 2018 20:14 UTC
maybe he doesn't see it ?
he sees it
Kaz Baig
@kbaig
Jan 12 2018 20:14 UTC
@RuinIsProbablyTaken I have to do some work while at work
i just got ignored by this camouflage boy
Kyle Holm
@thekholm80
Jan 12 2018 20:14 UTC
ouch
Kaz Baig
@kbaig
Jan 12 2018 20:14 UTC
eek
Gersho
@Gersho
Jan 12 2018 20:15 UTC
i'm keeping a house with a pool and it's been raining for a week, not cool :(
Kyle Holm
@thekholm80
Jan 12 2018 20:15 UTC
can't swim when it rains? worried you'll get wet?
apparently, gitter is too stupid to pull my new username from github
@thekholm80 lmao
Gersho
@Gersho
Jan 12 2018 20:16 UTC
no but it gets too cold under 25°C :p
Jesse
@ki4jgt
Jan 12 2018 20:18 UTC
For the server-side cert, is c9 still the best company to use?
cyka blyat we swim with the ice
@ki4jgt does it say so? yes -> yes; no -> choose the service they mentioned instead
Kyle Holm
@thekholm80
Jan 12 2018 20:18 UTC
@ki4jgt i didn't like c9 so i set up my own linux environment for the back end
but I think FCC still recommends it
Gersho
@Gersho
Jan 12 2018 20:19 UTC
if it's for a fCC challenge just pick whatever they mention
Kaz Baig
@kbaig
Jan 12 2018 20:19 UTC
@ki4jgt it's really not that much more effort to learn how to set up a local environment, which you're more likely to use moving forward
Kyle Holm
@thekholm80
Jan 12 2018 20:19 UTC
that was my thinking
and Atom is much better to look at than the c9 text editor
Jesse
@ki4jgt
Jan 12 2018 20:20 UTC
OK. Just checking. I've ran my own VPS in the past but the entire UI is changed now that Amazon has taken over c9.
Kaz Baig
@kbaig
Jan 12 2018 20:20 UTC
@ki4jgt C9 has a solid team tho, my team has interacted with them for a few years and we get the impression that their product isn't going away anytime soon
Gersho
@Gersho
Jan 12 2018 20:21 UTC
if their boss changed that's not for them to decide
like Nest
Kaz Baig
@kbaig
Jan 12 2018 20:24 UTC
@Gersho ofc but it appears that Amazon's pattern when it comes to acquisitions is to grant relative autonomy after implementing some solid integration
Twitch Prime for example
Skylar
@skyboy1997
Jan 12 2018 21:18 UTC
Does anyone know why this code won't display the number of clicks on the html page but will in the database?
console.log('Server-side code running');

const express = require('express');
const MongoClient = require('mongodb').MongoClient;

const app = express();


app.use(express.static('public'));


let db;


const url = 'mongodb://localhost:27017/clicks';

MongoClient.connect(url, (err, database) => {
  if (err) {
    return console.log(err);
  }
  db = database;
  // start the express web server listening on 8080
  app.listen(8080, () => {
    console.log('listening on 8080');
  });
});


app.get('/', (req, res) => {
  res.sendFile(__dirname + '/index.html');
});


app.post('/clicked', (req, res) => {
  db.collection('clicks').findOneAndUpdate({}, {$inc: {click : 1}}, (err, result) => {
  if(err) throw err;
  res.send(result);
 });
});

  //console.log(click);
  //console.log(db);

//   db.collection('clicks').save(click, (err, result) => {
//     if (err) {
//       return console.log(err);
//     }
//     console.log('click added to db');
//     res.sendStatus(201);
//   });
// });


app.get('/clicks', (req, res) => {
  db.collection('clicks').find().count((err, result) => {
    if (err) return console.log(err);
    res.end(result + '');
  });
});
Darren
@DarrenfJ
Jan 12 2018 21:33 UTC
back... jebus you guys are active in thee ole tumbleweed town
@ki4jgt yah fCC goes with glitch now.. in the new beta anyway... when AWS took over C9 they required a credit card to create an account and some people in fCC do not have credit
Jesse
@ki4jgt
Jan 12 2018 21:35 UTC
@DarrenfJ Thanks.
CamperBot
@camperbot
Jan 12 2018 21:35 UTC
ki4jgt sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2346 | @darrenfj |http://www.freecodecamp.org/darrenfj
Darren
@DarrenfJ
Jan 12 2018 21:38 UTC
if you care about these kinds of things, there was a long discussion about replacing it... freeCodeCamp/freeCodeCamp#9826 i found it interesting, but then i probably would find most small print interesting
someone told me some of those nodeschool backend exercises are out of date too now...
Jesse
@ki4jgt
Jan 12 2018 21:40 UTC
@DarrenfJ What about Hyperdev? Also, why hasn't the website been updated to reflect this?
Cool, hyperdev is Glitch. That's awesome.
Darren
@DarrenfJ
Jan 12 2018 21:47 UTC
yah hyperdev became gomix became glitch...
Gersho
@Gersho
Jan 12 2018 21:49 UTC

when AWS took over C9 they required a credit card to create an account and some people in fCC do not have credit

well what's the point of paying for a card if you don't have money to put on it ? ^^

Darren
@DarrenfJ
Jan 12 2018 21:50 UTC
some people in some countries just don't even have access to credit cards is the issue... or so they say
Jesse
@ki4jgt
Jan 12 2018 21:50 UTC
I don't have access to a credit card.
Darren
@DarrenfJ
Jan 12 2018 21:51 UTC
C9 wasn't costing anything but wanted a number as part of sign-up in case you ever expanded to the paid version
Jesse
@ki4jgt
Jan 12 2018 21:51 UTC
Nor cash. I've been caring for my grandparents for years and haven't needed it. Now, I'm getting certified to get a job.
Darren
@DarrenfJ
Jan 12 2018 21:51 UTC
it's amazon after all
Aditya
@ezioda004
Jan 12 2018 21:51 UTC
Or even if they do, international transactions aren't allowed by the banks
Darren
@DarrenfJ
Jan 12 2018 21:51 UTC
it was a bit PIA for a free coding site that wanted to be worldwide... so they abandoned C9..
Jesse
@ki4jgt
Jan 12 2018 21:52 UTC
@DarrenfJ Well, the course (Backend cert) needs to be updated to reflect that change then because I had no idea.
Darren
@DarrenfJ
Jan 12 2018 21:52 UTC
@ki4jgt to answer this: ' why hasn't the website been updated to reflect this?' the beta came out last December and has a been out for a year with glitch as the option... they didn't update the active fCC cause in i am assuming in their heart of hearts they really thought the beta would be live shortly after Dec 2016
Gersho
@Gersho
Jan 12 2018 21:53 UTC
2016 ?
Darren
@DarrenfJ
Jan 12 2018 21:53 UTC
right now all the contribution volunteers are pushing to get the beta up.. was planned to go end of Dev 2017 but they still have some issue...
yup.. the beta went 'live' as a beta a full year ago
2016 ?
anyhoo, they're getting close but it's like an asymptotic line.. always approaching the limit but never quite reaching it ;)
Well, the course (Backend cert) needs to be updated to reflect that change then because I had no idea.
Jesse
@ki4jgt
Jan 12 2018 21:56 UTC
So, if I sign up for Beta, do all my old lessons transfer over?
Aditya
@ezioda004
Jan 12 2018 21:56 UTC
Damn, I wanna start contributing but idk how :worried:
Darren
@DarrenfJ
Jan 12 2018 21:56 UTC
agreed.. but in the past people would come here, ask about it, back when there was a help button near the submit one and we'de just answer it
all your completed one ones will... just one day 'poof' the beta will be the live one...
Jesse
@ki4jgt
Jan 12 2018 21:57 UTC
OK because I've just signed up for beta.
Darren
@DarrenfJ
Jan 12 2018 21:57 UTC
live ones in fCC will 'transfer' when the beta goes live.. but the beta one completed as beta wouldn't backfill though
and join the Contributors room too: https://gitter.im/FreeCodeCamp/Contributors
@ki4jgt will grab some info on that for you (re: what to do about doing beta exercises)
Aditya
@ezioda004
Jan 12 2018 21:59 UTC
@DarrenfJ That's very helpful. Thank you!
CamperBot
@camperbot
Jan 12 2018 21:59 UTC
ezioda004 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2347 | @darrenfj |http://www.freecodecamp.org/darrenfj
mostly all you need to know there
Jesse
@ki4jgt
Jan 12 2018 22:01 UTC
@DarrenfJ thank you. You've been SO VERY HELPFUL.
CamperBot
@camperbot
Jan 12 2018 22:01 UTC
ki4jgt sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Darren
@DarrenfJ
Jan 12 2018 22:03 UTC
Quincy's status on beta go live - here
@ki4jgt no worries man.. that's what this room was supposed to be all about :D
what i heard was that so many highschool and free schools were using the existing curriculum for their own courses that they wanted a good final one instead of incrementally rolling out changes
ok gotta sneak off and pretend to work some more.... codeOn roomies!
DarrenfJ @DarrenfJ sneaks off
rscales02
@rscales02
Jan 12 2018 23:18 UTC
 var mindate = fetchedData[0][0],
    maxdate = fetchedData[fetchedData.length - 1][0];

 var xScale = d3
    .scaleTime()
    .domain([mindate, maxdate])
    .range([0, 700]);

    console.log(xScale(fetchedData[3][0]))  //NaN
I am trying to figure out how to scale my time with d3. I understand that scaleTime is a function that should accept a date within the range of [mindate, maxdate] however it logs NaN when passed a date