Author Archives: dilawarsr

November 8, 2025: Weekly Notes 2025/21

Last week; November 1, 2025: Weekly Notes, 2025/20

November 1, 2025: Weekly Notes, 2025/20

Last week

October 25, 2025: Weekly Notes 2025/19

  • Implementing a moderate-size form is a difficult problem. The UI is probably the easiest part.
    It’s the state management along with UX that makes it hard.
    It gives me the same vibe as working with spreadsheets—easy to get started, looks very simple
    until the data it handles becomes complex.
    Not to mention when relationships among columns or schema changes break almost everything.
  • I think what I am trying to say is that local changes have global effects and the blast radius is very high.
  • The more I learn the way of HTMX, the more I seem to like it.
    I should spend more time writing a few blog posts or examples of HTMX.
  • I am searching for solutions that stop rats from entering the car.
    I learned that ultrasound solutions do not work effectively since rats become habituated to them.
    Some folks suggest peppermint spray, tobacco leaves, etc.
    I park the car in the open, which usually keeps the rats out since street dogs attack them,
    but sometimes I still find rat droppings under the car.
  • Here is a quick way to clean your seat-belt:


October 25, 2025: Weekly Notes 2025/19


1c9395c136d54d75ac1d5388f3dd451e

  • Paying attention to the structure of communication and work is a full-time job.
    I hope more folks write about it in the context of small teams.
    There is a lot of documentation and advice for enterprise-like environments.
  • I’ve started playing with HTMX a little. I used it at work lately.
    Instead of sending JSON from the server, I am sending HTML using HTMX.
    It feels weird at first—but it is not!
    I am still not sure how far I can go with it.
    Note that I have a PHP 8 monolith at work rather than a JSON API + Vue/React app.
  • You can read about it here:

    https://htmx.org/essays/hateoas/
    .
    Note that you can find an equal number of decent articles suggesting why this is a bad idea!
  • It’s been a while since we heard from Evan.
    I’ve been itching to try Elm for a while.
    The frontend is a complex problem, and many folks recommend Elm to deal with it.



  • Which is a better input to an AI—text or pixels?
    Many believe pixels to be better:

    https://news.ycombinator.com/item?id=45658928
    .
    Karpathy worked (works?) at Tesla, which has its driving system entirely based on camera inputs!
  • I find pixels to be a more “natural” input in biological systems than language—for example,
    mammalian vision systems.
    Olfaction and haptics are equally natural.
    All of these modalities look very different from each other to me,
    even though they create final representations in neural activity.
    A bit like how Haskell and TeX are different even though they run on the same processor!!
  • I don’t think there is something terribly common in these two modalities,
    even if there are correlates or similarities in neural representation.
    Perhaps vision is much more complex than other modalities and

    More Is Different | Science
    .

How to use PostGres Enum in Phinx

Currently, Phinx doesn’t support enum for postgres: https://github.com/cakephp/phinx/issues/891. Someone mentioned a solution on the issue (https://github.com/cakephp/phinx/issues/891#issuecomment-774496499).

PHP
$this->execute("create type foo as enum ('bar1', 'bar2')");
$this->execute('alter table table_name add column foo_column foo');

This works! In my project, I’ve used this pattern multiple times. E.g.

PHP
// table to track bag-sample relationship.
$bagSample = $this->table('bag_sample_relationv1');
$bagSample->addColumn('sample_bag_code', 'string', ['null' => false])
->addColumn("sample_code", "string", ['null' => false, 'limit' => 20])
->addColumn('added_at', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])
->addIndex(['sample_bag_code', 'sample_code'], ['unique' => true])
->save();
// add a column with ENUM type.
$this->execute("create type BAG_SAMPLE_STATUS as ENUM('INSIDE', 'OUTSIDE', 'REMOVED')");
$this->execute("ALTER TABLE bag_sample_relationv1 ADD COLUMN status BAG_SAMPLE_STATUS DEFAULT 'INSIDE'");

