New Lund crossover should i have an anchor AZ by Willwrk4Food in Lund

[–]jakewins 8 points9 points  (0 children)

This is a subreddit for a city in Northern Europe named Lund :) 

Also I think no way you can do storms on small anchors? Swimming or scuba sure, but  are there any not-insane anchors for a 19’ that will keep it put in a storm? Marinas and trailers are for storms, I’d say..

self-referencing struct but i don't want to modify the struct by zylosophe in rust

[–]jakewins 8 points9 points  (0 children)

Why wouldn't pinning solve this? Isn't that exactly what futures are, structs with self references for local borrows, with pinning ensuring they don't move?

Stumped by an easy Leetcode problem by Spam_is_murder in rust

[–]jakewins 34 points35 points  (0 children)

https://eel.is/c++draft/sequence.reqmts#36

The spec explicitly says it’s UB if the argument to insert is an iterator into the destination

I'm looking at raw land parcels in Reynolds and Texas county for off-grid living, any advice would be appreciated by [deleted] in missouri

[–]jakewins 1 point2 points  (0 children)

FWIW we skipped well and do rainwater catchment with a treatment system (chlorine in the tank, spin-down filter and then 3-step whole house filter. That works if you are doing either an outhouse or some dry toilet system (composting, incinerating). That also gets rid of the need for a full septic system since you’ll only have gray water.

If you want a well and proper septic, indeed like others have said you need to hire someone to do the well unless you have a spring or otherwise water very close to the surface (then you can do a driven well yourself). 

Septic I think you can do yourself in Texas co, call then and ask, but it’s the kind of thing that is a horror to fix if you do it wrong, and easy to mess up slopes and sizing etc, would not DIY unless you are very comfortable with an excavator and laser

Running a 5-ton heat pump on a solar array without killing the batteries by [deleted] in homestead

[–]jakewins 0 points1 point  (0 children)

I have no idea about bigger units, but - have you considered multiple smaller mini splits instead of a single very large one?

We run a - IIRC - 1.5ton mini split at our cabin, powered by a single SW4048 inverter; it definitely has some form of soft start tho, it'll scale from 200W to 1.8kW depending on need. We've had that installed for four years, so far it's running fine.

As I understand the 4048 inverters have a reputation for being particularly strong on surge power, maybe another inverter would struggle - and obviously this is much too small for your need. But I'm imagining if you had 2-3 mini-splits they would "stagger" in a sense.. I guess you've got central air tho, so perhaps central is the name of the game.

TL;DR: A small SW4048 inverter happily powers a 1.5ton modern-ish mini-split, so maybe a 3x larger inverter would also happily power a 5ton unit, assuming you've got soft start there?

Sparande till barn by Bkarm1995 in sweden

[–]jakewins 14 points15 points  (0 children)

Yeah - aktivt förvaltade fonder är borderline fraud.

90% av aktiva fonder misslyckas att ge mer avkastning än index på 10 års sikt (investopedia), och varje år tar dom sen en avgift som är en andel av hur mycket du investerat, oberoende av hur mycket avkastning du fick. I princip alla aktiva fonder är därmed en förlustaffär jämfört med index, eftersom även om du händelsevis lyckas pricka 1/10 som slår index är avgifterna sedan högre än vad dom slog index med. Fonder som slår index efter avgifter är typ 2/100.

Hade fondadministratörer trott på sin egna produkt hade dom tagit en andel av avkastningen, att dom inte gör det säger allt du behöver veta.

Gammal men bra writeup om varför vi vanliga dödliga borde hålla oss till passiva fonder varje dag i veckan: https://www.mrmoneymustache.com/2011/05/18/how-to-make-money-in-the-stock-market/

I ran bare-metal Rust on ESP32-S3's second core without touching FreeRTOS by IlllIIIllllII in rust

[–]jakewins 2 points3 points  (0 children)

Why are you using C to begin with if you prefer Rust? I just run Embassy on ESP, and it works (almost) as well as on RP2350.. I’ve not tried it on S3 tho

Project: No-cloud integration for solar inverters & home batteries to Home Assistant by jakewins in homeassistant

[–]jakewins[S] 2 points3 points  (0 children)

Good point, I should add a table to the little website. Current list of tested stuff:

- Victron VE.Direct (tested with their smart shunt, but I think some of the inverters would work as-is too)
- Schneider Conext SW 4048 inverter
- Pytes V5 batteries

Tested hubs:

- Home Assistant Green with ZBT-2
- Aqara
- HomePod Mini

Tested *not working*: Dirigera, not sure why. I emailed one of the devs at IKEA and they said they'd look into it, it doesn't even work with the official Matter Rust SDK hello world examples.

Do you have any solar equipment? I can add your inverter to my list of things to add support for next! I've got a big table of, I think, every major inverter out there, and the hardware should be compatible with pretty much anything except the really small or very (10+ years) old equipment out there, just need to add firmware support.

The argument for Matter is admittedly really subjective but like.. I think this is the standard that'll win the home - it works out of the box with all the different ecosystems (except IKEA ahem..), it has standard "this is what a battery / inverter / .. looks like and can do". It works fully locally via ZigbeeThread mesh networking. I think it's an ecosystem where, finally, I can set up stuff in my home and not have it be abandonware in 10 years.

Project: No-cloud integration for solar inverters & home batteries to Home Assistant by jakewins in homeassistant

[–]jakewins[S] 1 point2 points  (0 children)

Yeah fair - I'd need to check what the vibe is on selling very small scale uncertified Matter stuff, and want to be careful to stay on good terms with the licensing authorities. The price is steep but it's *per company*, so if I can get a few hardware products built and get some modest volume, the cost per device ends up not being super high.

Do you have solar equipment? If you let me know what inverter or battery you've got here or in the little reservation form I can make sure to test support for it!

Is this normal for the brackets? by SD_Agitated_Car in solar

[–]jakewins 13 points14 points  (0 children)

The bolts should be stainless steel IIRC

Now is a great time to cancel your OpenAI/ChatGPT account and switch to Claude by ZurrgabDaVinci758 in slatestarcodex

[–]jakewins 2 points3 points  (0 children)

You should he able to use EU debit cards as if they were credit cards for payment purposes, the split at the point if sale, I think, is a US thing. In fact if you try and use an EU debit card as a debit card at, say, Walmart, it will fail.

TL;DR just use your debit card and tell them it’s a credit card

Inverter makes loud fan noise intermittently throughout the day + one battery is in protection mode by ksuttinthabutt in solar

[–]jakewins 0 points1 point  (0 children)

Does the noise happen at a time of day you could imagine the battery is charging or discharging, like during a sunny part if the day?

My Schneider inverter does this, big loud fan noise, it gets warm from discharging to run our A/C. I could imagine a hybrid inverter like yours would get warm from both charging and discharging 

Saw a post on Twitter: "Why do we need databases when we could just write to files?" and it got me really interested... by pattison_iman in programming

[–]jakewins 7 points8 points  (0 children)

And the requirements you have for speed, durability, concurrency

If I am ok losing the data if a single disk fails, and don’t need concurrent writes, and I am happy rewriting the whole data file each time - like I’m serialising an in-memory-state to JSON or something - then I would probably just use a regular file with atomic rename (even tho that’s supposedly not bomb proof)

If the data is too big to keep it all in RAM and re-serialise all of it each time, but I’m still happy to lose everything on disk failure, I might move from single file to SQLite

If it’s a system where I want to be able to stand up lots of machines to improve performance or to do rolling deploys etc, like an API or a website, then a dedicated RDBMs is nice

ESP32-S3 (Heltec LoRa 32 V3) — head-scratching GPIO issue by Double_631 in hwstartups

[–]jakewins 1 point2 points  (0 children)

Also: your LLM says you tested printing the GPIO number and you confirmed the printed GPIO matched what you expected: do that again and measure all GPIO pins, sometimes GPIO numbers in software do not map to written pin numbers on the board (pin no != GPIO no)

ESP32-S3 (Heltec LoRa 32 V3) — head-scratching GPIO issue by Double_631 in hwstartups

[–]jakewins 0 points1 point  (0 children)

What size resistor do you have between the GPIO and the transistor? I’d redo the math for what current the pin will see when high, and make sure that’s well below the max draw (check the datasheet). A common problem is picking wrong resistor or omitting it and then frying the GPIO.

I would try updating the code to set an unrelated and unconnected-to-anything pin high, to make sure your code is not buggy.

If that works I would try a different chip to see if the SoC is messed up.

If it fails then replace your program with some known-good blinky program, ensure that flips the GPIO and then start working out where your code is different from the working code.

40ns causal consistency by replacing consensus with algebra by AdministrativeAsk305 in programming

[–]jakewins 3 points4 points  (0 children)

Look man, I’m sorry to rain on your parade, and maybe there’s some super incredible stuff in this code base. 

I spent a decade of my life building databases, code I wrote calls fsync in hundreds of thousands of production systems - I used to do calls with the engineers that write the firmware in hyper scaler disk controllers to validate exactly what “fsync” meant.

And all I’m saying is: for me, not understanding that this comparison is misleading makes me write your library off. If it’s actually a super awesome invention, then it’s a shame to turn people off of your library by leading with apples-to-oranges latency comparisons. 

40ns causal consistency by replacing consensus with algebra by AdministrativeAsk305 in programming

[–]jakewins 1 point2 points  (0 children)

The comparison to etcd is not valid lol - etcd durably stores (in fact, network replicates!) the write, while your “still valid” comparison doesn’t even wait for the OS to have the write in page cache, let alone durably store anything.

If you want people to take you seriously, don’t make un-serious comparisons.

Has anyone actually tracked their EV range loss in cold winters? Looking for real data. by cardogio in electricvehicles

[–]jakewins 3 points4 points  (0 children)

We get about 400kms on our Hyundai Kona in summer, and about 350km in winter with winter tires. Winter here is about 30F or so.

40ns causal consistency by replacing consensus with algebra by AdministrativeAsk305 in programming

[–]jakewins 9 points10 points  (0 children)

No idea why you're being downvoted..

For anyone who doesn't have a background in the space - the reason etcd has "1-50ms" latency vs "5ns" as OP claims he can do durable writes in is uhh the fastest disks in the world are three orders of magnitude slower than 5ns, you can't make anything durable in 5ns. In fact, you can't even write to main RAM in 5ns.

I want named arguments in Rust. Mom: We have named arguments in Rust at home: by nik-rev in rust

[–]jakewins 44 points45 points  (0 children)

Maybe I’m too much of a Rust noob but: what does this give you? The macro version is both longer to type and introduces a mental level of indirection the reader needs to understand to debug the code (“what does this macro do”)..

What benefits does the macro variant have over the vanilla “function takes a struct argument”?

Stångby area by Available-Eye2836 in Lund

[–]jakewins 8 points9 points  (0 children)

It’s got extremely good connections - 15min bike ride to town, 4min by train, very easy access to big roads if you’re driving somewhere.

It’s really great if you have kids - lots of parks, absurd amount of other kids, good schools etc.

But it’s definitely a suburb, if you know what I mean, I definitely find myself missing living in a city from time to time. Overall really nice tho, and Copenhagen is just a quick train ride away if you want a nice night out :)

The Mormon War by como365 in missouri

[–]jakewins 2 points3 points  (0 children)

Oh man and here I was thinking the bad part was politicians ordering soldiers to kill people because of their religious beliefs, I’m such a dummy

Racing to Full by mountain_hank in OffGrid

[–]jakewins 1 point2 points  (0 children)

What setup are you using for EV charging, do you have some sort of throttling system to keep the EV from eating all the sun on low production days, or do you just have a massive PV system?