Krut's Blog https://iamkroot.github.io/ The personal blog of Krut Patel en-us [email protected] (Krut Patel) [email protected] (Krut Patel) Wed, 04 Jun 2025 00:00:00 GMT https://iamkroot.github.io/til/tron TIL: The origin of the name "Tron" https://iamkroot.github.io/til/tron Wed, 04 Jun 2025 00:00:00 GMT [email protected] (Krut Patel) movieshistory https://iamkroot.github.io/til/python-fstring-whitespace TIL: Python's debug f-string `{var =}` is whitespace-sensitive https://iamkroot.github.io/til/python-fstring-whitespace Mon, 10 Mar 2025 00:00:00 GMT [email protected] (Krut Patel) python https://iamkroot.github.io/til/barriers-vs-fences TIL: Barriers vs. Fences in concurrent programming https://iamkroot.github.io/til/barriers-vs-fences Thu, 13 Feb 2025 00:00:00 GMT [email protected] (Krut Patel) concurrencysystems https://iamkroot.github.io/til/semiconductors TIL: High-level overview of semiconductor manufacturing https://iamkroot.github.io/til/semiconductors Tue, 28 Jan 2025 00:00:00 GMT [email protected] (Krut Patel) semiconductorshardware https://iamkroot.github.io/til/console-jquery TIL: You can use `$` inside the browser query console https://iamkroot.github.io/til/console-jquery Tue, 07 Jan 2025 00:00:00 GMT [email protected] (Krut Patel) javascriptwebdev https://iamkroot.github.io/til/exception-in-signal-handlers TIL: You can throw a C++ exception from a signal handler!! https://iamkroot.github.io/til/exception-in-signal-handlers Mon, 30 Sep 2024 00:00:00 GMT [email protected] (Krut Patel) c++systems https://iamkroot.github.io/til/datalist TIL: `<datalist>` element in HTML https://iamkroot.github.io/til/datalist Thu, 29 Aug 2024 00:00:00 GMT [email protected] (Krut Patel) htmlwebdev https://iamkroot.github.io/til/octal-nul TIL: `\0` in C is actually in octal number notation https://iamkroot.github.io/til/octal-nul Sun, 25 Aug 2024 00:00:00 GMT [email protected] (Krut Patel) clanguages https://iamkroot.github.io/til/microcentury TIL: 50 minutes is one microcentury https://iamkroot.github.io/til/microcentury Thu, 27 Jun 2024 00:00:00 GMT [email protected] (Krut Patel) randomtime https://iamkroot.github.io/til/git-search TIL: git supports `:/foo` to find first commit with `foo` in first line https://iamkroot.github.io/til/git-search Tue, 18 Jun 2024 00:00:00 GMT [email protected] (Krut Patel) git https://iamkroot.github.io/til/python-memoryview TIL: Python has a `memoryview` builtin https://iamkroot.github.io/til/python-memoryview Tue, 28 May 2024 00:00:00 GMT [email protected] (Krut Patel) python https://iamkroot.github.io/til/cpp-if-init TIL: C++17 can do variable initialization inside `if` conditions https://iamkroot.github.io/til/cpp-if-init Thu, 23 May 2024 00:00:00 GMT [email protected] (Krut Patel) c++languages https://iamkroot.github.io/til/gdb-until-shell TIL: gdb has `until` and `shell` commands https://iamkroot.github.io/til/gdb-until-shell Sat, 11 May 2024 00:00:00 GMT [email protected] (Krut Patel) debugging https://iamkroot.github.io/til/hugepage-sizes TIL: Hugepages are 2MB and 1GB by design https://iamkroot.github.io/til/hugepage-sizes Fri, 12 Apr 2024 00:00:00 GMT [email protected] (Krut Patel) osmemory https://iamkroot.github.io/til/python-perfcount TIL: `time.perf_counter()` is a thing in Python https://iamkroot.github.io/til/python-perfcount Thu, 08 Feb 2024 00:00:00 GMT [email protected] (Krut Patel) pythonperformance https://iamkroot.github.io/til/gnu-time TIL: GNU `time` can show memory usage https://iamkroot.github.io/til/gnu-time Fri, 26 Jan 2024 00:00:00 GMT [email protected] (Krut Patel) shellperformance https://iamkroot.github.io/til/other-homes TIL: `~foo` expands to the HOME dir of that user in Bash https://iamkroot.github.io/til/other-homes Wed, 10 Jan 2024 00:00:00 GMT [email protected] (Krut Patel) bashshell https://iamkroot.github.io/til/shell-undo TIL: My shell has an undo shortcut https://iamkroot.github.io/til/shell-undo Sun, 17 Dec 2023 00:00:00 GMT [email protected] (Krut Patel) shellshortcuts https://iamkroot.github.io/til/python-dup-in-dict TIL: You can have "duplicate" keys in Python dicts https://iamkroot.github.io/til/python-dup-in-dict Sat, 04 Nov 2023 00:00:00 GMT [email protected] (Krut Patel) pythonlanguages https://iamkroot.github.io/blog/pointer-tagging Memory shenanigans https://iamkroot.github.io/blog/pointer-tagging A gentle, example-guided introduction to pointer tagging Fri, 04 Aug 2023 00:00:00 GMT [email protected] (Krut Patel) pointersC++memory https://iamkroot.github.io/til/cmake-bools TIL: CMake uses -NOTFOUND for boolean False https://iamkroot.github.io/til/cmake-bools Sun, 25 Jun 2023 00:00:00 GMT [email protected] (Krut Patel) c++languages https://iamkroot.github.io/blog/zig-memleak The Curious Case of a Memory Leak in a Zig program https://iamkroot.github.io/blog/zig-memleak Digs into a unexpected memory leak when using Zig's FixedBufferAllocator Sat, 18 Mar 2023 00:00:00 GMT [email protected] (Krut Patel) zigdebuggingmemory https://iamkroot.github.io/til/gcc-pragma TIL: Having a #pragma directive in your C code could launch a game! https://iamkroot.github.io/til/gcc-pragma Mon, 20 Feb 2023 00:00:00 GMT [email protected] (Krut Patel) compilerschistory https://iamkroot.github.io/til/steal-power TIL: It is _really_ easy to steal electricity in India https://iamkroot.github.io/til/steal-power Sun, 19 Feb 2023 00:00:00 GMT [email protected] (Krut Patel) lifeindia https://iamkroot.github.io/til/ldd-vuln TIL: Running `ldd` can cause arbitrary code execution https://iamkroot.github.io/til/ldd-vuln Tue, 29 Nov 2022 00:00:00 GMT [email protected] (Krut Patel) ELFlinuxsecurity