on-internet

Python Day 13: Solving Logical Problems Using While Loops

1. Two Trains – Finding Common Stations Problem: Two trains stop at regular intervals: Train 1 stops at every 3rd station. Train 2 stops at every 5th station. Find: The first common station where both trains stop. The last common station where both trains stop. All common stations where both trains stop. Note: The total number of stations is unknown. Understanding the Logic Train 1 stops at: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30... Train 2 stops at: 5, 10, 15, 20, 25, 30, 35, 40, 45... Common stations: 15, 30, 45, 60, 75, 90... Both trains stop together at multiples of 15. Since the total number

Payment Testing Checklist: Cards, Refunds, Webhooks

Most payment bugs don't look like bugs. The checkout works, the demo card goes through, and the release ships. Then a customer is charged twice, a refund never reaches their bank, or an order stays "pending" because one webhook arrived before another. These failures cost more than a broken button. They turn into chargebacks, support tickets and lost trust, and they are hard to reproduce after the fact. This checklist is the one our QA engineers start from when we test payment flows for e-commerce, subscription and fintech products. It covers three areas where we see the most defects: card paym

Growing Revenue From Existing Clients Without Pushy Upselling

Many services firms treat account expansion as a sales motion that starts when delivery ends. A quarter goes by, someone notices the account has gone quiet, and a salesperson books a "check-in" that is really a pitch. The client can feel it. The delivery team is embarrassed by it. And the proposal that follows usually describes what the firm wants to sell, not what the client actually needs next. Earlier in my career, as a partner, I helped grow a software consulting company from about $6M to $60M in under three years, and later I founded and ran a fully remote consultancy. A large share of th

How to Fix a Slow Elementor Website: A Practical Checklist

Elementor is not slow by default, but it makes it very easy to build slow pages. This checklist goes from measuring the problem to the fixes that usually make the biggest difference. "Elementor is slow" is one of the most common complaints about WordPress sites, and it is only half true. Elementor makes it very easy to stack nested sections, add widget plugins and drop in full-size images, and each of those choices adds weight. The good news is that most slow Elementor sites can be made fast without rebuilding them on a different platform. Step 1: Measure before you change anything Run the slo

The EDIFACT ORDERS, Decoded: A Purchase Order Is a Contract Written in Segments

Short answer: ORDERS is UN/EDIFACT's purchase order message — the European and global counterpart to the X12 850 · Purchase Order. A buyer sends ORDERS to place, change, or cancel an order; the seller answers with ORDRSP · Order Response. If you trade with partners outside North America and only know the 850, ORDERS is the same business promise written in a different grammar — and the grammar is where integrations quietly break. I build EDI tooling for a living. Here is how ORDERS actually works, segment by segment. What does an ORDERS message actually contain? An ORDERS message sits inside an

Mundane and Irrelevant

It’s not a hook. This piece might suck. Continue reading on Medium »

How Edge Firewalls Actually Fingerprint Python Scrapers in 2026 (JA4, HTTP/2 Frames & Client Hints)

Most web scraping literature is hopelessly stuck in 2018. The standard advice—installing requests, rotating an array of randomized desktop User-Agent strings, and running BeautifulSoup inside a naive loop—collapses the millisecond it hits modern Web Application Firewalls (Cloudflare, Akamai, DataDome, PerimeterX, AWS WAF). Modern edge security engines do not care about your Python code. They evaluate the mathematical coherence of your networking stack. In this architectural teardown, we will dissect the concentric layers of modern bot mitigation and explore how to build resilient, unblockable

WhatsApp OTP login with SMS fallback: 3 bugs that cost us sign-ups

Most of our users in India are delivery riders, guards, pickers and telecallers signing up on budget Android phones. SMS OTP was our biggest sign-up leak: messages arrived late or not at all, and every resend cost money. We moved the primary OTP channel to WhatsApp and kept SMS as a fallback. Here's how it works and the bugs we hit. The flow The client calls a serverless function /send with the phone number. The function normalises the number to E.164, finds or creates the auth user, generates a 6-digit code, and sends it through a WhatsApp Business authentication template. Only a SHA-256 hash

Make Node exit on an unhandled rejection when Sentry is installed

