DEV Community

Ashwar Sadh profile picture

Ashwar Sadh

404 bio not found

Joined Joined on 
Never list a folder with 125,000 files: finding one day's photos on Android by name lookup, gallop and bisect

Never list a folder with 125,000 files: finding one day's photos on Android by name lookup, gallop and bisect

Comments
5 min read
One session that routes, many that work: running a lot of Claude Code sessions with a local Conductor

One session that routes, many that work: running a lot of Claude Code sessions with a local Conductor

Comments
3 min read
Where a floating button must never appear on Android: a hand-kept deny list for payment apps, and the app's own category for games and video

Where a floating button must never appear on Android: a hand-kept deny list for payment apps, and the app's own category for games and video

Comments
5 min read
The GitHub API rate limit broke my self-updater for 20 minutes: falling back to the releases/latest redirect without trusting it any more

The GitHub API rate limit broke my self-updater for 20 minutes: falling back to the releases/latest redirect without trusting it any more

Comments
5 min read
Rebuilding rides from sparse readings: when the data can give you the distance but not the speed

Rebuilding rides from sparse readings: when the data can give you the distance but not the speed

Comments
6 min read
Which file is this thumbnail? Matching an on-screen photo to its file with a 64-bit difference hash, and refusing when two look alike

Which file is this thumbnail? Matching an on-screen photo to its file with a 64-bit difference hash, and refusing when two look alike

Comments 1
7 min read
LAN, Tailscale or cloud? Working out which route a phone connected over from the socket address and the headers a tunnel adds

LAN, Tailscale or cloud? Working out which route a phone connected over from the socket address and the headers a tunnel adds

Comments
3 min read
Small JSON files read on every tick were stalling Node.js on a saturated disk: a parse-once cache that looks at mtime once a second

Small JSON files read on every tick were stalling Node.js on a saturated disk: a parse-once cache that looks at mtime once a second

Comments
3 min read
Twenty phone photos into one PDF you can still email: skip PdfDocument and embed the JPEG bytes

Twenty phone photos into one PDF you can still email: skip PdfDocument and embed the JPEG bytes

Comments
5 min read
An alarm that fires once: one pure decision function, two delivery paths, and marking it sent only after it was

An alarm that fires once: one pure decision function, two delivery paths, and marking it sent only after it was

Comments
5 min read
The PIN was accepted and the UPI payment still failed: designing a fallback for a rule outside your app

The PIN was accepted and the UPI payment still failed: designing a fallback for a rule outside your app

Comments
5 min read
A cost circuit breaker for a service with a cheap backend and a metered one: watch the paid share, not the bill

A cost circuit breaker for a service with a cheap backend and a metered one: watch the paid share, not the bill

Comments
5 min read
Which country is a bare phone number from? Network vs SIM vs locale, and the roaming case that broke the simple rule

Which country is a bare phone number from? Network vs SIM vs locale, and the roaming case that broke the simple rule

Comments
4 min read
A 5-second file scan was freezing my phone UI: two worker-thread lanes and a hard timeout in Node.js

A 5-second file scan was freezing my phone UI: two worker-thread lanes and a hard timeout in Node.js

Comments
4 min read
Turning polled battery readings into charge sessions, and flagging the ones you only half saw

Turning polled battery readings into charge sessions, and flagging the ones you only half saw

Comments
5 min read
Don't rebuild the link: a test that a scanned UPI QR reaches the next app byte for byte

Don't rebuild the link: a test that a scanned UPI QR reaches the next app byte for byte

Comments
5 min read
Same audio, four request IDs: keying idempotency on the bytes so a phone can resend safely

Same audio, four request IDs: keying idempotency on the bytes so a phone can resend safely

Comments 1
6 min read
A button on the lock screen must not open a chat: an unlock trampoline on Android

A button on the lock screen must not open a chat: an unlock trampoline on Android

Comments
5 min read
Binding to 127.0.0.1 is not enough: keeping a local control API away from the web pages in your own browser

Binding to 127.0.0.1 is not enough: keeping a local control API away from the web pages in your own browser

Comments
4 min read
Polling someone else's API politely: an interval that follows the vehicle's state, a per-user floor and one global token bucket

Polling someone else's API politely: an interval that follows the vehicle's state, a per-user floor and one global token bucket

Comments
4 min read
A heartbeat that goes quiet when the route is dead: signed presence records with a short TTL

A heartbeat that goes quiet when the route is dead: signed presence records with a short TTL

Comments
3 min read
A share-target Activity that must not run twice: why it finishes itself when Android restores it

A share-target Activity that must not run twice: why it finishes itself when Android restores it

Comments
3 min read
The caller's number was a timestamp: picking a phone number out of an Android call notification

The caller's number was a timestamp: picking a phone number out of an Android call notification

