« first day (2759 days earlier)      last day (2412 days later) » 
02:00 - 17:0017:00 - 00:00

17:02
1 message moved to Trash can
@ConnelBLAZE Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
why dos caprica not move my unformatted code to the trash?
does she like me? <3
var x = 3 + 3;
so helpful
see
she loves me
@ConnelBLAZE Make a demo and throw it into a site like jsbin or jsfiddle or whatever
17:05
on it
While it's all very dramatic and funny, it's actually really freaking impressive and not a bit scary.
cc @BenjaminGruenbaum you'd enjoy that one ^
hey @MadaraUchiha why does caprica not bitch about my unformatted code?
for(var i = 0; i < 5; i++) { console.log("love"); }
@Traitor You're not noteworthy enough.
oh...
hahaha
"you're not noteworthy enough"
echo
17:14
there's no js
There're several things to note
First is the use of == which is discouraged, and you should use ===
Then you're compassing password against itself
There's also the weird indentation, but we'll slide past that
However, ultimately, username and password are also not what you expect them to be. console.log them or step with your debugger to check what they are when the function is called
!!s/js/spoon/
@MadaraUchiha spoonfiddle.net/connelblaze/… (source)
17:20
This went better than expected
Actually, this is far surpassed what I was expecting :D
Critical success
emm... what went better?
okay will look at that
3 mins ago, by Zirak
Then you're compassing password against itself
don't get that
password == password
oh typo
but even when i enter the supposed value for each and submit it doesn't still pass
4 mins ago, by Zirak
However, ultimately, username and password are also not what you expect them to be. console.log them or step with your debugger to check what they are when the function is called
17:26
it is
using the debugger to get the value
"cb" and "bc"
17:39
#NoSpoilers
im sure that's an avengers reference
if someone dies poisoned I'll flag you
just saying
17:54
@MadaraUchiha right in the feels
any factorio players in here?
I need a compact version of this:
@Wietlol Ooohh boy.
"swapping belt lanes" doesnt really do it on google
@MadaraUchiha Ooohh me.
18:22
In related news, here're some graphs about "happy birthday"s in chat: github.com/Zirak/chat-stuff/blob/master/birthday.ipynb
5
(cc @KamilSolecki, @Loktar, @BadgerCat)
Tell me if I fucked something up, like counting someone twice or not counting someone, I skimmed the results but I'm not really alive right now
18:37
@Zirak now, you didnt take into account the fact that some people type like: haaaaaappyyyyy birttthhhdayyyy
or any of the alike
The original filter was simply for "birthday"
You're right on that
but besides that
great job :D
19:05
@Zirak can you add what happens if you only take the messages in the last year?
@towc So only birthday messages in the last year?
yeah
All of it, or a specific data set?
all of it would be nice, but maybe a bit too much work
a separate scripts that starts by filtering, maybe, and then it's just copy-pasta
sure, but gimme some time
19:16
@Zirak great job!
thanks
I think you should merge Badger Cat and Badger Girl together
noted, thanks
imgur.com/gallery/6CSlfPI I didn’t know I needed to see this
bolognese for the lazy
19:32
@allenski Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
But I love my coworers
lol true true
just reminds me of times I once copied/pasted code and that was the situation!
all came down to that damn semicolon!
19:49
what would be the best way to get a div's content from another site? I did a xmlhttp request to get the page's html, should i target the specific div like that?
it returns the whole page innerhtml
holy fuckcakes look at this:
that guy's trust in his own machines gives me hope
@SterlingArcher is that even cooked?
also @Zirak, I've definitely wished more than one bday: chat.stackoverflow.com/…
again, great job, but I'm confused
huh, that's weird
I'll check this out
maybe you're only getting messages with more than 10 stars or something?
hurrrr I think the export from my data source only caught the first X messages
I'm an absolute retard
only relative
otherwise that would make me a retard too
omg did you just call me a retard?
20:03
Just to clarify where I am mentally today, I got on a bus and tried to pay the bus driver with my house keys
4
He did not accept this form of payment
that's golden
why
I thought everyone did that
20:31
Damn these bose computer speakers pump out some volume
@Loktar Bose Companion 20 -- solid investment
however, lots of wires. I'm not sure how to manage my desk with all these cables
I bought donkey kong tropical freeze :D
is that the new mountain dew flavor
20:47
anyone know why i cant append a h2 to the body? - jsfiddle.net/vn4fhuok
@RachelDockter Read the documentation for appendChild
That's not how it's used
i did because i was first using innerHTML
but its not a string so it said to use appendChild
You used it right the first time, idk how you got it so wrong the second time
but innerHTML doesnt work either because its not a string
1 min ago, by Kendall Frey
@RachelDockter Read the documentation for appendChild
are you just ignoring me, or wasting time?
20:50
when u said i used it right the first time, was u refering to when i said i was first user innerHTML
no
I was referring to your fiddle
what do u mean first time on the fiddle? theres only 1 version
like its not /1/ at the end or anything
oh forget it, just go rtfm
21:02
@RachelDockter you know, you've been coming here for several years - I recommend you do freecodecamp.org which is fun and it takes some time but you would get a foundation of how things work.
@RachelDockter after a while, you might find yourself helping people and building cool shit.
@BenjaminGruenbaum dw i know the foundation its just simple mistakes i get caught on. The appendChild = x rather than appendChild(x) was like not realising a spelling mistake, i thought there was something else going on
@MadaraUchiha cute
@RachelDockter yeah but you'll be able to use the devtools to debug these things way more easily. I haven't said anything in the first few years you've been here - but you're really working way too hard.
She could have had a doctorate in CS by now if you had told her that Benji why are you always holding people back >:(
lol jk
IDK maybe she does, a doctorate in CS doesn't automatically mean you know the DOM :D
thanks, i can always use more help debugging, theres a guy in here called David who knows my actual level of js, ask him if ur curious, i know im not as bad as i make myself out to be
also im about to graduate CS with a Bsc degree highest honers if that counts lol
21:07
@Zirak you watching the semifinals?
If you got better at debugging code, you'd be able to find the annoying typos easier
stackoverflow.com/questions/50204505/… jesus please close this fast
shut up kendall
@RachelDockter congrats! And prospective jobs or project dreams?
@SterlingArcher thanks :) well over the summer im gonna continue developing this social media app i been working on, its location based with node js. Then around september comes gonna look for some js jobs while hopefully making ad revenue from mobile apps
21:12
@RachelDockter well, I warmly recommend freecodecamp.org as a way to learn interactively - the initial few assignments should be easy
If you need any resume tips let me know, I'm shockingly good at a simple but effective resume
I see a lot of tutorials for using a proxy server to serve/accept POST requests through webpack on a development server, is there any way to have webpack see post requests on development server?
@BenjaminGruenbaum this looks like complete begginers with no knowledge though, i know i may seem new but i started programming 4 years ago lol
"H" is for "Header" (and "C" is for "Cookie"). — dasblinkenlight 6 mins ago
@SterlingArcher tbh id love some, i havnt made a resume yet and i really need to soon
21:13
10$ says this guy now things C is for cookie
@RachelDockter which is why you'll be able to do the initial assignments very easily
@BenjaminGruenbaum ok ill give this a try, im open minded maybe ill learn something
@RachelDockter It gets more challenging towards the mid-end :)
Other than using express and node.js that is
I still go through code challenges and camps. There's always something new to learn, even basic
21:15
@Alesana What do you mean?
For example @RachelDockter do you know why 2.toString() throws an error but 2..toString() does not?
not that you'll use it... but it's come up in an interview for me
because the first one assumes toString is a property of 2?
it is a property of 2
@MadaraUchiha My brain isn't working at it's optimal level right now haha, but I was wondering if it's possible to somehow pass POST data from a form to an html page
It's actually not, 2 is a primitive value type. 2 can get (auto)boxed to a Number object though.
21:17
autoboxed by what
Let her do it guys xD
@Mosho by JavaScript?
@RachelDockter and the second part?
my other guess would be the first assumes 2 is an object while the second just trys to convert it to a string regardless of what type it is
The more I think of the question the more I am thinking it was a stupid question haha
21:18
@Alesana Not sure what you're trying to achieve.
did i get it right?
What does it even mean POSTing to an html page?
@RachelDockter no
@BenjaminGruenbaum at what point does it get autoboxed in (2).toString()?
21:19
hmm
@RachelDockter Try to imagine what 2..toString() even does
@Mosho At the property access
@RachelDockter not quite, like Benji said, 2 is a primitive number, which does not have associated Number Object methods. The second example is essentially 2.0.toString(). A decimal is not a primitive, and the second .. accesses toString on a decimal, which is a number Object
!!> Number.prototype.foo = function() { return typeof this; }; 2..foo()
@MadaraUchiha "object"
21:19
<form action="/myaction" method="post">. I guess express is the answer?
@BenjaminGruenbaum hmm
Makes sense
i guessed it basicily did JSON.stringify(2)
well
1 sec lemme read this
21:20
@RachelDockter But why are there two dots?
Here's another hint, 2.5.toString() works
@BenjaminGruenbaum how does that explain this then
!!> (2).isInteger
@Mosho "undefined"
ohhh ok i get it, the first dot after 2 is the decminal yeh
21:21
wait
that's not right
lol
!!> let x = 2.; x
@KendallFrey 2
I just woke up
!!> let x = 2.; typeof x;
@SterlingArcher "number"
21:22
!!> let x = 2; x.foo = 15; x.foo; // undefined, because the box was destroyed already
@BenjaminGruenbaum "undefined"
Unless you're in strict mode
!!> let x = new Number(2); x.foo = 15; x.foo; // now it's an object
@BenjaminGruenbaum 15
!!> let x = 0/0; typeof typeof x
21:22
@KendallFrey "string"
@BenjaminGruenbaum nice
@KendallFrey well... yeah lol
!!> (() => { 'use strict'; let x = 2; x.foo = 'bar'; return x.bar; })();
@MadaraUchiha "TypeError: can't assign to property \"foo\" on 2: not an object"
Right, strict mode deviates here and forbids the boxing
21:23
@MadaraUchiha doesn't node run implicitly on strict mode now a days/
the plot thickens
@Mosho Said the stable boy
@Mosho like a good stew
@KendallFrey That would be true regardless of what value x has though
well yeah
21:24
!!> x = Symbol('lol'); typeof typeof x
@MadaraUchiha "ReferenceError: Symbol is not defined"
foiled again
lol damn you @Zirak and your funky whitelist atrocity.
polyfill it duh
21:25
!!> this.Symbol
@MadaraUchiha "ReferenceError: Symbol is not defined"
@SterlingArcher ac + ad + bc + bd
See, this.Symbol will never throw a ReferenceError
So I know it's some sandboxing script that's throwing :)
stop i don't remember binomials
a^2 + 2ab + b^2
21:26
See under:
> The following [[Get]] internal method is used by GetValue when V is a property reference with a primitive base value. It is called using base as its this value and with property P as its argument. The following steps are taken:
@KendallFrey you forgot the d
wait stop
HAMMERTIME!
i never forget the d
21:27
i can't believe i fell for that
!!afk cleaning my soul and apartment
@BenjaminGruenbaum yeah, got it
@SterlingArcher no?
Only with a command line flag
Just use modules, they only have strict mode anyway
Searching 272 files for "strict mode"

