« first day (4373 days earlier)      last day (569 days later) » 

6:04 AM
Any dynamodb users here? Just checking to see if there is something like an IN query clause, like it is there is traditional sql...
For now, the only alternative I see here is some kind of a batch read operation which I feel is inefficient
 
 
2 hours later…
7:49 AM
If I have ten iframes that send a specific message to the parent via "postMessage", how would you guys differentiate between which one sent which message?
 
8:47 AM
@Warcaith carefully? :D each iframe has a distinct URL?
@Warcaith would the source property on the message help?
NodeList (which is what `querySelectorAll` returns) has a `forEach` method, so no need for `Array.from`so

`document.querySelectorAll('.menu p a').forEach( ..... )`

Why isn't code formatting working for me :(
 
9:41 AM
Hi All
I have a question related to the preflight calls being made.
I have two different services called from same UI Angular application, one of the service does not fire any preflight requests, but for the other service it is always called
can anyone let me know why this is happening for one service and not for other
 
9:58 AM
@TheJOKER preflight is triggered based on the request as documented - though this documentation may be better
 
If "Event A" and "Event B" needs to be received before sending a new "Event C", how would you guys do that? I'd want a timeout also if it doesn't happen.
I have multiple iframes that should send data to the parent and I need to wait for all data received.
I only want to use a single "addEventListener" also which should handle all the "message" events.
Any good pattern I should look into?
Should I use a polling technique?
 
@Warcaith not sure about polling ... I'd just track what has been received, keeping a count, and once the count reaches the required value, send the event - hard to describe without code though :D
 
Yeah, I thought about that also.
I'll try to figure this out
:D
 
10:20 AM
@Warcaith are these events only going to happen exactly zero or one time?
 
Only one time. I figured out a great way doing it actually, will try to explain when I've done some refactoring :')
 
@JaromandaX no way it's going to work with multiline messages, don't bother :) chat only supports the "all or nothing" approach
 
@OlegValteriswithUkraine ahh, OK - haven't tried posting code here in a while :D
@Warcaith with one time, can make it happen with Promises :p
 
@JaromandaX I'm using promises :D
I just "reject" which iframes didn't send any response
 
is this still related to the html parser? just curious :) @Warcaith
 
10:24 AM
@Warcaith 👍gotta love the Promise
 
now that I think about it, I recall seeing some of your answers on SO before. @JaromandaX
 
@NordineLotfi Yes, it is. I'm now generating a lot of different HTML files that gets automatically constructed into a single HTML file. Only requirement is that the user has Javascript enabled, which is okay for us :D
 
they're pretty good :D
@Warcaith ah, I see. what will javascript enable for the user in this case though?
 
@NordineLotfi - yeah, I've posted a "few" :p - deal lord, almost 2000 answers!!!!
 
@NordineLotfi What do you mean exactly?
 
10:27 AM
@Warcaith - I kinda came up with this - generic and possibly poor code :p
 
@Warcaith I meant that I initially thought this was just to show report/etc in HTML format, but then what will javascript be used for in this case?
 
@JaromandaX Thank you, I'll take some inspiration from that. <3
 
@JaromandaX yep, I think I used one or two of yours at some point, which is why I recalled
 
