HNHacker News
TopNewBestAskShowJobs

alright2565

1,700 karma · joined January 9, 2021

submissionscomments
alright2565··on Convert an existing wired doorbell into a smart doorbell using ESPHome
I wouldn't recommend crimping your own hookup wires as a hobbiest, especially not dupont. The unofficial tools for dupont mostly all suck, and the official tools are $400+[1].

[1]: https://www.mattmillman.com/info/crimpconnectors/dupont-and-...

For my own crimping of dupont, I'm using the Iwiss SN-025 which works OK, but even then I've mostly switched to Mini-PV because I was tired of the dupont receptacles wearing out after 5 cycles.

The pictured SN-28B is definitely not good for dupont, which has a totally round cable holding ring. Amazon/Aliexpress sellers don't know anything about what they are selling.

alright2565··on Small claims court became Meta's customer service hotline
When I contact Google Fiber's chatbot about an outage, it will let me know they are aware and give me a rough ETA.

First time I've experienced a useful chatbot.

alright2565··on Versioning FreeCAD Files with Git (2021)
2 minor ui features are in Ondsel & latest git that make a huge difference:

- auto-constraints. If you select a line and click "constrain", it automatically chooses a length constraint. If you select 2 lines, you get an angle constraint. A circle, a radius constraint.

- constraining on drawing. When you draw a rectangle, you can immediately type one dimension, press tab, type the other dimensions. You don't need to manually select constraints.

alright2565··on Ask HN: If you are starting in 2024, what is the most productive solo dev stack?
The strapdown website works surprisingly well with Javascript disabled & is less than 50KiB excluding images. It does take (just barely) perceptibly longer to load than a traditional site.

But I've generally seen sites using this strategy to be a lot more bloated and slow, so please be considerate of that if you can.

alright2565··on Ask HN: If you are starting in 2024, what is the most productive solo dev stack?
NextJS does more than create-react-app, but you're not required to use all those extra features. You can use it to just escape the tedium of configuring JS tooling.
alright2565··on Fighting an anti-doping finding
What's worse (and likely the reason this is being posted here today) is the announcement that the global organization, WADA, is appealing the country-level organization's (UKAD) decision in this case: https://www.telegraph.co.uk/cycling/2024/06/07/lizzy-banks-w...
alright2565··on The right not to be subjected to AI profiling based on publicly available data
> as it's widely believed that the optimal % is more than zero (not "too low" but also not "too high", whatever that means).

The optimal ratio is very close to 0[1]:

    +-----------------------+---------------------+
    |         Range         | Average Utilization |
    +-----------------------+---------------------+
    |  300-579 (Poor)       |        82.1%        |
    |  580-669 (Fair)       |        56.1%        |
    |  670-739 (Good)       |        35.2%        |
    | 740-799 (Very good)   |        14.7%        |
    | 800-850 (Exceptional) |        6.5%         |
    +-----------------------+---------------------+
Basically the concept is that if you're already borrowing as much money as people are willing to lend you, those people probably have a good reason to not want to lend you more.

Also, as a bonus, the utilization component doesn't have history. If you're about to take out a loan, you can just borrow/pay back as much debt as you want the previous month for an ideal utilization.

[1]: https://www.experian.com/blogs/ask-experian/credit-education...

alright2565··on Why do electronic components have such odd values? (2021)
Not much reason to use aggressive compression when wires have many orders of magnitude more bandwidth than bluetooth. And inconsistent latency is also not an issue when you control the whole network & don't need to share it with anyone else.
alright2565··on Why do electronic components have such odd values? (2021)
What about shunt resistors? I can pretty easily get a 1% 5mΩ resistor, but they don't look to me like they are constructed in the same way as a generic resistor.
alright2565··on 60 kHz (2022)
It is baffling that in 2024 that my appliances don't have a battery backup for the time. It costs less than 50 cents and requires the battery be changed no more than every 20 years.

But still every time the power goes out I need to reset my clocks.

alright2565··on A myopia epidemic is sweeping the globe
I'm aware of those--I have one, except mine is 5x brighter. It's just not the same.

It doesn't cast the gorgeous shadows sunlight does. It creates glare that makes having the panel surface directly visible, no matter how obtuse the angle, unacceptable.

Sunlight's parallel rays make it so that it's not your window that's bright, it's the things that your window shines light on that are lit up. You can look at your window or the sky all day without any discomfort. And that's just not the case for traditional light panels.

alright2565··on A myopia epidemic is sweeping the globe
This is a rabbit hole :)

