« first day (2469 days earlier)      last day (2703 days later) » 

03:38
what kind of matrix is that?
the matrix
i have a dillema
when i mouseup' on my event handlers
how many
i get 2 triggers on mouseup
and one of the elements triggers logic i dont want it to trigger
i want only the element im touching to trigger it's logic, not the rest
03:53
right
so make it not bubble
i want: if element x is clicked --> do logic
what am i looking at?
what kind of code?
1 min ago, by Kevin B
so make it not bubble
prevent default, prevent propagation etc
actually no etc, those two are it
 document.addEventListener('mousemove', function (event) {
                    event.preventDefault();
that's the last element that will be reached with the event
03:56
i see it only in mousemove'
so i add it also in 'mousup?
document.addEventListener('event',callback,false)
oh sweet that works :D
good job!
03:59
?
0
Q: how to trigger button onmouseup handler from javascript

Oscar Cabrerohow to trigger onmouseup handler from javascript i have my button <input id="x" onmouseup="doStuff()"> and i want to trigger document.getElementById("x").onmouseup();?????

this is what i want
k fixed it
document.getElementById(eName).addEventListener('mouseup', function () {
                    isDown = false;
so i changed 'document.addEventlistener' into 'document.getelementbyID'
now only what i select/touch get's to trigger the event :3
Especially for handling text inputs, the postfix "up" is key
right
A K
A K
what's your main language hallie/
english
u?
A K
A K
04:14
engrish
what about programming langugae
AH lol
right, my main is c#
but im getting the hang of html/css/js
A K
A K
css is hard
rly?
explain
A K
A K
because i dont know anything about css lol
and i cant wrap my head about what to do
i'd rather do anything else than to deal with css
i dont like css and dealing with databases
unfortunately with web its too bad too sad
gotta get good at css, html, js
04:28
use C# for databases
use js for css
$('#x').css("", "");
ajax - c# for databases
i..uh...wat?
A K
A K
wat?
just because you can...doesn't mean you should
you dont like css use js with css
it's another style
dont like db with js, use c# db/azure/ef
alright i'll bite
04:32
no I will
it's what i do
all yours @Ryan
although is such a pain in the ass to code with 4 languages
you gotta learn 4 languages
and ajax - partial views are a pain in the fkn ass x10
@Halie using CSS for CSS is better
@derp okay I’m done feel free to continue
A K
A K
if you don't like ajax, use a different networking tool
04:34
$('#x').css("", ""); is not a good thing to do because it is slower and less maintainable
at the end of the day, it is still css
are we talking about big projects?
any
cuz im hanging in there with 2000+ lines of code
A K
A K
well how many ajax liens of code are there?
w/e ur right
dont use js.css
A K
A K
04:35
if there's not much, just use a different networking tool and replace them
im not gona argue that js.css is better than css
idgaf
nope...i'm done
here, a cat!
A K
A K
is that your cat?
yesh
A K
A K
04:37
i uploaded this earlier
my dog
hes' cute
A K
A K
no shit
i know he's cute
@Shrek get in here
@AK did i ask for ur opinion?
A K
A K
meh; i really hope i get the job ; i'll find out tomorrow
is the job description contain css?
cuz then ur fucked
A K
A K
04:39
i had a long interview today; spoke with 5-6 people
of course i'd be fucked
i avoid any job that requires css
and database
it was with a machine learning company
i wish you'd reconsider because you're self excluding yourself out of both the front end and the backend
A K
A K
they need more engineers who can build tools and automation
but since i'm mainly javascript; they were afraid i dont know any python
and i thought that was kind of close-minded;
the hardest thing ive tackled with c# was window handles
so much can go wrong
A K
A K
i had to constantly remind them that i'm not limited to javascript; i can do other things
i know a decent amount of FE engineers who don't write css but have jobs
and a decent amount of back end engineers who dont' deal with databases and have jobs
meow :3
04:46
@AK not disagreeing that there are jobs where you don't have to deal with css/dbs, i'm just saying that a LOT of jobs have css or dbs
this is a cute dog
cute
A K
A K
20k followers on isntagram
i know :(

But the sad part for my job hunting experience is that I don't have enough experience to even warrant a call
in 99% of all companies
and I'm not tested on important practical stuff
its running into close minded douchebags
what kind of programmer are u? brute force or problem solver?
A K
A K
04:51
it has affected my mental and physical health
i cant write a lot of lines/hr, im better at creativity/problem solving
A K
A K
problem solver; plan around necessary tools
use what's needed
write clean elegant maintainable code
that doesnt screw over future developers and people using it
and not act like i'm better than everyone
have you had a programming job before/
A K
A K
part time; i hated it because boss was a condescending prick
kept giving me random js quizzes, half of them were fundamentally wrong
i wasn't learning and improving
gave u js quizes during work?
A K
A K
04:55
my next one was the worst; i didnt get paid 1 cent and the cto/ceo were fcking dipshits
cto never set up http/https on a mobile payment company
didn't bother encrypting database with a lot of sensitive data, this includes bday, full name, address, social security, bank account + routing
and that was unnecessarily sent over the network repeatedly
if you want prorevenge you could probably report them
yea but they gave you qizzes at work?
A K
A K
i went around reporting them but got a lot of responses that they dont handle this sort of action
oh my first one, yes; he was so afriad that i dind't know anything that he kept giving me random js quizzes
which took up a lot of my time because a lot of them were fundamentally wrong
da fuq
A K
A K
it made me lose confidence in his abilities
04:58
what stuff did you program?
did you start-finish a project?
A K
A K
built random cli tools, built an image processing app
that's about it
some of the things he had me learn were a lot of depreciated js stuff
cant wait to get into iot
A K
A K
iot is fun
for the sake of botnets, please make sure you secure them
A K
A K
secure what?
05:00
the iot devices
i want an iot bot that is a stalker
it stalks people
criiiinge lol
A K
A K
eventually, i want to learn more about staling people
i want the intel joule 570x
how to debug typescript in vscode which has node_modules
only 370.00 usd T_T
A K
A K
05:04
that's such a vague question sajeetharan
why do you need to debug node_modules?
you shouldn't be having any problems with that
@Halie if you live near a microcenter; you can usually get a processor + mobo deal with at least $50 off
what does that board do exactly?
has a quad core intel chip @ 2.4ghz
less than the size of raspberry pi3
A K
A K
oh wow
i want to use it for deep learning
mornin
 
1 hour later…
06:41
@SterlingArcher what are you missing?
I'm trying to refractor my code. I've got 3 components but they are all in one module. Now I'd like to have one module for each component. They have a hierarchy meaning I have a parent navigation , then a sub navigation that depends on the parent clicked and then I have section which depend on sub navigation.

Where should my even listeners be.

For example "on click" event on the main navigation. That then display corresponding sub navigation. Should that "on click" event be in the sub nav module? I feel like it should... but I have no idea
Live example codepen.io/Paran0a/full/bRPWep of what I'm talking about :/
@Paran0a without seeing your code, my idea is that you'd have a parent navigation module and a sub navigation module, both of which holding an instance of a third event bus module responsible for receiving and triggering events
Ok MobX has a weird edge case
with arrays inside an object hmm
@NEil I just posted a codepen that I'm currently working on
In other words, detach the event aspect of both modules
@Paran0a my apologies, I'm on my mobile phone so that means checking code is going to be impossible for me
06:54
haha no problem! but you gave me a good idea
I am kinda baffeled :/
this is just stupid
because of this chat room
i solved a problem plaguing me for 10 days
on mouseup' multiple element's logics would trigger, then i fixed it
this chat room made my gf pregnant and got me a new job
any events that trigger when scrollbar appears?
hellow people who press buttons on keyboard
yes indeed that is me
hello
hi we've got a javascript question here that needs more answers stackoverflow.com/questions/45207660/…
@Ryan does it?
@Ryan surely there is some dupe to hammer with?
07:37
Hey! Do you know, that you can make for __any__ engineering problem a "brute-force" algorithm, which theoretically finds its solution, describe that algorithm as a logical scheme and then you can use an AI agent to make that logical scheme easier to compute, by simplifying unnecessary computation steps, input variables, etc.

Could you name people, who work on something like that? Thanks!
@EugeneZavidovsky Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
o/
Well... It maybe should be asked in another place, but my question is above. I need names.
@Ryan closed
@EugeneZavidovsky er, what does that mean
do you have a proof of it
@DenysSéguret Nice. I wasn’t sure enough what “word” meant
07:44
That java answer tho
@Ryan Well, it seems it doesn't need a proof: Exhaustive search
@EugeneZavidovsky Maybe it does. I don’t even know what the statement is
what’s an “engineering problem”
@BenFortune oh my...
@Ryan Say, find a design of a molecular nanofactory which will work in a given physics simulator. That problem can be described as a computing "brute-force" logical scheme, which then can be simplified by an AI agent.
Wax
Wax
hello
07:51
So.. Like working as a computer scientist that doesn't necessarily work with computers?
Man yesterday I saw a shopping cart that can distinguish between perfect plastic replica of 1Euro and real Euro. I'm pretty sure AI can solve your molecular mumbojumbo.
Wax
Wax
does anyone here know how to use angular 4?
I have a question about it.
@Wax angular 4 what?
Wax
Wax
you know
ngModule
it can update text live.
but how about DOM
@EugeneZavidovsky oh so you just want to invent general AI then? that’s not too hard
07:52
Will work with angular 4 food
Wax
Wax
Like for example, I have a search results list generated, and I want to update it based on the user query input.
:(
@Neil Working as a translator of problems into a "brute force" solver : )
@EugeneZavidovsky you generally use brute force if no other options are available
@Paran0a AI agent powered, say, by TaihuLight system. Isn't 90 PFLOPS enough for simplifying a CAD?
It is the worst possible approach
07:55
@Neil With a good AI one will be able to use "brute force" everywhere, I think.
you’re kind of overestimating where AI is, I think
and also how applicable brute force is
@EugeneZavidovsky ai and algorithms are a bit like apples and oranges
@Ryan Yeah, it may be so. State-of-the-art theorem provers based on Neural Networks are still not impressive. I just wonder why no one seems to use Neural Graphs instead...
And don't forget about a lil boy with 90 PFLOPS ; )
=_=
@Ryan I feel like we're being trolled
07:58
Nope. I am serious.
Hi, serious. I'm dad.
Angular food. Hmm, what a great marketing term.
@Neil We may become dead, if some terror state gets that technology behind the USA, yeah : D
I have become dead destroyer of worlds
Organic Angular Bananas, 2 for $1
08:00
o_o
what’s angular food
@Paul I don't know what the hell those are, but I'll pre-order 2 dozen. Do you take credit?
is it a dependency i inject into myself
Not sure, but @Neil said he'd work 4 angular food.
is it a route vegetable
08:02
I said I'd work with angular 4 food
I'd be happy if the bananas weren't always either green or rotten down the center.
if my spouse and i are acting as chefs at a dinner party for a dozen and we want to serve up angular food, will it work on our existing dishes?
Thats why bananas suck
or will a shipment arrive with ten plates included?
Only if Euler's rules of construction are obeyed.
08:05
@Ryan no. But lucky for you, I sell angular plates and silverware.
@Ryan that's when you find out you're allergic
i don't really want to have to clean up afterwards, either
would the ten plates have built in sanitizers?
Just remember there's a difference between hypotenuse and hippopatomus
!!wat
08:06
hippopatomus
@Ryan that module costs extra. Angular napkins
s/randomletters/morerandomletters/
perl 7 is probably going to have a function for that thing from earlier
  optimizeWithGeneralAI { … }
except instead of optimizeWithGeneralAI it’ll be the &↗& operator
if (AIWriteMyCodez()) then FireMe(my_ssn);
@Paul nooo! I counter with Me.cancelFiring()
08:16
@Ryan :) Yeah... Simple.fire()
9666 views, yeah, guys : D
@Paran0a the fck?
@Shrek Wut?
How did the room get your gf pregnant ?
why are most questions so low quality :'
I don't know , I'm at work whole day and one day she said she was reading this chat and felt something and she thought that's the baby . We went to the doctors and whaddayaknow shes pregnant. It's pretty weird but I believe her.
08:22
this will be one hell of an interesting baby
are you new to SO?
not sure how old my account is
but.. not really
there's a reason why a lot of users stopped using the main page
>3 years atm
main page wasn't that bad before
08:27
0
Q: How do I compare every element in a multidimensional array?

mpactMEDIAI would appreciate any help with this. This has been edited to more clearly describe how the array should be evaluated. I am trying to figure out how I can compare all elements of a multidimensional array to determine if the elements comprise a true set. Criteria I won't know how big t...

oh, it was
and it has been for some time
It was bad, but not that bad
when the jquery - tag was at the top of its popularity, it was a freaking complete shitshow
But "True set" doesn't mean what you think it means, apparently. Oddly reminiscent of misinterpreted homework problem.
I love people that use jQuery, but don't know javascript.
08:30
1 message moved to Trash can
@Paran0a Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
they should a 5 reputation requirement to ask a question in javascript :l
You have downvotes and close-votes to your disposal
most extremely low quality questions are from people with 1 reputation
I don't have close votes yet :(
sure you do
08:39
I seem to recall low rep users can flag stuff in a way that looks a lot like a close vote.
3,000 cast close and reopen votes.
or not? wait, do you get them at 2.5k?
oh, my bad then, didn't remember that
well, you can flag a question though
@Paul They can
And it sends the question to the CV queue
  return {
    mainNavEl : $('.site-nav'),
    mainNavBottomBorder : $('.nav-list-bottom-border'),
    get activeNav() {
      return this.mainNavEl.find('.active')
    },
should I use getter for something like this?
Why a getter instead of a property whose value is a function?
08:43
uh.... how do i create a class with a subclass in JS?
in c# i'd do this:
  public List<GridSnapClass> GridSnapList { get; set; }


        public class GridSnapClass
        {
            public int ID { get; set; }
            public string EID { get; set; }
            public string X { get; set; }
            public string Y { get; set; }

        }
how do i do this in JS?
class Foo extends Bar { ... }
so..
Just found out that THERE ARE covers in the house, they were in a vacuumed plastic bag... Yay no more towel-sleeping
class GridSnapClass extends List<GridSnapClass {}?
Its like 30°C at night here
i sleep naked
@Paul I don't think that is going to work. Using function as a property
08:44
@Halie are you using ts?
team speak?
typescript
@Halie typescript
I spent entirely too long not figuring out that result.json() on a fetch call does return a Promise on it's own m(
nope, using js/jquery
08:45
because you can do FA when using JS
@Hallie Javascript is dynamically typed; you are thinking of Java.
you can let your imagination run
uh...
FA is short for the heavily technical term "Fuck All"
what are you trying to achieve?
08:49
@Paul we just say "mdn for classes"
The class keyword in JS is relatively new, but is only syntax sugar over the existing prototype system in JS.
Here's an example where getter works but when you use function as property it doesnt work
Ofcourse I know I'm missing something but I'm trying to get educated ;p
in 1 day it's Friday
fun fun fun fun *kill me
@Paran0a Interesting. Usually it is clear that functions do not run until code explicitly calls them.
08:54
@Paul Oops , I forgot to define localLog as a function in the first example :D I guess this more of what you meant jsfiddle.net/gyoahr07/1
It strikes me that code with getters might make that a litttle bit fuzzier.
As far as I know getters are only run when you need the property , ( I don't know about functions as properties )
How's this animation done? vultr.com it's not a video the text is selectable which is so cool
When a function is a property, you must still put () afterward to call it. Running alert or console.log on a function first converts the code to a string, and if that isn't what is desired, then use alert(someobj.myFunction()) note it has () to call the function.
Oooooh
so it's alert(this.localLog()); , not alert(this.localLog);
goddamn me , lemme check it in my real example
09:00
For a plain function, yes. I'm not familiar with the new getters. It sounds like a lazy val in scala, but am unsure.
Yeah It works, only thing I'm annoyed is how the syntax looks , having stuff like mainNav.activeNav() instead of mainNav.activeNav looks iffy . I am though worried about support for gettters
Well, there's a tool put out by Facebook called "babel", that transforms ES6 code back to earlier JS so everyone can run it. Some projects use this in their build so that devs can write code using the latest syntax, and don't have to look at the uglier equivalent code that actually runs.
I just need to check if this (getter )is ECMA2015 and then use ECMA2015 plug in for babel , i guess?
Yeah, something like that. I used to have a posting about how to set this up, but it may not be current. Here it is: stackoverflow.com/a/38278126/103081
@BenFortune yes
@SterlingArcher whenever you await, that's like "wait for the event and run the proceeding code "in a callback""
09:08
@Paul , alright , thanks for the help!
09:18
@Halie Nobody wants to see your stupid GIF loop 9000 times
yea.. i wanted to delete it but i can only flag it
oops
wait, what did I just read
javascript has inheritance?
tought it was TS only
@Nick multi-inheritance heheheh
I can't think of an use case where you need multi-inheritance though
big project
containing 50K+ lines
09:22
mmmhm..
well, depends on the architecture
@Halie The pro move is to un-onebox-edit the message while you're still allowed to ;D
I need naming help
How would you call a prop that represents an end of a math function domain (being a value [double])
@KamilSolecki Depends on the math function, I guess
the method takes the math func as a param, as well as a right hand side limit
as in:
Get2DFunctionDataPoints(Func<double, double> function, double thisIsARightHandSideLimit)
09:48
Just use a single-letter name and act like it should be obvious what it means
x
gonna give it to ya

« first day (2469 days earlier)      last day (2703 days later) »