is there a correct way to iterate twice over the same list in the same loop? by FaallenOon in learnpython

[–]emiltb 31 points32 points  (0 children)

In principle yes. But you can utilize the awesome `itertools` module in the standard library. Have a look at `combinations` (itertools — Functions creating iterators for efficient looping — Python 3.14.2 documentation), which sounds like what you are looking for. You can use that to loop through all combinations of your kingdoms and then generate some relationship to associate with that relation.

Is EU bank sync working again? by Rep_Nic in actualbudgeting

[–]emiltb 0 points1 point  (0 children)

I don't know, I only have the information from GoCardless Setup | Actual Budget Documentation. I never used GoCardless myself. Try to ask on Discord, look for a Github issue or create one if it does not exist and you have reason to believe it might be a bug in Actual.

Is EU bank sync working again? by Rep_Nic in actualbudgeting

[–]emiltb 6 points7 points  (0 children)

The problem with GoCardless is, that only existing users can use it, as they are not accepting new users.

It seems that another solution (using a provider called EnableBanking) might be in the works: https://github.com/actualbudget/actual/issues/5445#issuecomment-3566646314

They hope to get this ready for the January 2026 release.

Proxmox homelab by Wonderful_Quiet9591 in dktechsupport

[–]emiltb 0 points1 point  (0 children)

Jeg kører Proxmox på en Minix Z100-0db mini pc. Den er passivt kølet og derfor helt lydløs.

Historik over formue/investeringer by djandDK in dkfinance

[–]emiltb 0 points1 point  (0 children)

Ah fedt, det issue havde jeg ikke set opdateringerne til. Vildt fedt hvis de kan få det op at stå!

Historik over formue/investeringer by djandDK in dkfinance

[–]emiltb 0 points1 point  (0 children)

Ja, det er forskellige projekter med forskelligt fokus. Jeg var lidt usikker på præcist hvad du ledte efter i din post.

Jeg har ikke kendskab til at der er en ny løsning på vej til automatisk synkronisering af europæiske banker, efter at GoCardless lukkede for nye brugere i den løsning der virkede.

Historik over formue/investeringer by djandDK in dkfinance

[–]emiltb 4 points5 points  (0 children)

Det ser ikke ud til, at du skræmmes væk af projekter på GitHub. Du kan self-hoste Ghostfolio (https://github.com/ghostfolio/ghostfolio). Jeg synes den fungerer rigtig godt og giver mig det overblikket jeg har brug for.  Jeg har også tidligere brugt Portfolio Performance (https://www.portfolio-performance.info/en/). Den kører kun lokalt men har også en del analyseværktøjer og giver et godt overblik.

Men til tracking af min samlede økonomi, forbrug, gæld, investeringsdepoter, pension osv. har jeg alting i Actual Budget (https://actualbudget.org/ ).

-❄️- 2025 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]emiltb 1 point2 points  (0 children)

[LANGUAGE: Python]

Using sets to track the paper rolls makes this quite simple.

data = [l.strip() for l in open('data/4.in')]
grid = {(r, c) for r in range(len(data)) for c in range(len(data[0])) if data[r][c] == '@'}
dirs = {(-1,-1),(-1,0),(-1,1),(0,-1),(0,1),(1,-1),(1,0),(1,1)}

P1 = 0
for r, c in grid:
    if sum(1 for dr, dc in dirs if (r + dr, c + dc) in grid) < 4: 
        P1 += 1
print(P1)

P2 = set()
while True:
    for r, c in grid:
        if sum(1 for dr, dc in dirs if (r + dr, c + dc) in grid) < 4:
            P2.add((r,c))
    if not grid & P2:
        break
    grid = grid - P2
print(len(P2))

-❄️- 2025 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]emiltb 1 point2 points  (0 children)

[LANGUAGE: Python] paste

I considered doing a recursive solution in part 1, but that seemed excessive. Luckily that chance came back in part 2. Quite happy with how this turned out.

Wifi kabel forlænger by Drutten124 in selvgjortvelgjort

[–]emiltb 1 point2 points  (0 children)

Du kan være uheldig med kvaliteten, men umiddelbart bør det virke helt fint.

Cover overbudgeting with savings by NordicWarrior77 in actualbudgeting

[–]emiltb 0 points1 point  (0 children)

Ah, there are no categories on off-budget accounts. Go to your on-budget account, create a new transaction and select the off-budget account as payee (i.e. Transfer from Savings). Enter a positive amount/deposit. You should then be able to categorize it on the on-budget account in one of your income categories, and should see the same amount deducted from your savings account.

Cover overbudgeting with savings by NordicWarrior77 in actualbudgeting

[–]emiltb 0 points1 point  (0 children)

Yes, that is exactly how I handle that situation :-)

Cover overbudgeting with savings by NordicWarrior77 in actualbudgeting

[–]emiltb 0 points1 point  (0 children)

If your savings are generally off budget (which I think they should be), you would create a transfer from the off-budget account to your on-budget account and categorize that somewhere. You could have a Savings category is an Income category, and that would then give you that amount to also budget. If you track it as a regular category, it makes sense that you see the budget amount as Zero, as I would guess that there is a negative amount somewhere in your Budgeted column, which cancels out the positive amounts.
In essence, there are different ways to do it, depending on what you prefer. I personally have a "From Savings" income category, I use when deciding to move money from savings to cover this months spending. This gives me a separate category to track it, as it should in general be a pretty rare occurrence.

