HNHacker News
TopNewBestAskShowJobs

gmhafiz

24 karma · joined June 27, 2019

A software engineer, a chess player, and a medical doctor. https://www.gmhafiz.com
submissionscomments
gmhafiz··on Malaysia enforces ban on social media accounts for children younger than 16
> 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.

gmhafiz··on Show HN: Simple script to cripple personalized targeting from Facebook
How do they know what my behaviours are if I don't have Facebook?
gmhafiz··on Developing a Modern Full-Stack Application: Choosing the Right Tech Stack
https://echo.labstack.com/ a Go web framework
gmhafiz··on Web server 'hello world' benchmark: Go vs. Node.js vs. Nim vs. Bun
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.

gmhafiz··on EU tells Apple to open everything up to its rivals
Like the person said, the real thing. Brave and Firefox browsers you mention still use Safari engine underneath.
gmhafiz··on iCloud Drive silently deletes your content
https://syncthing.net
gmhafiz··on Nanosecond timestamp collisions are common
It is still in draft and I've watched the spec changed at least once.
gmhafiz··on Unexpected downsides of UUID keys in PostgreSQL
One potential downside is ULID does not have an RFC, unlike UUID V7
gmhafiz··on Unexpected downsides of UUID keys in PostgreSQL
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.

gmhafiz··on Pixel Tablet
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

gmhafiz··on Building a High Performance Data Integration Framework in Go
Sqlc quickly breaks down when you want to do dynamic select. This is where an orm, or query builder shines
gmhafiz··on Scaling PostgresML to 1M Requests per Second
For perspective, that single server is - 1TB of DDR4 RAM - 3TB of NVME SSD storage - 192 physical 2.7GHz cores (384 with hyperthreading
gmhafiz··on MS Teams Linux client is being retired. To be replaced by a progressive web app
I had to resort to chmod 400 on the autostart file to prevent ms teams from writing to that file
gmhafiz··on Back to basics: Writing an application using Go and PostgreSQL
iirc dockertest does not need docker itself to be installed. Container start up time otoh is instant.