« first day (2292 days earlier)      last day (2881 days later) » 

00:00
@feners your module object is missing a comma after the closing }
@NathanJones smh.. thanks lol
Also, no {} around module and output
ohh, nevermind, just odd/confusing indenting.
@feners path.join(APP_DIR, 'index.jsx')
just a nitpicky thing...
jmm, better to write it that way?
More important: I suggest putting the babel config in .babelrc instead of webpack. You may need to use it from other systems like stand-alone bablel or eslint
It's 'better' to use path.join as it makes sure the /'s are right.. but meh. You are already running it through path.resolve and it should be consistent..
So.. it's not really a very important suggestion, the path.join.
windows knows how to reconcile forward slashes now, so it's not even a useful api
00:12
@Luggage for some reason using webpack command in console works fine but my bundle.js file that should be updated with my html is not working..
@ndugger Unless path.join is significantly different than Path.Combine in C#, the point isn't to normalize slashes
I'm pretty sure it is for path.join
The point is to join together path segments in a meaningful way, rather than relying on dumb string concatenation.
00:15
Use template strings
I always use Path.Combine when concatenating paths in C#, and slashes aren't an issue there
my / comment was a simplification.
but concatenation isn't that big of a deal here.
00:58
I am trying to remove all text nodes in the page that contain ":" with spaces or line breaks
$('*').contents().filter(function(){
    if(this.nodeType == 3 && /^[\:\s]+$/g.test(this.data)){ //Node.TEXT_NODE
        console.log('is text:', this.data);
    }
    //return this.nodeType == 3;
})//.remove();
now I commented out the removing-part so I can check what is actually matched
but I guess something should be imprived here..
it will be something like
$('*').contents().filter(function(){
    return this.nodeType == 3 && /^[\:\s]+$/g.test(this.data);
}).remove();
 
1 hour later…
02:22
I haven't posted on main in months
.takeUntil(Rx.Observable.timer(1000)) // does this stop observing after 1 second?
@Luggage It's supposed to, but doesn't in my original code
Possibly because it doesn't have time to run the timer tick because the thread is swamped
 
2 hours later…
user6438653
04:13
Hey what's up guys? Scarce here.
05:33
Hi
@MáximaAlekz 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.
...
Me no got it.
Well...
Why $(".mensajes") is not equal to $(".mensajes").find("*") or $(".mensajes *") or $(".mensajes").children()???
@MáximaAlekz I think even $(".mensajes") === $(".mensajes") will be false
!!> var a = [1,2,3]; var b = [1,2,3]; console.log(a === b);
@FlyingGambit "undefined" Logged: false
I think that is the reason why ^ its not equal
a and b hold references
05:45
wow.
Thank you.
 
2 hours later…
07:43
did anyone has a weird problem when doing git rebase --continue ?
did you use heroku?
I use git when compiling my program in heroku
That makes no sense
that really did make no sense
08:01
How to deal with such a question?
0
Q: Detect DOM level in JavaScript?

ThomsonThere are multiple levels of DOM. Is there a DOM API for JavaScript which could detect the highest supported DOM level of current execution engine at runtime?

