Better HN
topnewbestaskshowjobs
Log inSign up

SquareWheel

5,684 karma · joined Nov 8, 2011 (15y ago) · 2,036 submissions

Submissions

comment 3y ago · link · parent

The trouble with spammy jokes like this is it discourages companies from bothering with open-source in the future. I know I'd be less likely to champion an initiative like this if I thought it might blow up in my face.

comment 3y ago · link · parent

That seems pretty extreme. Why not just add nofollow to links? That's what websites like Wikipedia do.

comment 3y ago · link · parent

Pretty much every platform with notifications supports a "do not disturb" mode for just such occasions.

comment 3y ago · link · parent

Most browser vendors already do, or will soon require a user gesture to initiate. That doesn't mean that abuse will disappear, but it should help.

https://developer.mozilla.org/en-US/docs/Web/API/Notificatio...

comment 3y ago · link · parent

Usually the dynamic data would be generated by the server. eg. if you have an eCommerce site, it might update prices, stock remaining, applicable regions, etc. That would then be pulled into Google Shopping or whatever other service might consume it.

comment 3y ago · link · parent

Much closer to what I had in mind! Thanks, this one is new to me. It would've saved me time in my previous testing.

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

Then your default font stack should look something like this.

https://github.com/twbs/bootstrap/blob/adf7b8dc4083b6ddc318e...

comment 3y ago · link · parent

Thanks for the link. I've actually used this one before, but it's not quite what I was hoping for.

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

Great website. There's really no concept of "web safe" fonts today when you mix in mobile operating systems. At best you can choose similar-looking fonts and hope for the best, and this site seems useful in that aim.

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

This solves a real problem for me. In the past I've used <wbr> with white-space:nowrap set on the parent to help choose logical breaks in text, but it's tedious and requires DOM access.

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

That's often true. Individual subreddits may filter new accounts or low-karma thresholds to prevent spam. The better subreddits will simply flag it for manual review rather than remove it outright.

comment 3y ago · link · parent

> Your karma basically determines the visibility of any new post you try to make.

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

For the intrinsic parameters of the webcam, that is a property of the hardware and not your room, yes? If so, it seems possible to crowdsourced that information to build a database. Then for most users, it's just a matter of entering your product model rather than taking 50 checkerboard photos.

It's still not convenient, but it's a much smaller hurdle to overcome.

comment 3y ago · link · parent

> Except in Safari, whose maxlength implementation seems to treat all emoji as length 1. This means that the maxlength attribute is not fully interoperable between browsers.

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

Quite sad to see. It seems like they're still doing Summer of Code and CTF events, at least?

comment 3y ago · link · parent

Yeah, I read the post eager to see what AdGuard's thoughts were after building their MV3-based blocker, but the article never actually goes anywhere. It's just repeating Mozilla's stance from at least a year ago.

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

I didn't know that was included. Thanks for explaining.

comment 3y ago · link · parent

This is perhaps the wrong question, but how is it that he was able to create such a long tweet?

comment 3y ago · link · parent

> Vulkan was released nearly a year after DX12.

True, but Vulkan is largely a continuation of Mantle which released two years before DX12.

comment 3y ago · link · parent

I don't see the contradiction. Visual Basic existed before .NET did.

comment 3y ago · link · parent

The number is infinity. There is a reason that data is not the plural of anecdote.

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

Do I believe they know the project "very well"? No, probably not, but that's an extremely high bar to meet.

comment 3y ago · link · parent

I don't think anybody is accusing the submitter of being a sockpuppet. It's just a rather well-known project already, and there's not any news to discuss related to it right now (as far as I know).

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

It didn't the last time a bird flu impacted the egg supply. Inflation will continue to be a factor, but I expect it will return to near-normal levels, at least.

comment 3y ago · link · parent

Are we forgetting TensorFlow? It played a part in starting this whole AI revolution.

comment 3y ago · link · parent

That article is specifically called out as being misleading and clickbaity by Search Engine Journal. I don't see what linking it again is adding to the conversation.

>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

I just linked you the code of conduct where it is very clearly still present. It was at one time moved from the opening statement to the closing statement, but it has never been removed as you've claimed.

edit: This was in response to the parent's original comment, prior to the edit.

comment 3y ago · link · parent

For as many times as this has been debunked, it's rather frustrating to see this particular misinformation persist.

https://abc.xyz/investor/other/google-code-of-conduct/

comment 3y ago · link · parent

There's two free games this week, so https://store.epicgames.com/en-US/free-games would be even better. Not sure why the submitter only mentioned one of them.
1
678
68