« first day (4398 days earlier)      last day (773 days later) » 

01:09
@OlegValteriswithUkraine Thanks.
 
13 hours later…
14:05
Hello
One question
const formatDateTimeColumn = (value: string): string => {
  console.log('date', value)
  return moment(value).format(DateFormat.date_time)
}
as you can see, I don't have .add(1, 'month')
but again if I have this format
creation_date: (6) [2021, 12, 4, 20, 0, 56]
04.13.2021. is faking invalid date
What's wrong with moment
date_time: 'DD.MM.YYYY HH:mm:ss',
every date month is increased by one
14:39
how do you fix this eslint error for stuff like:

29:41 error Strings must use singlequote quotes

when using for

{information: "Director's Information",}
Either disable the rule, or set "avoidEscape": true which is the sane solution. Otherwise use 'Director\'s Information'
cheers
another qu:
how do I allow this pattern to work on HTML input

   title="National Insurance Number"
          pattern="^\s*[a-zA-Z]{2}(?:\s*\d\s*){6}[a-zA-Z]?\s*$"
always fails
14:54
Escape the backslashes
"\s" is just the string content s. If you want the string content \s that's the string literal "\\s"
i thought it was sarcasm
/s
15:10
ah thz
no luck with

pattern="^\\s*[a-zA-Z]{2}(?:\\s*\d\\s*){6}[a-zA-Z]?\\s*$"
15:48
@SuperUberDuper You didn't escape \d
16:04
@최석규 Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
@최석규 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.
1 message moved to Trash can
things that look like code need to be in a code block, and code blocks cant be mixed with non-code blocks in chat
(so post that as two separate messages)
@최석규 Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
1 message moved to Trash can
@최석규 Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
1 message moved to Trash can
'test'
test
this is code block?
16:08
this is a code block
paste the code, select whole message, hit ctrl+k
test
thanks Kevin :)
The request header contains the httpAgent property and the nodejs server sent an import request to a website that requires a public certificate, but the following error appears
  cause: Error: unable to get local issuer certificate
      at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
      at TLSSocket.emit (node:events:520:28)
      at TLSSocket._finishInit (node:_tls_wrap:944:8)
      at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
    code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
  }
 
1 hour later…
17:10
Hello
Can you help me
I have table with two columns
sorting works properly, but when I click to sort first column, instead of changing icon for just selected column up and down, it's changed for second column also
how to change just clicked column icon, not the other one based on state ?
 
3 hours later…
19:58
holy shit i hate web dev
It's an important first step to admit it.
I am building a blog for myself, and I just want to die
It's important to keep in mind however rocky the past was, the future is still a downward slope.
why not just install wordpress
i mean, building it yourself certainly makes a statement, but... at the end of the day is reinventing the wheel a great statement
the initial version of my blog was self-built, then I moved to existing solutions rather than maintain my own (before getting rid of it entirely)
21:01
@KevinB I don't want to host it
I want static site on GH pages
Also WP doesn't have git like version control to my knowledge
And I am building only what I need when I need it. I was originally going to do a full thing, but I figure keep it simple so I don't need to maintain it as much.
21:23
Wait a moment
  <button onClick={(e) => {
    e.preventDefault()
    console.log('click')
  }}>Click</button>
Why this work ?
wdym
a click is a click
Why it's not prevented
wdym
to log click
preventing the default doesn't stop the current function from running
teh function isn't the default
21:26
How to prevent execution of function then
  <button onClick={(e) => {
    if(condition ) return;
    console.log('click')
  }}>Click</button>
21:42
remove it
22:15
some how i'm using nodemon for the first time in my life
well everything seems built, i got it down to two HTML files, and one 100 line js script
 
1 hour later…
23:21
it's beautiful
there's no js
so nothing can break

« first day (4398 days earlier)      last day (773 days later) »