These are chat archives for FreeCodeCamp/Help

12th
Jan 2018
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:00
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
how can i redirect a specified user after login to a specified page that contains his user id in url in php?
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:05
@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

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 van de Peut
@bjorno43
Jan 12 2018 00:07
IE: Don't use echo before it ;) @dkapexhiu
@Gersho Thanks :D
CamperBot
@camperbot
Jan 12 2018 00:07
bjorno43 sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 573 | @gersho |http://www.freecodecamp.org/gersho
slri
@slri
Jan 12 2018 00:08
@bjorno43 nice idea actually, was a great read
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:08
@RuinIsProbablyTaken Thanks :)
CamperBot
@camperbot
Jan 12 2018 00:08
bjorno43 sends brownie points to @ruinisprobablytaken :sparkles: :thumbsup: :sparkles:
:cookie: 753 | @ruinisprobablytaken |http://www.freecodecamp.org/ruinisprobablytaken
slri
@slri
Jan 12 2018 00:09
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
surely they were thinking about flash :P
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:11
^ lol
slri
@slri
Jan 12 2018 00:12
the meme languages of the interwebs
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:12
But ye. Any language is dangerous in the wrong hands, lol
Daniel
@dkapexhiu
Jan 12 2018 00:12
thank you @bjorno43
CamperBot
@camperbot
Jan 12 2018 00:12
dkapexhiu sends brownie points to @bjorno43 :sparkles: :thumbsup: :sparkles:
:cookie: 183 | @bjorno43 |http://www.freecodecamp.org/bjorno43
slri
@slri
Jan 12 2018 00:12
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 van de Peut
@bjorno43
Jan 12 2018 00:15
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
slri
@slri
Jan 12 2018 00:16
i kinda wanna update my php version and try php7 out but it's sooooooooooooooo much hassle
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:17
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 :)
slri
@slri
Jan 12 2018 00:20
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 van de Peut
@bjorno43
Jan 12 2018 00:21
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
wamp ? is there some windows without graphical interface ?
oh ISPconfig looks cool, bind9 is annoying me so maybe i'll try that
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:29
Nah. Wamp is just a program that installes Apache, MySQL and PHP
Gersho
@Gersho
Jan 12 2018 00:29
yeah i know
but i mean, lamp would be better since windows would hog ressources for a screen nobody is gonna look at
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:30
True. I used to call a server that has a monitor, keyboard and mouse "fancy" xD
Gersho
@Gersho
Jan 12 2018 00:31
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

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 van de Peut
@bjorno43
Jan 12 2018 00:32
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
@JavaLavaMT var title=main.query.pages.title; is wrong
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:34
@JavaLavaMT $.getJSON="http://en <-- use HTTPS
Gersho
@Gersho
Jan 12 2018 00:34
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
@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
there's a [
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:36
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
@Gersho I missed that, thank you!
CamperBot
@camperbot
Jan 12 2018 00:36
javalavamt sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 574 | @gersho |http://www.freecodecamp.org/gersho
slri
@slri
Jan 12 2018 00:41
image.png
looking at the things that were removed from php7 lmao
lynnchuh
@zhuzhulyn
Jan 12 2018 00:45
0
Eunice Park
@eunicode
Jan 12 2018 00:48

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 van de Peut
@bjorno43
Jan 12 2018 00:54
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
@eunipa It works because of closure
Eunice Park
@eunicode
Jan 12 2018 00:56
@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
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
@ezioda004 thank you, that's a topic I'm still hazy on
CamperBot
@camperbot
Jan 12 2018 00:56
eunipa sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 375 | @ezioda004 |http://www.freecodecamp.org/ezioda004
Aditya
@ezioda004
Jan 12 2018 00:56
You can read about it here .They have an adder example there if you scroll down a little bit.
Bjorn van de Peut
@bjorno43
Jan 12 2018 00:58
@eunipa Seems odd to me. Unless you've defined input somewhere else..
Eunice Park
@eunicode
Jan 12 2018 00:59
@ezioda004 Thanks for pointing me to the adder example
CamperBot
@camperbot
Jan 12 2018 00:59
eunipa sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
api offline
Eunice Park
@eunicode
Jan 12 2018 01:00
@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
Because addByX returns a new function, and that new function's only argument is input.
Gersho
@Gersho
Jan 12 2018 01:02
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
@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
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
@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
@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
With a closure where 'x' = 2. ;-)
Bjorn van de Peut
@bjorno43
Jan 12 2018 01:05
@HeinousTugboat Ah, now I see how it works. Thanks for the explanation :)
CamperBot
@camperbot
Jan 12 2018 01:05
bjorno43 sends brownie points to @heinoustugboat :sparkles: :thumbsup: :sparkles:
:cookie: 308 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
Aditya
@ezioda004
Jan 12 2018 01:09
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
closures still confuse the heck out of me
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:13
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
@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
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
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
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
But when you do addByTwo(3), isn't addByX(2) being called implicitly?
Alexander Jarman
@HeinousTugboat
Jan 12 2018 01:39
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

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
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
Oh..
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:03
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
It kinda made some sense, so addByTwo is stored in the memory and the addByTwo(1); executes it?
slri
@slri
Jan 12 2018 02:05
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
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.
slri
@slri
Jan 12 2018 02:08
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
It doesn't.
slri
@slri
Jan 12 2018 02:09
well that's curious
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:09
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?
slri
@slri
Jan 12 2018 02:10
idk both make sense honestly
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:10
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.
slri
@slri
Jan 12 2018 02:12
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
Yeah. ;-)
Also that's how this and constructors generally work.
slri
@slri
Jan 12 2018 02:13
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
How do you mean?
slri
@slri
Jan 12 2018 02:19
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
@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
ezioda004 sends brownie points to @heinoustugboat :sparkles: :thumbsup: :sparkles:
:cookie: 310 | @heinoustugboat |http://www.freecodecamp.org/heinoustugboat
slri
@slri
Jan 12 2018 02:19
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
It's 8am here, I slept ~28hrs ago
Should prob call it a day
slri
@slri
Jan 12 2018 02:22
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
One sec, I've actually got an example I used.
slri
@slri
Jan 12 2018 02:23
i'd love to see that
Aditya
@ezioda004
Jan 12 2018 02:26
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
Trying to remember where I did that at now. :-|
slri
@slri
Jan 12 2018 02:28
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
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.
slri
@slri
Jan 12 2018 02:29
pretty op
i'm off to do my nails, friends
see ya o/
Kyle Holm
@thekholm80
Jan 12 2018 02:30
@RuinIsProbablyTaken :wave:
Alexander Jarman
@HeinousTugboat
Jan 12 2018 02:31
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
hello lovely people :)
Kyle Holm
@thekholm80
Jan 12 2018 02:44
@Marmiz :wave:
slri
@slri
Jan 12 2018 02:54
@thekholm80 who are you and what did you do to kyle
Manish Giri
@Manish-Giri
Jan 12 2018 02:54
Resurrection 2.0
Kyle Holm
@thekholm80
Jan 12 2018 02:55
kind of like angular 2, but less users
slri
@slri
Jan 12 2018 02:55
@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
oh yes
i got held up moving my dropbox
slri
@slri
Jan 12 2018 02:56
how df do you mention people on slack anyway >:C
Manish Giri
@Manish-Giri
Jan 12 2018 02:56
@
slri
@slri
Jan 12 2018 02:56
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
oh, hey @Manish-Giri, @RuinIsProbablyTaken. long time no see :)
Manish Giri
@Manish-Giri
Jan 12 2018 02:56
@Marmiz hola amigo
slri
@slri
Jan 12 2018 02:57
@Marmiz sup fam
Manish Giri
@Manish-Giri
Jan 12 2018 02:57
@Marmiz did you notice Kyle 2.0
Claudio Restifo
@Marmiz
Jan 12 2018 02:58
I'm 99% that's not him... just a scammer trying to catfish us
slri
@slri
Jan 12 2018 02:58
kyle 2.0 looks like he codes indie games and identifies as a feminist tbh
Manish Giri
@Manish-Giri
Jan 12 2018 02:58
it's Kyle sent by Skynet
from the future
Kyle Holm
@thekholm80
Jan 12 2018 02:58
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
slri
@slri
Jan 12 2018 02:58
maybe it's the beard
Manish Giri
@Manish-Giri
Jan 12 2018 02:58
prolly to get rid of Kyle O Connor
slri
@slri
Jan 12 2018 02:58
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
i absolutely will
give me your bank account numbers and I'll make it happen
Manish Giri
@Manish-Giri
Jan 12 2018 02:59
oh hey what about my ferrari @thekholm80
Kyle Holm
@thekholm80
Jan 12 2018 03:00
@Manish-Giri hot wheels or matchbox?
slri
@slri
Jan 12 2018 03:00
haHAAA
@Manish-Giri my friend i need that one million dollar critique uwu
Manish Giri
@Manish-Giri
Jan 12 2018 03:01
x
just like we had discussed
slri
@slri
Jan 12 2018 03:01
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
that's what @Manish-Giri is going to buy me when he takes over apple
Manish Giri
@Manish-Giri
Jan 12 2018 03:01
a bride? what for
lol apple
slri
@slri
Jan 12 2018 03:02
@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
lol
Kyle Holm
@thekholm80
Jan 12 2018 03:03
5 baby minimum
Manish Giri
@Manish-Giri
Jan 12 2018 03:03
I like the idea
Kyle Holm
@thekholm80
Jan 12 2018 03:03
and no ugly kids
slri
@slri
Jan 12 2018 03:03
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

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
that's one thing i love about React. compact, succinct files
slri
@slri
Jan 12 2018 03:33
@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