I assumed that adding Sentry to a Node service wouldn't change how it crashes. An unhandled rejection kills a plain Node process, so it should kill mine too. It doesn't. I tested it, and the service kept answering requests after the rejection. Sentry had the error, but the process never died, so nothing would have restarted it. TL;DR On Node 24 with no Sentry, an unhandled rejection kills the process with exit code 1. With @sentry/node 11.16.0 and a plain Sentry.init, the same rejection is reported at level error and the process keeps serving requests. Sentry.onUnhandledRejectionIntegration({

Scrape YouTube search results and channels with exact upload dates and likes, without the YouTube API quota

The YouTube Data API is fine for a few lookups. It gets painful once you want to study a niche: A search call costs 100 quota units, and the default quota is 10,000 a day. That's about 100 searches before you're stuck until tomorrow. Search pages show "3 years ago" instead of a date, and "1.2M views" instead of a number. One YouTube search stops at about 500 videos, whatever tool you use. Likes, tags, category and chapters need a second request for every video. I built an Apify Actor that returns all of it in one table: YouTube Scraper: Search, Channels, Shorts & Video Details. It reads YouTub

AzuraCast's 2 App Matches and 14,742 Title Matches Describe Two Different Surfaces

AzuraCast's 2 App Matches and 14,742 Title Matches Describe Two Different Surfaces AzuraCast combines a web radio control panel, public player pages, station roles, and an API. A single title search can surface both the operational console and the listener-facing side. Treating those matches as one asset population hides the credential boundary. ZoomEye SDK probes on 22 November 2026 used sub_type=all, page 1, and pagesize=1. The exact query app="AzuraCast" returned 2 matches. title="AzuraCast" returned 14,742. The queries completed between 06:46 and 06:47 Asia/Shanghai. The large difference i

A Routine Docs Lookup Carried the Attack: What ContextCrush (CVE-2026-75130) Teaches About Gating Actions Caused by Tool Output

TL;DR CVE-2026-75130 (GitHub advisory GHSA-97r6-3rgm-v39r) covers Context7 through version 2.1.2, a popular MCP server that feeds library documentation to coding agents. Content from its "Custom AI Instructions" feature reached connected agents with no sanitization, so a poisoned rule could ride along on an ordinary documentation request. Noma Labs, who named the issue ContextCrush, showed the chain: read the .env files in the project root, send the contents to an attacker-controlled GitHub repository as an issue, then delete local folders "for cleanup." The scoring is not settled. The CVE rec

One Row Lied to the Whole Team

One Row Lied to the Whole Team A story about exactly-once, one restart, and the question nobody dared to ask. Friday, 23:17. Mei posted three words in the team channel: "Verified. Ship it." Five minutes earlier, the order pipeline had come back from a restart. In the target table, order 8821 was a single row: PAID, 1299.00. Identical to MySQL. Primary key matched. Value matched. Even the decimals matched. Ravi replied: "How many rows did you check?" "All of them," Mei said. "Twenty-three thousand. Not one missing." So the deployment log gained a line: End-to-end exactly-once — verified. It was

Foreclosed.

Continue reading on Medium »

Designing a Hint System That Does Not Spoil the Answer

A hint system is a negotiation between two goals. The player asking for help wants to make progress. The designer wants to preserve the moment of realisation that makes the game worth playing. Most hint systems fail by picking one side. The system I ended up with is graded. The first hint is about the route, not the word: it tells you which move you are stuck on and what kind of change that move probably involves. The second level narrows the target position. The third gives you a letter. You have to ask for each one, and the game records that you did. The important design choice is that no le

How to get a daily list of new UK companies from Companies House with Python

Disclosure: I built the Apify actor used in the second half of this post. It is a paid tool (pay per company). The first half is free and uses only the public Companies House register. Every weekday, between 2,000 and 3,500 new companies are incorporated in the UK. A new company needs an accountant, a bank account, insurance, payroll, a website, an office and suppliers, and it usually chooses them in its first few weeks. If you sell any of those, the Companies House register is one of the best lead sources there is: it is official, it is updated every day, and it is free to search. This post s

Removing a green screen in code: what I learned open-sourcing a video matting pipeline

This pipeline started as the Standard pipeline behind Zapmatte, the hosted green screen remover I run: upload a clip on the website, get a transparent video back. The hosted version made the workflow a form instead of a timeline — but every step inside it was still code, and code can be shared. So I took that pipeline, cleaned it up, and open-sourced it. This post is the tutorial I wish I had at the start: what the pipeline does, in what order, and how to run it. Why one keyer is not enough A plain chroma key works until it doesn't. The screen is never evenly lit, shadows fall on it, and the m

A trailing slash on our site is a 308, a capital letter is a 404, and /. is the homepage answering 200

The URL a reader asks for is not always the URL you published. It arrives with a UTM parameter stapled on, or with a trailing slash from a CMS, or capitalised because somebody typed it off a slide, or with a doubled slash because two bits of string concatenation both added one. Notifio's site is 38 pages. I have audited what those 38 URLs are before. This time I asked for each of them three different wrong ways, recorded the status code, the redirect target, the <title>, the canonical and every robots meta, and then went after the odd shapes by hand. The systematic part: 114 requests For each

Getting exact-match eBay sold prices: filtering out the wrong model, size and card number

Disclosure: we build CompsAPI, the sold-price API this post uses. It was drafted with AI assistance, and every number below comes from calls we made on 22 November 2026. A free key needs no card. Search eBay sold listings for iphone 13 pro 256gb and take the median. You get a clean looking number. It is also wrong, because eBay's search matched the Pro Max, a pile of listings that name three storage sizes at once, and a few phones that are not an iPhone 13 at all. Here is that search through /v1/comps, twice, a few seconds apart: sales median default 221 $307.51 with match=strict 90 $270.00 13

How I Started Writing

It all started with my first crush. I had so much to say, but I didn’t know how to say it. Continue reading on Medium »

My Medium Journey So Far

My earnings, audience growth and read stats after almost a year of weekly writing Continue reading on Medium »

Drizzle vs Prisma: Which ORM Should You Choose?

When building a backend, choosing a database is only one part of the decision. Another important question is how will your application… Continue reading on Medium »

Older stories