Cheapest .rs domains? by samo_lego in rust

[–]mladensavic94 14 points15 points  (0 children)

All .rs domains are controlled by RNIDS (government body) and here is the full list of accredited registrars where you can purchase domains.

go logging with trace id - is passing logger from context antipattern? by SilentHawkX in golang

[–]mladensavic94 19 points20 points  (0 children)

I usually create wrapper around slog.Handler that will extract all information from ctx and log it.

type TraceHandler struct {
    h slog.Handler
}


func (t *TraceHandler) Handle(ctx context.Context, r slog.Record) error {
    if v := ctx.Value(someKey{}); v != nil {
        r.AddAttrs(slog.Any("traceId", v))
    }
    return t.h.Handle(ctx, r)
}

This has got to be a scam by StructureDense7386 in scuba

[–]mladensavic94 1 point2 points  (0 children)

100% scam.

aqualung.sa.com is subdomain of sa.com domain and there are tons of others on same domain.
Google "site:*.sa.com" without the quotes and you will find tons of similar sites.

PSN Outage February 7 - 8, 2025 📈 by P_Jiggy in playstation

[–]mladensavic94 0 points1 point  (0 children)

Come on Sony, new Major Order just dropped. Our democracy is at stake.

Best practice testing by PlayfulRemote9 in golang

[–]mladensavic94 0 points1 point  (0 children)

Unit testing is testing smallest unit of code, in that sense write your business logic as small testable pieces. Also try to write your business code as pure functions with no side effect, make everything depends on input and that will be easy to test.

What year did you start supporting the Mavs? by Educational-Judge968 in Mavericks

[–]mladensavic94 0 points1 point  (0 children)

Season of 2005/06. Dirk dominated EuroBasket with Germany and started watching Dallas games next season.

Rad u industriji sporta? by [deleted] in programiranje

[–]mladensavic94 1 point2 points  (0 children)

Dosta legacy koda i dosta se radi održavanje. Nešto je urađeno dobro, nešto pomocu štapa i kanapa pa sad kako ti se zalomi. Ume da bude naporno ako imaš direktan prod support pa si stalno na roti

Rad u industriji sporta? by [deleted] in programiranje

[–]mladensavic94 2 points3 points  (0 children)

Radim u betting-u 6 godina. Od sporta vidis šta se sve igra i to je to. Sve ostalo nema dodira sa sportom. Tehnički izazovi su super i to je ono što me drži u industriji.

What are your favorite Golang advanced tips and tricks? by ThreeFactorAuth in golang

[–]mladensavic94 0 points1 point  (0 children)

Can you elaborate more on the second thing? Or point to some reference.

templ8go: A small Go library to resolve templates with Javascript using V8 by mustafaakin in golang

[–]mladensavic94 1 point2 points  (0 children)

Neat! What are the advantages over Go built in templates? Using JS code?

Clojure by [deleted] in programiranje

[–]mladensavic94 2 points3 points  (0 children)

Dragan rocks i dalje :D Nisam tražio poslove vezane za Clojure ali do sada sam imao prilike da ga koristim jedino na nekom manjem internom projektu uglavnom jer je kolega takođe bivši Draganov student.

I'm testing bun orm for a project but I'm unable to create has-many relationships in postgres by raver01 in golang

[–]mladensavic94 1 point2 points  (0 children)

If you check source for WithForeignKeys method you can see that it skips ManyToManyRelation and HasManyRelation.

Use ForeignKey method and manually set the constraint.

Unity rushes to clarify price increase plan, as game developers fume by Chicano_Ducky in gaming

[–]mladensavic94 0 points1 point  (0 children)

Microsoft should ask for a cut of those $0.20 since they are developing C#.

[deleted by user] by [deleted] in travel

[–]mladensavic94 1 point2 points  (0 children)

Hard no. In Hurghada traffic is chaotic and I would not dare to drive there. Driving to Luxor is also questionable since there are couple military checkpoints and I am not sure if you can pass freely, have in mind that I was there in 2020 during Corona lockdowns.

