« first day (3263 days earlier)      last day (1668 days later) » 

12:45 AM
Got real curious here earlier, and visited the roblox site, Took a look at some of the inner HTML, and i see this in the console:
Now listen here kids, This is why we play Minecraft, as Roblox is a $2 freeware site thats filled with corny and cringey 12-60 Year olds.
but on the serious note, what site literally has 4094 errors... Comon
most of them are just Promise errors
All the others are failed xHTTPs Requests
yup, 4082 of them are promise errors
lol, and they have over 100 user messages that were logged... Jesus...
Yup, ima just leave that horrific website.
 
 
13 hours later…
2:04 PM
Hi there! I'm reading about gun.js and I want to try to built an encrypted chat, for now I'm using websocket with socket.io as my server/client library for this scope, I've read that gun can connect two peer using a server for signaling. Can anyone guide me on how to implement this concept? I've read the documentation, about users creation and SEA auth but for me it's not clear how to proceed to integrate this with socket.io
 
@jihuuNI 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.
 
@CapricaSix ok, thanks.
I don't know if the two libraries can work togheter, I like the auth flow of gun and the concept itself, so I want to use socket.io only as a server that can connect the different peers. I need to setup a gun.js server also?
 
 
3 hours later…
user11867329
4:39 PM
I have heart pains.
 
user11867329
Like, excruciating.
 
6:12 PM
Does JavaScript have something like the safety operator?
so I can do something like foo?.trim()?
or no?
 
6:37 PM
how can I create dropdown menu in react navigation, cant find in the doc
 
6:52 PM
idk how y'all survived before flexbox
 
hi , i am building an app that would use maps all the time , i'm worried about the google maps api limitations , is there is a way to reduce the api requests ? , i heard that it's free to use google map on android but not sure if it will help me in webdev

i also saw some libraries on google maps but iam absolutely confused
 
 
2 hours later…
8:36 PM
@Kr15 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.
 
People could you please direct me to a good place to get help about the Firefox Remote Debugging protocol?
The documentation is really bad and I need to write a program that connects to firefox debugger remotely
Stack overflow is not a good place to ask since only dumb easy questions get answered
 
8:48 PM
Is it possible to add some TypeScript files inside a mainly javascript project?
i.e. can I start using typescript for new classes/files in my react native project even though most of it is written in JS?
 
 
2 hours later…
10:35 PM
@Euridice01 absolutely
 
11:25 PM
I got an promise question
I need to wait until all addThreads are done. How can I do that?
 
For starters, don't mix async/await with low level promises.
 
yeah its really badly done, I just don't know how to fix
ok here:
 
try {
  const db = await sqlite.open(p);
  const chats = await db.all(`...`);
  const threadPromises = chats.map(async chat => {
    const messages = await db.all(`...`);
    return await addThread(/* ... */);
  });
  return await Promise.all(threadPromises);
} catch (e) {
  console.error(e);
}
Something like that
Also, beware of SQL injection.
 
yes, this is an electron app that doesnt connect to the internet and uses the users db that is backed up to prevent corruption so not issue
 
Yeah, you'd think that.
Don't trip yourself on vectors you can't even imagine :)
One day, in 10 years time, this app will be used in production by a huge company
And all their chat logs are gonna leak
 
11:33 PM
yippee
thanks for your code
I like it
 
shouldn't it return the promise?
return addThread(/* ... */);
nm
 

« first day (3263 days earlier)      last day (1668 days later) »