: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
slri
@slri
Jan 12 2018 03:35
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
:O
Sorin Ruse
@sorinr
Jan 12 2018 03:36
laravel is really great but i also love symfony
Kyle Holm
@thekholm80
Jan 12 2018 03:36
that's how I'd like to go
slri
@slri
Jan 12 2018 03:36
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
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
slri
@slri
Jan 12 2018 03:38
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
italian comments
// if it doesn't work: mamma mia!
slri
@slri
Jan 12 2018 03:42
@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
if it doesn't work = fuori servizio
:)
slri
@slri
Jan 12 2018 03:43
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
no, we are not alone. there are a lot joining
slri
@slri
Jan 12 2018 03:45
don't be confused by my outstanding romanian fluency; i am absolutely not romanian
Claudio Restifo
@Marmiz
Jan 12 2018 03:45

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

slri
@slri
Jan 12 2018 03:46
what language is that even
Claudio Restifo
@Marmiz
Jan 12 2018 03:46
italian
slri
@slri
Jan 12 2018 03:46
oh duuuuuuuuuuuuuuuuuh gj me
Claudio Restifo
@Marmiz
Jan 12 2018 03:46
slang italian, to be precise
slri
@slri
Jan 12 2018 03:47
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
btw, irc is still there? the last time i used it was by the time of undernet
slri
@slri
Jan 12 2018 03:53
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
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
slri
@slri
Jan 12 2018 03:57
@bjorno43 ^ where's the qa team? >:C
artbohr
@artbohr
Jan 12 2018 04:16
@NPalopoli ye, it's bugged
Claudio Restifo
@Marmiz
Jan 12 2018 04:24
you can always open a PR and address those issues :)
make the OSS a better place :rose:
ehutchllew
@ehutchllew
Jan 12 2018 04:27
Bought 3 courses during the huge udemy discounts
slri
@slri
Jan 12 2018 04:28
how huge
i got like 3 courses for $12 each once
ehutchllew
@ehutchllew
Jan 12 2018 04:28
yeah that one,
slri
@slri
Jan 12 2018 04:29
oboi
@Manish-Giri hold my beer
HC
@HEC309
Jan 12 2018 08:27
How to use "font-size"?
Sweet Coding :)
@SweetCodingInc
Jan 12 2018 09:00
font-size: 16px; for example
Tychro van den Broeke
@tychro
Jan 12 2018 09:23
can anyone help me? i need to sharpen an image but how??
slri
@slri
Jan 12 2018 09:27
@tychro take a new one
Tychro van den Broeke
@tychro
Jan 12 2018 09:30
yeah but the picture i have was good and sharp
but when i added it, it became blurry
slri
@slri
Jan 12 2018 09:31
@tychro added it where?
Tychro van den Broeke
@tychro
Jan 12 2018 09:32
in an site from someone
slri
@slri
Jan 12 2018 09:32
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
okay wait
in codepen you don't even see the image
RafaelRoman
@RafaelRoman
Jan 12 2018 09:36
The problem is to link
Tychro van den Broeke
@tychro
Jan 12 2018 09:36
how do you mean
RafaelRoman
@RafaelRoman
Jan 12 2018 09:37
You have a image to google?
Tychro van den Broeke
@tychro
Jan 12 2018 09:37
no i took it from google
RafaelRoman
@RafaelRoman
Jan 12 2018 09:38
Ok
an image can be seen in codepen if it has the correct link
Tychro van den Broeke
@tychro
Jan 12 2018 09:43
it can't find the image
but it's correctly linked
slri
@slri
Jan 12 2018 09:58
@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
slri
@slri
Jan 12 2018 12:02
@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
can someone help me a coding question that I have?
artbohr
@artbohr
Jan 12 2018 16:03
@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
morning fCC
artbohr
@artbohr
Jan 12 2018 16:14
@DarrenfJ :wave:
Darren
@DarrenfJ
Jan 12 2018 16:15
hello!
Kyle Holm
@thekholm80
Jan 12 2018 16:16
@DarrenfJ :wave:
Gersho
@Gersho
Jan 12 2018 16:16
hi @DarrenfJ
who the hell are you and what happened to kyle ? @thekholm80
Kyle Holm
@thekholm80
Jan 12 2018 16:17
@Gersho lol
Gersho
@Gersho
Jan 12 2018 16:17
only Manish is allowed to change his profile picture !
Kyle Holm
@thekholm80
Jan 12 2018 16:17
last pic was ~6 years old, figured it was about time
Kaz Baig
@kbaig
Jan 12 2018 16:17
WTF That's not the Kyle I know
Darren
@DarrenfJ
Jan 12 2018 16:18
who the eff is that????
Gersho
@Gersho
Jan 12 2018 16:18
and as usual gitter doesn't update zoomed avatar right away
Darren
@DarrenfJ
Jan 12 2018 16:18
kudos on the beard my beardy brutha! it's got mine beat
Kyle Holm
@thekholm80
Jan 12 2018 16:18
I <3 my beard
Kyle Holm
@thekholm80
Jan 12 2018 16:18
can't wait until it's Dumbledore length
Gersho
@Gersho
Jan 12 2018 16:18
i can't beard genetics
Kyle Holm
@thekholm80
Jan 12 2018 16:19
@Gersho here you go
Darren
@DarrenfJ
Jan 12 2018 16:19
: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
is she still around?
Gersho
@Gersho
Jan 12 2018 16:20
oh we can see the full size image on the gfithub page
Darren
@DarrenfJ
Jan 12 2018 16:21
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
I don't go there, 'tis a silly place
Gersho
@Gersho
Jan 12 2018 16:21
you beard is a bit grey but somehow you look younger
Darren
@DarrenfJ
Jan 12 2018 16:22
there, be dragons
Kyle Holm
@thekholm80
Jan 12 2018 16:22
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
I got rid of the main room from my list
f it
Gersho
@Gersho
Jan 12 2018 16:24
same
my beard is like: epic sideburns , but it doesn't grow along the jawbone
Kyle Holm
@thekholm80
Jan 12 2018 16:24
grow the sides long and then comb over?
Gersho
@Gersho
Jan 12 2018 16:24
also they look like ass air :/
Kaz Baig
@kbaig
Jan 12 2018 16:25
There - I'm finally a human and not an auto-generated-hashtag-looking-thing
Gersho
@Gersho
Jan 12 2018 16:25

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
@kbaig holy crap you're a real boy
Kaz Baig
@kbaig
Jan 12 2018 16:25
Yes sir
Gersho
@Gersho
Jan 12 2018 16:26
that's what you want us to think, we're onto you skynet
Skylar
@skyboy1997
Jan 12 2018 16:26
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
oh man catching up on the past convos... ha!
Albert Cardona II
@daddycardona
Jan 12 2018 16:27
what up everyone ;)
Darren
@DarrenfJ
Jan 12 2018 16:27
shakes head sorry i missed it.. you guys are on fire!
Gersho
@Gersho
Jan 12 2018 16:27
Yo Albert !
Darren
@DarrenfJ
Jan 12 2018 16:27
indie games and feminism HA!
@daddycardona buddy!
Kyle Holm
@thekholm80
Jan 12 2018 16:27
@daddycardona :wave:
Darren
@DarrenfJ
Jan 12 2018 16:28
@daddycardona apparently between yesterday nad today kyle grew a massive beard
Kyle Holm
@thekholm80
Jan 12 2018 16:28
@Gersho x
Gersho
@Gersho
Jan 12 2018 16:28
feminism ? france is going full drama on this
Albert Cardona II
@daddycardona
Jan 12 2018 16:28
:) you done a lot @DarrenfJ
Gersho
@Gersho
Jan 12 2018 16:28

