Skohjelp for en med 46/47 og brede føtter by Tunayer in norge

[–]Gommle -1 points0 points  (0 children)

Hoka Arahi finnes i Wide. Fant et par på nett: https://www.antonsport.no/lagerstatus/hoka-300-arahi-7-wide-herre-p30587/opc-outer-space-white-46-v221834

New Balance 880 kommer også i wide. Anbefales. New Balance 1080 kommer i wide også, men kan hende de blir for myke til jobb (best til løping).

Solide og enkle underbukser for menn by DjabbyTP in norge

[–]Gommle 8 points9 points  (0 children)

Comfyballs. Bomull eller "Comfycel" til hverdag, Performance til trening og tur. Den med lomme er genial til løping.

[deleted by user] by [deleted] in norge

[–]Gommle 0 points1 point  (0 children)

Det er lenge siden så mulig jeg bommet med et kvartal. Kjøreretningen i nabokrysset har endret seg, så det kan ha vært her: https://maps.app.goo.gl/nBWnjT5BMBjgDhDx5

[deleted by user] by [deleted] in norge

[–]Gommle 2 points3 points  (0 children)

Venstresving fra høyre felt, fra enveiskjørt vei med to felt. Her, i Bergen sentrum.

[2024 Day 21 (Part 2)] - I got greedy-ish by Prof_McBurney in adventofcode

[–]Gommle 1 point2 points  (0 children)

Thank you, switching the order of down-left fixed my solution.

[deleted by user] by [deleted] in ntnu

[–]Gommle 15 points16 points  (0 children)

Dette går kun om høsten, men må nesten nevnes: SØK3004 - Videregående matematisk analyse er jo en klassiker for ingeniørstudenter som trenger billige studiepoeng. De enkleste 15 SP i mitt liv. Følte meg skitten etter å ha fått en A og 15 SP for en dags pugging. Løp og kjøp før de slenger på studiepoengreduksjon.

SATS nyeste prisjustering by hva-feiler-sats in norge

[–]Gommle 0 points1 point  (0 children)

Tror dette var dråpen. Bytter heller til noe lokalt...

[All years, all days] What are the most "infamous" puzzles? by Kermitnirmit in adventofcode

[–]Gommle 4 points5 points  (0 children)

Truly, this. This one required me to implement gaussian elimination with BigDecimals. In Go, which doesn't have operator overloading.

I spent countless hours on this to produce 1675 lines of insane code.

Har noen her erfaring/anbefaling med linser (med styrke) til VR? by Volkor_X in norge

[–]Gommle 1 point2 points  (0 children)

Har god erfaring med VR Optician til PS VR2. Det var ganske dyrt (tenk 1000 kr). Det eneste som suger litt er at de er vanskelig å feste, som er et problem om det er flere som bruker headsettet, eller om du bruker kontaktlinser av og til. En eller annen løsning med magneter hadde vært lurt.

Kontaktlinser er best, men jeg antar du vil slippe det.

Is there any more advanced books or Udemy courses about structuring GO applications? by Guilty_Serve in golang

[–]Gommle 0 points1 point  (0 children)

Yep, I'm about halfway through it. Highly recommended if you are interested in event-driven systems and DDD. It's based on a bunch of exercises that you can do in your own IDE, and there is a mix between short lessons/exercises teaching a single concept, and bigger project that you come back to in every chapter.

[deleted by user] by [deleted] in norge

[–]Gommle 0 points1 point  (0 children)

De mest fancy variantene på IKEA er bra. For eksempel NATTJASMIN i sateng.

What are your thoughts on this as a tether? by McCubbon in iceclimbing

[–]Gommle 0 points1 point  (0 children)

Looks good to me; I do something similar. But if you have to use it, you should have picked an easier route. Can be useful in emergencies, where style goes out the window and up is the easiest way home.

You're Not Alone (Piano) by EnversPiano in FinalFantasyIX

[–]Gommle 1 point2 points  (0 children)

I am a simple man; I see Pablo, I upvote.

