« first day (3835 days earlier)      last day (1098 days later) » 

11:09 AM
@Stuart You still havent told anyone what you want to do. First you wanted us to prevent it from duplicating the table every second... That was fixed quickly. But now you dont want the table to be updated every run? We cant help you unless you tell us EXACTLY what you want to do.
If you dont want the table updated...
And you also dont want it duplicated
do you just want the data to be grabbed once?
do you want it to be grabbed continually but only update the table once? (This doesnt make sense, but at this point, Ill consider any option)
Thats why we need to know
 
12:10 PM
Hi all. Is there a way to have an observable object in JS? I need to trigger a custom event when a Boolean property on an object changes. I have an array of the objects
 
Rob
Yes, with RxJS
 
That's what I'm discovering too. Is that pronounced "Reactive JS"?
 
 
1 hour later…
1:27 PM
If I have an object like this: const myObj = { isSelected: false };, how would I use RxJS to watch the isSelected prop (or the whole object) for changes and act on that?
Or consider that const to be a let or var so the object can be reset
 
 
2 hours later…
3:02 PM
Hi please see this question stackoverflow.com/questions/67121337/…
No one is answering this
Is there anyone here
 
i mean
you linked us to an answer
 
@Rob can you help me
 
?
 
By answer mean not complete answer just views
 
don't ping random users
so, your question
 
3:05 PM
Guidance, path whatever you say
 
uhm... JSON and csv are not the same
you can't just send json and tell the client it is a CSV, that won't result in a valid csv
 
What I have right now is json data and that is present in nodejs server script but I want to send this json to user
 
right
but if you want it to be a csv, you need to make it a csv instead
if you want to loop over the json and create html for the user to see on the webpage, json is fine
 
Let's say I want to send json to some other webpage
 
but that won't create a csv
 
3:08 PM
Then how can I link all the json data to some other page inside this server script which allow only res.send
 
i don't understand the question
your server sends text to the client
 
For CSV I think we can have some functions which I will use in the nodejs script
 
Whats a good way to sniff artstation for art photos?
I want to grab the latest art pieces, their titles, and the descriptions remotely on my website with javascript...
Ive never sniffed sites for content before, so Im not really sure what to do here
Heres my page Im trying to get info from https://www.artstation.com/sircode

should I manually just grab the site HTML, find the art gallery node, and then manually parse everything?
 
with a header describing what the text is so that it knows how to interpret it
Yes, if your json is in a format that can be easily converted to csv, there's surely a module you can install to accomplish that
 
So currently when you see screenshot you will see that I have json data on webpage ok. So this data is big and I don't what to populate all that let the user have link to download it
 
3:10 PM
ok
so that's two things
 
In the form of CSV so how I can proceed to code I inside this spawn process
 
returning json to the page, or a csv to the page, won't create a link for the user to click.
 
Becoz ultimately the game is res.send
@KevinB Yes you got my problem here
 
i mean
i do
but i don't think you do
you need multiple server-side endpoints to do what you're asking
there's the page, which is just html, then there's the endpoint where the link on the page would point to
that second endpoint would return a csv
 
So Kevin what do you think I m going right way or some code manipulation would work or some other code is required to accomplish this task instead of this spawn process inside the for loop
 
3:13 PM
the first would return whatever would cause your app to display the html you would need for a link to be displayed to the user.
 
Kevin can you answer there your text or some code in that question page I will accept that
 
no
 
This is my first nodejs application if possible please atleast inside how to handle that json data
To show to client or download atleast
@MisterSirCode use beautiful soup in python
 
whats the best js ide in 2021?
 
best for what
 
3:19 PM
Visual studio code
 
full stack js
about to start the odin project
 
@Trajan visual studio code
 
thanks guys
 
3:30 PM
MS Paint
 
eh
i prefer paint 3d
it's kinda like w3schools
 
paint 3d aint bad
its just... bad
but it aint that bad
if that makes any sense
 
4:00 PM
node internal code (at least for the http module) is so hard to follow
it's completely all over the place
Some places they use classes and other times they use prototype directly
 
old code be like that
it's often not worth the time going through updating everything from years ago to use new techniques
 
i am trying to figure out how to handle state in an event based system, specifically node's net module
 
was gonna say that's quite broad, seeing how "state" in a simple system can simply be a variable
Looks like it's just using the socket's instance to store the state
 