uh.. unclear?
I suppose it's answerable by just churning out some modernizr classnames or something but it seems kinda pointless
what does it even mean to "support a DOM level"?
IMO it means nothing. When you integrate an engine in your application and provide a DOM, you don't exactly support features according to those levels. You support features, that's all.
it's an odd question
user3119231
09:01
o/
"explain in layman terms" ... * my face *
@DenysSéguret use object called DOMImplementation
usage: document.implementation.hasFeature()
@star Maybe answer the question if you think you can? But I don't see any mention of DOM levels in that object
09:07
I just remember a book i had read answer the way how to detect
and very details
09:29
Hi. Can anyone tell when is choosing angularjs a bad option?
Interview question 👆
user3119231
@deostroll you have no direct urls if it is a spa and search engines might not list everything
not necessarely
SPA can and should use the history API to change and read the URL
user3119231
But the search engine point is true - if content is generated by script
user3119231
That makes SEO harder
09:40
It's true as long as you don't pre-render serverside
It's a crappy interview question, I'd answer that angularjs is a bad option if you're trying to do an oil-change on your car
then I'd yell " and storm out of the room"
user3119231
^ welcome to my company.
@ivarni gonna playin' tags with him ?
does anyone here use heroku for angularjs?
I am trying to decide whether I use heroku or aws? which one is better
Heroku for angular, what
what what
09:53
I think heroku is best suited for ruby on rails right?
troll meter: orange
I think jacob is a confused developer
hahahaha.....
Iam trying a lots of things
we developer needs to be confused.
@jacobian Do I need to be confused ? :|
but I am thanking stack overflow for getting me graduate in college through the help of my thesis and also getting me the job by solving my coding problem.
10:07
@jacobian Its just you buddy
stackoverflow has great impact towards people live though
user3119231
All room 17 done for me was my sarcastic sense of humor :D
10:32
I just discovered atom has redundant settings... like hiding VCS filepaths from the tree view.
So I thought, let's raise the discussion!
Atom vs Sublime vs VS Code. GO!
Is there any quick fix for Object.Assign for IE ?
@BenFortune ta
@Thaenor vim
4
10:47
@Thaenor Wordpad
no, let's vote for notepad !
Hi
I need your help
!!welcome user3260672
@user3260672 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.
If it's about the question you asked 2 minutes ago, you can wait.
10:51
ok
thanks
@KarelG you win
@KarelG you wim
get it?
I preffer nano tho
Jon Skeets' been busy
11:01
@user3260672 you don't have to wait ... it's a perfectly googleable question
hi all! need help for angular.fromJSON, the error is unexpected token ' at position 1, and here is my json string:

"{'MessageID':1023,'ClientFrom':'StariClient','ClientTo':'StariClient2','ClientIdentityFrom':{'ClientID':null,'Group':null,'Scope':null,'IsMultiScope':false},'ClientIdentityTo':{'ClientID':null,'Group':null,'Scope':null,'IsMultiScope':false},'Attributes':[{'Key':'FileID','Value':['814c0eb7-de8e-47bb-ab8c-5e8b5b54fa1c']},{'Key':'OriginalFileName','Value':['podaci.txt']},{'Key':'MessageCreateTime','Value':['2017-01-23 15.00.30']}],'MessageStatusID':10}"
@vpetrovic 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.
JSON doesn't support single quotes.
However you built that string, is wrong.
that string is serialized from C# object, but I had to replace to single quotes, because I used some angular directive to display JSON tree, it worked with single quotes...
11:16
It shouldn't
Hello :)
does anyone here have experience with handlebars.js?
@AyushBahuguna 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 am using json-formatter to display json tree, so I replaced quotes once again, dont have time to write something smarter, thanks for the help guys
okay. sorry.

Since my portfolio was growing, I replaced the html content with a handlebars template, but this has broken my website because, a major feature depends on retrieving a node list, but now I am getting an HTMLcollection. I tried converting it to an array using [].slice.call(), but gave me an empty array.
11:29
HtmlCollection is an array like object already?
but I can't loop through it. that's the issue.
you can. How are you trying to iterate over it now?
what are those people even thinking?
@GNi33 I am using a for loop
11:33
that should definitely work
the premise is that I get an array of li items, and I attach a click even to each.
thought it was supported by IE-10 too caniuse.com/#feat=webworkers
@GNi33 That this is a forum, and they can get where they need along the discussion
hello can i ask a question?
@PureRhymerOrganization you already did
11:35
@PureRhymerOrganization sure, just ask away
jQuery(".enquiry-car-loop").each(function(){
            var x = jQuery(".number").val();
            var y = parseInt(x) / parseInt(7);
            var c = Math.floor(y);
            jQuery(".pd").each(function(){
            	jQuery(".pd").text("£"+c);
                console.log(c);
            });
        });
how can https be faster than http? 0.o
@towc are you trolling ?
if(protocol === 'http') throttle();
-_-
it can't just be punishments on the user by the browser and website..
that sounds fairly dumb
11:38
if I console.log it give me correct answer but when it print it only give the same answer
@towc Who says it is?
:35269314 jQuery(".pd")[0].text("£"+c);
21 hours ago, by corvid
https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html?m=1
bottom of article
@Mathematics i get an error

this is the error