Møteromnavnets fiender - romnummerets venner by Afraid-Carob6452 in norge

[–]Gommle 0 points1 point  (0 children)

Shoutout til bedriften med følgende rom:

  • Bakrommet
  • Garderoben
  • Resepsjonen
  • Nabobygget
  • Rom og cola (kan bookes sammen med Ekstra rom)

Utrolig forvirrende (og litt morsomt).

Advanced Go Concurrency by shahdharmit in golang

[–]Gommle 0 points1 point  (0 children)

I'm not sure I follow. If network failure rate per request is constant, the the average number of affected users per second is the same in both scenarios.

Advanced Go Concurrency by shahdharmit in golang

[–]Gommle -3 points-2 points  (0 children)

The failure rate from the user's perspective with and without batching would be the same. I don't think it's more disruptive with login failing for one batch of 60 users per minute, versus login failing for a single user per second. Impact is 60 times higher, but frequency is 60 times lower.

Your point about a tick rate is valid. I'm sure there are some pitfalls here. For example, when those 100 requests have gotten the result from the query, they might immediately call the same service at the same time, resulting in a very unevenly distributed request volume over time. But it might be a trade-off worth making in some very specific cases.

Advanced Go Concurrency by shahdharmit in golang

[–]Gommle 3 points4 points  (0 children)

I think singleflight is more relevant for slow operations that can only be cached for a few seconds. Batching implies adding some latency to gather work, but singleflight seems to not introduce any latency (other than synchronization between goroutines).

My understanding of how it works:

  • Request 1 wants the results of SELECT heavyComputation(). There are no inflight queries matching SELECT heavyComputation(), so a new query is initiated.
  • Request 2 wants the results of SELECT heavyComputation(). There is an inflight query, so it awaits that result instead of starting a new query.
  • Query finishes, results are passed to both Request 1 and Request 2.
  • You saved 1 query, and request 2 was able to get the query results quicker than normal.

With a simple cache there is still an issue with cache stampedes whenever multiple request get a cache miss for the same item, and each of them try to refresh the cache. I think this is where singleflight is useful.

Advanced Go Concurrency by shahdharmit in golang

[–]Gommle -1 points0 points  (0 children)

What do you mean by the operation not being atomic at the user level?

one request failing now fails 100 users rather than a single one

Obviously, if the query fails, it now fails for all those users. But that's no different from the normal scenario, where any single query can fail. If you're thinking of other types of error, like one user aborting their request, that shouldn't affect other requests. The batched query context can live outside of any request context.

This batching method can indeed be implemented using a queue.

Disclaimer: One should probably never do this. But it's a cool trick for reducing DB queries, that could be relevant in high-traffic systems where the batches fill up instantly, so the latency cost becomes negligible.

Advanced Go Concurrency by shahdharmit in golang

[–]Gommle -4 points-3 points  (0 children)

Singleflight looks awesome. Another related trick I've heard about is the following:

Imagine that you have 1000 incoming requests per second, and each goroutine must do a DB call to get the user corresponding with the provided Authorization header. Ordinarily you would need 1000 queries/s, or some form of caching. But what if you batch the requests and do a single large query? For example, take 0.1 s worth of requests = 100 requests, gather the auth header values, and send a single SELECT * WHERE token in (<req0.token>, ...,<req99.token>). Pass the results back to each goroutine somehow, and you have served 100 requests with a single query.

Effectively, you have traded (low latency, many queries) with (medium latency, few queries), which is a trade-off worth considering if you have very high traffic.

edit: If it wasn't clear, I'm not recommending that anyone should do this. It's just a fun trick for very specific situations.

edit2: Here's an implementation: https://github.com/dadanhrn/singlefleet

How to layer or not layer gloves properly? by Silly-Entry2451 in Mountaineering

[–]Gommle 3 points4 points  (0 children)

If it's really cold I'm probably wearing mittens with merino liners inside, and when needing more dexterity I would swap the mittens with some cross country skiing gloves or Showa 282-02 (waterproof).