« first day (3958 days earlier)      last day (1212 days later) » 

00:41
o/
@DEVDJ sorry I can't help with your question, I don't know much about that type of front end design.
01:24
posted on August 17, 2021 by Srinivas Sista

The Stable channel has been updated to 92.0.4515.159 for Windows, Mac and Linux which will roll out over the coming days/weeks A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn a

 
1 hour later…
02:50
This isn't particularly a javascript question but what is the best way to ensure Apache is always running on my EC2 Linux server?
It is securing the SSL certification on my entire server IP address. Some phones cannot make requests to server without me wrapping SSL on the whole server instead of just within the running Node.js application at the port
I know systemctl enabled can ensure it restarts on boot but idk. I swear I started apache before i left work and when i ssh'd in again it wasnt running. So idk. How do I keep apache going 24/7?
I use pm2 but Im not sure if thats appropriate
i use pm2 for my app, not for apache
 
7 hours later…
09:28
Anyone online who has experience with typescript? Would love it if you could look at this topic:
0
Q: How to defer generic filling in typescript - for knex queries?

paul23Well I have a function that looks like the following, enabling loading of multiple databases based on a string identifier: function getDB<TRecord extends {} = any, TResult = unknown[]>(config_name: string, maxConnections: number = 1): Knex<TRecord, TResult> { if (!!cfg && !!cfg.datastores && ...

 
3 hours later…
12:44
@LuisAverhoff Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
How would I go about making a ghost image of the parent element when I start dragging on a child element that has draggable="true"? Consider the following html.

    <div class="wrapper">
      <button class="drag-handle" draggable="true">
         drag me
      </button>
      content
    </div>

    When I starting dragging on the button, only a ghost image of the button is created and not the whole entire container. How can I achieve this?
@LuisAverhoff Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
Would I have to use the setDragImage method in the drag and drop api? I would hope not because I'm not trying to create a custom drag image. All I want is the ghost image to take the entire container when dragging from the drag handle.
13:29
So one solution that I thought of is to move the draggable="true" attribute to the parent, remove ``draggable="true"` from the button, add a div to the content with the attribute draggable="true" and stop the propagation of the drag event on the content.
  <div class="wrapper" draggable="true">
      <button class="drag-handle">
         drag me
      </button>
      <div id="content" draggable="true">
        content
      </div>
</div>
document.getElementById('content').addEventListener('dragstart', function(e) {
    e.preventDefault();
    e.stopPropagation();
    return false;
});
Don't know if this is the best way but it is very convoluted.
 
1 hour later…
14:37
o/
15:32
How can I find the first index that matches a regex starting from any random index within the source string?
```
I.e. const resultIndex = sourceString.findIndex(/abc/, startIndex);
I saw this already but that function doesn't appear to take a start index
oh in that case why not test based on a substring?
Or you could do something like:
const re = new Regex(`.${startindex}abc`);
const i = sourceString.search(re);
if (i >= 0 ) {
    return i + startindex;
} else {
    return -1;
}
15:53
It's to parse a string
For good performance I wouldn't want to build lots of per match regex objects or many large substrings
@LeaHayes this happens anyways when using // notation
I was just looking into exec a little more and it seems like it is capable of this starting from lastIndex each time
@LeaHayes Yes, but you need the regex to have the g flag. That makes it stateful
And you can run it multiple times against an input.
Yay that's exactly what I'm after
||> const re = /abc\d/g; const str = "abc1, and abc2"; re.exec(str); console.log(re.exec(str));
15:57
@VLAZ undefined Logged: [ '["abc2"]' ] Took: 0ms
the first re.exec(str) matches abc1 and the second one starts searching from there.
You can also directly set the lastIndex property on the regex object.
||> const re = /abc\d/g; re.lastIndex = 4; const str = "abc1, and abc2"; console.log(re.exec(str));
@VLAZ undefined Logged: [ '["abc2"]' ] Took: 0ms
That way the next match will start from position 5
Perfect thank you
 
2 hours later…
18:04
@JBis twitter.com/dschenkelman/status/1425924078892994561?s=20 wanna apply for this one? (Can you be hired now? lol), baiscally building a distributed authorization as a sevice :D Fun challenge and incredibly cool stuff
I am happy to put you in touch with the dude who tweeted (option open to anyone I know)
18:22
@ShrekOverflow thanks for the offer! :) I'm just starting uni now so i won't be able to apply. I will take a look for the summer if they are still looking.
who is the lucky uni :D ?
and congrats!
@ShrekOverflow University of Michigan! 🔵🟡
Woop Woop
@ShrekOverflow thank you!!
18:36
Hows life?
shit :-)
last person in the hallway here at work just left to go get tested
well, last person other than me
18:59
!!echo "rm -rf /"
rm
rm -rf /
Nice
wfh
19:18
@ShrekOverflow prettah good, getting all packed up to leave for school
the amount of unnecessary cords im bringing "just in case" is a tad excessive
19:35
is there no place in that town to buy cords?
does amazon not ship there?
They do but why buy another when I already have
 
4 hours later…
23:51
The right way to go about appending meta data to a single page application is using PHP right? Google will not recognize Javascript right?
I cant think of any other way

« first day (3958 days earlier)      last day (1212 days later) »