Well I am trying to create a protocol in which a client and server communicate. The protocol has a certain order. For example, client sends "A", server sends "1" THEN client sends "B" and server sends "2". With other languages where network are more imperative (i think that's the right word?) I can simply do socket.Read(1 byte), and simply exit if i receive and unexpected or out of order message.
However with node's event system, I need to keep track of what stage of the protocol they are at. They may send "A" and then send "A" a second time.
 
is sha256 ok to one-way encrypt session cookies etc? can any two computer visit same server with same ip?
 
4:15 PM
In my previous projects and attempts to deal with this, it was a pain. I always had to do a bunch of checks for state and it didn't work well.
@huseyintugrulbuyukisik there's a lot to unload there
First off, what are you considering a "session cookie"? What are you encrypting and why? And yes, two computers can visit the same server originating from the same ip.
 
I mean, can one somehow steal cookie of another and suddenly mask own ip as the victim's ip? To counter this, should there be extra checks?
session cookie just being a reminder for server to keep user's login data open.
For example, random uuid as session id.
 
Assuming you are using HTTPs, you don't need to worry about encypting the session cookie.
 
I'm using https.
But for now its self-signed which browser says its bad.
 
HTTP is done over TCP. You can't spoof the IP address of a TCP connection due to the nature of the TCP handshake. However, people can still share the same external IP address.
@huseyintugrulbuyukisik Get a free one from letsencrypt.org
 
In NodeJS simple HTTP server, does request data include the external IP like you said or can it be forced to be unique by some mid-server?
Wow, free SSL? Ty.
 
4:22 PM
@huseyintugrulbuyukisik The request does include the originating IP address. I don't understand "can it be forced to be unique by some mid-server".
 
I mean, to take the ip and attach some extra info that it came from this route or that route etc to further differentiate similar ip.
 
If the "mid-server" is a proxy or load balancer it may optionally add a X-Forwarded-For header, but don't rely on it (unless you trust the mid-server) developer.mozilla.org/en-US/docs/Web/HTTP/Headers/…
 
If my web app has a visitor-counting algorithm, how would it keep record of unique visitors if any two ip can be same?
 
depends on how you define visitor
you can't really confirm whether or not the person behind the keyboard is real, much less unique
 
also depends on how you define unique
 
4:28 PM
IP addresses can be shared
for example, an entire college campus could be wired up to the same network and outgoing IP address
 
If 10 people connect to my server from a cyber-cafe,
 
Generally, you would add a unique cookie to a user's browsers and use that it track it. But a user can open another browser and that would count as another "user". Or they can manually clear that cookie. Most of the time live-user counts are estimates and not exact.
 
if the count is based on a logged in user, it can be far more exact
 
So, sensitive data goes to cookies and cookie consent is a must right?
 
for example, SO says you're "active" if you've interacted in any way in the past n minutes
thus creating a metric that can be used to count how many users are currently online
anonymous users also get a similar cookie
 
4:31 PM
Do you think explicitly opening a TCP channel to real-time communicate with client, is not as scalable as simple HTTP GET/POST?
*channel = I meant socket service
 
What exactly are you trying to do?
 
To maintain ~10 clients' login data without any data leak yet serving ~10000 clients for read-only data and not mixing any ip with both logged users and anonymous visitors.
Comparing every anonymous (of 10k) user against ~10 logged user can be a bit slow I guess.
I'm already using salt+sha256 for passwords but if another anonymous user somehow steals cookie from a logged user and sends it to server (but from same ip, like in a campus network), then its a free login! Somehow there needs to be an extra uniqueness for that. Just applying "cookie consent" doesn't solve problem.
 
> salt+sha256 for passwords
That's terrible
 
Quantum computers breaking passwords like sha256?
 
Describe what your building in 1-2 sentences. Like what type of application? What is it for? No technicals.
 
4:44 PM
Its a website with a control-panel (for 10x admins/editors/etc) and a public part (for ~10k concurrent clients) that sends product data, etc. Its just NodeJS app.
 
Ok. Great. And this will be accessed via a browser right? Not a desktop/mobile app.
 
Yes, only browser, like mobiles, laptops, etc. No wget access.
 
So if accessing from browser, you can't do direct tcp even if you wanted to. Must use HTTP.
The entire connection with be encrypted TLS if you are using HTTPS so you don't need to worry about encryption. Passwords should be stored salted using a good algorithm like bcrypt.
Using uuid for session token is ok. You don't need to encrypt it.
 
Isn't Bcrypt sha256?
 
Bcrypt is a completely different algorithm
 
4:51 PM
bcrypt.compareSync(data, encryptedData);
const salt = bcrypt.genSaltSync(10);
const hash = bcrypt.hashSync(content,salt);
So these are not Sha256. Ok.
I just included it thinking it was sha256 thinking it was good enough
So I had successfully failed.
 
@huseyintugrulbuyukisik you should not be generating salt manually, most bcrypt libs do that for you
 
Ok. Thank you for support.
Bye.
 
No problem
 
 
1 hour later…
6:17 PM
!!earthshatter or bladefall
 
bladefall
 
6:43 PM
!! or ||
 
i guess
 
 
1 hour later…
7:56 PM
!!||
 
|| say ||
 
 
3 hours later…
10:35 PM
posted on April 16, 2021 by Kevin Bleicher

The Dev channel has been updated to 91.0.4472.10 (Platform version: 13904.4.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels? Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the browser). K

 
11:25 PM
Hi @MisterSirCode and thanks for the help but... Seriously? I thought Ive made it clear a bunch of times and I mean no offense in saying that but Ill be glad to explain again...
 

« first day (3835 days earlier)      last day (1098 days later) »