0 matches
oh that's why
our architecture is entirely module based
21:32
psshht I wrote an awesome answer on the object/primitive conversion thing
25
A: Why are JavaScript primitives not instanceof Object?

ZirakYou have been tricked by a mechanism commonly known as "boxing" (c# related article, java related article) which mesmerises all who come across it. You had the correct answer in the beginning: Perhaps because 1 is a primitive not an object to begin with? Exactly so. However, how can primiti...

fuck that was ages ago
@SterlingArcher hmm, module based as opposed to what?
what a fucking nerd
@Mosho commonjs
in node?
@Zirak lol you were a kid
yeah I know, what can a person possibly know at age 93
21:38
@Zirak just do
> String.prototype.isPizza = true;
perfect
@SterlingArcher earlier when u mentioned about resume tips did u mean for me to send u mine? or did u just have general tips
yeah send me your resume
ok its got my social security number but just ignore that ok dont look at it
make sure to include drivers license number and phone # and address
of course :)
22:00
gotta watch avengers soon
before I'll get hit with a spoiler
@Zirak lol, you wanted an excuse for literate programming in jupyter, eh?
anyone with apache2 experience ?
i am using this
1 message moved to Trash can
@AbrarAhmed Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@AbrarAhmed Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
Alias /login %docroot%/login
<Directory %docroot%/login>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir none
php_admin_value upload_tmp_dir %home%/%user%/tmp
php_admin_value session.save_path %home%/%user%/tmp
</Directory>
ExecCGI :|
22:09
When I open example.com/login it redirects to example.com/login/
which is the problem I can't solve
@Mosho loki dies
@Will Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
btw does anyone know how to get the type of variable for const x = 10;
I don't want it to redirect to example.com/login/
22:11
cheers
@AbrarAhmed DirectorySlash Off
dunno if it'll do what you want
but you can google "apache trailing slash redirect" or something similiar, the answer is out there
@Mosho thank you very much!
22:24
can anyone help me write a sieve filter for Imagus extension ?
@JeevaRaam Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
why don't set's compare by value and only by reference? they'd be way more useful in modern javascript if they compared by value, but performance would take a hit..
I'm referring to storing objects in a set btw
@Zirak this is insane, and awesome
@Neoares hah me too!
For the Wiiu though for $20 :p
just last night actually
@DavidKamer JS as a whole compares by value and not by reference
@FlorianMargaine Set's don't though, and that's what's annoying.
It's like the one situation where it would be super convenient but could be horrible for someone how doesn't understand basic computer math lol...
I mean instead of new Set([]) I ended writing this horrible piece of code:
const unique = state.userData.find((item)=>{
            return action.userData.job_id && item.job_id ?
             action.userData.job_id === item.job_id && action.userData._id === item._id :
             action.userData.session_id === item.session_id && action.userData._id === item._id;
        });
        const userData = !unique ? [...state.userData, action.userData] : state.userData;
