Krut's Blog
https://iamkroot.github.io/
The personal blog of Krut Patelen-us[email protected] (Krut Patel)[email protected] (Krut Patel)Wed, 04 Jun 2025 00:00:00 GMThttps://iamkroot.github.io/til/tronTIL: The origin of the name "Tron"
https://iamkroot.github.io/til/tron
Wed, 04 Jun 2025 00:00:00 GMT[email protected] (Krut Patel)movieshistoryhttps://iamkroot.github.io/til/python-fstring-whitespaceTIL: 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)pythonhttps://iamkroot.github.io/til/barriers-vs-fencesTIL: 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)concurrencysystemshttps://iamkroot.github.io/til/semiconductorsTIL: High-level overview of semiconductor manufacturing
https://iamkroot.github.io/til/semiconductors
Tue, 28 Jan 2025 00:00:00 GMT[email protected] (Krut Patel)semiconductorshardwarehttps://iamkroot.github.io/til/console-jqueryTIL: 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)javascriptwebdevhttps://iamkroot.github.io/til/exception-in-signal-handlersTIL: 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++systemshttps://iamkroot.github.io/til/datalistTIL: `<datalist>` element in HTML
https://iamkroot.github.io/til/datalist
Thu, 29 Aug 2024 00:00:00 GMT[email protected] (Krut Patel)htmlwebdevhttps://iamkroot.github.io/til/octal-nulTIL: `\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)clanguageshttps://iamkroot.github.io/til/microcenturyTIL: 50 minutes is one microcentury
https://iamkroot.github.io/til/microcentury
Thu, 27 Jun 2024 00:00:00 GMT[email protected] (Krut Patel)randomtimehttps://iamkroot.github.io/til/git-searchTIL: 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)githttps://iamkroot.github.io/til/python-memoryviewTIL: Python has a `memoryview` builtin
https://iamkroot.github.io/til/python-memoryview
Tue, 28 May 2024 00:00:00 GMT[email protected] (Krut Patel)pythonhttps://iamkroot.github.io/til/cpp-if-initTIL: 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++languageshttps://iamkroot.github.io/til/gdb-until-shellTIL: 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)debugginghttps://iamkroot.github.io/til/hugepage-sizesTIL: 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)osmemoryhttps://iamkroot.github.io/til/python-perfcountTIL: `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)pythonperformancehttps://iamkroot.github.io/til/gnu-timeTIL: 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)shellperformancehttps://iamkroot.github.io/til/other-homesTIL: `~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)bashshellhttps://iamkroot.github.io/til/shell-undoTIL: 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)shellshortcutshttps://iamkroot.github.io/til/python-dup-in-dictTIL: 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)pythonlanguageshttps://iamkroot.github.io/blog/pointer-taggingMemory shenanigans
https://iamkroot.github.io/blog/pointer-tagging
A gentle, example-guided introduction to pointer taggingFri, 04 Aug 2023 00:00:00 GMT[email protected] (Krut Patel)pointersC++memoryhttps://iamkroot.github.io/til/cmake-boolsTIL: 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++languageshttps://iamkroot.github.io/blog/zig-memleakThe 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 FixedBufferAllocatorSat, 18 Mar 2023 00:00:00 GMT[email protected] (Krut Patel)zigdebuggingmemoryhttps://iamkroot.github.io/til/gcc-pragmaTIL: 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)compilerschistoryhttps://iamkroot.github.io/til/steal-powerTIL: 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)lifeindiahttps://iamkroot.github.io/til/ldd-vulnTIL: 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