Live data from Hacker News

Ask HN: What did you find out or explore today?

news.ycombinator.com

21–30 of 446 posts

Re: Ask HN: What did you find out or explore today?

#23

I found out I can automate my 5,12kWh house battery through local-only RS485 connection, and directly setting registers using ModbusTCP from Home Assistant. I then drafted an automation with hysteresis and damping that tries to aim for Net-Zero export/import (pv surplus/grid). It appears to work!

What brand/make of battery is that? I'm tentatively interested in home battery storage, but definitely not interested in shit that requires an app, an internet connection, and shitty saas spyware...

Re: Ask HN: What did you find out or explore today?

#24
post #2

I found out today that the location header of an HTTP redirect can be a tel:+ URI and phone's will actually ask you whether you want to call that number.

Links can have that as their href and it will also work as you'd expect. It's the telephone equivalent of the more well-known mailto: scheme

Now we should add a ?message= query string to be read out loud in the users voice.

Re: Ask HN: What did you find out or explore today?

#26
Been working on sheet cutting optimization for https://measuretocut.com today and it sent me straight down the cutting‑stock / 2D bin‑packing rabbit hole. What started as “wouldn’t it be nice if the site could tell you how to cut your wood sheets optimally?” turned into reading about NP‑hard problems and flipping through old operations research papers like I was cramming for an exam.

The funny part is how far the mathematical version of the problem is from what measuretocut.com actually needs to output. In reality you have kerf, ugly offcuts, and the fact that nobody wants a cutting diagram that looks like a circuit board. We really have to take into consideration a 2nd optimization, it needs to be an output that a person in a shop can glance at and immediately understand.

Re: Ask HN: What did you find out or explore today?

#27
That lodash-es doesn’t ESM lodash/fp, which means there is no straightforward way of using it with Vite after version 5. God help me.

I don’t even want to use it, I just want to get legacy code building on a modern version of Vite without rewriting a couple thousand lines of code. Aaaargh

Re: Ask HN: What did you find out or explore today?

#29
post #27

That lodash-es doesn’t ESM lodash/fp, which means there is no straightforward way of using it with Vite after version 5. God help me. I don’t even want to use it, I just want to get legacy code building on a modern version of Vite without rewriting a couple thousand lines of code. Aaaargh

Another fun fact - lodash/fp doesn't deduplicate with lodash when bundled. For a couple of months I was wondering why our app had bundled two copies of lodash. I dismissed it as a measurement artifact at first. It took so long to realize there was actually two copies of lodash and it was because one developer on our team had a preference for fp syntax.
Post reply on HN