Hi everyone! We've just released Chrome Beta 83 (83.0.4103.60) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome
@Jaket Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and 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.
@HaAn Tran 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.
@morbusg In that case I'd remove the initial value all together and let the folder (f) create it, or assign it as a property to the folder function (toItems) so that fold can grab it. (I think many people don't like assign property to a function, though.)
@JBis I get undefined in Firefox console.
Took a quick look at v10 spec and saw nothing that should cast it to null.
1. In JavaScript we call these entities objects, not JSON. We can go from objects to json and vise versa, however there are many features objects have that JSON doesn't e.g functions.
@Jaket yes, if any of those are undefined you are setting those keys to have a value of undefined. undefined is a value representing the lack of a value. If you only want to add keys with values, there are other ways to go about it. However, usally you do want all keys. You simply check in the code that uses these keys and values whether the value for a particular key is defined.
@HaAnTran a blob file represents data. What type of data is this?
@Sheepy ok i'll complain to the people who made the vm
does anyone know how to fix this. https://stackoverflow.com/questions/61881823/how-to-fix-the-error-modal-open-only-once-instead-it-toggles-the-modal-in-angula
ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'nzNoAnimation: undefined'. Current value: 'nzNoAnimation: false'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?
@Panda Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and 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.
@coder12255 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.
@Panda Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and 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.
@Panda Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and 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.
Hmm, I think _.cloneDeep(res['data']) is wrong, as res is an array. This is very likely producing the error later on. I'd have expected an error on the _.cloneDeep line, though. But if you're ignoring that, then you'll most likely get a problem when you try to use _col as it's likely of type any or unknown.
I need some help with vue. I have a child component that need to render some information passed with event bus from the main instance. The problem is that I'm unable to load the data into the component. I have used props to declare the data but after the event I'm listening to occur, the data are not rendered.
I'm trying to figure out if something is feasible, or even doable, in Javascript/Typescript. I have a binary stream of data of an unknown size that I can retrieve from a server, possibly in multiple chunks. I would like the user to be able to initiate a browser download, and then keep pumping the information in until the stream is done (and the data there is finite, just unknown in size). Is that possible?
Everything I've found so far is either serving a static file off of a server (so basically linking to it), or creating a single data blob and then starting the download.
To use a slightly more concrete example, say the user decides to download 10,000 records as a CSV file. Said records could be anywhere between 16 bytes to 64 MB in size, which I won't know until I start requesting the data from the server. Since each record (or chunk of records) exists fairly independently, it feels like I ought to be able to start the download, appending records, until I'm done or the user cancels it.
The catch in my head is that I've always been under the impression that web downloads generally have to say how much data they're preparing for download so that a) a progress bar can be shown and b) the user knows how much data is going to be transferred, but I'd swear I've seen web downloads that don't provide that upper limit.
@Sergio I have posted a question about. I'm not overriding the props inside the component, I just try to assign using the this.varName the values that comes from the event bus
@SeanDuggan yes, it's possible. But not sure exactly how. Going off memory, you can send a header that says that there is more data to come then set a header for "final chunk". We had something similar at at my old place, since we had to generate data in chunks and send it, we couldn't do it all in one go. I wasn't involved in this but I know it's possible.
@user14 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.
@RyanKinal hmm, don't think you can bypass it using the hosts file. You can only re-define the entire domain, so at best you'll have to re-define localhost to point to the other service. But if you do that, you cannot call your thing which is also running on localhost.
Also, even if you run both services on the same domain but on different ports, you'll run into the CORS restriction as, say, localhost:8000 and localhost:8001 are not considered the same domain, so if you try to call one from the other, you'd be blocked by the browser.
I am retrieving images and name of my recipes from database using node.js.I want my images along with recipes names to be printed in column wise in rows.
Here is my js code:
var sql ="SELECT rname,image FROM recipes WHERE ringre LIKE '%" +items[0]+"%' ";
for( var i=1;i<items.length;i++){
...
@VLAZ So, let's say there's an API at api.mysite.com which allows all origins, but verifies that the requester is on a white list with some server-side code. One of the whitelisted sites is 'client.yoursite.com'. Can I set up /etc/hosts to point client.yoursite.com to my local server in order to be considered "on the whitelist"?
Hmm, I'm not sure about that. I sounds like it shouldn't work, though.
If you add an entry to your local hosts file to point client.yoursite.com to your own machine then any networking targetting that will automatically get routed to your own machine. So, you're skipping DNS but only in regards to sending packets. I would like to believe that the browser is more clever when it comes to this.
Probably the best. It feels like it's something that should already be handled. There are probably other ways to access the service by setting up a proxy, for example.
Busy busy! I've been a consultant for the better part of a year and it's pretty rewarding, especially in overall rounding out of my skills. Are you still developing as well?
Or have you finally begun your world folk tour? :P
I think it actually increased our business... we're a good solution for communicating with a lot of people at once, and that's exactly what businesses want to do with their employees.
Haha, yeah, it's a pain. But OH WELL IT'S A LIVING
I'm on a contract with an education company who is working a grant for the Bill and Melinda Gates Foundation, so that's pretty exciting to help them build :)
We're pretty aggressive with how we deal with spammers. We monitor uploads, we follow text marketing guidelines rigidly, and we blacklist anybody who even looks like a spammer.
Unfortunately not all platforms are as rigid as we are. So I apologize for my industry.
Oooh, yeah. We've had some of our legit users yell at us for their customers receiving CBD messages. They thought it was some crossed wires in our system, when it was just coincidence.
Not quite weed related but...is there any way to make Bootstrap modals start up clean every time? From what I've seen, they just exist in the DOM and so if you fire one up and fill it with data and stuff like event handlers on buttons, you then need to make sure everything is cleaned up and the event handlers are cleared.
It seems...wrong. I'm not sure if I'm overlooking something or what.
I guess the other option is to just not use Bootstrap modals.
I've encountered similar stuff in the past, and ended up using an element as a "template". Clone the node, display the clone in the modal, and it should be clean.
The Chrome team is delighted to announce the promotion of Chrome 83 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 83.0.4103.61 contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome and Chromium blog posts about new features and big efforts deliver…
That's what I was thinking. It's how Knockoud does it, in fact - it keeps the template in a <script type="text/html"> tag and then clones it every time it's needed. It seems the most sensible. I was just wondering why the Bootstrap modals don't do it by default.
I think it's better than just keeping the DOM there and having it retain random stuff from the last time it was shown just because you forgot to remove one.
But Bootstrap's modals aren't one-off. Not as far as I can see from docs and recommended usage. Say, you have an Edit button on a record and you want it to show a modal with the values. You also want to make sure that the OK button on the modal saves the record you've selected. So, you fill up some values, you attach an event handler. Unless you clear up everything, you retain those values next time. Especially annoying when you start stacking event handlers.
> In order to understand how users are using our service and improve our service, we collect usage information and share it will our partners and affiliates. We never share names, room names, chat logs, video or audio with our partners and affiliates.
Just got off the call with LogRocket. Basically said, "I'm not a lawyer, but we have never sold data and do not plan to. We have never discussed doing that and in fact we have discussed how that is not how we want to operate.". On prem option is out of budget. Said most customers who choose that have to due to legal reasons (medical stuff).
@Tiago 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.
@Skyler 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.
yea, im kind of just diving into node since its the "environment" of choice for working with hyperledger
i was wondering if anyone could point me towards the right library to work on this problem I'll descibe
I wanted to encode n arguments, like latitude, longitude, and timestamp into a value/id. For starters I just want to consistently generate an encoding from these, like a hash. I want these to be unique so that's why the collision properties of a hash came to mind. I want to get this and some math operations working in a toy project im working on
Later on though I want this hash to more serve like a public key and distribute m different private keys to the same public key, so if a recommended library can be geared in the cryptography direction I'd appreciate it
I may be able to do that in a different way though, so if the second case is hard to achieve being pointed toward a library that achieves this hashing like functionality is already a big help.
@JBis I need to check you can make it but not make it reversible, so for my minimal case a deterministic hash works cuz only by putting all the correct info do you recreate the hash.
In the more complicated case whatever method is used would have a values returned that serve as a proof you were able to generate it that first time.
which is why i had the public/private key comparison
and those "private keys" would be unique to each person who generated (even the same) data
@forresthopkinsa lol thanks. I'm still 17. Appreciate it greatly. I may take you up on that reco some time. I have clients who can write recos but very little people in the field so that would be awesome. Thanks :)
I got my first software job at 17. Paid internship which soon turned full-time. I think I've probably told you that before but my point is, it's doable
@Skyler explain abstract what you want to do, I'm not entirely understanding.
@forresthopkinsa I'm interested in going to college before full time job but it's definitely reassuring to know that it's possible without college degree. I probably will not be going to graduate school for that reason. (Or May do it concurrently with a job). I've found your path very interesting and inspiring.
take n arguments, as well as a piece of info about a sender. From those n arguments create a value deterministically that is one way (not reversible from the value generated). That's good enough for now
if the other part is confusing then it's not really necessary to dwell on it
They'd be inputs from a function so if it did matter the function can handle it. These inputs are not like a bunch of time series data or something like that. They are however, not all the same variable type (ints/floats/strings)
As tylo correctly notes, when we hash multiple values, the important feature that any method we choose should have is that it should be unambiguous: there should not be any way to construct two valid sets of values that produce the same hash value — or at least it should not be any easier than br...
That answers a fair bit, besides that a recommended library for doing a fixed length hash using node js would be nice. Originally I was asking if there was a hashing library that took n arguments to generate a hash, but this presents an trivial way to do it. I also asked it the way I did to make sure the hash was the right approach
Hi, everyone! We've just released Chrome 83 (83.0.4103.60) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome
it defines those as instance attributes as string type
and int isn't a valid type in JS/TS. There is one numerical type and that is "number". Try public status: number;
Additionally, I'm pretty sure thats an invalid class. You must set all fields in the constructor or set them as optional/undefined as you have with docType.