« first day (3860 days earlier)      last day (1071 days later) » 

6:48 AM
Hello world. I'm not able to understand where process.nextTick() is implemented in node.js source. I expect this would be a cpp implementation. find/grep didn't help. Any thoughts?!! Ps: I am at this commit.
 
 
1 hour later…
8:10 AM
hello
so i was following this link: github.com/danharper/hmac-examples to generate two identical hmac keys, one on the client, and one on the server, but the nodejs output ends up being different from the web js output, even though i used the same keys and same message, so why does this happen? are they using different techniques to generate the signature keys?
 
 
2 hours later…
10:17 AM
Hmm is there a way to share session cookies between different domains?
I know we can use 301 forwarding to hide the domains - which works between https and http (and site with and without www in front) - as users expect them to be equal. But we also have two sites "allsports.app" and "sportrover.com" which will become sibbling sites. Using the same accounts and eventually being equal (with maybe a different landing page).
A they would behave equally and all data can be found from both places I'm afraid users will link to one and then get confused why they are not logged in when coming to it through the other from another link.
 
10:33 AM
@paul23 use a gateway
 
But won't the browser refuse to send the session cookie when swapping between sites?
 
but best practice is to have it within a single (parent) domain
@paul23 not if the gateway has its own domain. But that involves a lot work: you have to check it first before going to another site
another option is that sessions are shared at both servers. Ergo: three machines; domain1, domain2, sessionMemory -> domain1 and domain2 uses sessionMemory to handle shared sessions
 
Well the session is already shared by many servers on the backend - we've opted to actually go for each part of the website it's own separate docker/server that shares session through a redis server.
But it's the frontend that's hard to work with: I can't influence what the data is in the session cookie - so it is denied because the dmain isn't as the cookie was originally definted
 
you only need to provide a specific uuid with the url when navigating to the other domain
use that uuid as fallback if that user is not authenticated yet.
 
const nestedArrayy = [["1,2,3"],["4,5,6"]];


for (let singleArray of nestedArrayy) {
    console.log(singleArray.length)
       //-> 1 ?
}
Why does singleArray.length returns 1 ? I expected 3 because it has 3 elements inside
 
10:45 AM
hello ?
 
@beginner Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@spagalo because that is correct?
your inner arrays are just strings fyi
["1,2,3"] = an array with one element; "1,2,3"
 
Again: in a problem like this, print the original object:
 
remove that "
 
console.log(JSON.stringify(nestedArray)) would show the problem
 
10:47 AM
just log the array should be damn visible? :P
console should give
Array > ["1,2,3"]
 
So many problems here are of the form <why is property xyz of object A not as expected>
 
my colleague had a problem with js syntax
thing is, js allows flexible arguments
so
 
and then original questioner - who has identified the correct object- simply has not logged the object itself....
 
somewhere )) was in use, leading to closing the inner argument (was nested function tbh)
 
 
1 hour later…
12:09 PM
Does mongo have the Collction->Doc->Collection->Doc feature, that you can see in firestore?
 
 
2 hours later…
2:07 PM
Morning
 
2:22 PM
🚽
 
 
2 hours later…
3:54 PM
yoyo
 
🪀
 
 
1 hour later…
5:21 PM
Why does internet explorer suck so much
 
5:37 PM
Hello There
 
5:53 PM
Hi all
I am trying to verify emails and I use regular expressions to match them. I am using a code from this answer >> stackoverflow.com/questions/201323/…
but it fails on emails like abCdefg@gmail.com
it returns defg@gmail.com
any good suggestions to avoid this problem?
 
client-side email verification is strictly for the end-user's benefit
all you need to do is make sure it vagely looks like an email address, aka contains an @
anything more than that is unnecessary, as the verification you have server-side will take care of the rest
that's true of any client-side form validation
it's strictly there to save the end-user time by telling them ahead of time that it isn't valid. It doesn't need to be perfect, it just needs to catch the majority of cases (such as putting a username in the email field)
 
