« first day (3277 days earlier)      last day (1676 days later) » 

12:52 AM
Hmm I know negative lookaheads aren't working in Firefox cuz of ES2018 but I'm experiencing the same issue with postive lookaheads..
/ ?(?=<)/g and /(?<=>) /g both working fine in Chrome but FF just says invalid regex group..
I ment lookbehinds obviously, lol
 
 
2 hours later…
2:45 AM
@Aurelius bad idea. I mean, storing password in plain text for later use
@Aurelius loading a text via http may take only few milliseconds. If that's not ok, you can store it. But don't consume all of the resources. Also don't forget to clear them while logging out.
@icecub stackoverflow.com/q/55410479/2427065 --no-onebox-plzzzzz
 
 
1 hour later…
3:55 AM
guys I need a little help. so I am not going to write a post, plz look at the below code-
function checkInIntervals(howManyTimes, howOften) {
var T = window.open("", "MsgWindow","width=400,height=600"); var counter = 0;
var interval = setInterval(function() {
T.document.title = 'MIKE!'; counter++;
if (counter === howManyTimes) { clearInterval(interval); } // do something
T.document.write('Where are you?'); T.document.write("<br/>");
console.log(counter, 'iteration') }, howOften)
T.document.write('This text does not appear.'); T.document.write("<br/>"); T.document.close(); }
So, if I run the function -
checkInIntervals(5, 1000);
T.document.write('This text does not appear.'); appears first!! but I put it last!!, how can I show it at the end on the same window at last?
 
4:15 AM
@Mike document.writeln
 
4:42 AM
@SagarV I tried -
T.document.writeln('This text does not appear.');
T.document.writeln('<br/>');

but it does not solve.
 
 
1 hour later…
6:02 AM
Hey, I host some remote web components in an Angular app. Currently I'm writing some code to poll for changes in the remote files and force a browser refresh and clear cache..Is there any way to tell ng-serve to clear cache when the browser is reloaded?
Because in my code I call window.location.reload to reload the browser when the files have changed..but obviously on Chrome this doesn't clear the cache to get the latest modified remote files
Looking at a few threads it seems you can't clear cache from JavaScript..but maybe Angular allows you to do that on a Dev build?
 
 
5 hours later…
10:48 AM
@BrianJ can you make a fiddle?
@BrianJ If it's for dev purpose only, you can use ctrl + f5 to hard reload
Or hold ctrl + click on browser reload button
 
 
2 hours later…
12:28 PM
google chrome offers to choose a generated pw on some websites when you want to sign up
for my website it doesn't. how can i trigger that? my input field has the name and id Password and it has the type password. i thought that's enough?! :(
 
 
2 hours later…
2:45 PM
Wow that meta drama...
It's like.. they don't understand what the big deal is
Or why people are disappointed or feel betrayed and scared
 
 
2 hours later…
4:43 PM
I have this a somewhat large object that gets return when I make an api request to a service. After I receive that object, I dont want to return all of that information to the client. I only want to keep the properties that is a substring of the word I'm looking for.

Let us say we have this object https://pastebin.com/yfNmveie. From that object, I want to filter out all properties that is a substring of the word flood because I only want flood hazards. What would be a nice way to do this? using object.keys and checking if each property is a substring of the word or maybe I can use regex fo
 
 
2 hours later…
6:15 PM
hey guys, anyone here got experience with reactJs?
 
I have a general question about Nodejs
and express
where do I go for good documentation for things? I don't find express has good api documentation
 
 
1 hour later…
7:43 PM
What's the difference between using doing a GET request with fetch by using Cache-Control: no-cache as header and the cache option with no-cache?
 
 
3 hours later…
10:37 PM
React question: Are props only for passing data between parent and child components? Can they be used for passing data between entirely different components?
 
11:05 PM
Ideally props should only pass data from parent to child. You can bypass this somewhat by passing functions down as props, and then calling the function from the child to send data back up to the parent
If you wanted to send data between 2 components that weren't in a parent/child relationship, you'd need to find a common parent and use it to coordinate by passing functions/data down to each branch
i.e sending getA and setB to one component and getB and setA to the other component would allow them to talk to each other.
this is probably a bad idea though, what are you trying to do @Euridice01?
 

« first day (3277 days earlier)      last day (1676 days later) »