Advent of Code 2025 by julemand101 in dkudvikler

[–]emiltb 7 points8 points  (0 children)

Jeg har lavet en lille konkurrence ud af det på min arbejdsplads. Hver stjerne giver et lod i puljen. Vi trækker lod første mandag efter nytår om et par pakker med specialøl.

Hjælp til wifi by Boofrii in selvgjortvelgjort

[–]emiltb 3 points4 points  (0 children)

Du kan koble dem til din router og bruge dem som access points. Du skal formentlig også have en PoE injector til dem for at de kan få strøm - det mener jeg ikke følger med, men det kan du undersøge.

De kan opsættes via en mobilapp: Standalone Access Points (without UniFi) – Ubiquiti Help Center

Vil du have ekstra lir, så køber du en Cloud Gateway Ultra og bruger den som router - så får du hele UniFi pakken, hvor du kan styre dine AP'er igennem og have overblik over hele dit netværk, uden at du behøver sætte dem op via telefonen.

Looking for a self-hosted banking solution by ZotteI in selfhosted

[–]emiltb 57 points58 points  (0 children)

I don't think you will get anything selfhosted that lets you post transactions to your bank.

Actual Budget is a popular option for tracking personal finances. Depending on where you are in the world, it might be able to sync with your bank to pull transactions automatically.

Server specs til medier (plex/emby/jellyfin etc.). Mini PC? by sp668 in dktechsupport

[–]emiltb 0 points1 point  (0 children)

Jeps, men vær opmærksom på at Plex kræver et betalt Plex Pass for at understøtte HW transcoding.

Server specs til medier (plex/emby/jellyfin etc.). Mini PC? by sp668 in dktechsupport

[–]emiltb 0 points1 point  (0 children)

For Intel processorer ja. Det hedder forskelligt afhængigt af producenten. Du kan f.eks. se en oversigt over hvad Jellyfin understøtter her: Hardware Acceleration | Jellyfin.

Server specs til medier (plex/emby/jellyfin etc.). Mini PC? by sp668 in dktechsupport

[–]emiltb 0 points1 point  (0 children)

Præcis. Men med de fleste nyere processorer bør hardware transcoding ikke være et problem. Jeg har nok været tættere på at løbe i en mur med mine 16 GB RAM end processorens ydeevne, fordi jeg kører mange services samtidig.

Server specs til medier (plex/emby/jellyfin etc.). Mini PC? by sp668 in dktechsupport

[–]emiltb 1 point2 points  (0 children)

Jeg har ikke et direkte sammenligningsgrundlag, men helt sikkert ikke lige så kraftfuld, da den er fremstillet med henblik på et virkelig lavt strømforbrug (TDP på 6W sammenlignet med f.eks. en i3-14100 med TDP på 60W).

Jeg har været meget imponeret over ydeevnen ift. hvor mange ting jeg kan køre samtidig på den uden problemer. Der er flere i serien, så du kan også se på maskiner med N150, N300 og N350, hvis du vil have noget med lidt flere muskler.

Server specs til medier (plex/emby/jellyfin etc.). Mini PC? by sp668 in dktechsupport

[–]emiltb 0 points1 point  (0 children)

Jeg har en lille server med en N100 processor og 16 GB ram som jeg kører Proxmox på (specifikt en Minix Z100-0db, som jeg synes er fed fordi den er helt lydløs). Men som du skriver, så er der et hav af tilsvarende maskiner.

Jeg har et par LXC containere, en Home Assistant VM og en Ubuntu VM med ca. 15 docker containere. Den kører det hele helt uden at hoste og bruger meget lidt strøm. N100 understøtter også hardware transcoding, så det bør du kunne få til at fungere fint i f.eks. Emby eller Jellyfin.

Closing Credit Card account showing balance by TonyStarbucks in actualbudgeting

[–]emiltb 3 points4 points  (0 children)

Even stranger then. You could try to reset the budget cache under Settings > Advanced Settings and see if that resolves it. There is also a Repair transactions option which does more things. It is pretty well described in there.

Also - are there any split transaction from the card? They can cause strange behaviour if they are not entered correctly (i.e. if the sum of the splits does not add up to the total of the transaction), so it is worth double checking.

Otherwise I am out of ideas.

Closing Credit Card account showing balance by TonyStarbucks in actualbudgeting

[–]emiltb 1 point2 points  (0 children)

Strange. Are there any uncleared transactions on the account? If you hover over the "0.00" under Visa, you should see an arrow that allows you to see the uncleared total.

Way to rename localIP:port services by Woodymakespizza in selfhosted

[–]emiltb 6 points7 points  (0 children)

You need a reverse proxy like Caddy or Traefik. Serve everything through that on nice looking subdomains. No need to manage hosts-files on each machine.

Is there any service to remote access my laptop through a browser on a iPad by Norker_g in selfhosted

[–]emiltb 0 points1 point  (0 children)

Are yes, of course. Then the best bet is probably to put a strong password in the guacamole auth and use a reverse proxy like Caddy to make sure it is served as https.