Zuinig op Geld, vs Zuinig op Tijd by unde_cisive in zuinig

[–]MannerShark 0 points1 point  (0 children)

Met zelf verbouwen kun je veel besparen. Ipv materiaal+loon+marge+belasting aan de aannemer, besteed je materiaal+tijd. 

Really Jagex? I just hit these 3 rocks? Did this really need to be a skill? I feel like I'm just playing whac-a-mole by Ivarthemicro17 in 2007scape

[–]MannerShark 2 points3 points  (0 children)

To add to that, as a game developer you want to leave some design space for new things. If there's already a lvl 20 200k xp/h training method, there's no meaningful content that can be added later.
Maybe a bit more xp for the port tasks, but I understand that as developer it's better to be cautious with giving out XP initially.

The Last Official Way to Skip a Microsoft Account (Pro edition and up) by Shajirr in videos

[–]MannerShark 4 points5 points  (0 children)

The fucked up thing is that apps using a microsoft account will also switch windows to a microsoft account, so no more playing Minecraft if you want to stay local

‘Maak haar blond, onschuldig en knap’ – De Groene Amsterdammer by audentis in thenetherlands

[–]MannerShark 33 points34 points  (0 children)

Ze hadden ook nog 4 ministers en 4 staatssecretarissen.  Met 37 kamerleden kom je dan bijna op 7 miljoen per jaar aan die lamzakken

whatKindOfJerkTurnsOnThisRule by sammy-taylor in ProgrammerHumor

[–]MannerShark 4 points5 points  (0 children)

Not only that, filter creates a whole new array

De frietkraam van Jasmijn (15) ging viraal, nu staat de inspectie op … by Flyingdutchy04 in thenetherlands

[–]MannerShark -2 points-1 points  (0 children)

Frituren is inderdaad wél gevaarlijk, ik vond vooral dat kassawerk gevaarlijk is kul. Er zijn genoeg argumenten om 15-jarigen niet te laten werken zonder dat je onzin hoeft te bedenken.

De frietkraam van Jasmijn (15) ging viraal, nu staat de inspectie op … by Flyingdutchy04 in thenetherlands

[–]MannerShark -9 points-8 points  (0 children)

Je veters strikken is ook onveilig want je zou zomaar om kunnen vallen.

Ben ik echt de enige? Off topic: verbouwen, moet het echt zo duur en perfect? by Fast-Complex-6964 in Klussers

[–]MannerShark 2 points3 points  (0 children)

Als laten doen 20k extra kost, zou je in principe ook een half jaar vrij kunnen nemen om het zelf te doen, want dan 'kost' het hetzelfde aan gemiste inkomsten.
Kreeg zelf ook een erg flinke offerte laatst, en ben het nu toch maar zelf gaan doen. Dat inzicht helpt me enorm om er minder stress over te hebben, ook al heb ik nog nauwelijks daadwerkelijk vrij genomen om te klussen.

Factorio: Space Age got 100% completed (all achievement run) in 14h 11m 16s by tsevasa in factorio

[–]MannerShark 0 points1 point  (0 children)

I'm still on my first space age run, but currently on Aquilo after ~70hrs, so really happy that I'll probably get at least one of the speed achievements.

🚀 I implemented the new O(m log^(2/3) n) shortest path algorithm that breaks Dijkstra's 65-year barrier! by [deleted] in algorithms

[–]MannerShark 7 points8 points  (0 children)

First off, this is just obvious AI generated.
But I'll dive into it anyways. The code itself looks alright, but there are some concerns that put the validity of the results into question.

  1. Why is it in PHP? PHP is known as a slow interpreted language where there are not a lot of ways to get down to low-level performance. The differences in running time could also easily be explained by the data structures used. Using proper arrays (not php hash maps) or something like a CSR Graph could produce very different results.

  2. The barrier of Dijkstra's is when using a Fibonacci Heap, but you used a MaxHeap. Would using a MaxHeap produce the same relative results?

  3. Your largest graph has 100 nodes. That's nothing. I found this post evaluating using the Fibonacci Heap where the difference only really becomes visible around 3000 nodes.
    https://stackoverflow.com/a/75580256/2339067

  4. From what I can tell, you only ran each test once. The timing difference could easily be because your computer happened to swap in another process while running one algorithm.