TypeError: jQuery(...)[0].text is not a function
@towc > Plaintext HTTP/1.1 is compared against encrypted HTTP/2 HTTPS on a non-caching, nginx server with a direct, non-proxied connection.
11:41
@towc http/1.1 vs http/2 https
that comparison is fucking stupid
well, so that's just bonkers information to make people move to https? Surely they're better than that
@towc Seems like it's a matter of definition ;P
A single request probably wouldn't be faster
@PureRhymerOrganization you need to create a jsfiddle
@Mathematics why? he needs to do $(this) there
@Mathematics [0] is selecting the element, and you're losing the jQuery context
I think
you're right
and re-selecting all the elements makes 0 sense there
You mean [0] sense
actually, the second loop doesn't make any sense there
Wouldn't that replace them all?
11:46
it would
jQuery(".enquiry-car-loop").each(function(){
            var x = jQuery(".number").val();
            var y = parseInt(x) / parseInt(7);
            var c = Math.floor(y);
            $(this).find(".pd").text("£"+c);
        });
@PureRhymerOrganization there you go ^
@GNi33 the for loop isn't working. It's the same code. A for loop that attaches a click event to each item
Can't really make assumptions, since we don't know the HTML structure.
try if this works and does what you want it to do
Might need $(this).find('.number') too
oh, you're right
@AyushBahuguna not working is a horrible problem description
@AyushBahuguna please put this in a working fiddle
this is too long of a snippet to be looked at in chat in a useful manner
11:51
1 message moved to Trash can
// @GNi33 this is my js code
function init() {
    var arr = document.getElementsByTagName('li');
    console.log("before click");
    // console.log(elements);
    // var arr = [].slice.call(elements);
    console.log(arr);

    for (var i = 0; i < arr.length; i++) {
        console.log("before click");
        arr[i].addEventListener("click", function() {
            console.log("after click");
            for (var j = 0; j < arr.length; j++) {
                arr[j].classList.remove('selected', 'no-hover');
!!tell ayush format
@ayush Format your code - hit Ctrl+K before sending and see the faq
@AyushBahuguna you do know that you don't have to iterate over the list to attach an event handler to all the elements?
@GNi33 no i don't know about that
11:55
here is the fiddle
@GNi33 i tried that but it give me 0
@PureRhymerOrganization and what doesn't work here?
in my jsfiddle?
I mean, I see the problem
but can you explain it? because it will lead you directly to the answer
hai anybody here i have one problem in ajax
@Manimaran 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.
11:58
it give me 1 even in 4/2
that's not the problem though
@PureRhymerOrganization jsfiddle.net/6tosseo9/1
but 4/2 is equal to 2
looks like the calculation is fine here, right?
so what else could be the problem?
how about that?
can you identify the problem with these three examples?
12:00
it only answer 3 in all
@GNi33 could you tell me about how I can attach a click event to an element without iterating over the array?
@PureRhymerOrganization exactly. and for which line is 3 the correct answer?
im expecting of this answer

2
1
3

because 4/2 , 2/2 and 6/2
Woah, sexy. Ctrl+Click in WebStorm on a tab open a "Show in Explorer" helper
the 3 is the result of last div
12:03
TIL!
@GNi33 first $ then jQuery :p
@PureRhymerOrganization jsfiddle.net/6tosseo9/3
what did I change?
@KarelG yeah, that might be my doing
@AyushBahuguna actually, I might have confused something there. I usually only attach one listener to the parent element and read the event.target value then to determine which element was clicked
12:05
There is a directive(I am not allowed to make changes to the directive) that I am using, its called `uib-accordion`.
On open and close of the accordion I want to set a flag , example `opned=true`.
I have noticed that the accordion attaches the `panel-body` class when its opened and removes it when closed.
So I am hoping to set the flag depending on the existence of that class on the element.
On the controller, I am able to get the DOM element reference through `$timeout()`, but not sure how to watch this,
@GNi33 thank you i get it now
@GNi33 premise is that i have a list of items that each contain the name of my projects. Now, the feature that I had was that I clicked on the element, and the relevant project would show up. Now, I can't do that with the html collection. It's not even registering a click event.
@AyushBahuguna can you tell where your script is failing atm?
@GNi33 the click event is not getting registered on elements. I have added a console.log, and whenever I click, it doesn't show up. I am not getting any error either.
the loop works?
No. I have added a console.log before adding the click event inside the for loop and even that doesn't show up. So, clearly, the loop isn't working
log your arr variable. what does that show you?
and what is the value of arr.length?
12:30
it shows an HTMLcollection
and the length value is zero. I don't understand
I'm starting to think that you execute this script before handlebars is finished building it. Is arr.length 0 ?
okay, yeah, then that's probably the reason
yes, arr.length is zero
yeah. make sure your init function is executed after handlebars is finished
    function pullData() {
	var request = new XMLHttpRequest();
	request.open("GET", "/assets/data/projects.json", true);
	function onReadyStateChange() {
		if(request.readyState === 4) {
			if(request.status >= 200 & request.status <= 400) {
				var data = JSON.parse(request.responseText);
				console.log(data);
				appendProjects(data);
				appendList(data);
        init();
			}
		}
	}
	request.onreadystatechange = onReadyStateChange;
	request.send();
}
I have put the init function inside the pulldata function after the handlebars is done appending the items
Is it asynchronous?
12:37
it is working now.
@BenFortune Handlebars is not, no
okay, cool
thank you :)
glad I could help you
13:01
hey
I'd like to iterate over an array, but one by one and delaying after each read
iow read, pause, read, pause
user3119231
where is the problem? Just write a function which calls back the next array
@Maurize "calls back the next array"
how do I do that again?
user3119231
oh, let me create a fiddle
Hi everyone. I'm excite to propose a new and interesting project. Would you like join in it with me? *(goo.gl/KQsKjF) If yes you are very welcome to send a pull request!!!
13:04
@BartekBanachewicz Could use a Set too
The project is just starting so is there a lot of work to do =)
Hello any one Can You favour me?
@Lavaraju 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.
user3119231
@BartekBanachewicz quick, ugly and dirty but compatible with everything on this planet: jsfiddle.net/d78pt9dt
@GarouDan what purpose would this serve?
13:11
Actually i was post this query two days back, but I didn't get any answer .Anyone know that plz Solve this issue . I will Share my link @ React-native:
3
Q: React-Native:How Can I get the Dot or Image.. When I click On the Particular Position(X and Y Coordinates)

LavarajuI am Developing an sample Application in React native.Actually when i am Clicking on Particular Position On an image, getting the Corresponding x and y co-ordinates.But at that position I want to Display icon or Image or Dot This is My Code For Displaying: return ( <View style={styles...

plz Give me your Suggestions
I think this on a interesting way, to developers know each other then connect with them. Maybe some employers, in the future have interest seeing this list too.
Did anyone here seen anything COOL built with python ever ?
what?
sure
I was thinking several interesting things like create a kind of a JSON with important things that the developer would like to share, create an GitHub static page that can filter for an expertise and so on. I'm looking early adopters to the cause =)
doesn't github already have a list of developers?
@rlemon all of them ?
you can get them all from the api.
a more interesting project might be to make a geo-map of all github users.
probably already exists, but sounds more interesting
Isn't that, like, illegal or something
@KendallFrey why would it be illegal
13:21
Someone had an illicit database of GH user info and got hacked, GH was pissed
@Mathematics Because it's against the TOS
if you put it in your public profile, I can search it on the api
The purpose is to be spontaneous contributions with a real self tweet presentation
I can't even be bothered to utilise careers on so
Yes we could do a crawler but looks a little intrusive to me
don't think I'd use a thing like this
13:23
@Maurize that's great
@GarouDan whoa there silicon valley
Hello All Any one Suggest my Query Please...?
Nobody like a beggar
also your question lacks an attempt
> I can alert the location I want to place an icon or image. how do I do that?
13:27
Yah Actually I got a Alert the location, but I want That place Some Dot or any Thing Like Basket Ball Locations Buddy
large table LEFT JOINing small table doesn't reward me with all rows of large table. What am I missing ?
@Lavaraju great, take a stab at that and ask specific questions about what causes you issues
@rlemon Thank you
gonna be a machine head day
13:48
yah That's Okay @caprica thank you
Silly boy ^
@FlyingGambit Did you just assume their gender?
Lavaraju is a boys name
Asian name I assume
and sharon is a girls name. yet @Mosho is a boy
a hairy one at that
13:58
sharon sounds girly , so i can believe that
wait Mosho's real name is Sharon ?
sharon is a boys name is Israel
@Mosho, wolves are unisex so it does not matter

« first day (2292 days earlier)      last day (2881 days later) »