#rant
22:51
@DavidKamer I meant the opposite, sorry
{} == {}; // false
@FlorianMargaine understood. It makes sense that it's by reference for objects. Do two objects compared by === compare by reference or value? Because I could replace the above code with one compare probably but it would be less efficient. saving the planet one watt at a time I suppose lol
reference too, only primitives are compared by value
sets are objects, so by reference it is...
so what is the difference between {} == {} and {} === {}?
That's what I thought, but objects should probably have a different operation for it imo. I know it is really meant to compare types, but comparing two objects should be easier in javascript. I may be naive on this one though.
22:59
I'm torn on this, personally
On one hand, the convenience of how python does it (i.e. {} == {} # true) is really nice, especially for a high-level language such as javascript. On the other hand, comparing by reference makes it explicit, and you have to use e.g. a .serialize() method to explicitly compare by primitive values. Which is nice, too.
did someone say python?
@AndrasDeak yes, talking about the unpredictability of comparing dicts or objects
python dicts or JS dicts? Assuming there are dicts in JS :P
because python dicts are predictable
like most things in python, I guess
23:15
@FlorianMargaine I think the way Python does it is the only sane way and JavaScript will forever be damaged by its primitive semantics
@RachelDockter yes
@SterlingArcher which one lol
(i'm deleting that in a minute, lemme know when you got it)
23:21
or send it to [email protected]
well thats what i was gonna say i dont have one
but ive been meaning to create one which i why i asked for tips
D:
then send him some cat pictures or something
23:22
@Mosho I don't know if that's what I need. Can you run postcss in the browser, for instance, a github pages site? And parse sass/scss, access the AST so I can manipulate it and them export back the source file with those changes? That's basically what I need
@RachelDockter well send me an email, and I'll toss you my resume for a reference of style and bullets
crap can u send it again quick pls
:D
The last time I had a resume was years ago
I never used it
1 min ago, by Sterling Archer
RACHEL
23:24
I'll have it memorized soon
got it ty
Middle name is joseph, use it as my first in pony mode
broseph
Pony mode? Is that a brony thing?
@AndrasDeak naaahhh
23:26
oh I thought I was joking
I don't usually like dark memes, but I do when they're about furries
I'm not dissing on it, but I think it's illegal in my state.
furries? lol
@KendallFrey yep
@SterlingArcher finally I can email you
23:51
Has anyone have suggestions on a payment service that is easy to integrate with react and node?
especially react. I'm not too worried about interacting with node. I'll be able to figure out the backend no matter what, but react can be difficult to figure out on the path less traveled lol
02:00 - 17:0017:00 - 00:00

« first day (2759 days earlier)      last day (2412 days later) »