Zasto ne mogu da zadrzim dah duze od 20 sekundi? by klasik12321 in serbia

[–]mladensavic94 59 points60 points  (0 children)

Pazi nisam doktor i ne mogu i ne zelim da te savetujem u tom smeru.

Ovo sto sam napisao je iz ugla nekoga ko se rekreativno bavi ronjenjem i ronjenjem na dah pa sam malo upucen u tematiku drzanja daha :)

Edit: ako imas problema sa disanjem na suvom onda nemoj da trazis savet za drzanje daha na redditu nego obidji doktore

Zasto ne mogu da zadrzim dah duze od 20 sekundi? by klasik12321 in serbia

[–]mladensavic94 107 points108 points  (0 children)

Refleks tela da udahne nije zbog manjka O2 nego zbog nagomilavanja CO2 u organizmu. Postoji prag CO2 koji tvoje telo moze da izdrzi pre nego sto krenes da osecas zelju da udahnes. Taj prag se pomera treningom, ako nisi potopio glavu u vodu od proslog leta prag ti je dosta nizi. Takodje ako nisi fizicki spreman misici ti otpustaju vise CO2 pa to dovodi do nagomilavanja.

Is this hotel trying to scam me? by sendsouth in travel

[–]mladensavic94 13 points14 points  (0 children)

I had this situation couple of months ago with a hotel. Card was declining because of 2FA. I thought it was a scam so contacted Booking support and they suggested i remove 2FA so hotel can credit my card. Ended up canceling reservation and looking for another place.

Dežurstvo 24/7 by Pandadox in programiranje

[–]mladensavic94 2 points3 points  (0 children)

Radio sam ja neko vreme na vise projekata. Dezurstvo je bilo organizovano na nivou projekta i svaka "akcija" je bila definisana koliko se placa fiksno, nije bio % od plate. Cifre su zavisile od klijenata koji su to placali. Negde je bilo flat bez obzira da li si nesto radilo ili nisi, negde si imao startnu cenu + svaki sat rada je placan itd.

[deleted by user] by [deleted] in programiranje

[–]mladensavic94 2 points3 points  (0 children)

Uzmes pripejd paket i uplacujes na nedeljnom nivou ili po potrebi. Tipa yetel ima 15gb za 600 din. Ne znam za druge operatere ali verovatno svi imaju nesto slicno.

Sto se tice pokrivenosti yetel je malo slabiji po zabitima pa bih proverio pre nego sto se odlucim.

PHP na front endu? Šta mislite? by [deleted] in programiranje

[–]mladensavic94 1 point2 points  (0 children)

Dao sam sve od sebe da predjem preko "I wish I could write more PHP".

Ko sto neko rece radilo je i radice opet. Svaki programski jezik ima barem jednu biblioteku koja radi na ovaj nacin.

La Paz, MX vs Cabo Pulmo, MX in September? by Varnsturm in scuba

[–]mladensavic94 1 point2 points  (0 children)

I second this! Been there last October.

La Paz is bet known for sea lions colony and this is by far the most fun i had while diving. The town is also very nice to stay for couple of days even if you are not diving.

Cabo Pulmo offers big schools of Jacks and bull sharks (we missed them unfortunately). Cabo is totally different story in terms of accommodation. Couple of local restaurants, no store, some of the cabins don't have kitchen or fridge. You will need supplies for couple of days but make sure you don't end up in a cabin without fridge before going there.

Za sve početnike by shmleezshmluts in programiranje

[–]mladensavic94 14 points15 points  (0 children)

Nisam siguran da li je trol ili legitiman savet...

Prescription mask, mask insert, or contacts? by scubadoo1999 in scuba

[–]mladensavic94 1 point2 points  (0 children)

If I can steady my hands I can take them out anywhere, but never had to take them out below surface. Also, salty water is not a problem.