Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 10mo ago · link · parent

If I am not mistaken, the law prohibits producing any unauthorized copies. So if you download a pirated book on a computer, you produce an illegal copy: [1]. If I am not missing anything, ML companies are galaxy-scale infringers.

> 106. Exclusive rights in copyrighted works

> Subject to sections 107 through 122, the owner of copyright under this title has the exclusive rights to do and to authorize any of the following:

> (1) to reproduce the copyrighted work in copies or phonorecords;

> 501. Infringement of copyright

> (a) Anyone who violates any of the exclusive rights of the copyright owner as provided by sections 106 through 122 or of the author as provided in section 106A(a), or who imports copies or phonorecords into the United States in violation of section 602, is an infringer of the copyright or right of the author, as the case may be.

[1] https://www.copyright.gov/title17/92chap5.html

comment 10mo ago · link · parent

No, both NT and Linux kernels are bad because they are monolithic and not sandboxing-first.

comment 10mo ago · link · parent

As a beginner I can say that I cannot hear notes and intervals, but I can hear if they go up or down, and I usually pick the notes by playing different notes and comparing them. But your app makes me start from the beginning for every mistake, so it becomes a little difficult.

comment 10mo ago · link · parent

Interesting, but it shows the first note, and after you play it, it shows the next note, so I have to not to look at the notes when trying to guess them.

Also, too complicated for a beginner, I would start with things like "guess which note is higher" or "how many notes are played simultaneously".

comment 10mo ago · link · parent

What about an architecture, where there are pages and access permissions, but no translation (virtual address is always equal to physical)? fork() would become impossible, but Windows is fine without it anyway.

comment 11mo ago · link · parent

Isn't this something KDE-specific and because of using third-party program to manage clipboard? On Gnome, there is no Klipper and copy-paste works.

comment 11mo ago · link · parent

1Tb m.2 SSD cost 70 USD in summer 2025, and probably much less when bought in bulk as a chip. It doesn't make sense to install anything less than 1Tb in an expensive premium laptop. Or it should be upgradeable.

Apple's pricing is one of the reasons I am not going to buy their laptops. Expensive, and with no upgradeable or replaceable parts. And closed-source OS with telemetry.

> Lots of people more or less use their computer as a glorified web browser

For this purpose they can buy $350 laptop with larger screen.

comment 11mo ago · link · parent

The problem with CSS is that if you want to write an SVG viewer, you have to implement a whole CSS engine, which might be more complex than SVG renderer itself. And if you create an image in an editor, like Inkscape, you don't use CSS anyway. CSS is meant to be used when you write the code manually (instead of using an editor), for example, in a web app, and in this case you could use HTML as well.

So yes, CSS is not needed.

comment 11mo ago · link · parent

There are additional protocols like SPF, DKIM, DMARC which allow to restrict who can send mail for a domain. In this case you should be able to validate the address.

comment 11mo ago · link · parent

It is clear that SVG should not support scripts and CSS in SVG files. Those who need them can simply create HTML with inline SVG tags and scripts. And SVG should contain only shapes, effects and transformations.

Or maybe we need a new image format, "SVG without scripts and CSS".

comment 11mo ago · link · parent

It would be better if they were sanitized by design and could not contain scripts and CSS. For interactive pictures, one could simply use HTML with inline SVG and scripts.

comment 11mo ago · link · parent

React is an implementation of View component of MVC, View is responsible for displaying Model contents, not for handling routes. You are trying to use the wrong tool.

comment 11mo ago · link · parent

I looked at the code examples and instantly saw something familiar. I remember, there was a library that intercepted link clicks, made AJAX requests and updated DOM with response, so that the page would update without reloading. If for any reason the code failed, there was just standard link navigation so you could access the content any way. I think it was pjax library.

It made the site look like a SPA without having to write any extra code. How cool is that.

HTMX resembled me this library. But it seems very narrow cased, there are only so many attributes and their values and you cannot implement anything else. While pjax is generic: you can attach it to any site which has links.

Also you cannot replace Vue (don't use React) with HTMX. For example, if you are making a diagram editor, HTMX won't be useful.

comment 11mo ago · link · parent

Were all tabs loaded though? If one tab takes 10 Mb of RAM (very low estimate; many take 50-100 Mb, especially Youtube), then 10K tabs require 100Gb.

comment 11mo ago · link · parent

Random choice allows collecting all the domains by merely refreshing the page. You might want to allocate several domains per AS or per IP block.

comment 11mo ago · link · parent

What about adding an option to reply to emails (only reply, not send to arbitrary address)? I think none of temp mail services has it.

comment 11mo ago · link · parent

If you provide a choice of domain name, it becomes easier to collect them for adding into blacklist. Maybe you better not show all the domains.

comment 11mo ago · link · parent

Google Voice doesn't look like a safe option, your number can be taken away if you forget to pay or you can be banned for arbitrary reason without a way to appeal.

comment 11mo ago · link · parent

So let everyone pay with their preferred method and let evil governments go mind their own business.

comment 11mo ago · link · parent

To be fair, in some Russian regions you cannot access even most Russian sites from mobile (we have whitelist mode). Also, not everyone, but some people started using VPN after Instagram ban, and even more after Youtube ban. Like drug addicts who cannot drop their habits.

comment 11mo ago · link · parent

I would rather pay $1 than with my phone number which is much much much more valuable. Telegram did an experiment with paid anonymous registration, but the prices were ridiculous and targeted for the riches.

comment 11mo ago · link · parent

The founder of the agency is not with us anymore.

comment 11mo ago · link · parent

In my country, you cannot legally get a phone number not linked to the identity, and the prices are relatively high on the black market. Also, the phone discloses your location with pretty good precision, especially in US where everyone is living in their own house.

comment 11mo ago · link · parent

Or a small payment in cryptocurrency.
1
252627
185