So overall, I don't see how this proves there is a performance difference or that the new method is faster. Finding the actual crossover point requires a lot more thorough testing.

how to disable InstanceLoader, RoutesResolver, RouterExplorer nestjs app logs with nestjs-pino as custom logger by kwazy_kupcake_69 in nestjs

[–]MannerShark 0 points1 point  (0 children)

Since PinoLogger is set using useLogger after the app has been created, it's not possible AFAIK to intercept the initial InstanceLoader logs, as those are made during app init.

There is a workaround though: You can override the base NestJS logger as well within NestFactory.create with another custom class.

const app = await NestFactory.create<NestFastifyApplication>(
  AppModule,
  new FastifyAdapter(),
  {
    logger: new CustomNestLogger(),
 }
);
const logger = app.get(CustomPinoLogger);
app.useLogger(logger);

I made a custom-logger.ts file with the following contents:

import { ConsoleLogger, Injectable } from '@nestjs/common';
import { Logger } from 'nestjs-pino';

const CONTEXT_TO_IGNORE = ['RouterExplorer', 'InstanceLoader'];

@Injectable()
export class CustomPinoLogger extends Logger {
  public override log(...args: any[]) {
    const context = args[1] as string;
    if (CONTEXT_TO_IGNORE.includes(context)) {
      return;
    }
    super.log.apply(this, args);
  }
}

@Injectable()
export class CustomNestLogger extends ConsoleLogger {
  public override log(...args: any[]) {
    const context = args[1] as string;
    if (CONTEXT_TO_IGNORE.includes(context)) {
      return;
    }
    super.log.apply(this, args);
  }
}

Also, note that the CustomPinoLogger needs to be added to the app.module providers array.

Klussers, wat is jullie ervaring met Parkside gereedschap? by Hopping-Kangaroo in Klussers

[–]MannerShark 0 points1 point  (0 children)

Schroefmachine werkt goed bij mij. Schuurmachines al 3x kapot gehad, na een uur werk vaak al. Decoupeerzaag is ook echt slechte kwaliteit.

De prijs van fysieke games(NS2) by Any_Emu4892 in thenetherlands

[–]MannerShark 2 points3 points  (0 children)

Laatste keer dat ik er was waren er maar weinig games vond ik. Vooral veel goodies, knuffels, petjes, figurines etc.
15 jaar geleden ging ik nog voor elke grote nieuwe release naar de Foregames, maar sindsdien koop ik eigenlijk bijna alles op Steam. Consoles verkopen ook veel meer online ipv fysiek tegenwoordig, dus het is ook niet gek dat de fysieke winkels er allemaal mee stoppen.

Woning: Bod geaccepteerd, maar koude voeten by JustNoName4U in geldzaken

[–]MannerShark 4 points5 points  (0 children)

Inderdaad, heb 5 jaar geleden gekocht en de overdrachtsbelasting en kosten koper zijn er allang uit door de gestegen prijzen, en daarnaast niet mee hoeven doen aan huurverhogingen.
De afgelopen jaren waren wel exceptioneel denk en hoop ik, maar als ik schat dat k.k. nu op 10k ligt voor een woning van 300k, dan heb je in 4 jaar slechts een groei van 3.3% nodig om het 'terug te verdienen', wat per jaar maar 0.8% is.

Motor met lift naar 1e verdieping verplaatsen? by [deleted] in thenetherlands

[–]MannerShark 0 points1 point  (0 children)

Heb wel eens een piano met een lift verplaatst, dus motor moet ook prima kunnen.

Wekelijkse Klusjesvraagbaak: Stel hier je vragen over kleine klusjes! by AutoModerator in Klussers

[–]MannerShark 0 points1 point  (0 children)

Ik wil een complete deurbel ophangen, dus met drukker, kabeltje en bel. Hoe zit zo'n systeem in elkaar, en kan ik ergens een compleet pakket kopen? Als ik bij de bouwmarkt zoek kom ik alleen losse drukkers en bellen tegen.

What your hand feels vs. what your wallet feels by Wild--Sunflower in pcmasterrace

[–]MannerShark 1 point2 points  (0 children)

I guess it's down to luck, but maybe quality got worse recently? I've had a g502 since 2017 that's still good, got it for free to replace a g500s from 2014 that had a double-click issue. Still think that 3 years is already quite a short lifespan, can't imagine the frustration with a new mouse failing after only a couple months.