October 18, 2025: Weekly Notes 2025/18

  • Over this weekend I drove over 1000 km. First to Bellary and then to Hyderabad and back to Bengaluru. Sandur is pretty nice in the morning during late monsoon.
    https://maps.app.goo.gl/hr6ij18By1aSgrQo8
  • I roughly got 16 17 km/l mileage from Nissan Micra XV CVT Micra XV CVT. I usually drive between 80 to 100 km/hr speed on the highway. The Bengaluru – Hyderabad is pretty OK but patches are pretty sub-standard.
    • The AC keeps malfunctioning — the cooling is pretty mild. The local mechanic on the way told me that something is wrong with expansion valve since gas pressure and compressor is working fine. The car is in warranty (from Spinny | Buy and Sell Used Cars). Their experience manager tried his best to schedule a visit in Hyderabad workshop but can’t find a slot since it is Diwali time.
  • I drove back October 25, 2025 night so that I don’t need a fully functional AC. Driving during the day with Kalu without proper functioning ac would be a nightmare for both of us.
    • It took me 9 hours to come back and had to sleep for half an hour on the roadside. Kalu slept during the later two third of the journey. The mild rain helped with temperature.
    • The trucks on the highway are much more well behaved than cars.
  • Drinking coffee to stay awake while driving is not the greatest of the idea. It kinda works but I always feel a “crash” after a while which is probably worse.
    • I still don’t know if there is a good solution to driving when feeling sleepy. If it is a long drive, you should just pull off and sleep in a lodge. But what to do when only couple of hours of driving is left? Some temporary solution may not be the worst of the idea!

October 11, 2025: Weekly Notes 2025/17

October 4, 2025: Weekly Notes 2025/16

  • In next 3 months, I need to run roughly 340 km to finish 1000 km this year. Doable!
  • I finally bought a used car from Spinny | Buy and Sell Used Cars. The experience was good. Test drives were on time and manager was extremely responsive. The car was delivered on time as promised.
    • I got a Nissan Micra which came with Spinny buyback insurance, i.e. they will buy it back for a fixed amount anytime for next 2 years. This car has a CVT automatic transmission, which is pretty smooth. It’s much better than AMT I am used to. The ride quality is nice, though I have no decent experience in other cars.
    • Yesterday, I went to meet a friend in this car. I got a mileage of 7km/l in Bengaluru traffic with AC on. I am hoping to get a >15km/l mileage on the highway and 10km/l in city (I don’t think it is possible in Bengaluru).
  • I found an excellent channel to learn more about working of cars.

    https://youtu.be/zRsAw5h6Thw?si=IIFKZHON7quOfTpm

  • I did not think much about Softwares this week (or last week). Most bandwidth went into buying this car. I am glad it is over.

September 27, 2025: Weekly Notes 2025/15

  • According to https://plantaddicts.com/are-lantana-poisonous/ and https://www.youtube.com/watch?v=x0Ecq1O_lzM and seeds and other parts as well are poisonous.
    • This plant is now ubiquitous — its everywhere in my neighborhood. Kaalu likes to eat its leaves. Ookie is fond of its green berries. Now, I am alarmed and thinking of cutting down most of them in my neighborhood.
  • Replacing the AMT unit of my Tata Nano XTA will cost me :rupee:1,30,000 which is a bit crazy. A local mechanic Gajendra (Vinayaka Motors) seems to found a cheaper solution which is affordable. Let’s see how it goes.
    • Nano is getting a bit smaller for me now. I usually travel with 3 people (including me), one medium size dog and luggage. Nano is barely enough. I am looking for spacious car with good safety rating. Looks like Tata Tiago may be a good candidate.
    • I did some browsing on https://www.spinny.com/ and OLX for comparing prices of second hand cars. Spinny is a good place to buy a car but for selling. I’ll probably sell Tata Nano XTA using the mechanic and buy one from Spinny. I am still not buying a new car!
  • I am at age when the proverb “can’t teach an old new tricks” is more and more applicable. Also working with a different age group is becoming a challenge since weights on values changes with age. The young can spend 10x time on the a task due to bad planning or execution, redo is four time, waste a lot of time and still declare it a “win”. I guess it is what is it đŸ€·đŸŸ.
  • How can you judge a programmer from her resume? Its not hard.
    • Lemma: How you do anything is the way you do everything!
    • Means carelessness you show in your resume will also be present in the code you are going to write. If your resume is careless written, has typos, and handing sentence, your code will have similar bugs. It shows you don’t care about your work!
    • If your resume is verbose, disjointed and have bad formatting, means your code will also be similar. It also shows, you don’t think about “why”. If you write and send your resume without asking “why” this resume for this job, you are going to do the same thing at job. You will write code without every asking “why”. If may be fine for some people!
    • I personally give a lot of weight to formatting and presentation, perhaps as much as I give to the content. If you don’t format and layout your resume neatly, that means you are not into UX or DX. Working with you is going to be a lot of pain. You code will probably work but a few folks will be able to read and understand it. You lack empathy! Be kind to your reader. Make your resume easy on eyes — pick right font, use non-hostile layout and keep is short.

