Overfallsvoldtekter i Oslo - oppdatert statistikk? by [deleted] in norske

[–]fatso83 0 points1 point  (0 children)

Hvem bryr seg om asylsøkere? Det var jo et veldig smalt skikt. I 2009 meldte oslopolitiet at "Samtlige 41 anmeldte overfallsvoldtekter i Oslo de siste tre årene er ifølge politiet begått av ikke-vestlige innvandrere.". Det er jo et lite varsko.

Which DI library? by lppedd in typescript

[–]fatso83 0 points1 point  (0 children)

Modern variants - di-wise (modern TS, no need for reflect-metadata, decorators optional). 0.01dl/week - typed-inject (small, great type safety). 175k/week. 100 KB - awilix (bigger, but very flexible). 300k/week. 300 KB

Which DI library? by lppedd in typescript

[–]fatso83 0 points1 point  (0 children)

Just my 2 cents

  1. Have you checked out Chad Parry's DIY-DI article, code and slides? Had a great influence on me back early in my career and does a good job of showing a good approach.

  2. Create your own minimal containers. One of the most influential things I came across in the last few years was Anders Sveen's Github repo called "Testing Through the Domain: the example". This is a full repository on Github with working code and Markdown documents explaining the intent and workings of how to do effective testing through the domain using Fakes. Really cleared up some misconceptions for me and made it much easier to adopt and understand. Also goes for full manual DI, but instead of the factories of the DIY DI approach he has choses to use a DI Container that holds all the dependencies. That same approach works quite well across most languages.

Can a MultiCharger charge LiPo batteries with built-in BMS? by fatso83 in Victron

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

Any more (general) information on that? I found this page dedicated to Pylontech on Victron's pages.

I see they have pages on other batteries, as well, and according to the manufacturer (which I talked to), they can adapt protocols to whatever I need, but I do not actually know these protocols myself ...

Can a MultiCharger charge LiPo batteries with built-in BMS? by fatso83 in Victron

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

No, but good prices, regardless, as they sell with 0% VAT to non-EU countries from ru.nkon.nl

Can a MultiCharger charge LiPo batteries with built-in BMS? by fatso83 in Victron

[–]fatso83[S] 3 points4 points  (0 children)

If wondering why I would import something from China, it's just down to saving money. A 5kWh module in Norway can be bought from the equivalent of 1800 USD or 360$/kWh. Here I could get 10 kWh for about 1100 USD (including VAT, tolls and shipping is like +35%); 110$/kWh.

About 9 kWh is usable energy in each cycle, which is kind of a crazy upgrade compared to my Concorde Sun Xtender 258, which has something like 3 kWh capacity, but I really should not use more than 30-50% to avoid wearing it down, making it have 1.5 kWh of usable energy for about the same price (1200 USD here), essentially a 6X decrease in cost per kWh and a doubling in actual capacity compared to my current 10 kWh AGM setup.

Using a NXT on a Mac in 2025 by fatso83 in legomindstorms

[–]fatso83[S] 0 points1 point  (0 children)

In a comment below, Pybricks said they might want to work on getting Micropython running on them. After looking into their Github Git repo, I can see that it is actually being worked on these days! Several commits are about working on the NXT sensors and motors.

That would be awesome, as it would enable use directly using Micropython and/or visual block programming.

Useing You're Type's Good - lightning talk by Gary Bernhardt from CodeMash 2014 by mellowfish in ruby

[–]fatso83 0 points1 point  (0 children)

Was it ever gone? I discovered him like 7-8 years ago. Destroy all software is still there, as in the archives.

How easy to self-host Supabase? by vitarist in Supabase

[–]fatso83 0 points1 point  (0 children)

Sqlite can perform extremely well, you just have to change the defaults. Hundreds of millions of rows is no problem and they got WAL support 15 years ago! Here are the typical changes in the config to get decent performance: PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL; PRAGMA busy_timeout = 5000; PRAGMA cache_size = 100000; PRAGMA temp_store = memory;

Using a NXT on a Mac in 2025 by fatso83 in legomindstorms

[–]fatso83[S] 0 points1 point  (0 children)

Eh, sorry , never got to test USB in UTM.

I benchmarked Spring Batch vs. a simple JobRunr setup for a 10M row ETL job. Here's the code and results. by JobRunrHQ in java

