HNHacker News
TopNewBestAskShowJobs

Leif24

28 karma · joined April 2, 2024

submissionscomments
Leif24··on Solar power is becoming bigger than nuclear
Well, one potential issue that springs to mind is that DC 120V might overstress the diodes in the full bridge rectifier. With 120V AC only 2 of the 4 diodes are active at any one time and on average each of them is on only half the time - with DC only 2 of the diodes would be active, but they would be active 100% of time. Say the power supply needs to draw 1A of current, a reasonable good estimate for the voltage drop of a forward biased diode is 0.7V, so each diode that is on will dissipate 1A*0.7V = 0.7W. With AC, each diode would only be on half the time, meaning it would dissipate an average of 0.35W. With DC, 2 of the 4 diodes would be on constantly dissipating the full 0.7W each - this will result in the two diodes getting much hotter. Ask yourself how likely it is that most power supply manufacturers are designing in a safety margin of *2X*...

And that's just dealing with power supplies for electronics (which mostly just want low voltage DC) - if you get into appliances, while almost all will have a power supply that converts to DC, they usually have some circuits that use AC directly (think heating elements, safety critical sensors that use the 60Hz AC waveform as part of their feedback to make sure they haven't locked up, etc). Even appliances that convert the AC input straight to DC (think anything using an inverter to drive a motor or compressor) will often use a voltage doubler circuit to get a DC bus that is ~340V from the 120V AC input (it doubles the peak voltage, which is actually ~170V and not 120V in US) ... The voltage doubler circuit will not infact double a DC input, and the appliance will likely be most unhappy when it's DC bus is a lot lower than it was designed for.

Leif24··on Hackers activate automatic defrosting in supermarket fridges across Europe
If hackers can "affect sensor readings" before they feed into the control system, sure. But that is not read only access to the sensor... The trivially simple example is a webcam streaming the thermostat output. The hacker can watch that stream all day - it's not gonna cause any issues with the refrigerator. Even if the hacker had control of the stream, worst they could do is disrupt any monitoring system that uses the stream (e.g. make it appear that there is a fake issue or mask a real one) - but that is significantly lower risk than having remote access to trigger a semipermanent defrost cycle that spoils all the food.
Leif24··on Can you use autoregressive diffusion to generate market data?
> you should put money into them to get higher returns in the future.

Higher returns than what? I thought the whole point of buying broad market index funds was to simply get the market returns. For this thesis to make sense, you simply must assume that companies, in aggregate, make money - not that any particular company will follow past performance. If you don't think companies make money, then what are you doing buying equities?

Leif24··on The cost of lies: A Mineserver story
Huh? I've never participated in crowd sourced funding - so maybe I'm out of touch - but if I gave someone $100+ for a product and they then proceeded to tell me it's about to ship for multiple years I'd be pretty annoyed. That is a really shitty thing to do.

Would I lose sleep over it? No, but if I encountered a blog post or some other public interaction with this person that has been lying and gaslighting me about a product that was allegedly done for years I don't see a problem calling them out about. That is highly antisocial behavior and should be highlighted so that other people do not fall victim to it. Not to say mistakes aren't made and people don't change... but the repeated attempts to continue gaslighting about this product would indicate that this is not a one off oopsy.

Leif24··on Competitive Programmer's Handbook (2018) [pdf]
Idk of the details of that quote, but it does spring to mind that a gun is far better at range than a knife. So, closing that distance could be better than fleeing if your opponent has a gun and there is no cover for you to use while you escape (depending on the weapon and the wielder! I'd take my odds running away from, say, an amateur armed with a flintlock pistol... If it is a trained marksman with a rifle you'd be dead trying to run, whereas, if you are close, trying to close the distance and get control of the gun might - might - work). Increasing the distance between you and a person with a knife is always a smart move.
Leif24··on The software group Palantir paid just £2M in corporation tax in the UK in 2024
Ok, fair enough. To focus on one line item I mentioned ("What about the fractional cost of the machine that actually puts the water and beans together to brew the coffee (you could do some sort of analysis based on purchase price / total number of coffees made over useful lifetime)") - my understanding is a capital expense like this is typically handled by amortizing it from revenue over the course of a few years (super easy, just cost of machine / useful lifespan). Just need to rework the formula to solve for fractional cost per coffee brewed instead of per year. The same process can be used for, say, the "royalty and license fees" Starbucks UK was paying. Just convert from fee per year to fee per coffee. So, the net effect of your big change is just reworking all the accounting from "per year" figures to "per coffee" figures? How does that improve anything about the world (other than giving accountants some more work that they will charge handsomely to do)?
Leif24··on The software group Palantir paid just £2M in corporation tax in the UK in 2024
What do you mean by "make profit from that cup of coffee"? A cup of coffee is hot bean water in a cup - is profit simply the price Starbucks charges minus the cost of (water + bean + cup)? What about the cost of energy to heat the water? What about the fractional cost of the machine that actually puts the water and beans together to brew the coffee (you could do some sort of analysis based on purchase price / total number of coffees made over useful lifetime)? What about the small fraction of time the barista spends making and handing the coffee to you? What about the wear and tear on the machine (e.g. it breaks down X% of the time and costs $Y on average to fix) - does that factor into this "profit" you keep talking about? What about the rent on the building? If none of that matters, then you should spin up a competitor where you simply stand on a street corner hand your customers a cup, cold water, and some raw beans - I don't think you'll take too many of Starbucks customers.