In short, no, unless you have tens-of-thousands[1][2] to spend on this panel. Rays of sunlight are parallel, an effect that very difficult to emulate.

There are folks who have developed DIY versions, with impressive results[3], but in that case you're trading off way more effort, potentially requiring maintenance, and a lot more space required.

[1]: https://www.coelux.com/en/home-page/index [2]: https://hometronics.com/about-us/press/item/coelux-the-40000... [3]: https://www.youtube.com/watch?v=6bqBsHSwPgw

alright2565··on An air quality model that is evolving with the times
> used to chew on lead fishing weights

Chunks of lead just aren't that bad. https://doi.org/10.2146/ajhp060175 lists common sources of lead poisoning, and none of them are lead weights.

Common sources involve things like airborne lead powder (from grinding or smelting), lead compounds dissolved in food & water, paint, and lead in soil.

alright2565··on My new PSU burns out – I fix it, and torture it by cracking water
For a hobby project like this, I don't think you need utmost certainty.

And if you're building aircraft, why are you shopping on Aliexpress?

alright2565··on My new PSU burns out – I fix it, and torture it by cracking water
> 2.5A primary side fuse (integrated into the AC inlet) did not melt

This is a current-limited power-supply right? Test your fuse! Would not be the first time a fuse-shaped wire is sold[1]

[1]: https://youtu.be/B90_SNNbcoU?si=HwDCRvz7E-aCR1rQ&t=431

alright2565··on The Fall of the House of Etsy
You can have a conversation with the vendor about the product. Ask them about their techniques, and where they source materials! Folks are happy to talk about stuff they're passionate about, and making earrings isn't exactly rocket science with lots of proprietary information.
alright2565··on Self-hosting keeps your private data out of AI models
> 2FA pushed me out of github

I've seen several folks have this opinion... and it just doesn't make any sense?

SMS for 2FA is problematic for many reasons, but Github offers TOTP & U2F/passkey 2FA, which have zero privacy implications.

alright2565··on Carmakers Will Give Your Location to Police Without a Warrant, Senators Say
I don't think this sort of casual lawbreaking is good for society. The law should either be changed or always enforced, rather than creating issues with (especially racially) selective enforcement and normalizing this 10-over behavior for city streets where it can easily be life-and-death for folks outside of cars.
alright2565··on CADmium: A local-first CAD program built for the browser
In effect, these are the same thing. If you try and deliver the software as a cloud service, you'll need to make the part that ties into your auth & observability stack, at the very least, open source.

Cloud companies are unlikely to be comfortable doing that.

alright2565··on CADmium: A local-first CAD program built for the browser
It's elastic license unfortunately: https://github.com/MattFerraro/CADmium/blob/main/LICENSE.md

Which is a shame because the AGPL has nearly the same effect & the bonus of unjustifiably terrifying big-corp legal teams.

alright2565··on CADmium: A local-first CAD program built for the browser
I think this is amazing. I'd love to get to the point where we are with open source EDA with open source physical CAD.

> Another downside is that solving this kind of matrix equation gets prohibitively slow when you have a lot of unknowns, which gives rise to the conventional wisdom that individual sketches should be small and simple.

I've gotten quite deep into this, and this is really not a problem in practice[1]

1. FreeCAD's main issues with constraint performance come from a redundant & unnecessary GUI layout algorithm, which falls over with just a few hundred constraints.

2. Eigen's sparse QR decomposition benchmarks at 18s for 2200 constraints, which is really not too bad

3. There are sparse QR decomposition libraries that can handle 500k-1M constraints in about 18s. I can't imagine a CAD sketch with more than a few thousand constraints.

[1]: https://github.com/FreeCAD/FreeCAD/issues/11498#issuecomment...

alright2565··on Raspberry Pi Ltd is considering an IPO
You're not looking in the right places. I've had great experiences with EmbeddedTS, and their kernel seems to be close to upstream.
alright2565··on Photography Laws in Germany
> For example, North Korea has a suitable freedom of panorama law, while South Korea's law, limited to non-commercial uses, is not sufficient for Commons. As a result of the practice of applying the more lenient law, we would generally retain photos taken from North Korea of buildings in South Korea (e.g., File:Joint Security Area from North Korea.jpg) as well as photos taken from South Korea of buildings in North Korea (e.g., File:070401 Panmunjeom3.jpg).

Fascinating that North Korea has the more-free law in this case!

