« first day (3783 days earlier)      last day (1158 days later) » 

12:37 AM
@paul23 lol
 
 
3 hours later…
3:12 AM
so
is it OK to have react rerendering a shit ton of times
i notice nothing on the UI
but, i log stuff in my useEffect hook or other various spots
and its like insane how many times some components are rerendering - from various setting of state variables, etc
is that............. ok ?
do i need to try to suppress this ?
 
3:50 AM
@default_noob_network react should only rerender components when necessary. If react deems it necessary but it isn't, then somethings wrong.
 
well im just allowing it to do its thing
but its a shit ton of rerenders. thats for sure
 
Ok
well is it working?
 
totally!
so im just gunna proceed
and allow it to do its thing
 
 
3 hours later…
6:30 AM
Object literal may only specify known properties, and 'landscape' does not exist in type 'PrintOptions'
let options: PrintOptions = {
               duplex: false,
               landscape: true,
               grayscale: true
             };
           }
 
 
5 hours later…
11:03 AM
I am stuck in swagger,can you guys help me out
 
@RAJRUPAM 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.
 
11:36 AM
@paul23 there is one: bullying 😁
 
hey bud
/**
* @swagger
* /api/v2/auth/signup:
* post:
* description: Add new
* produces:
* - application/json
* parameters:
* - name: name
* description: data to post
* in: body
* required: true
* schema:
* type: object
* responses:
* 201:
* description: created
* schema:
* type: object
*/
do you know how to document objects in swagger
 
 
2 hours later…
1:16 PM
posted on February 23, 2021 by Bethany Nicolle Griggs

Notable changes Vulnerabilities fixed: CVE-2021-22883: HTTP2 'unknownProtocol' cause Denial of Service by resource exhaustion Affected Node.js versions are vulnerable to denial of service attacks when too many connection attempts with an 'unknownProtocol' are established. This leads to a leak of file descriptors. If a file descriptor limit is configured on the system, then the

 
1:26 PM
I populate my store with some async data. Now I want to use useSelector on a value in my store. But how do I handle if it's not created yet?
so far I am running something like const thisAndThat = useSelector(state => state.this && state.this.that)
but it's starting to get a bit complex with my this and that structure...
 
put a named function
and return/do nothing if its empty
 
ok
 
CDVPlugin class APPPrinter (pluginName: printer) does not exist.
Error: Cordova Plugin mapping not found
getting this error when try to print something
 
is there any smart way to navigate through a nested object? for example if I have a { a: {b: {c:2}}} how can I get the value of c from just a string (something like a['b.c'])
 
@Markus if you do not mind using babel, you can use the new operator: optional chaining
 
1:39 PM
onclick of <a> tag, i want to trigger shift+click. How to achieve this behaviour? Adding a demo link or reference could be helpful.
 
it is basically a?.b?.c
it will return undefined unless you have {a: b: {c: value}}
so with {a: b: {x: 1, y:2}, a?.b?.c gives undefined ect
 
the thing is that I get the string as a string... (runtime)
 
@Markus plain string?
 
yes
 
uck :P
 
1:41 PM
:)
it's from a configuration...
didn't know that optional chaining excisted in js though... thought is was only && so thanks for that
 
well ... lodash supports it
vanilla js? ... you need to split it
🤔
 
react
do you mean that the ? is a loadash thing?
or is it some string navigation through objects?
 
no, i'm talking about a lodash function
lemme dig it up
if you do not have lodash, then go write one yourself :D
 
Ah. just .get
I have it. Thanks
 
@Markus what a fortune that your project uses lodash :P
@Chandru is it not just opening in new tab? check window.open docs
then open by href
o wait ... ctrl+click is open tab, whereas shift+click is new window
same thing applies :D
 
1:50 PM
@KarelG do you have any idea how to resolve this issue: CDVPlugin class APPPrinter (pluginName: printer) does not exist.
Error: Cordova Plugin mapping not found
 
I am not familiar with Cordova
your best bet is just to google that error
(one of the results is a github issue mentioning to install it yourself)
 
i have installed printer plugin but still getting this
with ionic 4 this issue is coming
 
2:24 PM
hello
 
Hmm anyone any idea how can I make a certain set of material ui poppers only allow a single one to be "active" at once?
(In react material ui poppers)
 
 
2 hours later…
4:49 PM
kinda getting bored with webdev recently
 
reason?
probably not many new things? not challenging?
 
yeah kinda seems repetitive
 
you all mean that youtube guy right?
Is he in some kinda depression? Last few days he was acting wierd for me though
 
@RifkyNiyas no, i mean the field
 
5:02 PM
he meant "web development" as a field in the IT industry
the new features are not shiney and ... the best is somewhat off
now they come with proposals that might add some value to the js, but is ugly and leads to increased complexity
 
oops. Sorry for that. I read web dev as "dev ed" 😂😂
 
hence I started to work more in the back-end. It has a lot more variety, especially data and security wise.
 
Have been following his tutorials for the past few days and I am sick of these javascript animation thing.
@makadev Thanks to you. Now I think I've got it working. Have messed things up for the past few days and it seems to be somewhat finer.
 
@KarelG yeah backend better
 
@KarelG I agree with this. I prefer backend more
 
5:10 PM
but most recently im starting to get into cryptography
interesting but quite complex
 
 
3 hours later…
8:36 PM
hello
 
8:54 PM
Who here is familiar w SharePoint (Master Pages)
 
9:07 PM
oh god
thankfully i got FAR FAAAAAAAAAAAAR away from SP many years ago! lol sorry
 
Lucky you
 
I actually saw a SharePoint job the other day, thought of all your questions and decided to stay away
 
Heed warning
 
9:25 PM
@default_noob_network were you working w SharePoint 2010 or older?
 
i dont even remember to tell you the truth
its definitely possible tho
it sucked so much lol
 
Still does
 
not surprised
 
Probably more tbh. Older versions were a lot easier to work with.
 
i sort of remember thinking "i wish i could just write my own shit right here!!!!"
and use SP as a shitty backend. that would have been much easier
its been like... 5 years since i did any of that tho
previous employer. so i dont really remember much. just that is was fucking horrible
 
9:28 PM
Thats what I do/try to do. Love when you write something and Sharepoint loves to overwrite
 
its funny to think like.......... idk i just watched that mars landing vid from the other day. and its funny to think there are ppl out there working on THOSE projects. yet here we are messing around in our little sharepoint thing. or react app. trying to "perfect" a stupid CSS property on a div. lol
 
lmao
 
10:29 PM
meh
it's just another rock
 

« first day (3783 days earlier)      last day (1158 days later) »