HNHacker News
TopNewBestAskShowJobs

tuetuopay

1,764 karma · joined December 23, 2021

submissionscomments
tuetuopay··on Samsung Magician disk utility takes 18 steps and two reboots to uninstall
Ever tried to uninstall an antivirus on windows? Or any program that does not want to be uninstalled? I've had programs whose uninstall.exe was no different than /bin/true.

On this point, Windows is no better than macOS: the OS relies on the goodwill of the developers to provide working uninstallers. The only protection is a world where the OS provider does the application packaging: Linux repositories, Mac App Store, Windows Store. And even then, apps are still free to litter your filesystem at runtime, unless they're heavily sandboxed. Then FlatPak it is, or iOS apps or Android apps. Not great.

tuetuopay··on How to turn anything into a router
Except actual routers don't handle the traffic on the CPU, they have dedicated hardware to actually handle the packets. The CPU basically runs the OS, configures the hardware router, and does housekeeping tasks (e.g. ARP or FDB expirations, NAT cleanup, etc). The only packets that ever reach it are "trap to CPU" situations that don't require acceleration as those are rare or expensive to implement in hardware (e.g. better suited to a CPU). Those usually include management protocols (ICMP, ARP, NDP, STP, etc) or packets with unknown destination (e.g. the first packet to an IP that requires ARP resolution).

That's how you can have multi-Gbps on a router with a 200MHz MIPS CPU. Or Tbps on a router with a quad-core Xeon.

tuetuopay··on How to Turn Anything into a Router
The bottleneck exists, but is a non-issue for most home use as most consumer connections are wildly asymmetric, usually biased towards download.
tuetuopay··on How to Turn Anything into a Router
The TL;DR is to have two vlans on the cable from your switch (called a "trunk"), "lan" and "wan", carrying the respective LAN and WAN networks. Then, on the Pi, create two vlans on the underlying Ethernet interface. Then those two VLAN interfaces can be configured just like the LAN and WAN interfaces of the router. On the switch, you’d dedicate one port to the WAN by adding it to the WAN VLAN without tagging, and the other interfaces do the LAN VLAN, also untagged.
tuetuopay··on How to turn anything into a router
I’ll pick nftables over iptables any day, it’s leagues better (granted, it’s not hard). The nftables wiki is great, as the syntax and modules are documented in a single easy to read page.

As an added bonus, you get atomic updates of all chains for free.

Granted, for simple usecases, ufw or firewalld may be simpler though.

tuetuopay··on Entso-E final report on Iberian 2025 blackout
In this very specific case, battery storage would not have helped (in fact, it would have worsened the problem). One of the issues in the failure is renewables, but not because of intermittence. It's because of their ~infinite ramp and them being DC.

Anything that's not a spinning slug of steel produces AC through an inverter: electronics that take some DC, pass it through MOSFETs and coils, and spits out a mathematically pure sine wave on the output. They are perfectly controllable, and have no inertia: tell them tout output a set power and they happily will.

However, this has a few specific issues:

- infinite ramps produce sudden influx of energy or sudden drops in energy, which can trigger oscillations and trip safety of other plants

- the sine wave being electronically generated, physics won't help you to keep it in phase with the network, and more crucially, keep it lagging/ahead of the network

The last point is the most important one, and one that is actually discussed in the report. AC works well because physics is on our side, so spinning slugs or steel will self-correct depending on the power requirements of the grid, and this includes their phase compared to the grid. How out-of-phase you are is what's commonly called the power factor. Spinning slugs have a natural power factor, but inverter don't: you can make any power factor you want.

Here in the spanish blackout, there was an excess of reactive power (that is, a phase shift happening). Spinning slugs will fight this shift of phase to realign with the correct phase. An inverter will happily follow the sine wave measured and contribute to the excess of reactive power. The report outlines this: there was no "market incentive" for inverters to actively correct the grid's power factor (trad: there are no fines).

So really, more storage would not have helped. They would have tripped just like the other generators, and being inverter-based, they would have contributed to the issue. Not because "muh renewable" or "muh battery", but because of an inherent characteristic of how they're connected to the grid.

Can this be fixed? Of course. We've had the technology for years for inverters to better mimic spinning slugs of steel. Will it be? Of course. Spain's TSO will make it a requirement to fix this and energy producers will comply.

A few closing notes:

- this is not an anti-renewables writeup, but an explanation of the tech, and the fact that renewables are part of the issue is a coincidence on the underlying technical details

- inverters are not the reason the grid failed. but they're a part of why it had a runaway behavior

- yes, wind also runs on inverters despite being spinning things. with the wind being so variable, it's much more efficient to have all turbines be not synchronized, convert their AC to DC, aggregate the DC, and convert back to AC when injecting into the grid

tuetuopay··on XML Is a Cheap DSL
My immediate thought. Except not "vanilla" YAML, but a safer stricter subset (iirc some people published a spec about it): no implicit conversion, no norway problem, etc. If only this gained actual traction.

The JSON in the article is a bit, let's say, heavy on the different objects and does not try to represent anything useful with most keys. All the things like `greaterOf`, `sum`, etc are much better expressed as keys than `{"children": [{"type": "greaterOf", ...}]}`.

Basically something that feels an reads like "freeform" yaml, yet that has an actual spec.

tuetuopay··on The MacBook Neo
Should be fast enough to swap in a browser page I guess. Overall you're right that it's the wrong device for memory hungry applications, but it's not the target audience.
tuetuopay··on The MacBook Neo
> The SSD in the Neo only manages around 1,500 MB/s in sequential benchmarks, it's not an impressive drive.

That's sequential, not what you want for swap, but already a good start. I agree that it's not impressive, but already leagues ahead of a SATA SSD. And for swapping a 8GB machine it's more than enough (when the swap pattern is sequential though): you swapped your whole system memory in 3 seconds, which is impressive.

> The only eMMC options I'm seeing are the $300 Chromebooks? Which is no where close to "pretty much all laptops." In fact it'd be "pretty much none of the laptops"

Then it's good the situation improved, genuinely! Less e-waste being on the store shelves. Pretty sure windows is nigh unusable on eMMC. And yes, those were sold alongside chromebooks, but at a markup of a "real computer" despite having roughly the same internals.

Another thing that could impact, though, is availability in different markets. I am in France, and the offerings are perhaps worse than in the US? (quite likely, in fact). Add to that the usual price markup where US companies tend to do, at best, 1 USD = 1 EUR, and we get worse machines for the equivalent price range.

tuetuopay··on The MacBook Neo
"- yeah I have a macbook" "- what, an air?" "- no a macbook" "- ..?" "- the one in colors, not the one-port 12 inch one from 2015 but you know it just released!"

This already happened in 2015, they probably don't want for it to happen again.

tuetuopay··on The MacBook Neo
Honestly the 8GB is not really an issue. As opposed to basically every other computer on this price range, Apple puts real storage in their machines, making a well-tuned swap simply transparent. I'd also bet they have very performant hardware engines for memory (de)compression.

A few years ago, my parents asked me for a laptop for my sisters, for university use. We targeted this price range. It's shocking but pretty much all laptops from Dell, HP, etc come with some form of eMMC storage. And I'm not speaking about the other specs like display or build quality. We ended up buying second-hand M1 and M2 macbook airs, and both I and my sisters are very happy about it.

