HNHacker News
TopNewBestAskShowJobs

unilynx

1,604 karma · joined August 8, 2017

Developer at WebHare. To contact append Gmail to the username
submissionscomments
unilynx··on How do I pay the publisher of a web page?
SEPA is not free - it's just often free for consumers (and likely until your bank considers your usage patterns to be 'too business like')

and it can't be free.. even though the systems might have no further marginal cost per transaction, banks still need to do anti-money laundering checks, and someone's gotta pay for that

unilynx··on Web Locks API
'using' fixes having to do cleanup in a finally {} handler, which you can a) forget, and b) often messes up scoping of variables as you need to move them outside the 'try' block.
unilynx··on Web Locks API
> navigator.locks.request("my_resource", async (lock) => {

This would be so much more readable with `using`

  {
    using lock = navigator.lock('my_resource');
    await do_something();
    await do_something_else();
  }
(https://github.com/tc39/proposal-explicit-resource-managemen...)
unilynx··on Understanding Round Robin DNS
> So what happens when one of the servers is offline? Say I stop the US server:

> service nginx stop

But that's not how you should test this. A client will see the connection being refused, and go on to the next IP. But in practice, a server may not respond at all, or accept the connection and then go silent.

Now you're dependent on client timeouts, and round robin DNS will suddenly look a whole lot less attractive to increase reliability.

unilynx··on Leveraging Class E address space to mitigate IPv4 exhaustion issues in GKE
class E can't ever be used on the public internet anyway. too many existing firewalls are already configured to drop anything with a source address in range 224.0.0.0-255.255.255.255 (class D and E)
unilynx··on The C23 edition of Modern C
well in a way all processors commonly use them... as big-endian is also the network byte order
unilynx··on Winamp Legacy player source code
> If I create a fork of a public repo on GH, I require a license to distribute it because a public repo can be forked or downloaded by anyone

Why?

The users that clone or fork your fork of the original repository are covered by the original repository's "license" GitHub grants itself, not yours.

unilynx··on CrowdStrike ex-employees: 'Quality control was not part of our process'
What would you expect the GDPR to say? This is allowed as long as the GDPRs requirements are followed
unilynx··on The "email is authentication" pattern
except that those instructions will be handed out by phishers
unilynx··on OrbStack: The fast, light, and easy way to run Docker containers and Linux
I was responding to 'people insist on using Linux specific stuff instead of UNIX'. As far as I can tell there is no way to do containers without doing highly platform specific stuff. It would be very useful if the platforms worked towards a common 'more than chroot' thing.

As far as not really needing it, it's not like computers themselves are anywhere near the bottom of Maslow's pyramid, but that doesn't make them any less useful

unilynx··on OrbStack: The fast, light, and easy way to run Docker containers and Linux
To mirror the sibling comment, where's the POSIX container/zone/vm whatever specification? If the BSDs and Linux can agree on a meaningful subset, macOS might actually follow
unilynx··on The web's clipboard, and how it stores data of different types
It requires iCloud but the data itself is transferred directly over Bluetooth or local WiFi (like airdrop) so it shouldn’t hit any Apple servers.

https://support.apple.com/en-gb/guide/security/secf78dbe639/...

unilynx··on Firefox Browser Ported to HaikuOS
Also they barely worked for anything non trivial, let alone what we now call SPAs
unilynx··on Node.js adds experimental support for TypeScript
If this feature ever becomes the default (ie not behind a flag) - how will the NPM ecosystem respond? Will contributors still bother to build CJS end EJS versions when publishing a NPM module, or just slap an 'engine: nodejs >= 25' on the package.json and stop bothering with the build step before pushing to NPM ?

I personally would very much prefer if NPM modules that have their original code in TS and are currently transpiling would stop shipping dist/.cjs so I unambiguously know where to put my debugger/console.log statements. And it would probably be very tempting to NPM contributors to not have to bother with a build step anymore.

But won't this start a ripple effect through NPM where everyone will start to assume very quickly 'everyone accepts TS files' - it only takes one of your dependencies for this effect to ripple through? It seems to me that nodejs can't move this outside an opt-in-experimental-flag without the whole community implicitly expecting all consumers to accept TS files before you know it. And if they do, it will be just months before Firefox and Safari will be force to accept it too, so all JS compilers will have to discard TS type annotations

Which I would personally be happy with - we're building transcompiling steps into NPM modules that convert the ts code into js and d.ts just to support some hypothetical JS user even though we're using TS on the including side. But if node accepts .ts files we could just remove those transpiling steps without ever noticing it... so what's stopping NPM publishers from publishing js/d.ts files without noticing they broke anything?

unilynx··on A Gentle Introduction to SAML
One advantage of SAML over OIDC - they standardized IDP initiated login, so you can skip the "login using..." button when sending an already logged in user to a third party system.

But the various XML canonicalization specs, XML transforms, embedding X509 certificates, all the mess they created to be able to embed signatures inside XML messages instead of just sending them separate from the assertions, is horrible to get right and will be a source of more security bugs for many, many years to come. https://www.google.com/search?q=canonicalization+CVE+SAML

unilynx··on RegreSSHion: RCE in OpenSSH's server, on glibc-based Linux systems
It's always easy with hindsight to tell how to prevent something. In this case, a comment might have helped why the #ifdef was needed, eg

  void CloseAllFromTheHardWay(int firstfd) //Code here must be async-signal-safe! Locks may be in indeterminate state
  {
    struct rlimit lim;
    getrlimit(RLIMIT_NOFILE,&lim);

    for (int fd=(lim.rlim_cur == RLIM_INFINITY ? 1024 : lim.rlim_cur);fd>=firstfd;--fd)
      close(fd);
  }
Although to be honest, getrlimit isn't actually on the list here: https://man7.org/linux/man-pages/man7/signal-safety.7.html

But I hope that removing the comment or modifying code with a comment about async-signal-safe might have been noticed in review. The code you quoted only has the mention SAFE_IN_SIGHAND to suggest that this code might need to be async-signal-safe

unilynx··on Nsss: A secure NSS-like implementation for static linking
but the protocol could still be a superset, and musl wouldn't invoke the new parts of the protocol.
unilynx··on The curious case of the missing period
Agreed.

But this is SMTP, I have no doubt there are gateways out there that will reencode the mail and put the dot back in the wrong place, eg in the name of wrapping all URLs behind a phishing-warning-page

unilynx··on The curious case of the missing period
How so? Quoted printable doesn't require the dot to be encoded.

Maybe you're thinking of base64 encoding?

unilynx··on A fourteen-day free trial ain’t gonna cut it
Would it be possible to always offer the last 14 days of stats, but only allow a login/access to that data eg 3 or 7 times ?

I wonder if that might fit the average pattern of a casual stats user a bit better (only actually checking the data when asked by the manager) to keep them hooked for a much longer 'wall clock' time and get them to eventually convert (I've been depending on this for half a year now)

unilynx··on A fourteen-day free trial ain’t gonna cut it
Or under any realistic payment system that end users would want to use

No offense, but micropayments have to be the most often suggested non-solution to any problem since the "402 Payment required" code was added to the HTTP spec

unilynx··on A BSD person tries Alpine Linux
The question was why people may find Linux inconsistent. The distributions are very much part of that, and even within a distribution, just a 2 year later LTS might have wild differences because of the kernel promoting new mechanisms

It may not be that much of a problem in practice, I deal with multiple distributions because for new servers, we pick 'm based on expected future support, and they're only a bootstrap to docker/podman which is the great 'equalizer'. So the inconsistencies are only a problem until our Ansible scripts have learned the difference and when we need to debug an issue. Not that often fortunately, once the configurations are in place things are generally stable.

unilynx··on A BSD person tries Alpine Linux
Ubuntu LTS 18 & 20, and decided to move to Rocky 9 for the future.
unilynx··on A BSD person tries Alpine Linux
firewalls. is it iptables, nftables? what is iptables-nft and iptables-legacy doing in this mix? or was I supposed to manage them with firewallctl or ufw?

network settings. if-up scripts? NetworkManager? Are we already supposed to use that systemd-network thingy or is it still not ready ? I just need to add an IP address in addition to the one given by DHCP...

who is managing /etc/resolv.conf today?

(my regular frustrations when dealing with both Ubuntu and Rocky Linux hosts..)

unilynx··on Piet: Programming language in which programs look like abstract paintings (2002)
|0

There are just too many ways in JS to say Math.floor

unilynx··on ChatControl: EU ministers want to exempt themselves
With the EU having a total €150B budget in a €19.350B GDP economy it's probably still noise in your total taxes.
unilynx··on A new kind of MD5 collision
Impressive. Can't have enough nails in the MD5 coffin I guess.

Just had to verify it myself

  echo -n TEXTCOLLBYfGiJUETHQ4hAcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak | md5
  faad49866e9498fc1719f5289e7a0269

  echo -n TEXTCOLLBYfGiJUETHQ4hEcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak | md5
  faad49866e9498fc1719f5289e7a0269
unilynx··on macOS Sonoma 14.4 might break Java on your machine
But it will soon be once the EU DMA changes require support for alternative browser engines. Was this change an attempt to lock down too wide permissions a JIT might set up and perhaps really intended for iOS instead of macOS?
unilynx··on The perils of pause(2) (2023)
A much cleaner and portable solution to the races triggered by duplicated and early signals is to set up a pipe and have signal handlers write the signal number to that pipe.

A write syscall is permitted in a signal handler and now you can (p)select/poll the signals like any other file descriptor

unilynx··on A reasonable configuration language
In this specific case it's not redundant in C - without the commas, the strings would be merged together.
← PreviousPage 2 of 19Next →