on-internet

Limpiar una columna de NIF en un CSV con Python (sin abrir Excel)

Te llega un CSV de 3.000 clientes. La mitad de los NIF llevan espacios, guiones o puntos; algunos están duplicados y una docena tienen la letra mal. Abrirlo en Excel y revisarlo a ojo no es una opción. Esto es lo mínimo que hace falta: normalizar, validar los tres formatos y marcar duplicados. Normalizar antes de comparar import re def normaliza(s: str) -> str: return re.sub(r"[^0-9A-Z]", "", s.upper()) 12.345.678-Z, 12345678 z y 12345678Z pasan a ser el mismo documento. Los tres validadores TABLA = "TRWAGMYFPDXBNJZSQVHLCKE" LETRAS_CIF = "JABCDEFGHI" def letra_dni(n: str) -> str: return TABLA[

FFT's log exponent just halved: 4.47x fewer gates at N=2^20

The FFT's log factor is now √log N, and it can't go any lower. OpenAI's November 24 preprint proves the Fourier transform takes N(log N)^{1/2+o(1)} linear gates — and no circuit can beat c·N√log N. That second half is the news. Faster algorithms are routine; a matching lower bound ends a 60-year-old question. The claim, exactly as stated I read the paper itself, not just the blog post about it: OpenAI, "The logarithmic exponent of finite Fourier transforms," November 24, 2026, in the openai/math repo. The abstract is one sentence long: The minimum number of binary linear gates for a finite abe

I Decided I was a Poet Today

A challenge to draw and write about a Tarot Card Continue reading on Medium »

How a Live Stream Actually Reaches You

Every live video you watch is a small act of engineering, held together by protocols most people have never heard of. Continue reading on Medium »

How to Write Without AI

You do not need a machine to sound smart or finish a draft. Your own lived eyes, honest voice, and hard-won lessons already carry… Continue reading on Medium »

Fifteen years to fifty

What Rambling Rose left behind, and what I still have time to do. Continue reading on Medium »

SLAM from the Bayes Filter Up

Originally published at aharshit123456.space. After my ORB-SLAM3 talk at SMLab in May 2024, my next task on Swayansaasita, the lab's autonomous two-wheeler project, was to find the state of the art in SLAM on lidar and IMU data. Reading system papers is much easier once you know why the problem is set up the way it is: why everything is a probability, why there is a prediction step and a correction step, why some systems are "filters" and others are "graphs". So in June and early July I went back to the foundations and worked through Cyrill Stachniss's Robot Mapping lecture series, keeping not

A Browser Dashboard for a ROS 2 Sensor Rig

Originally published at aharshit123456.space. From May to October 2024 I was a research intern at SMLab, NISER, on Swayansaasita, the lab's project to collect a multimodal driving dataset for autonomous two-wheelers. The sensors ran on Jetson boards under ROS 2, and bringing them up, checking every stream and starting a recording all meant SSH sessions and terminal commands. My job was a web page that did those things: start the sensors, show which topics were publishing and how fast, start and stop a recording, show disk space, list past recordings, and preview a stream. This post explains ho

Field Notes on Perception for Two-Wheeler Autonomy

Originally published at aharshit123456.space. Swayansaasita is SMLab's research initiative on autonomous vehicles and driver-assistance systems for two-wheelers, with a focus on the conditions of developing countries like India. Its central goal is data: a large multi-modal driving dataset with 360-degree point clouds, several IMUs, GPS and camera images, annotated for machine learning. During my internship in 2024, besides the SLAM reading and the sensor dashboard, I wrote the project website's technical articles: computer vision, computer vision for self-driving motorcycles, prediction, poin

Turning an iPhone into a LiDAR, IMU and GPS Sensor

Originally published at aharshit123456.space. In my first weeks at SMLab, NISER, in May 2024, before the ROS dashboard, I worked on a side track my notes call "iPhone Drone": use a LiDAR-equipped iPhone as the sensor head for a drone, for 3D mesh generation and SLAM. I wrote two iOS apps. DataSender (the SensorRecorder repo) reads the phone's motion sensors, GPS and LiDAR depth and streams them over TCP to a computer. LidarModel scans a space with ARKit and exports the reconstructed mesh as an OBJ file. This post explains the Apple frameworks involved for readers who have never written iOS cod

Matching Riders in Real Time over WebSockets

Originally published at aharshit123456.space. A student with a scooter is about to leave the hostel gate. Another student wants to get to the library, which is on the way. The app has a few seconds to notice, propose the pair, let both sides agree, and then show the co-pilot a moving dot as the pilot approaches. Two things must never happen along the way: one pilot promised to two people, and one slow phone freezing the live view for everyone else. This post is about how the Go backend of Kurukuru does live matching, scheduled matching for repeat commutes, and the WebSocket hub that streams a

Quest Books, an In-App Editor and Road Watch

Originally published at aharshit123456.space. A game lives on its content, and content is always slightly wrong: a cafe closed last month, a park pin sits in the middle of a lake, a new food stall nobody has added yet. A road safety tool lives on trust, and trust breaks the first time the app claims something that is not true. Both need to change faster than an app store review allows, and both need the phone and the server to agree exactly on the rules. This post covers three features of the Kurukuru app that sit on that line: quest books, an editor for them inside the app, and Road Watch, a

Turning a Real Map into a Pixel World

Originally published at aharshit123456.space. Every map app looks like every other map app: grey roads, beige blocks, a blue dot. That is fine when the map is a tool, and a problem when the map is the game board and the brief says "make the campus look like a block world you want to explore". You still need real roads, real buildings and a real GPS position, on a mid-range phone, for a whole commute. This post is how the Kurukuru app turned OpenStreetMap into a pixel world, plus the plumbing around it: GPS streaming, sockets, a pixel design system and a golden image for every screen. Kurukuru

Fog of War on a Real Map with PostGIS

Originally published at aharshit123456.space. In strategy games the map starts dark. You only see what your units have walked through, and the black slowly peels back into terrain. It is one of the oldest tricks for making a map feel like something you earn. So what happens when the map is your actual campus, the unit is you, and the fog only lifts where your phone's GPS has really been? This post is how Kurukuru's backend turns a stream of noisy GPS fixes into a personal explored area, serves it back as a single shape, pays out progress for it, and draws a blocky world from OpenStreetMap unde

Kurukuru: A Ride-Sharing Game on One Go Binary

Originally published at aharshit123456.space. Two students leave the same hostel gate every morning for the same library. One has a scooter and an empty back seat; the other is about to pay for an auto. A ride-sharing app could pair them, but on a campus the hard part is not the matching maths. It is trust (who is this person?), money (who pays whom, and how much?), and giving people a reason to open the app on a day they don't need a ride. This post is about the backend I built for that app: one Go binary that handles identity, trips, a coin wallet, live matching and a map game. Kurukuru is a

Hands-on Quantum Programming at IISER Bhopal

Originally published at aharshit123456.space. In June 2024, in the middle of my NISER internship, I attended the NPTEL workshop "Hands on programming on Quantum computers" at IISER Bhopal, run by the institute's QuCIS group: five days of PennyLane notebooks, from single qubits to Grover's search and real hardware models. This post covers what the workshop taught, then goes deep on the parts I worked through and kept notes on: Bell states and measurement, universal gate sets, and the Deutsch-Jozsa algorithm derived from scratch. My notes from that week had mistakes in them, and finding them tau

The Demand We Couldn't Serve

Originally published at aharshit123456.space. A family opens a booking app, picks a service, looks at the time grid, finds nothing free and closes the app. No error was thrown, no request failed, and in the analytics it looks like a screen view followed by nothing. How do you measure demand that never turned into an order, and how do you tell whether the fix is more staff or something much cheaper? This post is about how we turned that silence into a number we could trust at FamCare. The idea is reusable: have the server record what it showed, give that record an ID, and send the ID back throu

Three Outages and the Infrastructure They Left Behind

Originally published at aharshit123456.space. Our API stopped answering, and every health check said it was fine. The load balancer saw a healthy target, the database looked healthy, and yet nobody could log in. That was the second of three incidents in our first few months of running production from code instead of the AWS console. This post tells all three: the symptom, the wrong theories, the real cause, and the guardrail each one left behind, plus the postmortem format that grew out of them. FamCare is an in-home care marketplace in India: families book trained caregivers for babies and el

T

There was a tremor upon his heart and body that sometimes showed itself on the surface... His lips spoke a tale like a prayer, full of new… Continue reading on Medium »

据置携帯両用型電子遊戯機戦争

Episode 1: The $300 Gamble, the Supreme Chain of Command, and the Shore of Black Glass Continue reading on Medium »

I Lose Money Every Month Doing Something I Love

I’ve learned how to create with AI, but I haven’t figured out how to turn my skills into a substantial income. And I’m okay with that. Continue reading on Medium »

Older stories