All of these factors, and many more play into the "profit" of an operation like Starbucks, so how do you determine what the real true profit of that one cup of coffee is? It is much simpler to simply say "Hey, just hand over x% of profits at the end of the year" with some reasonable guidelines as to how accounting should be done (see stuff like GAP for example) than to sit down and determine what the individual "profit" is for every single individual cup of coffee sold at every single Starbucks location.

>Otherwise you could simply: Buy expensive stuff -> even out with profits, buy expensive stuff again, even out with profits and never pay taxes.

Yep, you could do this. Only problem is, uh, you never make any money. If you're running a hobby or something, that's fine, but most people owning business want to realize some profit...

If course there are still shenanigans you can pull between different tax districts, but someone somewhere needs to realize a profit at some point - otherwise they are running a jobs program and not a business.

Leif24··on The software group Palantir paid just £2M in corporation tax in the UK in 2024
> Just because you lost money doesn't mean you dont make profits until you earned back that money. Taxes should be paid every time you make money in the country your business operates in.

Over what timescale? For instance, if the first month I operate my business I have a loss of $50,000 (have to buy initial supplies and equipment, hire employees, etc.), but in the second month sales start taking off and I net $20,000 do I (a) have a total loss of $30,000 and pay no tax or (b) owe taxes on the $20,000 in month two?

This can be extended, e.g. profit and loss can be calculated on a weekly, daily, or even hourly basis. In the extreme case, this is no longer a tax on profit but on revenue (which essentially runs any business that has a smaller margin than the tax rate out of business since every dollar of revenue coming in results in more tax liability than the business actually nets).

Before you say "obviously profit and loss should be calculated in a yearly cadence" I would note that the choice of a year is fairly arbitrary and this taxation scheme would greatly disincentive any sort of capital allocations that would take more than a year to payoff (as a small example, would incentive leasing equipment annually vs. buying outright).

Leif24··on Anti-fraud tools can't keep pace with robocall scammers
It works if you only allow incoming calls from your contacts (e.g. whitelisted numbers) on friends/family/work line. If that number leaks, who cares? The random numbers will be blocked anyway. Probably would want to set it up so the 'public' line is silenced - just periodically check the VM box for anything important.
Leif24··on More than 135 open hardware devices flashable with your own firmware
Wow, the UX kind of sucks. I just wanted to browse the devices - no way to do that, only option is an 'ai' search. Ok, I type in "Show All Devices" and it canoodles for about 30 seconds (great use of compute resources) only to apparently come up with the phrase "Browse all devices available in the directory without specific project-based filters." that it then seems to feed into the actual search tool... which then shows no results.

Two thoughts - (1) is your device list some state secret that you have to hide behind a search functionality? Because it would be nice to be able to browse through it without needing to engage in some sort of 'search'. (2) can you provide another option besides an ai search that is so intelligent that it has superseded the ability to do wildcard searches?

Edit: same feedback, but for the projects section as well.

Leif24··on Nearly all UK drivers say headlights are too bright
>> You think kids aren't running across the street at night out in the country? Chasing a soccer ball?

>Only in well light areas, usually with a low speed limit too.

Not something I've commonly seen when driving, but certainly as a kid out in the country I ran around in the dark near the road.

>> People, deer, fallen branches, large roadkill, garbage cans blown into the road by the wind, the list goes on and on.

>Of those only people are at all common, and not on large roads. I have never even seen roadkill large enough to be unsafe to drive over.

>I have only once come close to hitting any of these on country roads in the UK. I have been dangerously dazzled by oncoming bright headlights all the time.

I've seen all of these multiple times (tbf the trash cans were in the city, not the country) out in upstate NY and rural Indiana and Kentucky. Maybe trees don't drop branches over in the UK, but over in the US that is certainly a hazard to be expected during and after severe weather.

To be clear, I agree that excessively bright running lights and people who can't seem to properly transition between hibeams and lowbeams are problem. I just don't agree with the sentiment from the gp that "[o]ut in the country, you still don't really need brighter headlights."

Leif24··on MicroPythonOS – An Android-like OS for microcontrollers
> If someone is interested in draw over a period, e.g. over one hour, you'd say it used 5Wh in that period.

Wh per hr? Let's just cut through the confusion and say it draws (J/s)Hr / Hr. :P

More seriously, if you are interested in energy the "correct" SI unit is J although in electrical applications [k/Mega/Giga]Whr is common. If you are interested in energy draw over a period, aka power, the "correct" and common unit is W. While 5 Wh per hour might seem simpler, it is equivalent to say this thing draws as much energy per hour as a device that that draws 5W would draw over one hour - needlessly redundant.

Leif24··on Consumer-grade routers on puny power supplies (2024)
If you aren't fussed about galvanic isolation there are many SMPS topologies that don't use transformers. Cheapest step down converter would be a simple buck regulator - no transformer needed!
Leif24··on Noise Filtering Using €1 Filter (2020)
At least with American currency it varies, e.g. one dollar is $1 while one penny is 1¢.
Leif24··on I mapped almost every USA traffic death in the 21st century
A great many people when they see a open straight road with little obstacles or pedestrians will go 45-50 MPH. A great many people when they see a 15 MPH sign will go 20 MPH. Pair that low speed limit with a "fast" road and you will end with many people going 45 MPH and many people going 20 MPH. This variance in speed, with some people going much slower than others can be more dangerous than if most went the same speed - e.g. if the limit were 45 MPH.

You are correct that people driving too fast make the road dangerous, but so does people driving too slow. Generally, from a safety point of view, you want the slowest speed at which almost everyone will actually drive at, as large variance in speed between drivers is dangerous. I think this is what the parent post was getting at: a speed limit too fast OR too slow will increase the number of accidents, keeping in mind that there will always be at least some drivers speeding.