Posts
7 posts
Product Quantization For Nearest Neighbor Search
How product quantization compresses vectors into short codes and searches them with table lookups, with worked examples.
CPU Caches
Have you ever bought a bunch of stamps so you don’t have to go to the post office every time you need to mail a letter? Caches are like that, but for computers. Instead of stamps, they store copies of the data that …
Expose "local" web server to internet with ngrok
I had a “local” web server that I wanted to share and collaborate with my friends. I was looking for ways to do so without the need to deploy it to the cloud. I came across ngrok reverse proxy and it is …
Simulate TCP and TLS Proxy using SOcket CAT
SOCAT is a command line based utility that establishes two bidirectional byte streams and transfers data between them. We can leverage SOCAT’s support for different types of sources and sinks to simulate TCP and TLS …
Linux Performance Checklist
USE Method USE (Utilization, Saturation and Errors) is a methodology to analyze performance of any system. In summary, the idea is to look at utilization, saturation and errors for each resource in the data path to …
Classloader Deadlocks!
Class-loader is an Object that is responsible for loading classes. Class-loaders locate the bytecode for a particular class, then transform that bytecode into a usable class in the runtime system. Java introduced …
Holder Pattern
Holder pattern is used to lazy initialize singleton instances. It is used as a replacement for for the expensive initialization of singleton instances using double checked locking. public class Something { private …