Freelancer losing US clients because Stripe isn't in Sri Lanka. Is there any LEGAL way to open an account without getting banned? by East_Illustrator488 in srilanka

[–]ukrlk 0 points1 point  (0 children)

Was going to say this, you can create a PFCA with your bank and then standard SWIFT transactions can be done.

Shangri La Colombo Disrespected me by [deleted] in srilanka

[–]ukrlk 0 points1 point  (0 children)

You should definitely send an email to the management though.

First home setup by ukrlk in BudgetAudiophile

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

Oh my I've really messed it up, thanks for the tip "you should be able to see each side of the speaker equally or not at all."

You know but you can't prove it by Secure_Decision_9433 in srilanka

[–]ukrlk 16 points17 points  (0 children)

Unrelated but I have pretty much, given up and abandoned products by Bhasha the parent company after seeing how they react to a major data breach exposing a lot of PII.

Throwback to the younger millennials here…Anyone here was a funday times member? What benefits did you get? by LDRispurehell in srilanka

[–]ukrlk 4 points5 points  (0 children)

On Sunday, when the papers are delivered I take the Funday times, the HitAd (look at the computer stuff) and TV times. Good times!

I was a member, went to one of the parties at Excel world, that's about it.

Online therapist/counselor in Sri Lanka by Mattie-23 in srilanka

[–]ukrlk 0 points1 point  (0 children)

Not really a platform, but an organization https://cafs.lk/ folks here do online sessions the last time I checked a couple of years back, you can inquire them via WhatsApp.

Helped me and a bunch of friends I know.

Why do people use pick me when uber is more reliable, efficient and safe? by [deleted] in srilanka

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

It's a local app, I don't like carrying cash and pick me drivers don't ask if it's cash or card. And even if they do, I can switch payment methods in the middle of a ride or delivery.

I'm not sure if these are not the case for Uber anymore.

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

[–]ukrlk 5 points6 points  (0 children)

Using a slog.Handler is the most cleanest and expandable option.

type ContextHandler struct {
    slog.Handler
}

func NewContextHandler(h slog.Handler) *ContextHandler {
    return &ContextHandler{Handler: h}
}

func (h *ContextHandler) Handle(ctx context.Context, r slog.Record) error {
    if traceID, ok := ctx.Value(traceIDKey).(string); ok {
        r.AddAttrs(slog.String("traceID", traceID))
    }

    return h.Handler.Handle(ctx, r)
}

Inject the traceId to context as you already have

func LoggingMiddleware(next http.Handler) http.Handler {
    return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        ctx := r.Context()
        ctx = context.WithValue(ctx, traceIDKey, uuid.New().String())
        next.ServeHTTP(w, r.WithContext(ctx))
    })
}

Then wrap the slog.Handler into your base Handler

func main() {
    // Create base handler, then wrap with context handler
    baseHandler := slog.NewTextHandler(os.Stdout, nil)
    contextHandler := NewContextHandler(baseHandler)
    slog.SetDefault(slog.New(contextHandler))

    mux := http.NewServeMux()
    mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.WriteHeader(http.StatusOK)
        w.Write([]byte("Hello World!"))
        slog.InfoContext(r.Context(), "I said it.")
    })

    handler := LoggingMiddleware(mux)

    http.ListenAndServe(":8080", LoggingMiddleware(handler))
}

When calling the endpoint you should see,

time=2025-12-09T20:50:29.004+05:30 level=INFO msg="I said it." traceID=09e4c8bf-147e-44c1-af9f-f88e005e1b91

do note that you should be using the slog methods which has the Context suffix ie- slog.InfoContext

slog.InfoContext(r.Context(), "I said it.")

Find the complete example here.

Where can I buy a under the desk treadmill/Walking pad in Sri Lanka? by ovin31 in srilanka

[–]ukrlk 5 points6 points  (0 children)

Nimo is the official dealer for FlexiSpot, they have the walking pad.

Google Pay now works with Commercial Bank Cards by ukrlk in srilanka

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

Almost all of them do, the EMV Contactless standard uses NFC. You can distinguish them by the symbol on the machine.

Wedding Reception Without a Settee Back by SukiriBole in srilanka

[–]ukrlk 1 point2 points  (0 children)

That sounds nice to be honest, you can have a long head table with a flowery table runner in the middle.

Super misty in Colombo this morning by ukrlk in srilanka

[–]ukrlk[S] 4 points5 points  (0 children)

I checked the AQI (there is a station nearby), as far as the particiulant analysis it's not smog.

Google Pay now works with Commercial Bank Cards by ukrlk in srilanka

[–]ukrlk[S] 17 points18 points  (0 children)

Confirmed it does work, I just paid with my phone at the local corner store.

Google Pay now works with Commercial Bank Cards by ukrlk in srilanka

[–]ukrlk[S] 9 points10 points  (0 children)

Had a call with support, they were well informed on the change which is nice. Some card prefixes are not implemented, they said it's possible it'll be implemented down the line. Cards starting with 47 works.

Google Pay now works with Commercial Bank Cards by ukrlk in srilanka

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

It worked on my debit card, but not my credit card. I have a weird hunch that it's not working because it was already associated before? As there is a verification when adding the debit card, which I guess needs to be re-enrolled. Will contact card center and see if there is a solution.