« first day (4424 days earlier)      last day (507 days later) » 

5:16 AM
Hey guys, is it a good practice to have a fixed min-height with pixels on the two other containers that do not have a additional block with "Reaching out to us" block from the first block with it? Or is there any better way to fill the empty space that they would match with the first one height?
This one was done with a min-width: (height px from the first block)
Sorry for the wrong channel, css and html one is dead rn :D
 
 
2 hours later…
7:29 AM
How to get the nth child number of the selected element? I mean, I know how to select by nth child, but not the other way around. Lets say you've selected the 3rd <p> element inside a <div> container, how would you know it's the 3rd child of that parent div?
 
 
2 hours later…
9:06 AM
@DziuGas well, the problem with min-height is that you don't know the actual size of the content in those blocks. So, in the end, you still won't get equal-sized columns
as a suggestion - use CSS Grid, it's disgned to handle these layout problems
@DziuGas that's O.K., we are a room for a kind of a mix of JS-related technologies. HTML, CSS, TypeScript, Node.js/Deno, etc - anything goes
@icecub use the is pseudo-selector combined with nth-child (assuming we are talking about CSS here)
if it matches, it is the Nth child. Although it's kind of pointless since the nth-child does the job anyways
what's your use case?
 
 
2 hours later…
11:12 AM
@Gokuhan21 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.
 
 
2 hours later…
12:54 PM
@OlegValteriswithUkraine No, I mean, I wouldn't have joined Javascript if it was about CSS. Assume a div has 3 buttons with no identifiers. There's a click event handler on the div and .closest is used to get the button being clicked. Although you have the button, you do not know whether it was the first, second or third button inside the div. If you need to know which buttons were not clicked, getting that data is useful
Anyway, I've already solved the issue differently, so it's really not that important anymore. At best, I'm just curious on how to do it, should I ever encounter the situation again in the future
 
@icecub nah, I know :) the advice still applies: just check if the button you got matches the selector :is(:nth-child(3)), that'll give you what you want. An alternative is to just check if the button is equal to the children[2] of the parent element (comparison operators work on DOM elements)
you can also do a filter on the parent's children - any button that is not equal to the target hasn't been clicked
 
True. Thanks for the help. I appreciate it :)
 
NP :) since you are using JS to get this info, there is a bunch of ways to go about this indeed
 
 
2 hours later…
2:53 PM
Hi I would like to know if someone can help with this exercice? stackoverflow.com/q/74578900/20491974
 
@marioconde 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.
 
 
1 hour later…
4:09 PM
Why .filter does not work as expected in all situation
I have complex code for filtering years by clicking on buttons
everything works as expected , except when I click on last button
 
4:46 PM
I assure you, .filter works exactly as it should. We regularly get a dozen or more questions on SO about "why <some core part of JS> doesn't work as expected" and it's pretty much invariably because the expectation is wrong.
 
5:04 PM
yeah, if it doesn't work "as expected", you need to fix your expectations. Built-ins are working perfectly fine
 
Hmm, I am curios what should we as developers do if some core feature(s) works with issues ?
Where to report issue
related to plain JS
 
there is no place. There are only implementations - engines. If something does not work properly, you get it up with them. V8's team, for example.
Hope you ain't thinking about actually doing that
 
@MileMijatović post a simple version of your code on stack overflow so others can test it. then if they find an issue then you can refer back to it if you need to post to javascript engine creators
my first guess on your issue is that many of these calls are not synchronous
 
5:20 PM
better not :) I doubt it's going to be a useful contribution unless it's really a reproducible core problem. And I can bet to eat my hat that ain't it
 
meaning they use callbacks and that occurs when js wants it to occur not when you expect
i worked with compiler authors
99.99999% of the time it's the developer
to get any attention they have to come up with an example of it broken
when the author makes the simple example they find out it works :)
 
precisely. And, usually, if there is a problem with an engine, it gets reported immediately. The sheer number of projects on the web makes it nearly impossible for an issue to creep up unnoticed
 
the padwan will learn in due time
 
I mean not related to my issue, but generally
 