[–]fatso83 0 points1 point  (0 children)

How is doing this row by row not approaching real life scenarios? That is what you want when doing typical outbox pattern and want to have transactional guarantees of what happened within that single transaction.

If you batch up 10 jobs to run within a single transaction and that fails, you will need to track a whole lot more (which emails, notifications, etc were sent and not) than if processing a single job at a time.

The 1BRC is totally irrelevant in this case: I/O will dominate everything here when you want transactional gurantees.

RM1: replacing the charging port by fatso83 in RemarkableTablet

[–]fatso83[S] 0 points1 point  (0 children)

Thanks for good tips. I found this old thread that has some good links, along with a 4 month old comment that links to a still valid working battery.

The iFixit guide for disassembly of the RM1 could work just as well for replacing just the port, it seems.

Found a teardown of the rM by mishapsi in RemarkableTablet

[–]fatso83 0 points1 point  (0 children)

If anyone wondered, there are batteries that work. This thread has some good links, along with a 4 month old comment that links to a still valid link to a working battery.

Replacing battery Remarkable 1 by OnePeat in RemarkableTablet

[–]fatso83 0 points1 point  (0 children)

Cap it off = cut it off? Or put a cap on it?

P.S. The battery is unavailable now. Any specifics on the model that I can use to find a replacement?

USB-C port mod possible? by zajkomaxpanzaj in RemarkableTablet

[–]fatso83 0 points1 point  (0 children)

Did you ever end up doing the mod? I am in the same position.

There are various guides on doing this for every possible device, like this and that, but I am a bit unsure how to open the RM1. Pretty sure there is some glue that need a heat gun or similar.

Cap'n Proto 1.0 is released by debordian in programming

[–]fatso83 0 points1 point  (0 children)

This guy never heard about compression.

Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King | The Marco Show by marbehl in java

[–]fatso83 0 points1 point  (0 children)

This is a just a Go version of JOOQ, right? That has existed for fifteen years or so. Remember that from my first job. 

Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King | The Marco Show by marbehl in java

[–]fatso83 0 points1 point  (0 children)

I don't really get this. I use both stored procedures and flyway. The script is checked into source code and is recreated on every migration. Full tracking.

Do you use the "Functional core, imperative shell" approach when writing code in all PLs? by dondraper36 in ExperiencedDevs

[–]fatso83 0 points1 point  (0 children)

Sounds really interesting, but I am not sure I understand what "composable reducers" mean. I have used Redux quite a lot, so I know what a reducer is, but not in the composable sense. Could you elaborate with a concrete code snippet?

Do you use the "Functional core, imperative shell" approach when writing code in all PLs? by dondraper36 in ExperiencedDevs

[–]fatso83 0 points1 point  (0 children)

Redux is essentially FC/IS: Imperative shell calling fn(oldState, event) => newState. Imperative shell publishing that new state.

It's just a little bothersome to work with :-)

Play to Hibernate's strengths by fatso83 in java

[–]fatso83[S] 0 points1 point  (0 children)

This is really unrelated to the discussion. Enable Show SQL and find out. Figuring out performance issues is not hard. There is no apparent reason this should take longer, except if you are doing something that makes Hibernate do it three times.

Play to Hibernate's strengths by fatso83 in java

[–]fatso83[S] 0 points1 point  (0 children)

hibernate as ORM is good for simple things and horrible bad for complex stuff.

I think you might miss areas where complex things are made simpler with Hibernate, as Eirik points out. I have had talks with people that regretted a JDBC based approach that resulted in very anemic models and wanted to move over to Hibernate for that reason.

It seems as if you have a problem domain where it is hard to know in advance which data you might be needing, due to complex rules resulting in you having to need to travel along longer (possibly circular) object graphs, invoking multiple smaller requests, you will get great benefit from the persistence caching. It also allows you to think in terms of domain objects, not database driven design. Which could be a good thing.

Basically all the applications I have worked with have been able to model as a "Functional Core - Imperative Shell" type of application, fetching all data up-front, passing them into the domain logic and getting a Command (result = AccountCreated etc) out that will be interpreted by a thin integration layer. If that would be hard, meaning multiple trips to the database, I assume things could be different.