6:16 PM
.wrapper {
  margin: 60px 0 90px 90px;
  display: -ms-grid;
  display: grid;
  grid-gap: 0;
  -ms-grid-colomns: 100px 100px 100px 100px 100px;
  grid-template-columns: repeat(5, 100px);
  -ms-grid-rows: 100px 100px 100px 100px 100px;
  grid-template-rows: repeat(5, 100px);
  -ms-grid-auto-flow: column;
  grid-auto-flow: column;
}
This is my only CSS class using grid, and I added all of the appropriate -ms- to the grid controls but it still will not display correctly.
 
define correctly
 
IT is all askew
 
in what browser
IE never supported the current spec for css grids
 
IE which I absolutely despise but some clients strictly use that browser 🤮
67
Q: CSS Grid Layout not working in IE11 even with prefixes

Faisal KhurshidI'm using following HTML markup for my grid. <section class="grid"> <article class="grid-item width-2x height-2x">....</article> <article class="grid-item">....</article> <article class="grid-item">....</article> <article class="grid-item width-2x">....</article> <article cla...

 
and never will
 
6:21 PM
I came across that question and it seemed to fix that users error
 
you'd be better off dropping css grids if you must provide functional IE support
 
I prefer it to flexbox but I must suffice
If Chris Jackson, MS' Cybersecurity lead tells people TWO YEARS ago to not use IE as it isn't even a broswer, just a compatibility solution. As well as it is a security risk, why the heck do people still use that?? Especially strictly only use it?
I can't seem to wrap that around my head.

That is my rant for the day
 
well
chrome won't even update in windows 7 anymore
nor will firefox
 
Who is running 7?
 
people who are still using IE11
lol
 
6:25 PM
Makes me nauseous knowing people do that, whether it be willingly or not
 
there's several pc's around this very building running it
old systems that are too costly to upgrade, that don't run on later versions of windows
 
Luckily that isn't an internal issue maybe more of a client issue here
 
or might run, but we don't have the person who set it up on payroll to do it again
lol
 
Microsoft and Bill Gates gotta go
 
there's a lot of factors that lead to old shtuff being left in use
 
6:27 PM
I am aware of that, learned about such a topic in my MIS program.
 
 
1 hour later…
7:31 PM
Another random question, when screen capturing/recording why won't the tooltips that I hover over appear in the recording but show on my screen during it?
 
8:16 PM
posted on May 11, 2021 by Srinivas Sista

The Dev channel has been updated to 92.0.4503.3/5 for Windows 92.0.4503.0 for Mac and Linux. A partial list of changes is available in the log. Interested in switching release channels? Find out how. 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 about common issues. Srinivas Sista Google Chrome

 
8:46 PM
is there any way to clear all fields of the document in mongoose? smth like doc.field = undefined;
await doc.save(); but for each field?
 
doc = {}?
(more being facetious) What is the difference in your case between emptying the fields and removing the record?
some iteration could get you want you want, but, seems odd to me to want to empty just the fields, leaving the record.
 
I have an additional info for user, so I dont want to remove it at all. I just want to clear all fields if the user does not want to show this info in his profile
 
yeah that won't work
{} doesn't have a save method
 
right...
so is there any way to do it? xd
 
loop
 
8:54 PM
ok
thanks
 
["fields","i","want","to","clear"]
 
Ah ha!
I've figured out my issue
\o/
 
uhoh
 
9:50 PM
!!stat
 
Username: Kevin B
ID: 172549
Reputation: 92641
Reputation Change Month: 49
Last Accessed: Tue May 11 2021 17:50:02 GMT-0400 (Eastern Daylight Time)
 
!!stat
 
Username: Kevin B
ID: 172549
Reputation: 92641
Reputation Change Month: 49
Last Accessed: Tue May 11 2021 17:50:02 GMT-0400 (Eastern Daylight Time)
 
(was testing somethin)
 
10:13 PM
Please go and play in the Sandbox
 
 
1 hour later…
11:40 PM
posted on May 11, 2021 by Danielle Adams

Notable Changes Diagnostics channel (experimental module) diagnostics_channel is a new experimental module that provides an API to create named channels to report arbitrary message data for diagnostics purposes. The module was initially introduced in Node.js v15.1.0 and is backported to v14.17.0 to enable testing it at a larger scale. With diagnostics_channel, Node.js core and module authors

 

« first day (3860 days earlier)      last day (1071 days later) »