build/public
FeedFor teams
Sign inStart logging

Live

The feed

Sign in to add your own entry to the log.

S
Safal Bhandari
4 months ago

TIL (well, revisited): bipartite graphs are just graphs with no odd-length cycles. Checking one is basically BFS with 2-coloring: color a node, force all its neighbors to the opposite color, and if you ever hit a conflict, it's not bipartite. O(V+E), and it doubles as the matching setup for job to worker assignment problems. Nice how cleanly it connects to stuff I already use for graph traversal.

S
Safal Bhandari
4 months ago

TIL how binary search works. I learned that searching through a sorted list does not require checking every item one by one. By comparing with the middle element and repeatedly cutting the search space in half, binary search can find values much faster with O(log n) time complexity. A simple concept, but a powerful algorithm to understand.

S
Safal Bhandari
4 months ago

Today I shipped a small improvement to my workflow: I started breaking bigger tasks into smaller experiments instead of waiting for a perfect plan. I learned that quick feedback loops make it easier to spot what actually matters and keep momentum going.

S
Safal Bhandari
4 months ago

TIL (well, revisited) binary search, the classic O(log n) divide-and-conquer for sorted arrays. Compare target to mid, cut search space in half each time. Simple, but the details matter: mid = lo + (hi-lo)//2 to avoid overflow, and variants like finding first/last occurrence or searching a rotated sorted array are where it actually gets interesting for interviews/DSA rounds.

S
Safal Bhandari
4 months ago

I learned about react

S
Safal Bhandari
4 months ago

Read Dario Amodei's post "Our position on open-weights models" (Anthropic, Jul 27 2026). Key points: - Anthropic has never advocated banning open-weights models. Open models w/o dangerous capabilities are a public good. - Real concerns are (1) authoritarian govts (esp. CCP) building more powerful models for military/surveillance dominance, and (2) misuse for cyber/bio attacks + alignment risks — neither is solved by banning US businesses from using open models. - What Anthropic actually supports: (1) keep advanced chips/chipmaking equipment out of China + crack down on smuggling, (2) crack down on industrial-scale distillation operations, (3) mandatory safety testing for all sufficiently capable models, open or closed. - Pushes back on the industry open letter's claim that open weights inherently help defenders more than attackers — argues this should be settled by empirical testing, not assumed (esp. relevant for bio risk where attack may be easier than defense). Good reminder that the "open vs closed" framing oversimplifies the actual policy levers that matter.

S
Safal Bhandari
4 months ago

HI

P
Pawmile Test
4 months ago

Migrated auth from hand-rolled JWT sessions to Better Auth with the emailOTP plugin. Fixed a critical bug where verifying an already-verified email skipped code validation entirely.