SShortSingh.
Back to feed

Python guide to validating Mexican RFC and CURP tax and population IDs

0
·3 views

A developer guide explains how to validate Mexican RFC tax IDs and CURP population IDs in Python, which businesses need for payroll, invoicing and identity checks. It describes the structure of each identifier, including letter groups, embedded birth dates, the homoclave, and the check digits. The article highlights edge cases such as special characters like Ñ and &, offensive-word substitutions, and generic RFCs that do not follow standard rules. It presents a dependency-free validator and notes that offline checks cannot confirm that an ID belongs to a real person, so live lookups may be needed. The post is written by the founder of a commercial validation service, which he discloses.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Search Browser: A Minimalist WebKit Browser With Chrome Extension Support

Search Browser is a new minimalist web browser built on the WebKit engine, as announced on Hacker News. The project includes support for Chrome extensions, allowing users to run compatible add-ons. The Hacker News post linked to the project's website and drew a modest response, with 6 points and 2 comments at the time of listing. The provided material offers no further detail on features, release timing, or the developers behind the project.

0
ProgrammingHacker News ·

DaisyRose-27B: RL training lifts Qwen3.8 from 5.6% to 12% on Terminal-Bench 4.1

A post on Hacker News shares the DaisyRose-27B project, a model trained with reinforcement learning across 1,200 tasks. According to the headline, the training raised the score of the Qwen3.8 base model on Terminal-Bench 4.1 from 5.6% to 12%. The source is a blog post from RadixArk linked from the discussion, which had 9 points and no comments at the time of capture. The article text available here is limited to metadata, so further technical details such as the training setup or benchmark methodology could not be verified.

0
ProgrammingDEV Community ·

Linnix uses eBPF and kernel pressure metrics to pinpoint Linux performance stalls

Linnix is an open-source Linux observability project that aims to identify which process or pod is causing performance stalls, rather than merely which one uses the most CPU. It relies on eBPF collectors, the kernel's PSI pressure counters, and an optional language model that can write incident explanations. The project exposes attribution data as Prometheus metrics, showing pressure suffered by victim pods and stall time blamed on offenders. Its documentation frames results as attribution rather than proven causality, and the reviewer notes the project is young, with a licence mismatch between the diagram and the repository. The AI analysis layer is optional and off by default, so it must be enabled explicitly.