alright2565··on Apple M4 benchmarks suggest it is the new single-core performance champ
I've never had a laptop louder than my Intel Macbook Pro under load. That was a uniquely Apple problem, not a general problem.
alright2565··on Bollards: Why and What
Those signs indicate 20km/h! I've never seen a speed limit sign in the united states under 25mph.
alright2565··on Run0, a systemd based alternative to sudo, announced
bash & zsh are supported by upstream: https://github.com/systemd/systemd/tree/main/shell-completio...
alright2565··on Claiming high user satisfaction, IRS will decide on renewing free tax site
Pretty easy, assuming 2 kids filing jointly. Standard deduction is $29,200, so effectively only $30k of taxable income. Of that, 23k is taxed at 10%, 7k @ 12%, or $3.14k/10.5% effective.

Then $1.6k/kid gets subtracted due to the Child Tax Credit, for a net -$700 in taxes paid.

Keep in mind the cost of living in the USA is higher than many other countries. 60k for a family of four is doable in most places, but it is not a life of luxury.

edit: the family will also end up paying 7.65%/$4.6k in a separate tax for a mandatory retirement scheme (FICA)

alright2565··on ESPHome
Solid state relay is probably a bad idea with all the extra heat-sinking, extra cost, and chance of getting counterfeits.

I do this with ESPHome & a J115F21C12VDCS.9 relay (note only the NO side is rated for 40A resistive): https://i.imgur.com/MqqOkoY.png

Choose any of the temperature sensors here for air temperature sensing: https://esphome.io/

Configuration is so easy. For the sensor, just copy the config from here, for example: https://esphome.io/components/sensor/bme280. Add a gpio output (https://esphome.io/components/output/gpio) and a bang-bang climate controller (https://esphome.io/components/climate/bang_bang.html)