September 20, 2025: Weekly Notes 2025/14

  • The automatic gear shift of my car Tata Nano XTA is bricked. My local mechanic at Carz Tec made it worse. Today, I managed to send it to the nearby Tata Service Center Adishakti Cars using TVS Roadside Assistant service.
    • The first person TVS Roadside Assistant assigned the ticket didn’t show up at my place. He would never tell me the time. He supposed to come at 5pm. But at 11:30pm he was still 20 km away but claiming to be at the shared location😠. Finally they arranged someone who can read the map.
    • Install a tow hook in your car and/or find out where it is. Also keep a small cable with you.
    • I still don’t have experience with Adishakti Cars. Let’s see how it goes.
  • I found BBC Radio 4 – In Our Time podcast. So far, I am really enjoying it. I listened to a few old podcasts. Work in 20th century was excellent. I like the soft spoken host and his style. He invites a few experts to the studio and discuss a grand theme with them. The town square of European and American public discourse seem to be so vastly different. While intellectuals seems to be more common in Europian public discussions, no one seems to give a shit about what they think in the USA! By no mean, I mean to suggest that it a bad or a good thing.
  • When you onboard a new member to your team, how long does it take for them to become productive? Especially when they are not familiar with tooling. I suspect the negative compounding effect to be very strong. They will spend a lot of time dealing with papercuts from not knowing tools, frameworks and possessing tribal knowledge of the codebase. Also the story of the codebase is not an easy thing to acquire.

September 6, 2025: Weekly Notes 2025/12

  • I ordered https://www.oreilly.com/library/view/typescript-cookbook/9781098136642/ early this week. The packaging smelled like kerosene so I returned it. Today, I got a less-stinky replacement. Whey did they wrap the book in such a stinky paper! The book is great. Its my second book on TS after https://effectivetypescript.com/ Can’t wait to read it. Already referred to it on Enum which are pretty finicky in TS.
    • It’s very impressive how much typescript can do while maintaining such a great compatibility with JS.
  • I am more and more concerned about stability of OS on my laptop. Which is funny because during my college days, I’d spend whole week on installing different login manager, window manager and OSes. I had Gentoo on the lab desktop and a Puppy Linux pen-drive with me all the time. These days, if anything is slightly different than muscle memory, I gets annoyed.
  • I am very close to replace my OpenSUSE TW with Debian 13 today. I want a robust base. Appimage is pretty good these days and I don’t see any reason for using a bleeding edge OS. OpenSUSE is a great OS but I wish zypper ref was faster and parallel download is available a year ago.
    • I may have to install Windows on my laptop since a few software (like Notion) has no good app on Linux. Also some of the consultancy work I do needs Windows e.g. kernel mini-filter etc. Also the sound quality in meetings is not very great on Linux. Not really a fault of Linux when vendors don’t spend anything on Linux.
  • Are there startups where folks worked 9 to 5 and succeeded?

August 23, 2025: Weekly Notes 2025/10

  • Context switching is very hard. I feel it. And everyone seem to agree. Apparently, it takes roughly 23 minutes to recover after “hey, got one minute?” interruption. Surprisingly, there is very little in written literature to back this “23 mins” number https://news.ycombinator.com/item?id=44999373.
  • My car (Tata Nano XTA) refused to start a couple of weeks ago. I thought old battery but turns out broken rubber pipes, rusted and leaking metal pipes causing engine to go “cold”. Until a few years ago, Tata cars used to suffer from metal rusting, but according to r/carsindia, they are much better these days. Anyway the car spent a week in garage and I spent roughly 14,000 (Car Didn’t Start) to fix it. The car being out in the open is also making things worse. I don’t park it inside the building since rat chewed wires a couple of times.
  • I learnt about “Residuality Theory” in software architecture on GOTO Tech Podcast. I kind of like it. I did more digging and found Residuality Theory: A Rebellious Take on Building Systems That Actually Survive.

