Better HN
topnewbestaskshowjobs
Log inSign up

doodlesdev

3,169 karma · joined Nov 9, 2020 (6y ago) · 852 submissions

Hi, how's your day?

https://www.doodlesdev.com

Submissions

comment 3y ago · link · parent

https://archive.ph/HSNVW

comment 3y ago · link · parent

It tries to be both a filesystem and a database and fails miserably at both. Entries layout is a total mess that not even Microsoft pays attention to anymore.

Relevant:

Why the Windows Registry sucks … technically https://news.ycombinator.com/item?id=32275078

https://rwmj.wordpress.com/2010/02/18/why-the-windows-regist...

comment 3y ago · link · parent

I wasn't aware that you could disable them, I thought this was handled entirely by the font and not by the editor. Living and learning. Might try JetBrains Mono again without ligatures this time, after I finish my trial of IBM Plex.

comment 3y ago · link · parent

I avoid it like the plague because of ligatures, although I must admit other than that I enjoyed in my (admittedly short) experience with JetBrains IDEs. Have never tested them elsewhere.

comment 3y ago · link · parent

I think I just found my new favorite font. I'm absolutely addicted to grotesque sans-serif, I used to use Roboto everywhere, but now I'm currently using Cantarell (GNOME's default font, a humanist typeface) as my desktop font and as an overwrite font for every single website I open, but I might just start using Plex Sans and Plex Mono now. Thank god it's OFL.

I still find it fascinating that there are so many different typefaces with such subtle differences in them, but since I'm looking at characters in the screen the entire day, these characters better be beautiful and pleasing.

I'm not gonna lie, every time I swap fonts on my desktop I keep remembering that one scene from American Psycho [0]. Maybe I should touch some grass.

[0]: https://youtu.be/cISYzA36-ZY

comment 3y ago · link · parent

Concurrency.""There are three hard things in computer science: cache invalidation, naming things, off-by-one errors, and

Original quote:

   There are only two hard things in computer science: cache invalidation and naming things. — Phil Karlton 
The one that most people know:

   There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors. - Jeff Atwood

comment 3y ago · link · parent

   > Is that really common in all open source projects?
Common? Depends. Necessary or correct? That's a whole 'other can of worms:

Depending on the open-source license you're using it's actually _required_ to do that, although many developers (like me) don't actually do it because in reality it really doesn't matter, but strictly speaking it's the correct (and sometimes necessary) thing to do. The overall principle is that it reduces ambiguity. What if a user gets access to source files without access to the rest of the repo? Then they won't be able to know what the license for that code is. Or what if your project mixes in code from other projects for purposes such as dependency vendoring? You need to be explicit in which files are licensed how and by whom.

This stack exchange discussion is somewhat illuminating [0].

As you can see, GPL licenses require a copyright notice and a license notice on every file (although no need for the entire license). Apache v1 requires the license on every file. The MIT license is somewhat ambiguous as the definition for "substantial portions of the Software" is not clearly defined, a possible interpretation is that every single file is a substantial portion of the software, this is why some MIT licensed projects include it, in its entirety, in every single source code file.

IANAL, but Kyle E. Mitchell is, and he has an interesting line-by-line explanation of the MIT license which helped clear some of the ambiguity for me [1].

[0]: https://softwareengineering.stackexchange.com/questions/3170...

[1]: https://writing.kemitchell.com/2016/09/21/MIT-License-Line-b...

comment 3y ago · link · parent

Pretty fun and original game. I notice some videos repeat a lot though, which means I already know the ballpark of their view counts. I starred the repo to take a look at earlier, but I assume you're selecting from a predefined pool of videos. It would be interesting to see different methods to automate categorization of videos, perhaps using machine learning, maybe even an LLM that reads through the title, description and closed captions.

339.

MS Azure security: Embrace secure multitenancy, Confidential Compute, and Rust(azure.microsoft.com ↗)

4 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

What I understand from this specific case these models don't have an engine immobilizer AND it's very easy to turn on the ignition using a USB cable. If I understood it correctly this is easier than stealing a car in the 80s, you don't even have to smash a window, it's that bad.

The United States is an exception to the rule being the only first world country that I know of to not mandate engine immobilizers (I'm sure someone will be able to point an exception, but overall these are mandatory in a lot of countries for decades already).

comment 3y ago · link · parent

According to the Cargo.toml of that project the code is licensed under both MIT or Apache, whichever you choose, however it's not clear which files are under that license or whether this was even intentional. Generally, you'd expect the project to provide one or more LICENSE files and some explanation about the license in the README, along with license headers on top of every file where that licensing is relevant.

comment 3y ago · link · parent

   > So the absence of a license means it defaults to exclusive copy right
Yes

   >  but can advertising it as open source be construed as a 'license'
I'm pretty sure the answer is no. There are no terms specified, no definition provided to what "open-source" is, and no information as to _what_ is licensed as open-source (i.e. the files, the compilation result, etc.).

General consensus with most licensing schemes is to add a license header to the top of every file, or otherwise specify that all files in a certain repository are subject to that license in a clear manner that everyone accessing these files will have access to (i.e. README file).

343.

FUTO – An independent software lab and grant fund(futo.org ↗)

268 points · by doodlesdev · 3y ago · 65 comments

344.

MySQL vs. MariaDB: Tables and DDL(skeema.io ↗)

2 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

Yup lol. Related:

https://news.ycombinator.com/item?id=35906258

https://scifi.stackexchange.com/questions/8067/if-only-the-s...

comment 3y ago · link · parent

Well noted, added it to the title.

347.

If only the Sith deal in absolutes, why does Obi-Wan say it that way?(scifi.stackexchange.com ↗)

2 points · by doodlesdev · 3y ago · 3 comments

comment 3y ago · link · parent

Only a sith deals in absolutes.

comment 3y ago · link · parent

   > Error handling and learning are respondents’ top challenges. Historically, lack of generics was the biggest challenge to using Go, but since the introduction of generics, we’ve seen comments about generics decline. Comments about error handling (with respect to readability and verbosity) and difficulty learning best practices are now the most commonly reported challenges.
If the past debacle with generics is considered, I think Golang might be getting (real) error handling soon..... If that's a good thing or not, I'll let developers who use the language to determine. As an outsider to the Golang ecosystem I see the language almost ridiculous simplicity as one of its main selling points, it's the kind of language like C where I see any new features as something to be avoided, specially if it's paradigm-changing.

350.

“Considered Harmful” Essays Considered Harmful (2002)(meyerweb.com ↗)

109 points · by doodlesdev · 3y ago · 108 comments

351.

Netlify Gotrue - Open-source API for managing users and issuing SWT tokens(github.com ↗)

8 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

Session: https://getsession.org/

Briar: https://briarproject.org/

Jami: https://jami.net/

comment 3y ago · link · parent

The craziest thing is it's working. I live in Brazil (unfortunately, I guess) and yet the only place I even see discussion about this is on Hacker News of all places. The Telegram block is pretty good tech-wise, it's not just DNS-level like some other countries do, to circumvent it you _have_ to use a proxy.

It's also crazy this is happening almost at the same time the US has the EARN IT act back. The west has some serious threats to digital freedom right now, and the solution (for now) is not more technology, it's protest and democracy (if that's even a thing nowadays).

Anyway, it's a good time to teach friends and family how to use tor, VPNs, Fediverse, maybe even crypto (if your currency completely collapsing is possible).

We, as an industry, should have from the start built the internet to be decentralized, secure, private, by default. It's too late for that now, the boat has sailed, but there's still time to prevent it from getting even worse.

Oh yeah, and if you're reading this from anywhere in the world where this kind of thing is not a worry right now, please consider:

https://snowflake.torproject.org/

https://support.torproject.org/

comment 3y ago · link · parent

   >  Does YT detect that the ad wasn't played and therefore doesn't pay out for that view to the creator?
Yes. Watching with an ad blocker will not yield any revenue for the creator, unless you are logged in an account with YouTube Premium.

comment 3y ago · link · parent

That competitor will also bleed ridiculous amounts of money for years paying for infrastructure, legal costs, and rising engineering needs. That is, until they also start doing the same thing. Everyone here complains about what Google is doing to YouTube, but financially speaking this is the only thing they can do for now, YouTube has always been ridiculously expensive to run and hard to monetize, and with last year ad revenue not meeting expectations + the current economic scenario I don't see what else they should do.

comment 3y ago · link · parent

On top of the video player hover over the "x peers" on the bottom, it will tell you how much data you downloaded, uploaded, and how much of the download came from peers or the server.

comment 3y ago · link · parent

I wish Peertube was more usable. The UX is generally subpar (although impressive for an ActivityPub-based system). There's also the problem that hosting servers to host video is _so damn expensive_. There is literally only one Peertube instance I ever watch videos on (https://tilvids.com/) and I'm honestly considering stopping using it altogether. I'm not sure what I want out of Framasoft really, but I don't think Peertube or any similar solution becomes viable soon without socializing costs for video hosting, encoding, etc.

Peertube of course has the peer system, but I don't think my client has ever uploaded more than 100kb from any peers, it's all from the server. There's also no way that I know of to "donate" some network/storage BitTorrent style to servers I wish to support, which again means the costs are all centralized and extremely high.

comment 3y ago · link · parent

That is correct, I removed it from the comment. It's more of an alternative to Apache Ant/make/whatever really.

359.

SuperTokens – Open-Source User Authentication(supertokens.com ↗)

3 points · by doodlesdev · 3y ago · discuss

1
111213
29