5,684 karma · joined Nov 8, 2011 (15y ago) · 2,036 submissions
comment 3y ago · link · parent
https://developer.mozilla.org/en-US/docs/Web/API/Notificatio...
comment 3y ago · link · parent
Hopefully one day the existing CSS properties like letter-spacing can be supported in @font-face to allow for even better matching. That would make techniques like this even more powerful.
comment 3y ago · link · parent
https://github.com/twbs/bootstrap/blob/adf7b8dc4083b6ddc318e...
comment 3y ago · link · parent
These settings (font-size, line-height) are defined in the content CSS, not the @font-face rule, so they won't be automatically applied when the font is swapped. Properties like size-adjust or ascent-override are better for matching like-fonts as it's all automatic.
Also, while it is very useful to have a tool to come up with your own pairings, I think a list that covers some of the most popular fonts and creates perfect settings would be very useful for quick implementations. Something like the submitted site above that has done the legwork for you.
comment 3y ago · link · parent
One tool I'd love, though would clearly be out of scope here, would be a way to find safe fallbacks for popular webfonts. For example I recently created a site in Montserrat. After some testing I found a close fallback font was Verdana, with a size-adjust[1] of about 99.5%. That resulted in minimal document reflows when the font was slow to load.
Picking the top 10 or 20 popular Google Fonts and finding nearby fonts with good scaling tweaks would be very useful. I could see a sister project to this site offering something like that.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/...
comment 3y ago · link · parent
A simple CSS rule to automatically calculate this is very welcome.
I'm not sure I like the name "pretty" for the second rule though. If they have to expose the algorithm (first-fit vs Knuth-Plass), I'd rather they choose more descriptive names.
comment 3y ago · link · parent
User karma isn't factored into the site's sorting algorithms. Post score is, and that influences karma, but not the other way around.
edit: On reflection, you may have been referring to the ability to post, rather than the popularity of the post. In that case, the misunderstanding was mine.
comment 3y ago · link · parent
It's still not convenient, but it's a much smaller hurdle to overcome.
comment 3y ago · link · parent
No, it's definitely not. You can read the byte length more directly in JS, and use that to inform if more text is allowed or not.
const encoder = new TextEncoder();
const currentBytes = encoder.encode(inputStr).byteLength;
But the maxlength attribute is at best an approximation. Don't rely on it for things like limiting length for database fields (not that you should trust the client anyway).comment 3y ago · link · parent
I tested both AdGuard and uBlock Origin in MV3 for a while, and they seemed fine to me. Adguard's had less friction due to opting sites into cosmetic filtering by default.
comment 3y ago · link · parent
Once scrutinized, these phenomena are almost always explained by humans misinterpreting their instruments (either machine readout, or their own eyes).
Honestly, you wouldn't believe how many people report _the moon_ as a UFO because it shows up in an odd place, gets distorted by unique atmospheric conditions, and can appear in different shapes and sizes (moon phase and proximity to Earth).
These people aren't idiots. Their brains evolved to recognize patterns as a survival mechanism. Arguably their pattern recognition is stronger than everybody else's. But when you factor in lack of familiarity with the scientific method, or inclination towards spirituality, or a simple willingness to believe in extraterrestrial life, it's not uncommon to hear stories about ghosts, angels, and aliens.
These stories do not stand up to inquiry. They have been tested time and time again and always fall apart under scrutiny. The reason that Bigfoot photos are always blurry isn't because he's camera shy - it's because when the photos are not blurry, we can clearly see it's not Bigfoot.
NB: I have no problem with believing in alien life in terms of say the Drake equation (statistically, it's probable!). I just find it highly unlikely of such a visitor reaching Earth.
comment 3y ago · link · parent
I get that there's always one of today's lucky 10,000, but I think a certain threshold of obscureness is reasonable. It wouldn't make sense to submit the Linux Kernel project, or Mozilla Firefox without any news.
Maybe I'm overestimating how well-known ReactOS is, though.
comment 3y ago · link · parent
>There have been click-baity news reports stating that “Google Removes ‘Don’t Be Evil’ Clause From Its Code of Conduct” but that is not entirely accurate.
>Google has not removed that clause. Google has removed it from the preface, resulting in more attention to the word respect. But it still remains at the end of the document as before.
comment 3y ago · link · parent
edit: This was in response to the parent's original comment, prior to the edit.
comment 3y ago · link · parent