@NordineLotfi one or two :( not a good strike rate - I'd expect one or two hundred :p - j/k
 
@JaromandaX don't worry, it's probably because I'm mostly into python and only really gotten into javascript for a single project...might change later though
 
10:34 AM
Well, the actual report will only have a lot of...

<data value="path_to_another_source.html">

... elements that will be unwrapped by JavaScript to display the inner content (which can happen recursively inside each inner content also, if they are dependent on some other source file also). This enable us to generate advanced reports at a order of complexity O(1), which was really important. We do never have to rewrite the complete report at any time of the generation, but only single parts of it.
 
@NordineLotfi I've tried, but just can't get into Python - though I know it's an upcoming labguage
 
It's really hard to explain the whole structure, but if you want to know more, feel free to ask!
 
@Warcaith Ooh, that's clever! I didn't thought of doing this myself when we talked last time, so this is nice :D
 
@NordineLotfi I guess my answers may be memorable, because I'm abrupt and annoying - I have recently finished serving my 4th or 5th "moderation" - resulting in a 365 day "ban" !!!
 
@Warcaith I think I got the gist based on what you said, although, where does promises comes in for this case?
@JaromandaX honestly was hard for me too, and still kind of is, but I mostly blame lack of good documentation and the "code is the documentation" mentality :/
@JaromandaX hmm, I never thought that when I looked at your answers, but I guess you are indeed straightforward in your answers (this is a good thing).
 
10:38 AM
@NordineLotfi my main peeve with python is that indentation is important ... sure, I always indent my C/C++/Javascript properly - but I kind of rebel against the you must indent paradigm
 
@Warcaith event.source or something
 
@NordineLotfi - to be honest, my comments get me in most trouble - apparently, stack overflow doesn't need a resident comedian :p
 
just checked - pass a name as 2nd parameter in .postMessage and retrieve it by event.origin
@JaromandaX such as ... ?
 
@KarelG - why do I sense a Star Wars meme .... it's a trap!! :p or perhaps you're saying I'm not funny :(
 
@JaromandaX the .forEach on NodeList is a part of DOM standard, of which is not supported by all browsers. DO NOT MIX that with Array.prototype.forEach!
|| mdn Nodelist.prototype.forEach
 
@KarelG I did not mix that at all - and browser compatibility seems complete
 
/lunch
 
@NordineLotfi Well, here's the thing.. a requirement for us was that every .html file should just be a local file that exists on a FTP server, which meant that we can't serve all the files on a web server, which in turn means that we have a lot of cross-origin issues. However, each of the HTML files does have a small JavaScript snippet that fires an event to the window.parent via the "postMessage" method.
The event contains the whole body of the HTML file, which means that all the content "bubbles" up to the root HTML file automatically now. This works in an environment where cross-origin needs to be avoided.
I'm now doing some error handling for this (like, if something accidentally removes one of the files), which is where promise comes into the picture.
Haha, it's really complex, but works great actually.
 
@Warcaith wow, that's also a clever way to bypass cross-origin (or at least get around it). Why not use websockets though?
 
Well, I don't know, I'll look into websockets. I'm just trying to get something working at the moment and websockets may be a better way doing this. :D
I've never actually used websockets before.
Do you know any good tutorial for it?
 
10:48 AM
I see :D yeah, I think one of the stuff I linked once was using websocket (the project I linked on the python's room once). I admit the server/client part on python (if you do it in python) is a pain, but the javascript part is probably easier in that case.
one of the main problems I encountered when using websockets between python and js was handling big files transfer, since I had to implement chunking since none of the python solutions I found worked...I'm still stuck working on it though
 
Hmm... but where does Python come in here? If I generate some files that are stored locally, that should talk with each other, Python would not be used at all.
Do you mean that I should talk with websockets between the HTML files?
 
yeah, I was referencing my own use case. For your case, you can do it differently, eg: as you mentioned, using websockets between HTML files, instead of using postMessage
of course, that's just a suggestion, since as I mentioned, you'd have to implement chunking for large files anyway
 
Oh, so large amount data is a limitation in WebSockets?
 
@NordineLotfi you can't "do" websockets between HTML files - websockets need to "talk" to a server
 
@JaromandaX Aaah, so the only way is basically to use postMessage() between them, right?
 
10:55 AM
@JaromandaX by that, I meant doing it between javascript running in the HTML files. I know you can make a websocket client in javascript, although unsure if the same can be done for a server
 
@Warcaith - just to clarify, those iframes are not same-origin with respect to the parent, are they
 
(here talking about browser's javascript, not nodejs)
 
@JaromandaX Exactly. That's why I use postMessage from the iframes so they can be received by the parent.
 
@Warcaith I don't really know exactly what you're end-goal is, but from what I've read over the last day or so, I think postMessage is perfectly valid way of doing it - websocket to me seems over-complicated for this - but as I said, not 100% up on what you're trying to achieve
 
11:11 AM
frankly, websockets are only good if you have a server running serving data to clients as soon as it becomes available. If there are just a bunch of static files, then there is no need for WS
in the latter case, if the only goal is to have a bunch of iframes talking to a parent, messaging is perfect for the job
websockets are specifically designed for client-server communication, not client-client
 
 
7 hours later…
6:23 PM
o/
Why is this only posting one <li> instead of 2?
 
 
1 hour later…
Is this not reproducible?
I've got a forEach running through each request, filtering them out by criteria, then posting the valid response to a <li>
 
it's not minimal
posting li's, whatever that means, is pretty unclear
do you mean posting a string that contains two li elements?
Have you confirmed that the string you're passing to fetch contains said two li elements?
if it doesn't, then your problem is unrelated to posting 2 li elements.
TLDR you haven't broken down your problem enough to have a valid question yet
 
8:12 PM
posted on October 05, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 107 (107.0.5304.26) for iOS; it'll become available on App Store in the next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Erhu Eakpobaro Google Chrome

posted on October 05, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 107 (107.0.5304.25) 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

posted on October 06, 2022 by Prudhvikumar Bommana

The Extended Stable channel has been updated to 106.0.5249.103 for Windows and Mac which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn abo

posted on October 06, 2022 by Prudhvikumar Bommana

 The Stable channel has been updated to 106.0.5249.103 for Windows,Mac and Linux,   which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out

posted on October 06, 2022 by Ben Mason

Hi everyone! We've just released Chrome Dev 108 (108.0.5340.9) 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

 
Let me reword the question.
 
chill with the releases google
 
All the data objects within the array with the criteria equaling that of the condition, I want to post within the <ol></ol> as a <li> element. I thought my structure was correct, but it is only posting the first instance. Do I need another forEach within my condition?
 
 
2 hours later…
10:19 PM
posted on October 06, 2022 by Prudhvikumar Bommana

The Beta channel has been updated to 107.0.5304.29 for Windows,Mac and Linux. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issues, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar Bommana Google Chrome

 

« first day (4373 days earlier)      last day (569 days later) »