@1.21gigawatts heh, true - with time, you change the perspective from "why doesn't it work?" to "where did I f**k up?". Really helps
 
5:27 PM
Of course I will not contact core V8 team :D
 
@MileMijatović we are joking but every developer has said "it's the compiler" at one point
but if you do, the developers are usually on the github project that is related to the issue. some of them are on stackoverflow and answer the questions
 
major implementations also often have their own bug trackers
 
5:43 PM
I'm tracing out my response body on expressjs nodejs using

console.log(request.body);
[Object: null prototype] { name: 'John' }
Why does it have null prototype?
 
most likely:
25
A: How do I get rid of [Object: null prototype] in Node.js?

Varun BhallaThis additional [Object: null prototype] problem occurs in Node when we console.log some object which has null prototype... which simply means that the object won't have it's inbuilt methods... like => .toString() or .hasOwnProperty() etc... const obj1 = Object.create(null); obj1['key'] = 'Some...

there isn't anything wrong per se with objects having null as prototype
||> Object.getPrototypeOf(Object.create(null))
 
@OlegValteriswithUkraine null Logged: [ ] Took: 0ms
 
doesn't really makes sense to do that, but what are you gonna do, eh?
 
i see
 
heck if I knew why would the parsed object not inherit from the built-in, though
 
6:18 PM
So it's just telling me it doesn't have the built in object methods
that's fine :)
 
6:32 PM
is there no int or float types in typescript?
i'm guessing no since it has to compile down to JS
 
yup, it's all the good all ECMAScript, technically
only one type - 64-bit floating points
 
 
5 hours later…
11:30 PM
posted on November 14, 2022 by Giuliana Pritchard

LTS-102 is being updated in the LTS channel to 102.0.5005.185 (Platform Version: 14695.148.0) for most ChromeOS devices. Want to know more about Long-term Support? Click here. This update contains Security fixes, including: 1369882 High CVE-2022-3450 Use after free in Peer Connection 1364662 High CVE-2022-3449 Use after free in Safe Brow

posted on November 15, 2022 by Matt

The Dev channel is being updated to 109.0.5412.2 (Platform version: 15236.2.0) for most ChromeOS devices. This build contains a number of bug fixes and security updates. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue

posted on November 16, 2022 by Srinivas Sista

 The Beta channel has been updated to 108.0.5359.48 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. Srinivas Sista  Goog

posted on November 16, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 108 (108.0.5359.47) 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 November 17, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 109 (109.0.5414.7) 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 Akpobaro Google Chrome

posted on November 17, 2022 by Prudhvikumar Bommana

 The dev channel has been updated to 109.0.5414.10 for Windows,Mac and Linux. A partial list of changes is available in the log. Interested in switching release channels? Find out how. 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 about common issues. Prudhvikumar BommanaGoogle Chrome

posted on November 17, 2022 by Ben Mason

Hi everyone! We've just released Chrome Dev 109 (109.0.5414.8) 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 November 18, 2022 by Matt

The Dev channel is being updated to 109.0.5414.7 (Platform version: 15236.9.0) for most ChromeOS devices. This build contains a number of bug fixes and security updates. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport

posted on November 23, 2022 by Release Managers

The Beta channel is being updated to 108.0.5359.58 (Platform version: 15183.51.0) for most ChromeOS devices. This build contains a number of bug fixes and security updates and will be rolled out over the next couple days. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific:&nb

posted on November 24, 2022 by Srinivas Sista

The Extended Stable channel has been updated to 106.0.5249.199 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 November 24, 2022 by Prudhvikumar Bommana

The Stable channel has been updated to 107.0.5304.121 for Mac and Linux and 107.0.5304.121/.122 for Windows, which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Security Fixes and Rewards Note: Access to bug details and links may be kept restricted until a majority of users are updated with a fix. We will also retain restrictio

posted on November 24, 2022 by Erhu Akpobaro

Hi, everyone! We've just released Chrome 107 (107.0.5304.141) for Android: it'll become available on Google Play over the next few days. 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. Android releases contain the same security fixes as their correspon

 

« first day (4424 days earlier)      last day (507 days later) »