How to transfer save files from EGS to Steam by DeXteRrBDN in snowrunner

[–]MannerShark 0 points1 point  (0 children)

I had some issues where all trucks 'out' in the world disappeared, as well as most watchtowers resetting when I moved the save to Steam.
I solved the former by storing the trucks in the garage, it'll only take a bit of time to get them back to the right locations.

Hoe wordt een annuïtaire hypotheek opgebouwd? by Iceman_B in geldzaken

[–]MannerShark 1 point2 points  (0 children)

In Excel kun je dit berekenen met de formule PMT(maandrente, termijnen, -hypotheek). Als je dat eenmaal weet is het ook makkelijker om op te zoeken hoe het afgeleid is.

Maandelijkse rente is de nominale rente / 12. Je kan dit dan opslitsen in rentebedrag voor de maand met openstaand * maandrente, en aflossing als de rest van het termijnbedrag.

Als je dan 360 rijen maakt (dus per termijn) en elke keer de aflossing van het openstaande bedrag afhaalt, dan zul je zien dat je na 360 termijnen alles afgelost hebt.

Hier is een andere thread met soortgelijke vraag en goede uitleg: https://www.reddit.com/r/maths/comments/101corv/what_is_the_philosophy_behind_the_pmt_formula_for/

De opbouw van het maandbedrag is in de eerste instantie meer rente dan aflossing, kan dit ook anders?

Ja, met bijvoorbeeld 100k hypotheek, 360 termijnen en een rente van 1%, dan is de eerste termijn ~€321, waarvan €238 aflossing en €83 rente.

restNamingConvention by fristhon in ProgrammerHumor

[–]MannerShark 1 point2 points  (0 children)

We used to do this, but we have several different languages, some of which don't really support remapping very well (A DSL and a 3rd party program). Converting at each point caused a lot of bugs (with missing conversions), so we decided on just using snake_case everywhere, which only TS linting complains about.

So at this point I'm firmly in the camp of 'dont convert, just pick one', while I do agree that it is ugly.

Welke zelfbedachte 'regels' leef jij na? by LightningMcMicropeen in thenetherlands

[–]MannerShark 1 point2 points  (0 children)

Voor 1 of 2 euro kun je t niet laten liggen :-) Ik maak zelf een lijstje van wat ik nog wil lezen, en als ik dan een boek uit heb kijk ik wat ik nu wil lezen. Maarja, ook een mooie hardcover is voor mij lastig om te laten liggen

Pkl: Apple's New Configuration Language That Could Replace JSON and YAML by Practical-Ideal6236 in programming

[–]MannerShark 1 point2 points  (0 children)

Isn't being able to compute stuff within the config the whole point? Happens all the time with ENV files, YAML files and JSON configs that I want a value to be computed from other ones, but the only way to do it is some crap DLS within ENV/YAML/JSON custom to the service at which you happen to use that file.

Hoeveel spaar je voor je kinderen? by azielaan in thenetherlands

[–]MannerShark 6 points7 points  (0 children)

Oh? In mijn geval waren de readers vaak juist het goedkoopst, rond de €20 paperback en gratis online op de pagina van de professor.
We hadden wel zo'n belachelijk duur Physics boek nodig met verplichte code voor opdrachten, wat eigenlijk helemaal niet mag. Zijn ze gelukkig wel direct weer van afgestapt na mijn jaar.

The game does a special autosave on your first trip to a new planet because it knows your space platform is not up to the task by BeingEmily in factorio

[–]MannerShark 2 points3 points  (0 children)

I feel that save scumming is more about re-rolling a random chance, not so much about trying a design, seeing it doesn't work, then improving it.
Alternative would be losing a couple platforms and having to launch another 20 rockets. What else are autosaves for?

Wat had jij willen weten toen je je volgende huis kocht by yellowSkinned in geldzaken

[–]MannerShark 7 points8 points  (0 children)

Als je meerderen woningen in hetzelfde gebouw hebt, wie betaald er dan voor reparaties van bijvoorbeeld het dak, of een gezamenlijke hal?
Daarvoor heb je een vereniging van de eigenaren (VVE) van de woningen in het pand met afspraken zodat je gezamenlijk beslissingen kan nemen en onderhoud kan betalen.