@Gersho x

allowed only as haloween costume

Albert Cardona II
@daddycardona
Jan 12 2018 16:28
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
@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
i just treat everyone the same. it's easier and i'm lazy
Gersho
@Gersho
Jan 12 2018 16:29
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
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
off to test.. poke ya'all later
Kyle Holm
@thekholm80
Jan 12 2018 16:40
@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
hmm i didn't really want to do that, guess i'll compare the pro/con and make my choice
Bjorn van de Peut
@bjorno43
Jan 12 2018 17:17
@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
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 van de Peut
@bjorno43
Jan 12 2018 18:00
@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
slri
@slri
Jan 12 2018 18:47
@Gersho make a project?
@bjorno43 yeah yeah, that's what all slackers say uwu
Gersho
@Gersho
Jan 12 2018 18:51
project ? i don't see that anywhere
only thing i found seem to be more like a roadmap
slri
@slri
Jan 12 2018 19:20
@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
Oh dear.
I have this pinned up at work lol
Gersho
@Gersho
Jan 12 2018 19:25
are you trying to escape the matrix ?
Kaz Baig
@kbaig
Jan 12 2018 19:26
ZALGO IS TONY THE PONY
he comes
slri
@slri
Jan 12 2018 19:27
@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
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
@brisourceful why not just use one loop's i and i + 1
slri
@slri
Jan 12 2018 19:36
@kbaig oi stop stealing my thunder
Kaz Baig
@kbaig
Jan 12 2018 19:37
@RuinIsProbablyTaken you're gonna have to get better at procrastinating actual work than me
Kyle Holm
@thekholm80
Jan 12 2018 19:37
image.png
not sure if glitch or @RuinIsProbablyTaken is leet hacker
Kaz Baig
@kbaig
Jan 12 2018 19:37
l33t h4x0rz
slri
@slri
Jan 12 2018 19:38
@thekholm80 hackerwoman
Kyle Holm
@thekholm80
Jan 12 2018 19:38
Ms Robot
Kaz Baig
@kbaig
Jan 12 2018 19:38
shehacker
slri
@slri
Jan 12 2018 19:38
you guys lmao
i escaped the matrix, took pictures, and came back sassy hair flip
Brianna
@brisourceful
Jan 12 2018 19:39
@RuinIsProbablyTaken :clap: :woman:
Kyle Holm
@thekholm80
Jan 12 2018 19:39
@brisourceful :wave:
Brianna
@brisourceful
Jan 12 2018 19:40
@thekholm80 hey!
Kyle Holm
@thekholm80
Jan 12 2018 19:40
any luck on the job hunt?
Brianna
@brisourceful
Jan 12 2018 19:42
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
oh dang
Brianna
@brisourceful
Jan 12 2018 19:42
I'm nervous asf
Kyle Holm
@thekholm80
Jan 12 2018 19:42
you'll crush it
you're a smartie
Kaz Baig
@kbaig
Jan 12 2018 19:43
papa bless
Brianna
@brisourceful
Jan 12 2018 19:43
hahah yeah we'll see about that...
Kaz Baig
@kbaig
Jan 12 2018 19:43
Is this for dev jobs?
Brianna
@brisourceful
Jan 12 2018 19:43
yup
Kaz Baig
@kbaig
Jan 12 2018 19:44
Gotcha gotcha
that's great
Brianna
@brisourceful
Jan 12 2018 19:44
@kbaig did you go to BU?
Kaz Baig
@kbaig
Jan 12 2018 19:44
I did! Just finished May '17
Brianna
@brisourceful
Jan 12 2018 19:45
I went to Northeastern :satisfied:
graduated '13
Kaz Baig
@kbaig
Jan 12 2018 19:45
ooooooo nice
Kyle Holm
@thekholm80
Jan 12 2018 19:45
holy crap you're old
Kaz Baig
@kbaig
Jan 12 2018 19:45
imo I shoulda gone to NEU. I got in
Brianna
@brisourceful
Jan 12 2018 19:45
oh fuck off Kyle :joy:
Kyle Holm
@thekholm80
Jan 12 2018 19:45
:P
Kaz Baig
@kbaig
Jan 12 2018 19:46
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
@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
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
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
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
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
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
What did you study at BU?
Kaz Baig
@kbaig
Jan 12 2018 19:51
Business w/ concentrations in entrepeneurship, finance, and management information systems
Brianna
@brisourceful
Jan 12 2018 19:52
cool! :)
slri
@slri
Jan 12 2018 19:55
@thekholm80 respek wemen okay
Kyle Holm
@thekholm80
Jan 12 2018 19:55
:point_up: January 12, 2018 9:29 AM @RuinIsProbablyTaken
Kaz Baig
@kbaig
Jan 12 2018 19:56
respek on name put
slri
@slri
Jan 12 2018 19:58
@brisourceful btw gz on interviews, i'm extremely nervous when just sending out applications
Brianna
@brisourceful
Jan 12 2018 19:58
@RuinIsProbablyTaken thanks! Yeah I feel the same way
CamperBot
@camperbot
Jan 12 2018 19:58
brisourceful sends brownie points to @ruinisprobablytaken :sparkles: :thumbsup: :sparkles:
:cookie: 755 | @ruinisprobablytaken |http://www.freecodecamp.org/ruinisprobablytaken
slri
@slri
Jan 12 2018 19:59
good thing is that i never had to deal with interviews xd
Kaz Baig
@kbaig
Jan 12 2018 19:59
wat
how
Brianna
@brisourceful
Jan 12 2018 19:59
@RuinIsProbablyTaken are you working as a dev?
slri
@slri
Jan 12 2018 20:00
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
dank
slri
@slri
Jan 12 2018 20:01
@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
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
I've had to interview for a job I already had
Kaz Baig
@kbaig
Jan 12 2018 20:01
...
SAD
slri
@slri
Jan 12 2018 20:01
@thekholm80 my sort of luck lmao
slri
@slri
Jan 12 2018 20:02
@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
@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
I love reading "experience / education" requirements
I saw someone looking for 8 years of swift experience
slri
@slri
Jan 12 2018 20:03
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
The business world equivalent of that would be like case interviews for consulting
Gersho
@Gersho
Jan 12 2018 20:03
25 years of experience on a frameworks released 3 years ago
Kaz Baig
@kbaig
Jan 12 2018 20:03
My god those are the worst
slri
@slri
Jan 12 2018 20:04
tbh most ask for 5+ years even for a mid position
Kaz Baig
@kbaig
Jan 12 2018 20:04
Or the (also consulting) "How many golf balls fit in this room" type questions
Kyle Holm
@thekholm80
Jan 12 2018 20:05
"what if you were 2 inches tall and trapped in a blender?"
slri
@slri
Jan 12 2018 20:05
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
The what in the what
I really need to see that movie...
Kyle Holm
@thekholm80
Jan 12 2018 20:06
if you can stomach Tom Cruise it's a good one
Gersho
@Gersho
Jan 12 2018 20:06
well he's ok when he's acting
slri
@slri
Jan 12 2018 20:06
what if i was actually stewart little and i was trapped in a washing machine????
Gersho
@Gersho
Jan 12 2018 20:06
the rest of the time...
Kyle Holm
@thekholm80
Jan 12 2018 20:07
I did like The Edge of Tomorrow
but a lot of that was Emily Blunt
Stevie
@StevieBland
Jan 12 2018 20:07
helllo
Kyle Holm
@thekholm80
Jan 12 2018 20:07
@StevieBland :wave:
Kaz Baig
@kbaig
Jan 12 2018 20:07
He needs to stick to being a smirky, sometimes quippy, full on action dude
Gersho
@Gersho
Jan 12 2018 20:08

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
slri
@slri
Jan 12 2018 20:09
@StevieBland hi are you johnny depp?
Kaz Baig
@kbaig
Jan 12 2018 20:09
hey it's me ur depp
slri
@slri
Jan 12 2018 20:09