Comments
4 min read
The desktop app you scrape updated overnight: a version watch that re-checks what you depend on, once per change

The desktop app you scrape updated overnight: a version watch that re-checks what you depend on, once per change

Comments
4 min read
Check for updates always, restart only when nobody is typing: an idle gate for a self-updating Node.js helper

Check for updates always, restart only when nobody is typing: an idle gate for a self-updating Node.js helper

Comments
4 min read
Real range from a scooter's battery readings: sum the kilometres, sum the percent, then divide

Real range from a scooter's battery readings: sum the kilometres, sum the percent, then divide

Comments
3 min read
Four fields of a UPI QR worth reading before you hand it off, and the edge cases in each

Four fields of a UPI QR worth reading before you hand it off, and the edge cases in each

Comments
4 min read
Power saving switched my accessibility service off. When is an app allowed to switch it back on?

Power saving switched my accessibility service off. When is an app allowed to switch it back on?

Comments
4 min read
One instance per user, not per machine: a lock file that survives RDP reconnects

One instance per user, not per machine: a lock file that survives RDP reconnects

Comments
4 min read
A JSON state file ended in zeros after an unclean shutdown: quarantine it, then salvage every record you can

A JSON state file ended in zeros after an unclean shutdown: quarantine it, then salvage every record you can

Comments
5 min read
A 'remember my choice' default that can't strand the user: picking a UPI app on Android

A 'remember my choice' default that can't strand the user: picking a UPI app on Android

Comments
4 min read
Fixing the bad write doesn't fix the bad data: wiping a poisoned on-device cache with a schema version

Fixing the bad write doesn't fix the bad data: wiping a poisoned on-device cache with a schema version

1
Comments 1
4 min read
Works on localhost, silent from the phone: Windows Firewall rules for a LAN app

Works on localhost, silent from the phone: Windows Firewall rules for a LAN app

Comments
4 min read
Freeing 400 MB idle processes without breaking anything: ship the cleanup in dry-run first

Freeing 400 MB idle processes without breaking anything: ship the cleanup in dry-run first

Comments
5 min read
Handing a upi:// link to a UPI app on Android and reading what comes back

Handing a upi:// link to a UPI app on Android and reading what comes back

Comments
4 min read
Keeping a floating button steady while another app repaints: a hold window with hard exits

Keeping a floating button steady while another app repaints: a hold window with hard exits

Comments
5 min read
One UDP port, several Windows users: LAN discovery that works on a shared PC

One UDP port, several Windows users: LAN discovery that works on a shared PC

Comments
4 min read
When the user is busy, don't drop the UI action: a small replay queue in Node.js

When the user is busy, don't drop the UI action: a small replay queue in Node.js

Comments
4 min read
When ML Kit can't read a worn, printed QR: a cheapest-first fallback ladder on Android

When ML Kit can't read a worn, printed QR: a cheapest-first fallback ladder on Android

Comments
4 min read
Ask for a Play Store review once, after the app has done its job

Ask for a Play Store review once, after the app has done its job

Comments
4 min read
Updating text at the cursor as a transcript changes, without retyping the whole thing

Updating text at the cursor as a transcript changes, without retyping the whole thing

Comments
4 min read
Don't type into a window someone is using: a cross-platform idle gate in Node.js

Don't type into a window someone is using: a cross-platform idle gate in Node.js

Comments
4 min read
Two Android manifest lines that changed what my app could see and do

Two Android manifest lines that changed what my app could see and do

Comments
3 min read
Ask for the battery exemption only on the phones that need it

Ask for the battery exemption only on the phones that need it

Comments
3 min read
Watching the Windows clipboard from Node.js without polling

Watching the Windows clipboard from Node.js without polling

Comments
4 min read
Was that wake warm? Measuring prompt-cache hits from Claude Code transcripts

Was that wake warm? Measuring prompt-cache hits from Claude Code transcripts

Comments
5 min read
Knowing who is on the line without call-log permissions on Android

Knowing who is on the line without call-log permissions on Android

1
Comments 1
3 min read
Reading a UPI QR from a shared image on Android, fully offline

Reading a UPI QR from a shared image on Android, fully offline

Comments
4 min read
Resuming work at a time you only know from an error message

Resuming work at a time you only know from an error message

Comments
5 min read
Dictating the prose parts of a developer's day on Windows (commit messages, PR descriptions, issue replies)

Dictating the prose parts of a developer's day on Windows (commit messages, PR descriptions, issue replies)

1
Comments 1
4 min read
Messaging an unsaved number on Android: links, country codes and keeping the user in control

Messaging an unsaved number on Android: links, country codes and keeping the user in control

Comments
4 min read
Building a phone remote for a desktop app that has no API

Building a phone remote for a desktop app that has no API

Comments 2
3 min read
loading...