gmhafiz

Joined 7 years ago

Karma
24
Submissions
14
Member since
Jun 27
A software engineer, a chess player, and a medical doctor. https://www.gmhafiz.com
View on Hacker News

Recent submissions

Comment · 5 months ago
> Remember, Malaysia is an officially Islamic country, with Islamic laws.

Malaysia is a secular country with secular laws. Islam is its official religion, and has a Syariah court that only applies to Muslim with limited jurisdiction.

Big difference than what you are trying to paint. As they cannot "suppress speech and civil liberties" if the law reach is limited.

Comment · 2 years ago
How do they know what my behaviours are if I don't have Facebook?
Comment · 2 years ago
https://echo.labstack.com/ a Go web framework
Comment · 3 years ago
In Go's net/http library, each request is served in a new goroutine. So it uses all CPU resources by default.

I'm not sure why its number is quite low though.

Comment · 3 years ago
Like the person said, the real thing. Brave and Firefox browsers you mention still use Safari engine underneath.
Comment · 3 years ago
Comment · 3 years ago
It is still in draft and I've watched the spec changed at least once.
Comment · 3 years ago
One potential downside is ULID does not have an RFC, unlike UUID V7
Comment · 3 years ago
Expanding on temporal information leak

1. Size: If a client receives a record with id=10004578, they can guess that 4578 orders have been made.

2. Rate of growth: Receiving two different orders means they can track the growth rate of record insertion.

And also

Iteration attack: If your API endpoints do not have authorization, an attacker can try to access with GET /api/users/1, GET /api/users/2, GET /api/users/3, etc. UUID makes this next to impossible.

Comment · 3 years ago
I had Samsung s9+ in 2018 and I did have monthly security upgrades up until 2022 when I had it. Their promise was 5 years of security upgrades.

I also had the latest Android version. iirc they promised 3 years of OS upgrades

Comment · 3 years ago
Sqlc quickly breaks down when you want to do dynamic select. This is where an orm, or query builder shines
Comment · 4 years ago
For perspective, that single server is - 1TB of DDR4 RAM - 3TB of NVME SSD storage - 192 physical 2.7GHz cores (384 with hyperthreading
Comment · 4 years ago
I had to resort to chmod 400 on the autostart file to prevent ms teams from writing to that file
Comment · 5 years ago
iirc dockertest does not need docker itself to be installed. Container start up time otoh is instant.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton