Persist Tempfile in Ruby

Ruby deletes temp files when a reference to Tempfile is garbage collected by using finalizer. We can reopen and patch Tempfile class and add persist method which will move Tempfile and unregister the finalizer which is responsible for cleanup

Author's profile picture Suraj Nath on Ruby and Tempfile

Rant: HTTP status codes

API design matters and it makes your API hard to use when you derail from well established standards.

Author's profile picture Suraj Nath on rant and REST-APIs

My Kubernetes/Kubectl Cheat Sheet

Here are few commands that I find myself using a lot when I am working with Kubectl/Kubernetes

Author's profile picture Suraj Nath on k8s, gke, and docker

TIL - Connection pooling and PgBouncer

Connection pooling is the technique used to reduce the workload on a database server by pooling/reusing connections.

Connection pooling has its upside and downsides, Upside is, A connection pooler can reduce the total number & number of idle connection to a db server, while downside it can add latency.

Author's profile picture Suraj Nath on PgBouncer, PostgreSQL, and Rails

TIL - Tempfile and Tempdir

Tempfile & Tempdir is the way to create temporary files and directories.

Author's profile picture Suraj Nath on TIL

Reducing build sizes in Unity3D

I was building a Unity3D application and during its development, I learned few things about Unity’s build system.

Author's profile picture Suraj Nath on unity3d and blender

Recommender Systems and my experiment with Music Recommendation

If you bought something from Amazon or watched a video on YouTube then you have interacted with a Recommender system in action, suggesting you more things to buy or watch.

Author's profile picture Suraj Nath on ML, python, and music