Honey i shrunk the kids <3

lmfaoooooooooooooooo

Kyle Holm
@thekholm80
Jan 12 2018 20:09
it's weird seeing Kaz next to Kaz instead of the #
Kaz Baig
@kbaig
Jan 12 2018 20:09
@RuinIsProbablyTaken why can't I pm you :'(
Stevie
@StevieBland
Jan 12 2018 20:09
@RuinIsProbablyTaken ive gotten that once or twice :o
Gersho
@Gersho
Jan 12 2018 20:10
you mean the avatar ? i still see the blue # @thekholm80
Kaz Baig
@kbaig
Jan 12 2018 20:10
@thekholm80 it's time you were graced by my beauty
Kyle Holm
@thekholm80
Jan 12 2018 20:10
lol
slri
@slri
Jan 12 2018 20:10
@kbaig why can't you pm me?
Kaz Baig
@kbaig
Jan 12 2018 20:10
@Gersho prob if you clear cache and reload, you'll see it
Gersho
@Gersho
Jan 12 2018 20:10
let's see
Kaz Baig
@kbaig
Jan 12 2018 20:10
@RuinIsProbablyTaken i hovered your name and i only saw the mention button :'(
slri
@slri
Jan 12 2018 20:11
@kbaig see, i'm a proper hackerwoman
Gersho
@Gersho
Jan 12 2018 20:11
indeed same for me
oh i see Kaz ! you should have choosen a lighter background imo
slri
@slri
Jan 12 2018 20:12
we lost you in the dark lmfao
Kaz Baig
@kbaig
Jan 12 2018 20:13
@Gersho that's what the photographer chose :'(
Gersho
@Gersho
Jan 12 2018 20:13
he's bad at his job
Kaz Baig
@kbaig
Jan 12 2018 20:13
you don't like brown on brown??
Stevie
@StevieBland
Jan 12 2018 20:13
so off topic LOL
Jesse
@ki4jgt
Jan 12 2018 20:13
Is Cloud 9 still the best service to use now that AWS is in charge of it?
slri
@slri
Jan 12 2018 20:13
@kbaig nice ignore to my pm
Gersho
@Gersho
Jan 12 2018 20:14
maybe he doesn't see it ?
slri
@slri
Jan 12 2018 20:14
he sees it
Kaz Baig
@kbaig
Jan 12 2018 20:14
@RuinIsProbablyTaken I have to do some work while at work
slri
@slri
Jan 12 2018 20:14
i just got ignored by this camouflage boy
Kyle Holm
@thekholm80
Jan 12 2018 20:14
ouch
Kaz Baig
@kbaig
Jan 12 2018 20:14
eek
Gersho
@Gersho
Jan 12 2018 20:15
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
can't swim when it rains? worried you'll get wet?
slri
@slri
Jan 12 2018 20:15
apparently, gitter is too stupid to pull my new username from github
@thekholm80 lmao
Gersho
@Gersho
Jan 12 2018 20:16
no but it gets too cold under 25°C :p
Jesse
@ki4jgt
Jan 12 2018 20:18
For the server-side cert, is c9 still the best company to use?
slri
@slri
Jan 12 2018 20:18
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
@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
if it's for a fCC challenge just pick whatever they mention
Kaz Baig
@kbaig
Jan 12 2018 20:19
@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
that was my thinking
and Atom is much better to look at than the c9 text editor
Jesse
@ki4jgt
Jan 12 2018 20:20
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
@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
if their boss changed that's not for them to decide
like Nest
Kaz Baig
@kbaig
Jan 12 2018 20:24
@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
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
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
@DarrenfJ Thanks.
CamperBot
@camperbot
Jan 12 2018 21:35
ki4jgt sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2346 | @darrenfj |http://www.freecodecamp.org/darrenfj
Darren
@DarrenfJ
Jan 12 2018 21:38
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
@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
yah hyperdev became gomix became glitch...
Gersho
@Gersho
Jan 12 2018 21:49

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
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
I don't have access to a credit card.
Darren
@DarrenfJ
Jan 12 2018 21:51
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
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
it's amazon after all
Aditya
@ezioda004
Jan 12 2018 21:51
Or even if they do, international transactions aren't allowed by the banks
Darren
@DarrenfJ
Jan 12 2018 21:51
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
@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
@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
2016 ?
Darren
@DarrenfJ
Jan 12 2018 21:53
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
So, if I sign up for Beta, do all my old lessons transfer over?
Aditya
@ezioda004
Jan 12 2018 21:56
Damn, I wanna start contributing but idk how :worried:
Darren
@DarrenfJ
Jan 12 2018 21:56
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
OK because I've just signed up for beta.
Darren
@DarrenfJ
Jan 12 2018 21:57
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
@DarrenfJ That's very helpful. Thank you!
CamperBot
@camperbot
Jan 12 2018 21:59
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
@DarrenfJ thank you. You've been SO VERY HELPFUL.
CamperBot
@camperbot
Jan 12 2018 22:01
ki4jgt sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
api offline
Darren
@DarrenfJ
Jan 12 2018 22:03
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
 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