Here's the kicad footprint for that relay (Relay_SPDT_CIT-J115F2.kicad_mod) if you need it:

    (module Relay_SPDT_CIT-J115F2 (layer F.Cu) (tedit 611825E5)
      (descr https://www.citrelay.com/Catalog%20Pages/RelayCatalog/J115F2.pdf)
      (tags "Relay CIT J115F2 SPDT")
      (fp_text reference REF** (at 12.1666 -15.2) (layer F.SilkS)
        (effects (font (size 1 1) (thickness 0.15)))
      )
      (fp_text value Relay_SPDT_CIT-J115F2 (at 18.542 13.9 180) (layer F.Fab)
        (effects (font (size 1 1) (thickness 0.15)))
      )
      (fp_line (start -3.2 -14.1) (end 27.08 -14.1) (layer F.Fab) (width 0.1))
      (fp_line (start -3.96 -13.34) (end -3.96 11.94) (layer F.Fab) (width 0.1))
      (fp_line (start 27.84 -13.34) (end 27.84 11.94) (layer F.Fab) (width 0.1))
      (fp_line (start -3.2 12.7) (end 27.08 12.7) (layer F.Fab) (width 0.1))
      (fp_line (start -4.3 -14.3) (end 28.09 -14.3) (layer F.CrtYd) (width 0.05))
      (fp_line (start -4.3 -14.3) (end -4.3 12.95) (layer F.CrtYd) (width 0.05))
      (fp_line (start 28.09 -14.3) (end 28.09 12.95) (layer F.CrtYd) (width 0.05))
      (fp_line (start -4.3 12.95) (end 28.09 12.95) (layer F.CrtYd) (width 0.05))
      (fp_line (start 17.74 1.778) (end 19.304 1.778) (layer F.SilkS) (width 0.12))
      (fp_line (start 23.876 1.778) (end 25.34 1.778) (layer F.SilkS) (width 0.12))
      (fp_line (start 25.34 1.778) (end 25.34 6.604) (layer F.SilkS) (width 0.12))
      (fp_line (start 21.59 -8.9) (end 17.526 -8.9) (layer F.SilkS) (width 0.12))
      (fp_line (start 21.59 -2.54) (end 21.59 -8.9) (layer F.SilkS) (width 0.12))
      (fp_line (start 21.59 -2.54) (end 22.8092 2.032) (layer F.SilkS) (width 0.12))
      (fp_line (start 17.74 6.604) (end 17.74 1.778) (layer F.SilkS) (width 0.12))
      (fp_line (start 22.86 1.778) (end 23.876 1.016) (layer F.SilkS) (width 0.12))
      (fp_line (start 23.876 2.54) (end 22.86 1.778) (layer F.SilkS) (width 0.12))
      (fp_line (start 20.32 1.778) (end 19.304 1.016) (layer F.SilkS) (width 0.12))
      (fp_line (start 19.304 2.54) (end 20.32 1.778) (layer F.SilkS) (width 0.12))
      (fp_line (start 23.876 2.54) (end 23.876 1.016) (layer F.SilkS) (width 0.12))
      (fp_line (start 19.304 1.016) (end 19.304 2.54) (layer F.SilkS) (width 0.12))
      (fp_circle (center 21.59 -2.54) (end 21.59 -2.413) (layer F.SilkS) (width 0.12))
      (fp_line (start 4.064 -5.1054) (end 5.334 -5.1054) (layer F.SilkS) (width 0.12))
      (fp_line (start 5.334 5.1054) (end 4.064 5.1054) (layer F.SilkS) (width 0.12))
      (fp_line (start 5.334002 5.105397) (end 5.334002 1.777997) (layer F.SilkS) (width 0.12))
      (fp_line (start 5.334 -1.778) (end 5.334 -5.1054) (layer F.SilkS) (width 0.12))
      (fp_line (start -3.2 12.81) (end 27.08 12.81) (layer F.SilkS) (width 0.12))
      (fp_line (start 27.95 -13.34) (end 27.95 11.94) (layer F.SilkS) (width 0.12))
      (fp_line (start -4.07 -13.34) (end -4.07 11.94) (layer F.SilkS) (width 0.12))
      (fp_line (start -3.2 -14.21) (end 27.08 -14.21) (layer F.SilkS) (width 0.12))
      (fp_arc (start 27.08 -13.34) (end 27.84 -13.34) (angle -90) (layer F.Fab) (width 0.1))
      (fp_arc (start 27.08 11.94) (end 27.08 12.7) (angle -90) (layer F.Fab) (width 0.1))
      (fp_arc (start -3.2 11.94) (end -3.96 11.94) (angle -90) (layer F.Fab) (width 0.1))
      (fp_arc (start -3.2 -13.34) (end -3.2 -14.1) (angle -90) (layer F.Fab) (width 0.1))
      (fp_arc (start 5.334001 -0.381001) (end 5.842 -0.762001) (angle -286.3) (layer F.SilkS) (width 0.12))
      (fp_arc (start 5.334002 0.380998) (end 5.842001 -0.000002) (angle -286.3) (layer F.SilkS) (width 0.12))
      (fp_arc (start 5.334 -1.143) (end 5.334 -1.778) (angle -233.1) (layer F.SilkS) (width 0.12))
      (fp_arc (start 5.334002 1.142997) (end 5.334002 1.777997) (angle 233.1) (layer F.SilkS) (width 0.12))
      (fp_text user %R (at 12.3952 0) (layer F.Fab)
        (effects (font (size 1 1) (thickness 0.15)))
      )
      (fp_arc (start -3.2 -13.34) (end -3.2 -14.21) (angle -90) (layer F.SilkS) (width 0.12))
      (fp_arc (start -3.2 11.94) (end -4.07 11.94) (angle -90) (layer F.SilkS) (width 0.12))
      (fp_arc (start 27.08 -13.34) (end 27.95 -13.34) (angle -90) (layer F.SilkS) (width 0.12))
      (fp_arc (start 27.08 11.94) (end 27.08 12.81) (angle -90) (layer F.SilkS) (width 0.12))
      (pad A2 thru_hole circle (at 2.54 5.1 180) (size 2 2) (drill 1.1) (layers *.Cu *.Mask))
      (pad 14 thru_hole circle (at 17.74 8.9 180) (size 4 4) (drill 2.1) (layers *.Cu *.Mask))
      (pad 12 thru_hole circle (at 25.34 8.9 180) (size 4 4) (drill 2.1) (layers *.Cu *.Mask))
      (pad 11 thru_hole circle (at 15.2 -8.9 180) (size 4 4) (drill 2.1) (layers *.Cu *.Mask))
      (pad A1 thru_hole roundrect (at 2.54 -5.1 180) (size 2 2) (drill 1.1) (layers *.Cu *.Mask) (roundrect_rratio 0.25))
      (model ${KISYS3DMOD}/Relay_THT.3dshapes/Relay_SPDT_RAYEX-L90S.wrl
        (at (xyz 0 0 0))
        (scale (xyz 1 1 1))
        (rotate (xyz 0 0 0))
      )
    )
alright2565··on ESPHome
In practice, this is absolutely no problem. It generally only needs to re-compile a file or two for small changes, which takes seconds, and the OTA update functionality works perfectly so you don't need to unplug it/bring it to your desk.
alright2565··on WireViz: Easily document cables and wiring harnesses
I haven't worked with them, but lcsc also does this: https://www.lcsc.com/customcables/landingPage
← PreviousPage 6 of 10Next →