Cost of storing videos as “good enough” frames

I am going to do something terrible — store videos in a SQL database!

I have some requirements that makes it an acceptable plan. I am building a “stream store” S. Once videos are stored in S, users should be able to fetch a video segment (in color or grayscale) between two given timestamps at a given FPS. One should also be able to annotate frame later e.g., “this frame has a face in it”. I’ll read the incoming video stream and save data as frames to a database (in addition to storing raw videos on a backup server).

The primary job of S is to provide frames for CV analysis, so serving pixel-perfect video stream is not a requirement.

  • The stored frames should be “good enough” can our CV algorithms/pipeline works without a performance drop.
  • The cost of storing frames should be as low as possible as long as the above requirement is met.

I am going to extract frames from video as JPEG — a lossy compression format. But what should be the quality of JPEG?

Experiments

I downloaded a sample mkv file — 1080p at 30 FPS to do simple analysis.

https://filesamples.com/samples/video/mkv/sample_1280x720.mkv

FPS 23.976
Duration 28.237
Size on disk 16.63 MB

I wrote a script that extract frames from the mkv using ffmpeg. The argument -qscale:v set the quality of frames: 2 is the best and 32 is the worst.

  • ffmpeg -i ../sample_1280x720.mkv '%04d.png' generates PNG folder which is 1.3 GB, almost 78x of original size. PNG is a lossless format. This is as bad as its get.
  • ffmpeg -i ../sample_1280x720.mkv '%04d.jpg' generates JPEG with default quality picked by ffmpeg. It generates 33 MB of data. Almost 1.94x more. Great!
  • ffmpeg -i ../sample_1280x720.mkv -qscale:v 2 '%04d.jpg' generates JPEG with best possible quality. The generated size is 188 MB (almost 11x more!).

