« first day (2578 days earlier)      last day (2595 days later) » 

00:01
Hey guys, does anyone know any library that can create organization charts that has some kind of "level" attributed, here's an image to better show what i mean i.imgur.com/hBYJWE2.png
@crimson589 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.
i have a rather large document and i am rendering only a few properties on my react component. would i be better off only adding the properties to the state, or just dumping the whole document? is there a performance hit?
00:23
@GNi33 So its optional? Theres a way to make sure browsers dont cache the .json file?
@MadaraUchiha,
You replied last nov 3:
@EarvinNillCastillo I've stopped writing bash scripts almost exclusively in favor of node scripts.
Why torture yourself with a write-only language when you can write a script with a full-featured one?

So what should I use? I can do php and js
so i add React.js to my scripts folder?
and in HTML reference it?
ok got it
00:45
morn
01:28
@William that doesn't give me huge confidence in the taste of their coffee
01:41
i'm sold
Wes
Wes
02:01
@Loktar told you they are taking pics so that they can convince the ladies to help them
I thought you said you didn't know why they were taking pics :p
Wes
Wes
02:28
in HTML / CSS / WebDesign, Oct 24 at 15:37, by Wes
@Loktar did rick take a picture because he wants to recruit the ladies at the beach?
@Loktar how can you even watch tv like this. it's 10 minutes of commercial for each 5 minutes of walking dead. it's fucking crazy
i hate morgan... he's insane
03:01
Hi
can you help me on this
0
Q: Custom Slider (Toggle Slider) not working using jquery

MahadevanWorking on Jquery (Toggle Slider). On load, the left button should be disabled (currently not working), after first click the left button should then be enabled and when we get to the last slide, the right button should be disabled, (currently not working). Here is my jQuery code for reference. ...

I'm trying Gordon Ramsay's fried rice, and I've noticed he adds nothing but Soy Sauce.. no salt, no pepper. I want to know if anyone tried a soy sauce-only dish and how it turned out.
can someone help my question
@KendallFrey just ordered 4 more rolls of pla
:D
03:13
red, light blue, black, and green
gotta spice up my colour game
right? Can't just stick to one colour
I printed mini net cups today
they're so cute
basically the size of a large thimble
I was surprised it printed so well
thingiverse.com/thing:607051 ohh and I printed a few of these. didn't expect them to work out so well
with the tiny holes and all.
they're perfect.
what medium are you putting into the cups?
@Wes haha
I like him actually
wish he kicked Jesus ass.
That Jesus guy is a little bitch
5
also dude yes.. the commercials are painful as fuck.
Wes
Wes
03:56
@Loktar he's completely nuts
lol I know
but I still wish he kicked is ass 😛
in that show man it never pays to let them live
Wes
Wes
dunno, people from woodbury was ok
not all of them obviously
@rlemon ricotta?
Kendall you find some really cool videos. What reddit subreddit do you read?
lol
04:50
@Mahadevan Please include all your lastest css, html, js in the question - you can use the code snippet function on stackoverflow instead of jsfiddle.
05:02
@Sheepy ok sure
05:17
@Sheepy as you told i have updated the code
Noted. Will check again later when I'm free. The question looks much better now.
05:45
@Sheepy o/
@Mahadevan Answered.
@ShrekOverflow o/
05:59
I have been running my interfaces for past 40 hours
no kernel panics :D
 
