HNHacker News
TopNewBestAskShowJobs

pzmarzly

1,667 karma · joined March 30, 2019

meet.hn/city/ie-Dublin

Socials: - github.com/pzmarzly

---

submissionscomments
pzmarzly··on Ask HN: What's the best hackable smart TV?
LG TVs have well known WebSocket and serial-port APIs. I haven't tried it with HA, but I'm using alga CLI (https://github.com/Tenzer/alga) to automate my TV (which I'm using as a dumb monitor).
pzmarzly··on Become unbannable from your email
It was some address in Warsaw, so if I needed that domain badly, it'd be one Ryanair flight away, and definitely an interesting experience :) But I was only using it for a small blog, so I just let it expire. I hoped I would be able to register it again immediately after it expires, but some scammers beat me to it (probably scanning for expiring domains with good reputation/SEO), so last time I checked, the domain is used to advertise some magic pills.
pzmarzly··on Become unbannable from your email
Awesome. I should have clarified that they were regional TLDs.
pzmarzly··on Become unbannable from your email
Counterpoint: I lost a domain when a registrar went out of business, and another when a registrar bumped the price 10x and refused to give me authenticode unless I physically show up to their office. Sure, I cheapened out and used shady cheap registrars, and this all happened a while ago so things are probably more regulated now, but for comparison I never permanently lost access to hosted email. (Losing access temporarily is another thing, Google likes blocking me from my own account when travelling.)
pzmarzly··on The best YouTube downloaders, and how Google silenced the press
I had a Bash script that parsed my browser history, and for every YouTube video it would run yt-dlp with "--write-info-json --write-subtitles --download-archive=already-downloaded.db" flags. Creating it was the easy part, but keeping it running has presented some challenges. For example, Google started rate limiting my IP quickly, so I had to offload this process to a NAS, where it could keep running for hours overnight, persistently downloading stuff at near dialup speeds. Then I was running out of storage quickly, so I had to add video filtering, and I planned to add basic garbage collection. And of course I had to have youtube-dl (and later yt-dlp) updated at all times.

In the end, I decided it is not worth it. In the scenario you described, I would take the video link/ID and paste it into Bing and Yandex. There is large chance they still have that page cached in their index.

FWIW if you are going to create your own tool, my advice will be to make it a browser extension, and try to pull the video straight from YouTube's <video> element.

pzmarzly··on Claude Code: Now in Beta in Zed
After moving to Zed I also missed good Git integration that I had in VSCode with GitLens.

That pushed me to finally try Jujutsu instead of Git, since it has a CLI (and TUI and GUI, if that's your thing) that are perfectly usable by mere mortals. Now I feel as fast as when I had the Git integration, despite using the terminal.

But if I had stuck to Git, trying GitButler or Sublime Merge was the next option on my TODO list.

pzmarzly··on Next.js is infuriating
> SvelteKit is a Vercel product

While Vercel acqui-hired many developers behind SvelteKit and Nuxt.js, I was under the impression that they weren't interested in running these projects hands-on, or even making them similar to each other. Can anyone correct me here or explain what their long-term game seems to be?

pzmarzly··on Thoughts on (Amazonian) leadership
If they are just recommendations, perhaps Amazon shouldn't require them in their recruitment and performance review processes :)
pzmarzly··on Left to Right Programming
You may find PRQL interesting. https://prql-lang.org/
pzmarzly··on IQ tests results for AI
Snapshot: https://archive.ph/0ihF5
pzmarzly··on The Framework Desktop is a beast
HN admins: can the domain extractor be changed to say "world.hey.com/dhh" here instead of just the domain name? From what I see, Hey World is a blogging platform, similar to Medium but markdown and email based. And the username (blog name) is in the second part of the URL.
pzmarzly··on Brazil central bank to launch Pix installment feature in September
Revolut will only offer BLIK if your address is in Poland, it's not enough to just open a PLN subaccount. Same with Wero, it is only shown for customers in Germany and France IIRC. I have no idea why they did it like that, the backend clearly supports them all.
pzmarzly··on You Can Now Disable All AI Features in Zed
Counterexample: I went Sublime Text 2 -> ST3 -> Atom -> VSCode -> Zed, and every time barely noticed a difference in editing experience. The keymaps were >95% compatible after each of these switches. But I guess that was the happy path given these editors share lineage.

OTOH I was never able to switch to Jetbrains IDEs for long, because everything was too different, even after installing compat keymaps.

pzmarzly··on The Minecraft game score unexpectedly became big business for its composer
> who else has done enough that many people would have a chance of knowing their name?

Not sure if that counts, but I suspect ZUN (Touhou) and Toby Fox (Undertale) are recognised by more people for their music than for their games. A lot of people have heard e.g. Megalovania, Spider Dance, Bad Apple, UN Owen was Her, or Flowering Nights, but don't know a single about the games they are from other than the name.

pzmarzly··on Infomaniak comes out in support of controversial Swiss encryption law
I am fairly happy with Bulgarian company ClouDNS, they have a wide selection of ccTLDs for reasonable prices. https://www.cloudns.net/
pzmarzly··on PostgreSQL IDE in VS Code
Out of curiosity: how do you set up your CI checks (linter, formatting) if the opensource tools behave differently from JetBrains'? Do you use Qodana[0]?

One benefit of using VSCode/Sublime Text/vim/emacs language integrations is that I roughly know what command to run to get the same results in the terminal as I get in the editor. With JetBrains does-it--all IDEs, I have no clue.

[0] https://www.jetbrains.com/help/qodana/getting-started.html

pzmarzly··on Show HN: A free, privacy preserving, archive of public Discord servers
Check out Linen https://www.linen.dev/
pzmarzly··on Rustls Server-Side Performance
Also in referent news: "The State of TLS Stacks" by HAProxy devs https://www.haproxy.com/blog/state-of-ssl-stacks https://news.ycombinator.com/item?id=43912164

TLDR OpenSSL days seem to be coming to an end, but Rustls C bindings add not production ready yet.

pzmarzly··on DoorDash to acquire Deliveroo
FWIW there still are some popular European alternatives left, such as Bolt, Glovo or JustEat
pzmarzly··on Christianity was always for the poor (2024)
Also, it was spread BY the poor. Early Christians happily donated away all their wealth, thinking the Christ will come and bring an end to the Roman empire any day now.

There is a theory that this was a critical factor in how fast the early Christianity spread across the Roman Empire - that these newly-bankrupted believers had no choice but to travel and try recruit new members to the Church, in a Ponzi-scheme-like fashion (except nobody was cashing out).

pzmarzly··on Building a Linux Container Runtime from Scratch
Why not use any of the existing OCI Runtimes? They take well-defined[0] JSON description as input, and are pretty well-contained (single static binary). And because they are separate binaries, not libraries, you don't need to worry about things like thread safety or FD leaking.

[0] https://github.com/opencontainers/runtime-spec/blob/main/con...

pzmarzly··on Peer-to-peer file transfers in the browser
Arguably, only in BitTorrent V2, which released in 2017, wasn't supported by major clients until 2020, and is still not widely adopted.
pzmarzly··on 'Hey Number 17 '
I know some people working in low-cost sweatshops, where human labour is cheaper than automation, everyone is told they can be replaced within days, and the few machines you may find are usually older than the employees (or better yet, contractors) operating them.

Every sweatshop like that has high turnover rates, and micromanaging bosses that... let's say make sure these rates don't fall.

If these bosses are the target audience, then I guess the ad is well made? Identify bad employees faster so you can hire better ones quicker, yada yada. I can imagine how this promise can make someone want to buy the software, so fair play for the ad creators, I guess?

I really hope this project fails though.

pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
Isn't PCP the only protocol of these 3 that can reconfigure IPv6 firewall?
pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
I know your library does a lot, I have been your GH Sponsor for months ;) Thanks for reminding me about it, I wanted to up the amount. And to thank you for working on such cool stuff and making the ecosystem better.

I missed the upnp support, thanks for correcting my beliefs.

Which client with WebUI would you recommend the most? I tried using exatorrent and distribyted, but was running into bugs.

pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
qBittorrent + VueTorrent is not perfect, but it's hard to find anything better. If you haven't tried it, take a look.

https://github.com/VueTorrent/VueTorrent

pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
To be fair, circa 2010 all torrent clients got "good enough", so my wishlist above is just a wishlist (because torrents are cool and I like to see progress). I use (and sponsor) qBittorrent myself and have no plans to change.
pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
I am using qBittorrent, and from the top of my head:

- WebTorrent and WebSocket patch for qBittorrent is ready but not merged (waiting on libtorrent's decision),

- cross-seeding support is poor (a separate "cross-seed" binary can be used to set up hardlinks to fool qBittorrent into cross-seeding, but it cannot detect duplicates on its own)

- when it comes to torrent management, there is no way to group torrents into groups with common settings (important if you use multiple private trackers) - people recommend having multiple installations of qBittorrent side by side

- when it comes to reconfiguring NAT and firewall, qBittorrent supports UPNP IGD protoocl, but I am not sure about NAT-PMP and PCP

- I have never seen qBittorrent connect to a single IPv6 peer - so I don't know if the support is there

- download order - you can choose "download in order" or "download rarest first". I dont think "download in order" downloads footers, so mp4 files won't work (IIRC mp4 store metadata in footer, mkv in header)

pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
It is easy to make a torrent client, but very hard to make a good torrent client. A very good, or let's say "perfect", one, needs to support multiple transport protocols (TCP, "uTP" aka UDP, "WebTorrent" aka WebRTC), multiple discovery mechanisms (DHT, PEX, HTTP trackers, WebSocket trackers), multiple torrent formats (v1, v2, hybrid), should use the network optimally (max the speed without overloading the network - IIRC some clients measure average packet latency and if it starts going up, put some backpressure), resolve magnet URLs, set up port forwarding, reconfigure firewalls, offer API for *arr stack, be a good netizen (report stats correctly, send packets within the specs, do not spam - otherwise other clients will blocklist your in their code or config), implement many BEPs (mutable torrents are cool), be able to recover from interrupted state based on only the data that's on disk, have configurable downloading order (people want to start playing videos before they finish downloading, so you may want to e.g. download header and footer of each file first), and ideally detect duplicates between torrents (cross-seeding). And then there will be people throwing 2TB+ torrents at it (e.g. TLMC) to benchmark it, and saying your client is "literally unusable" if it doesn't handle it.

So, building a "perfect" torrent client from the ground up is a daunting task. But the "good" news is that nobody built such a "perfect" client just yet, so if you have some spare months of your time, you can take a shot at it. Or even better yet, open the issue tracker for one of popular clients or libraries, and add one of the missing features from the list above.

pzmarzly··on Building a BitTorrent client from the ground up in Go (2020)
Most clients try to set up port forwarding using UPnP IGD, NAT PMP, or PCP protocol, a lot of residential routers support one of them.

If you enable WebTorrent as a transport protocol (enabled in gotorrent, disabled by default in libtorrent), it should be possible to use existing public STUN/TURN infrastructure, but I don't know if any client does it yet.

In practice, you just have to accept that many connections will simply fail, and make your client move on to try a different peer.

← PreviousPage 3 of 11Next →