I did the same on a different file recorded at 60fps (original size . The data is below.

Size of frames (various FPS)

A few things to note

  • A video recorded at 60FPS takes more than twice the size compared to fps=30 case. Note video are using codec H264 (MPEG-4 AVC (part 10) (avc1)) which AFAIK compresses pretty well if two consecutive frames don’t differ too much. So this is expected.
  • Our recordings have the same feature. The interesting events happens rarely. We might drop many frames from the database after doing a quick analysis to figure out if they contain something interesting or not. So in the end, we don’t even have to store so many frame.

I think qscale:v=20 is a good default for my use case. Also I don’t have to extract frames at the same rate as they are recording. I am interested in events at the timescale of ~100ms and anything faster than 20FPS is overkill. i can just extract at 30 fps.

ffmpeg has a handy cli option -filter:v "fps=30" to fix the extraction fps to 30. Here is bonus rust code that does this. Don’t copy-paste blindly, it may not work.

/// Explode the given video into JPEG frames.
///
/// - *path*: Path of video file
/// - *fps*: Extract these many frames per seconds. The video may contain
///   more or less frames in a second.
pub fn extract_jpegs<P: AsRef<Path> + std::fmt::Debug>(
    path: P,
    fps: u16,
    recording_start_timestamp_ms: i64
) -> anyhow::Result<usize> {
    anyhow::ensure!(path.as_ref().exists(), "{:?} does not exists", path);
    tracing::debug!(
        "Extracting frames from {:?} for fps={fps} and jpg qscale {:?}.",
        path.as_ref(),
        self.qscale
    );

    let inst = Instant::now();
    let mut cmd = std::process::Command::new(&self.ffmpeg_bin_path);
    cmd.arg("-i").arg(path.as_ref());

    // Extract at a given fps. Thanks <https://askubuntu.com/a/1019417/39035>.
    cmd.arg("-filter:v").arg(format!("fps={fps}"));

    if let Some(qscale) = self.qscale {
        tracing::debug!("Setting qscale to {qscale}");
        cmd.arg("-quality:v");
        cmd.arg(qscale.to_string());
    }

    cmd.arg(self.frame_directory.join("%05d.jpg"));
    let output = cmd.output()?;
    anyhow::ensure!(
        output.status.success(),
        "Command failed\n.{}\n{}",
        String::from_utf8_lossy(&output.stdout),
        String::from_utf8_lossy(&output.stderr)
    );

    tracing::debug!(
        "Extraction to {:?} is complete, took {:?}.",
        &self.frame_directory,
        inst.elapsed()
    );
}

August 16, 2025: Weekly Notes 2025/09

  • Ookie daycare has independence day celebration. Anu found a costume for her.
    ookie-aug15-1 -- Independence Day celebration at Ookie Daycare ookie-aug15-2 -- Ookie in street on tri-cycle
  • Notion raised the Plus plan’s monthly cost from $5 to $12, which I grudgingly paid. I guess time to ask for a raise 😆. Even though AI is often pushed down my throat, Notion is very good at what it does. I use it for nearly all of my work.
    • It was is just too much hassle in migrating to Joplin or Obsidian. Besides publishing and syncing services cost roughly the same.
  • Notion is mostly being built in a high-income country and I am in a medium income country. I understand that I need to pay this price. We need more software and service that are built and used by folks in same income range like Zoho is for business. Only if they have something good for personal use.
  • At work, I am more willing to take responsibilities and ownership — lead role. I was reluctant before and wanted to remain IC for a while to avoid dealing with people problems. I was naive, people problems always find you!
  • This week went into learning about what is current in software architectures and system design. This blog Everything I know about good system design was timely.
    • And I didn’t do any planned work on my personal projects. Perhaps time has come to make peace with the fact and I can do only one or a few things in life properly.

Some Thoughts on “Peopleware at Startup”

How important are people to the success of your startup? I believe the answer to be somewhere in between of “very” and “what else is there”. And so startups go hunting for rock-star, or 10x programmers.

Do you really need to hire a few 10x engineers to succeed? Of course not! One of my favorite band “Indian Ocean” has average musicians and yet they make great music. Afghanistan and New Zeeland cricket team has done remarkably well without having rock-stars. I firmly believe that a programmer who is barely 10% better at day to day chores is at least twice or thrice a productive as normal engineer over a course of a year! The reason is the non-linearity called compounding.

You may have felt it in school. A kid who puts 5-10% extra effort every day may become twice as accomplished at the end of the year. Folks who do well at competitive exams seem to understand this very well, though they articulate it as discipline (and hard work). A fund with 5% compounding interests doubles every 14 years, with 10% every 7 years, with 15% every 5 years. A mere 10% change in day to day activity can reduce the timelines by 10 years (and vice versa)!

I firmly believe that many day-to-day activities related to software development have strong compounding effect on its completion or quality, or both.

Finding force-multipliers

How does a project get to be a year late? One day at a time.

When I was in college, Prof. H. Narayanan told me once, “You are creative, but you should also be right!” I didn’t think much of it that time. When you like working with computers, you can’t stop appreciating how hard it is to get it “right”.

Is it possible to get hard problems right in the first or second try? Eventually yes. I mean, anyone can make good progress on anything given “enough” time with consistent effort! But if we are a startup, we don’t have the luxury of spending years. I think we can get it right in first or second attempt if you do the “planning”. You could break the hard problem down to simpler problems that your team and solve with minimal supervision. If you can’t, find someone who can!

Let me put it more concretely. Let’s say I can solve a class A problem 50% of time, class B 90% of time, and class C almost always, i.e., 99% of times. What are my chances of solving a problem if I can break it into two problems of class A, or four class B, or eight class C problems?

Class of sub-problemsChance of solving one problem of this class# ProblemsChance of solving all
A502 of class A25%
B754 of class B31%
C998 of class C92%

You have two options. Find someone who can solve the master problem with 92% chance, or find someone who can break it into eight class C problems. I always seek out the later type of people when I conduct interviews. People who can partition a problem into multiple simpler problems that can be delegated to others. These folks are force multiplier (positive compounding, that is)!

This leads to a corollary that 10x engineers are not necessary. I’ve not met one yet, let alone hiring one. There is an easier way. Search for normal devs who show signs of positive compounding. These folks are usually disciplined in some way, and excellent with tools. Add a force multiplier to the team, and you are done.

None of the musicians in the band Indian Ocean is what I’d call a 10x musician, but their work is of great quality and value. Why can’t start up teams be like that?

Managing Peopleware

The top performers' space is quieter, more prive

A lot has been written about managing teams. You hire talented and energetic people, and they start off very well. You think everything is great but suddenly after a year or so, things are lukewarm at best. What is going on?

In case of young hires, the reason can be pretty really simple. It not always the case that management is evil. When you start a new job (or a PhD program), there is a sense of anticipation. And when you finish a hard project, there is a sense of accomplishment. At these stages, one feels good and life is good. It’s the middle years — after anticipation is over and before accomplishment — that are taxing. If you don’t want to spend time motivating your young hires then just don’t hire anyone under 30s. Though, I’d recommend hiring talented young folks but ensure that they leave for greener pasture in a year or two on good terms.

For experienced hires, perhaps the reason is equally simple. Everyone has a different set of values, and what you value most may not be on the top of their list. You may value product-market-fit and customer-satisfaction, or the next fund-raise above everything else, but the developer just wants to write Rust and clean up tech-debt rather than thinking about any of that! Can you figure out how to work with your peopleware without asking them to sort their values according to your list?

Small things also matter a lot. Programming is a form of writing, and writing is primarily a solitary activity. If someone is good at it, they must have enjoyed spending a considerable time alone learning the craft. Don’t disturb them every couple of hours by sending notifications and emails. Schedule your communication effectively. These minor irritant compounds negatively on a developer psyche, much like “Scar Tissues Make Relationships Wear Out” — John Ousterhout.

I know some very good programmers who are good at talking, and even documentation, but I haven’t seen one yet who loves being a social-butterfly all the time, and doesn’t hate context-switching.

Leadership ensures ‘Everyone Going In the Same Direction’

There is much more to leadership, but I am very much content with this view. It is effective enough for managing a project, if not the whole organization! Therefore, the primary job of team leadership is communicating to ensure that everybody going in the same direction.

While I love setting up processes and workflows, I do recognize the creativity comes from people and not from processes. So there must be some channels for expressing creativity. But beware! I think creativity always conflict with that boring thing called ‘getting things done’. Being creative is nice, but “creative thinking” or thinking outside the box always leads to a different path than what you’ve charted, else it won’t be called creative.

The hardest part for leadership is to say “no” to seemingly good ideas that could lead the startup astray. I don’t feel very comfortable saying no to people for ideas, so I just don’t encourage “creative” ideas in most of the meetings. Like a young Ph.D. student, startup will do well not to indulge into “creative” things. The benefits are imaginary if any, but the cost (time spent) is real! There is time for being creative when you’ve not charted your course.

Also, I am a big fan of incremental improvements. The important meetings must be well-structured and focused, and any attempt to steal the focus should meet with a friendly frown and discouragement.

There is another indispensable aspect of leadership which is required to overcome problems discussed in A Group is Its Own Worst Enemy by Clay Shirky. If you are in this situation, then good luck. You must act decisively or give the position to someone who can. Leadership becomes a bit like using a toilet: you either shit or get off the seat!

Stress testing my router to know max transfer speed over WiFi/LAN

https://www.speedtest.net/ is great tool for learning about your internet connection speed.

If you are in a local environment, how do you figure out available bandwidth? Use cases: copying large files from one internal machine to another internal machine? Or running a local streaming service.

You can usehttps://iperf.fr/. You need two machines capable or running iperf3.

To test WiFi speed, at least one of connected via Wi-Fi. Both can also be connected by WiFi (worst case). My recommendation is to test in both cases.

  • Install iperf3 on both machines A and B.
  • Run iperf3 -s on machine A or use iperf3 -s -D to keep it running as daemon. Handy if you plan to test periodically.
  • Run iperf3 -c <ip_of_A> on machine B.

Sample output

Here is sample output at my home when both devices are connected by WiFi.

On a machine with IP 191.168.1.142, I run iperf3 in server mode.

$ iperf3 -s -D

Then on second machine

$ iperf3 -c 192.168.1.142
Connecting to host 192.168.1.142, port 5201
[  5] local 192.168.1.131 port 38888 connected to 192.168.1.142 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  12.8 MBytes   107 Mbits/sec    0    124 KBytes       
[  5]   1.00-2.00   sec  13.2 MBytes   111 Mbits/sec    0    124 KBytes       
[  5]   2.00-3.00   sec  13.1 MBytes   110 Mbits/sec    0    124 KBytes       
[  5]   3.00-4.00   sec  13.6 MBytes   114 Mbits/sec    0    124 KBytes       
[  5]   4.00-5.00   sec  13.0 MBytes   109 Mbits/sec    0    124 KBytes       
[  5]   5.00-6.00   sec  12.6 MBytes   106 Mbits/sec    0    124 KBytes       
[  5]   6.00-7.00   sec  11.2 MBytes  94.4 Mbits/sec    0    124 KBytes       
[  5]   7.00-8.00   sec  10.4 MBytes  87.0 Mbits/sec    0    124 KBytes       
[  5]   8.00-9.00   sec  13.0 MBytes   109 Mbits/sec    0    124 KBytes       
[  5]   9.00-10.00  sec  13.1 MBytes   110 Mbits/sec    0    124 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   126 MBytes   106 Mbits/sec    0            sender
[  5]   0.00-10.01  sec   126 MBytes   105 Mbits/sec                  receiver

iperf Done.

Here we go. I have some idea how fast I can transfer data between two computers on my local network.

August 9, 2025: Weekly Notes 2025/08

  • August 9, 2025 is Rakshabandhan which is a big festival. For many years, it has stopped being exciting for me, just like Holi and Diwali. When I was a kid, Rakhi used to be an exciting day. My three buas will visit us, stay over for a day or two and bring sweets and of course rakhi for their brother (my dad). The sweet of the season was ghevar. I don’t find that kind of ghevar here in Bengaluru. Perhaps you won’t find it in any big city unless you search for it. The sweets made in the villages and town are cheap. There is just not enough margin for shopkeepers/online platform to sell them.
  • I finally got a hard copy of one of my all-time favorite book. When I read this book last time a few years ago, I had no strong feeling about project management. This time the intentions are different. The reread is a very different experience.
  • https://pocketcasts.com/podcasts/9d4880a0-6a51-0139-3424-0acc26574db2/8c1458b3-3c4c-4be5-9429-5eb681d41172 was a good podcast. It resonated with me quite strongly.


    Ninety-five, [perhaps] 99% of the applications on the planet are and should remain monoliths. Full stop, end of story… I mean, I love distributed systems. I’ve lived in it for about 25 years, and, like, I just get joy from doing this kind of thing. And I read the papers, and, like, I find it super exciting
 The vast majority of you should only be dragged kicking and screaming into distributed systems rather than starting from the beginning.” — Randy Shoup


    image.png -- A Classic Book: The Mythical Man-Month
  • I need to plan my weekends a bit more seriously. Last three weekends were not very productive.

  • I wrote a few (wip) design docs at work. Doing a good job at them is really hard and time-consuming! Totally agree with Writing a good design document and many comments on HN on this topic.

    > Think of a design document like a proof in mathematics. The goal of a proof is to convince the reader that the theorem is true. The goal of a design document is to convince the reader the design is optimal given the situation. The most important person to convince is the author. The act of writing a design document helps to add rigor to what are otherwise vague intuitions. Writing reveals how sloppy your thinking was (and later, code will show how sloppy your writing was).

August 2, 2025: Weekly Note 2025/07

  • My energy is coming back after a couple of weeks of mild flu like symptoms. I still have occasional cough. I have 500km left to run to complete 1000km of run this year i.e. 5 months and 500km. Not bad!
  • This week was pretty boring, work-wise, routine CRUD stuff. Creating a UI that can CRUD a database properly turns out to be much harder than I expected. I am not yet sure what I did wrong. This maybe in the nature of the problem. I’ve selected a few courses/reading material on database design in hope to discover more. My working hypothesis is that it was inevitable because we simultaneously build and used the portal — waterfall model is from the days when web-development was mostly about this kind of work.
  • Software Radio had a good podcast https://se-radio.net/2025/07/se-radio-679-wesley-beary-on-api-design/ this week. It covered API design in many other episodes. Also learnt about Zalando RESTful API and Event Guidelines
  • I did a couple of interviews at work. One candidate was passable, but his CTC demands were way too high. Can’t blame a guy for trying!
  • Please keep your JD to the point and “boring”. If you add fluff, you invite fluff! I imagine a very few engineer who enjoys development getting excited about other things. You can mention anything else at the end. Especially if you don’t want to read unrelated things in a resume, keep them out of JD as well.
  • While reviewing a candidate profile, I ended up logging to leetcode after so many years. One this led to another, and I ended up doing a few problems this week. Not gonna lie, I thoroughly enjoyed it. I won’t be surprised if I end up spending more time there! That mean my project of writing a parser for netlist file will get delayed a bit.
  • Read A Group is Its Own Worst Enemy by Clay Shirky, an old classic. I learnt about this article from crell blog.

June 29, 2025: Weekly Note 2025/02

  • For the last couple of weeks, Ookie has been going to a day-care for a few hours. She gets to play with other kids there. “Playing with other kids” has been the reason for sending her there. After a few days of fuss, she now seems to be enjoying her time there. My very friendly neighbors think that she is too young to go to day-care!
  • Somehow I managed to run 400 km so far! My pace has been slowest. I still need to complete 600 km in the second half of the year.
    • I’ve started paying for RUNALYZE. It is nice that more and more services are offering purchase-parity plan for subscription for Indian users. I’ve been using jonasoreland/runnerup: A open source run tracker for a long time to sync my runs with Runalyze/Strava. One dollar=Rs 100, but it is roughly Rs 30 in purchase parity, so you have to reduce the pricing by third for Indian users! If you are doing this, I’d be happy to work for you for a purchase parity adjusted salary😛.
  • I added another small tool that generates QR codes with a logo. You can find it here https://tools.maxflow.in/tool/qrcodes.
  • I had a minor meltdown at work 😭. Not proud of it. It’s hard to keep cool when many co-workers write almost empty email without a subject/body to report bugs. I’ve been trying to get them to use GitLab issues for a few months now. Either, I need to disengage from work a little at this workplace, or find a place where co-workers are adults and not only they come to work but also know how to structure and plan it.
  • I read Programming as theory building : Naur.pdf and found it illuminating. I am pretty sure I’d have yawned reading it some 10 years ago. This article — written a year before I was born — put “programmers” at the center of software development. I don’t think I can reduce this article to soundbites. Do read. I learnt about this article from HN.

naur-prog-as-theory-building.png -- Naur - Programming as theory building
– I wrote another small utility to remind me that a LWN article has finally become open. I am not able to pay for LWN subscription due to HDFC Bank related issues and I forget to revisit the link when it is open. Perhaps I can rent a VPS in this money and read the article two weeks later?! LWN is a great resource and I feel bad for not paying for it though!
– My Wallet from Budgetbakers is no longer syncing with HDFC Bank. Their support is working on the issue. HDFC seem to have changed their login flow again! My another bank, DBS Bank, doesn’t have saving account APIđŸ€Ł. I opened account here thinking that they are “tech-savvy”!
– I’ve been thinking about hiring a lot these days. At my current company which is an early stage startup, they have been struggling to hire a dev for the last 5 months! I was part of a few interviews — some went well and most were meh, but not able to hire for 5 months feels a bit extreme!
– Both mango trees in my street has mangoes this year! Here is my daughter Ookie playing with her friend. Fortunately, like many streets in Bengaluru, this street is a dead end and have no traffic.

signal-2025-06-28-192959_002.jpeg -- Ookie trying to convince her co-worker to use Rust while Kalu the fifth doing her stuff

July 26, 2025: Weekly Note 2025/06

  • I’ve been a little sick this whole week — a mild cold and occasional coughing. Running was a bit slow, and it took some effort to go out and run. Perhaps some flu.
  • Almost everyone I knew from college has left or about to leave my neighborhood — for search of job, education, status, money or other foo and bars. Sometimes I wonder if there is a point anymore in investing time in people these days?! I wish I am wrong. I have cultivated a few good relationships with my neighbors. Making friends become harder and harder as you age. Looks like it is a universal problem in industrial part of our civilization — at least major newspapers often write articles about it.
  • I am excited about what PHP has been doing lately. The language has added a few QoL improvements. Most recently the https://wiki.php.net/rfc/pipe-operator-v3.
  • I am thinking of writing down what I learnt about hiring for a startup (in Indian context) in a blog post. A lot of advice I find on internet is not very effective in our style of society.
  • I’ve been itching to pickup combinatorics — every problem requires a different trick, and the subject doesn’t require ten courses before making any progress. Like linear algebra, it is very computer friendly. One can do it a hobby or as profession.
    • I plan to implement some routing algorithms for PCB routing to integrate into KiCAD. https://github.com/freerouting/freerouting the inspiration. Of course, it is in Rust with Python bindings generated using PyO3.