(also, as the "tech support guy" of the family, I'm oh my so happy about them not running windows)

tuetuopay··on 10% of Firefox crashes are caused by bitflips
Just check your memory with memtest.

Two years ago, I've had Factorio crash once on a null pointer exception. I reported the crash to the devs and, likely because the crash place had a null check, they told me my memory was bad. Same as you I said "wait no, no other software ever crashed weirdly on this machine!", but they were adamant.

Lo and behold, I indeed had one of my four ram sticks with a few bad addresses. Not much, something like 10-15 addresses tops. You need bad luck to hit one of those addresses when the total memory is 64GB. It's likely the null pointer check got flipped.

Browsers are good candidates to find bad memory: they eat a lot of ram, they scatter data around, they have a large chunk, and have JITs where a lot of machine code gets loaded left and right.

tuetuopay··on System76 on Age Verification Laws
We could argue on the technical feasability all day, as non-kvm qemu does not need any special permission to run a VM (albeit dog slow).

I honestly don't really agree on the difficulty, as if this becomes a commonplace way to bypass such laws, you can expect tiktok to be full of videos about how to do it. People will provide already-installed VMs in a turnkey solution. It's not unlike how generations of kids playing minecraft learnt how to port forward and how to insatll VPNs for non-alleged-privacy reasons: something that was considered out of a kid's reach became a commodity.

> None of this stuff is ever going to be Fort Knox. Locks are for keeping honest people honest.

On that we agree, and it makes me sad. The gap between computer literate and illiterate will only widen a time passes. Non motivated kids will learn less, and motivated ones will get a kickstart by going around the locks.

tuetuopay··on System76 on Age Verification Laws
The harm is well above (even that is arguable), but the probability of getting harmed is so much lower it's not even comparable.

Alcohol? Yeah one or two too many drinks and you're in the hospital getting your stomach vacuumed. Driving? Blink and you run over a kid. Internet? You can spend evening and nights over there and not be harmed in any way.

We have full generations of kids that can now be studied about the effects of the internet, starting with millenials. I won't pretend the Internet is a better place now than it was when I was a teen, but it appears to me the "dangerous" things are more focused and concentrated (at least for kids): social networks. It's still a minefield, but with leagues between two mines.

Porn has always been the topic touted for children safety, because it's scary and resonates with conservatives and religious people. Access to is is roughly the same today than it was then, and arguably less dangerous today because the dirty stuff is hidden deeper, thus less likely to stumble upon.

But other than porn, the thing that changed the most is social networks. Addiction, bullying, etc. Facebook 15 years ago was a not serious place. The equivalent today is the best place to get roasted by fellow kids and bullied 24/7 while not being able to get off the hook. The damage is psychological, which is insidious, but not systematic. Not every kid will get bullied, not every kid will be addicted to the algorithm(tm), etc.

In the end, education plays a bigger role than simple age verification. Stimulate your kids, give them things to do other than doomscrolling, and get them on the dark corners of the internet to give them curiosity about the world and un-sanitized stuff (hacking in all forms, etc).

tuetuopay··on System76 on Age Verification Laws
Heh that's already what parental controls do (granted, the website don't report the content, and it's based on blacklists), but they are trivial to bypass. Even the article mention it:

> The child can install a virtual machine, create an account on the virtual machine and set the age to 18 or over

It's precisely how I worked around the parental control my parents put on my computer when I was ~12. Get Virtualbox, get a Kubuntu ISO, and voilà! The funniest is, I did not want to access adult content, but the software had thepiratebay on its blacklist, which I did want.

In the end, I proudly showed them (look ma!), and they promptly removed the control from the computer, as you can't fight a motivated kid.

tuetuopay··on Claude is an Electron App because we've lost native
Conversely, an app using native toolkits (at least the Windows ones) will have better chances of running fine under Wine. I've recently had the (dis)pleasure of trying to run some .Net monstruosity with Wine, and oh my got did it not work for obscure reasons.

But overall yeah, from a compatibility perspective, nothing beats Electron. I'm not sure we'd ever get an official Discord client on Linux otherwise.

tuetuopay··on I'm reluctant to verify my identity or age for any online services
Are you really exposed to those concepts for daily Zoomer usage? I mean, you can spend your whole normie life using an Android phone never going to the file manager.

(fwiw it's been a while since iOS also have those concepts)

tuetuopay··on We Will Not Be Divided
Sam Altman is lying by omission. It’s been confirmed [1] that OpenAI agreed to "lawful" use of the models. Since it’s the DoW, they can make pretty much anything lawful by invoking "national security".

[1]: https://x.com/UnderSecretaryF/status/2027594072811098230

tuetuopay··on New accounts on HN more likely to use em-dashes
Use dashes and the problem goes away! Well, you gain the LLM witch-hunt, but heh, no free lunch.
tuetuopay··on New accounts on HN more likely to use em-dashes
I felt it quite a while back (more than 10 years ago), when, in high school, I learnt LaTeX and discovered Beamer. I naturally proceeded to make all of my presentations with it, including the rehearsal for a big competitive French exam. The person reviewing the presentation advised me to dirty it up a bit, otherwise nobody would believe that my father wasn’t a PhD researcher that did the work for me.

That was a bit saddening honestly. I kept the presentation as-is as I didn’t knew how to willfully screw up a Beamer presentation, and I would not touch PowerPoint (fortunately the final jury believed me).

Cheating had always been an issue before LLMs, but now we’re back to the same old tricks: just make sure to add a mistake or two to hide you copied the homework on your neighbor. It’s a shame because I kinda like learning the subtleties of foreign languages, and as a non-native English speaker, it’s quite rewarding when going online!

tuetuopay··on 100M-Row Challenge with PHP
Well leetcode asks you to implement the data structure, not how and when to use which data structure. I don’t need to know how to implement a bloom filter on a whiteboard off the top of my head to know when to use it.
tuetuopay··on Blue light filters don't work – controlling total luminance is a better bet
Well he goes on to rant about how it changes the colors displayed by the monitor, so a publisher cannot show the intended color (cyan in the example).

Except he completely ignores that’s actually expected for a cyan object to be duller at night: it’s the albedo of the object and the perceived color will dramatically changed between daylight and nightlight. So the screen is more contextually correct by toning down cyan, and the colors we perceive will match (and reinforce) the circadian rythm: the user will recognize cyan.

Of course, doing color-sensitive work should not be done with such filters.

tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
Well, yes, we pay "cash" in the sense we pay direct debit. So literally the same as you, we tap the card. Except we don't have to keep track of the credit balance at the end of the month: money's taken directly from the account. The bank app shows you have enough? You're set.

As to how, in the financial term: we europeans don't really have the credit culture the US has. Having a credit is something very last resort, especially for "trivial" stuff (e.g. christmas shopping, to keep your example). Most europeans will have one or two credits tops: real estate loan, and sometimes car loan. Companies (mostly US) start offering payments spread over multiple months, but it does not really have a high penetration (at least in France), being in small useless debts is something we avoid like the plague.

And how do we have enough money in the bank? We just shop after payday, not after. Or, for most people, we keep a somewhat constant amount in the daily account. It's just another way of managing your own money.

tuetuopay··on Oxide raises $200M Series C
Think "AWS in a box", with the high level features you’d get there. API, Terraform, "managed" products like load balancers, database, etc. You get all that in a turnkey rack delivered to the datacenter or office doorstep.

It’s a step higher than a vSphere/Proxmox cluster.

tuetuopay··on Oxide raises $200M Series C
Having worked in the space, 6kVA is the norm from 10-15 years ago, 12kVA is the standard for regular compute workloads. With HPC/AI all bets are off though.
tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
You forgot the part where they send you two distinct snail mails, one with the username and one with a one-time password, for a double chance the post will lose one of the envelopes! Or the part where they silently truncate your new password to 6 digits because muh security.

I guess France and Germany are siblings in kafkaesque administrative shenanigans.

tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
They need much much less data than your phone. They could process several transactions with less data it would take for your phone to load the HTML of the payment page, let alone the Javascript or the bank's logo.

Also, such terminals often use multi-carrier data plans that can use the best carrier available, while your own phone is stuck with one of the options (of course, you always have the worst one).

tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
And I thing the misunderstanding here is that Europeans don't really use credit cards: we use the term "credit card" when we should use "debit card", but that's language for you. Literally, you have to go out of your way to get an actual credit card instead of the ubiquitous debit card everybody has.

And in Europe, when people hear Mastercard or Visa, they just associate the name with refused payments at points of sale depending on the luck they had with the merchant, or the foreign country, etc.

I do agree that in this case, picking MC/VISA is not really important. When I changed banks a few years ago, it so happened that I switched from a Visa to a Mastercard. Nothing changed save for the logo on the card.

tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
Speculation: Europe has a lower risk management cost than the US when it comes to card transactions, making it more profitable.

Smartcards with PINs were ubiquitous much much sooner (it being a French idea did not help for US market penetration), which means today the magnetic stripe on our cards is little more than decoration. Seriously, I'm 29 and I've yet to see a single magstripe payment here (while it was daily when I went to the US).

Also, we pretty much only have debit cards (don't know why, but don't know why I would want a credit card). This is even less risk for both the network and the merchant and the bank, reducing issues for all links in the chain.

Or the fact that Europe has 100M extra people in it, and a lot of countries seldom use cash nowadays.

tuetuopay··on Europe's $24T Breakup with Visa and Mastercard Has Begun
The idea is for the US to not be able to shutdown CC transactions at points of sale in Europe on a whim. All cards in europe are dual-issued under Visa or Mastercard, and under a national card payment processor. In France, that's CB (Carte Bancaire). When you pay in europe, it uses the European network. Outside, it uses Visa/Mastercard.

So sorry, we do definitely get what this entails :)

← PreviousPage 3 of 20Next →