1 hour later…
07:22
The dispatcher is dispatching data perfectly but the listener detail is always null
   //add listener to the DOM
    		document.addEventListener("RW759_connectExtension", function (event: any) {
    				window.MACYS = event.detail;
    				console.log('event recieved', event)
    		}, false);
    		setInterval(() => {
    			//dipatch custom event
    			var scr = document.createElement('script');
    			scr.textContent = '(' + function () {
    				console.log('dispatching', window.MACYS);
    				document.dispatchEvent(new CustomEvent('RW759_connectExtension', {
I am developing an extension and have the above code in my contentscripts.js
07:39
Mornin
Morning
07:52
He guys the Event listener isn't being attached to the DOM while script is being appended to the DOM through contentscripts(chrome extension)? Any reason?
@BasheerAhmedKharoti can be a million reasons, are you sure the element is present? Does the element get replaced perhaps? There can be a few things. I recommend adding it with event delegation instead (add an event listener on document, and use .matches to check if the .target is your element)
@BenjaminGruenbaum I do have console.log(document) which is just fine.
I've tried pushing the addEventListener inside interval but that still doesn't add  any listener to EventList of the DOM.
setInterval(() => {
document.addEventListener("RW759_connectExtension", function (event: any) {
    				window.MACYS = event.detail;
    				console.log('event recieved', event)
    		}, false);
});
@BasheerAhmedKharoti read what I wrote more carefully, google the terms you're not familiar with, and if you haven't solved it in 15 minutes I'll take another look gladly.
@EarvinNillCastillo In favor of node scripts
08:07
I used to do Python, but now I do most scripting with Python, I actually write some bash too nowadays because I use a bunch of CLI tools and it's easy - but anything that's over 10 LoC goes to Node
08:40
@BenjaminGruenbaum Can I quote that?
@BenjaminGruenbaum is that second "Python" supposed to be node?
08:56
@ShrekOverflow you can quote anything here, this is a public chat :P
@GNi33 :P
As I have mentioned before, I still prefer/like asking for permission
!!abhishekpornfreak
Jan 21 '14 at 16:46, by Abhishek Hingnikar
they love there work like i love p***. maybe i should do a p*** site !
I don't :D
<3
@CapricaSix Maybe he should learn proper English
09:01
*they're
And then he should grow up and start typing "porn"
nah, I like that the stars give room for some interpretation
what if he was talking about prom?
@GNi33 Then the trigger needs to be updated
@KarelG Getting a 503, what is it?
a huge list of multiple embedded systems compared and evaluated by an embedded system consultant
09:06
Ah, I'm in. They're all less than $1, neat
heh, it is suddenly 503ing too at me now
there is a snapshot of it on webarchive: web.archive.org/web/20171106070102/https://jaycarlson.net/…
credits goes to someone from HN: news.ycombinator.com/item?id=15633933
@KarelG hug of death from HN probably
Things I am probably gonna buy in the next few days 1-10. Bug Spray.
I'm gonna buy a heater and warm sweaters
freaking winter is coming again
that reminds me to get a bottle of rubbing alcohol for my sprayer
I use it to remove the ice on my windshields
09:19
I just use a scratcher for that
love the people who pour hot water on their windshields
...
although I have yet to see that it'll actually crack the glass
that would be so satisfying
the ice can isolate the glass, but even then, I wouldn't risk trying that
yeah, me neither
btw, you can spare lots of time with a spray
just spray your solution on the window and then use a tissue to cleanup, Really quick compared to those ice scraper
09:22
I usually have one of those silver mats under the windshield, which slightly help
but god, how much do I want to have a garage
oh boy
I once found myself at 11pm at night, trying to come back home
and my car was covered in snow
and no ice scraper or anything
where can I found one expressjs expert
had to use some scrapboard
@FlorianMargaine this happend to me way too many times that I'd be comfortable to admit
1 message moved to Trash can
@BasheerAhmedKharoti Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
09:24
:39899002
      I do have tried some work around but really it didn't help in any how
        e.target.matches is not a function

            document.addEventListener("RW759_connectExtension", function (event: any) {
            					// if(event.target.matches('body.noQuickBag')) {
            					// 	window.MACYS = event.detail;
            						console.log('event recieved', event.target.matches('body.noQuickBag'))
            					// }
            			}, false);
now I have an ice scraper in the car all year long
I have a small bin for summer and a bigger one for winter. I place one of it in the trunk. Now since the temperatures are becoming slower, I have put the "winter" bin in the trunk. The "summer" bin is now back on the shelf in my garage
it contains supplies to be used. like the sprayer and the ice scraper.
What is event.target?
And what browser @BasheerAhmedKharoti?
@BenjaminGruenbaum Browser is chrome and evet.target is #document
lemme post a img
Wait, do these events actually fire on document?
That wouldn't work with something that's not an actual DOM event
RW759_connectExtension in particular gets fired on the document and not on elements anyway
Right, it looks like it actually fires on document - I'm not really sure how RW759_connectExtension works but it's not a regular DOM event (like a click)
@BenjaminGruenbaum I just want to have emit an event when dom is loaded so I append it to the head and emit
Should I go about specific target?
@BenjaminGruenbaum Here where I got this example.. stackoverflow.com/questions/9602022/…
09:50
@BasheerAhmedKharoti if you just want to listen to document ready then why not listen to the DOMContentLoaded evnet?
@BenjaminGruenbaum Already tried this
var scr = document.createElement('script');
			scr.textContent = '(' + function () {
				console.log('dispatching', window.MACYS);
				window.onload(new CustomEvent('RW759_connectExtension', {
					detail: {macys: window.MACYS}
				}));
			} + ')();';
			(document.head || document.documentElement).appendChild(scr);
window.onload is not a function
user8639911
I'm doing an Ajax request but i can't get the data in nodejs . i'm using "req.body" but it give me {} as result . the data sent is an object called "Data" with data.width data.height data.x and data.y . Tried both with Json.stringify and without
user8639911
I followed this way : gist.github.com/diorahman/1520485
10:06
@EyRaG_ you're missing body parser
@BasheerAhmedKharoti listen to DOMContentLoaded on document and not onload on window
also, that's not how you set up an event listener on onload, but don't do .onload since that'll mess with anyone else setting a handler up.
You should really read up on how events work in the browser, you're just causing yourself frustration here. Eloquent JavaScript covers it and is free I believe.
wtf 18 stars? this is sick
you could've starred some smart comment
you trolls
I've set event listener on body right now it's target is

target:body.?.noQuickBag
document.body.addEventListener("RW759_connectExtension", function (event: any) {
					// if(event.target.matches('body.noQuickBag')) {
					// 	window.MACYS = event.detail;
						console.log('event recieved', event)
					// }
			}, false);
but still event.target.matches won't work
document.body.dispatchEvent(new CustomEvent('RW759_connectExtension', {
					detail: {macys: window.MACYS}
				}));
who's racist now? Mail or slack
@EyRaG_ That's pretty outdated. If you're using the latest express it'll be express.urlencoded()
@KarelG you
10:09
😱
var scr = document.createElement('script');
			scr.textContent = '(' + function () {
		console.log('dispatching', document.body, 'macys', window.MACYS);//It does print some object data
				document.body.dispatchEvent(new CustomEvent('RW759_connectExtension', {
					detail: {macys: window.MACYS}
				}));
			} + ')();';
			(document.head || document.documentElement).appendChild(scr);
user8639911
@BenFortune can you give me an exemple ?
@EyRaG_ I did
user8639911
@BenjaminGruenbaum Where and how do i use it ?
user8639911
@BenFortune where do i need to put express.urlencoded() ?
10:12
in place of express.bodyparser
Only if you're on the latest express though (4.16.0), if not you'll need github.com/expressjs/body-parser
user8639911
i'm using this already app.use(bodyParser.urlencoded({ extended: true }));
user8639911
i didn't copy all the code from the link
Oh, you're using JSON, change that to bodyParser.json()
user8639911
Wait , i'll show you how my code looks like ,
user8639911
That's how i make my Ajax
10:15
1 message moved to Trash can
@EyRaG_ 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
user8639911
      var data = {};
        data.id = TchekID;
        data.RoiIsCreated = true;
        data.x = ROI.x;
        data.y = ROI.y;
        data.width = ROI.width;
        data.height = ROI.height;
        var url = 'http://localhost:8080/tcheks/inspecteur/' + TchekID;

        console.log(data);
					$.ajax({
						type: 'POST',
						data: JSON.stringify(data),
				        contentType: 'application/json',
                        url: url,
                        success: function(data) {
                            console.log('success');
Yeah I don't need that, see above
user8639911
Oh,
user8639911
app.use(bodyParser.json()); ?
user8639911
What if i remove JSON.stringify?
10:20
You'll need to remove contentType too
Then it'll be sent by urlencoded by default
user8639911
i'll try this way before .
user8639911
Thanks
user8639911
@BenFortune Giving me [object object] result
@BenjaminGruenbaum I've figured little bit as the static is being sent through properly and I can receive it on the other hand, but the global variables aren't being sent
user8639911
@BenFortune Replacing urlencoded with json is giving me an undefined result , something is wrong with my Ajax resquest i guess .
10:36
hm... I'm having a weird issue with react 16
I have this in my dependencies: "react": "^16.0.0",
$npm info react version
>16.0.0
$npm list | grep react
[...]
UNMET PEER DEPENDENCY [email protected]
[...]
why Q_Q
also doing npm list react gives me an (empty)
the ^...
it means greater?
it means everything between 16.0.0 and 17.0.0 excluded
o fuck
and how do I include 16?
you have it already :)
10:44
?
you said between 16 and 17 excluded
and I have 16.0.0 installed
between 16 and 17 excluded = [16, 17[ ...
then "react": "^16.0.0", is OK
> include everything greater than a particular version in the same major range
the calculator says it's OK :P
@KarelG so what did you mean with that message
react 16 uses a new environment IIRC
had a broken package before
10:51
What a useless pos
I tried to create a js helper file but the variable is undefined if I call it else where kopy.io/BArzK ideas?
is the file being added to the document when loading the page?
yes its the first file which is being loaded
11:07
I need to learn a lot about basic javascript, because everyone is discussing react. sad
6 figures?
200k/mo (10 employees)
You can also buy from Alibaby and resell on Amazon and achieve the same
why not do that then?
Because I earn more in my current job
I also prefer my current job over reselling wares online honestly
11:25
Automate it.
and violà
Exactly :)
@KendallFrey Noooooo!
@towc tbf, that is not so legal in my country.
there is an odd lacune in the transaction law here. The politics are lazy to cover it.
11:58
why does facebook not switch back to npm?
all this confusing yarn stuff
some say npm i some say yarn add
Will I fall in troubles if I used AngularJS (1.x) in a new project ? (ERP project )
@SuperUberDuper They both do the same thing, use whichever you want
@MohamedAhmed Writing software is problem solving, so, yes
You know I mean problems in AngularJS itself :D
@MohamedAhmed Like what specifically?
I'm probably the wrong guy to ask about that topic anyway :P
12:03
ok
ng1 waste of time
Web development is painful. I would pick a mature and stable solution over the latest hype any day
12:23
@BenFortune That is not a nice thing. I'm always wondering why JS crowd seem to like "multiple roads to rome" approach.
After a few months of learning javascript I have to come to the conclusion that I really really dislike the way javascript seems to "motivate" the development of quick new frameworks; instead of using a continuous development of a stable framework.
Each new framework has it's new "quirks" and "forggotten points", often it seems to be the result of not planning correctly. - Take all the frameworks for front end development for example; I still can't find something that is as feature complete -yet also non opiniated- as something simple like WPF for c#.
And here I am not using a javascript framework at all
Or even Qt for c(++) -- never truly liked Qt though.
@paul23 That's because web developers rarely have to maintain software. Their startup fails or they skip to the next one before it ever comes to that
@OliverSalzburg You don't like web developers? :P. Waterfall software development must be the main method then?
12:39
@OliverSalzburg I can speak of that :|
@paul23 I don't dislike web developers. To go into more detail about all the things I dislike in web development, I'd need a blog
Well are the server side frameworks for nodejs more "mature" and less of a moving target?
@paul23 Some are
But it's a bit hard if the language itself is still moving so much
First you need to move everything from callback-style to promises. Now that that is done and you replaced all outdated dependencies with ones that use promises, you "have to" move to async/await
12:56
class Persona {
  constructor(nombre) {
    this.nombre = nombre
  }
  saludar() {
    console.log("hola, soy " + this.nombre)
  }
}
var p = new Persona("Pepe")
//Estas dos líneas DEBERIAN imprimir lo mismo
p.saludar()
setTimeout(p.saludar,1000) //setTimeout ejecuta un código pasados unos ms.
Why p.saludar() works well with the this and p.saludar not?
Well "what do the big players do"? I can't believe google/facebook/etc are constantly updating their programming paradigms each year. Their websites have to work in a stable well defined environment, so that each employee knows what can be done and how it should be done.
@paul23 teams probably don't often change. See how long things live, not how often they are created.
@QuicoLlinaresLlorens Gotta bind it
Companies with tens of thousands of employees will create new things all the time.
They don't adopt them across the board
Pretty sure google works in teams of like 8 anyway
Probably not consistent across teams
12:59
@BenFortune Yes I know, but why with the '()' works and without not?

« first day (2578 days earlier)      last day (2595 days later) »