7 place 0

802 Контрольные суммы ИНН, ОГРН и СНИЛС: разбираем алгоритмы и пишем валидатор на Python

Habr
Roma_habr @ Habr · 06/11/2026 04:46 EDT

Контрольные суммы ИНН, ОГРН и СНИЛС: разбираем алгоритмы и пишем валидатор на Python

У нас есть форма, куда пользователь вводит ИНН контрагента, а мы по нему идём за данными в ЕГРЮЛ. Если заглянуть в логи этой формы, видно сколько туда прилетает мусора. ИНН из одиннадцати цифр (кто‑то добавил лишнюю), номера со срезанными ведущими нулями, ОГРН в поле для ИНН, и классика жанра — две соседние цифры переставлены местами. Каждый такой ввод это поход в чужой API, таймаут, ожидание, и в конце честное «ничего не найдено». А пользователь в этот момент уверен, что сломались мы. Разобраться, кто слом

To see detailed statistics for the news please log in »

Read the original

Add your comment
You must be logged in with Facebook to read and write comments.

A newsletter a day!

You may get 10 most important news around midday in daily newsletter. Press the button and we will send you the most important news only, no spam attached.

or register

LIKE us on Facebook so you won't miss the most important news of the day!

News from the same source
Habr Habr
Silicon Valley
George Avalos @ Silicon Valley 1 place · 02/07/2106 01:28 EDT

Newark apartment complex bought for much less than prior value

An East Bay apartment complex has been bought at a price that's well below its prior value. Read more

0

🔮
01.07.2026 ♊︎ Horoscope for the Gemini Zodiac Sign Today Today will be filled with varied shades for... Read more ›
Silicon Valley
George Avalos @ Silicon Valley 2 place · 02/07/2106 01:28 EDT

PG&E buys San Jose building to bolster South Bay operations

A PG&E Corp. unit has bought a San Jose building in a move to bolster the utility's South Bay operations. Read more

0

Tech.eu
Cate Lawrence @ Tech.eu 1 place · 07/03/2026 05:36 EDT

Pytorch: the software layer underpinning Europe's AI ambitions

Europe has emerged as one of the world's leading centres for open-weight AI, with companies including Mistral, Black Forest Labs and Helsing contributing to a growing ecosystem focused on open models ... Read more

0 fresh

CoinDesk
Francisco Rodrigues @ CoinDesk 1 place · today 09:50 EDT

French banking giant Crédit Agricole rolls out euro stablecoin, EURXT

EURXT debuted with 20 million tokens in circulation, backed 1:1 by euro reserves at Caceis Bank, and competes with Circle's EURC and SocGen's EURCV. Read more

0 newcommer

GSMArena.com
GSMArena.com 1 place · today 09:47 EDT

Samsung Galaxy A27 in for review

Samsung recently began selling the new Galaxy A27 in the US, Europe and India, and here's the roundup of what changed compared to its predecessor. The display now has a punch hole notch, instead of a teardrop; while the SoC is the 4nm Snapdragon 6 Gen 3 (replacing the 5nm Exynos 1380), and you've got 6 or 8 gigs of RAM (no more 4GB option). However, the ultrawide is worse... Read more

0 newcommer

CoinDesk
Will Canny @ CoinDesk 2 place · today 09:46 EDT

Morpho poised to scale as DeFi infrastructure play, Standard Chartered says

The bank initiated coverage of Morpho with a $60 end-2030 price target, saying its DeFi lending and onchain infrastructure businesses are positioned to benefit from tokenization growth. Read more

0 newcommer

SlashGear
SlashGear 1 place · today 09:45 EDT

Americans Are Missing Out On Yet Another Great Budget-Friendly Drone

It's a great time to be a fan of budget drones - unless you live in the U.S., of course, whose ban on foreign-made drones has claimed another victim. Read more

0 fresh

Tom's Hardware
Tom's Hardware 1 place · today 09:45 EDT

Starlink offers 50% discount, free hardware rental for residents surrounding its data centers — move comes as Elon Musk faces lawsuits from residents complaining about noise and air pollution from developments

SpaceXAI is trying to win residents living close to the Colossus 1 and 2 data centers by giving them discounted internet access. However, critics say that this is just a PR stunt to help win the community, even as it battles two lawsuits based on air and noise pollution complaints from people living near its data centers. Read more

0 newcommer

Business Insider
Talia Lakritz @ Business Insider 1 place · today 09:45 EDT

Alexander Hamilton's New York City home was once a sleepy historic site. Now, visitors can't stop singing.

After Lin-Manuel Miranda's "Hamilton" became a smash hit, visitorship tripled at Alexander Hamilton's historic home in New York City. Read more

0 newcommer

Startups News
Nickie Louise @ Startups News 1 place · today 09:43 EDT

Abu Dhabi’s MGX closes record $49 billion AI fund to invest across AI infrastructure, chips, and AI companies after backing OpenAI, Anthropic, and xAI

The race to finance artificial intelligence just reached another milestone. Abu Dhabi investment firm MGX has closed a record $49 billion AI fund, creating one of the largest investment vehicles dedicated to artificial intelligence at a time when investors are ... Read more

0 fresh

Business Insider
Theron Mohamed @ Business Insider 2 place · today 09:42 EDT

'Big Short' investor Michael Burry reveals fresh bets against Tesla, Nvidia, and Caterpillar

Michael Burry of "The Big Short" revealed fresh bets against Tesla and chip stocks, and took a bearish position in Caterpillar for the first time. Read more

0 fresh

CoinDesk
Margaux Nijkerk @ CoinDesk 3 place · today 09:41 EDT

Ethereum gets a new nonprofit focused on institutional adoption

The launch comes as the Ethereum Foundation narrows its focus to stewarding the core protocol, with independent organizations like EthLabs emerging to take on ecosystem functions such as research & development. Read more

0 fresh

TechRadar
TechRadar 3 place · today 09:40 EDT

Your iPhone is about to get more software updates — and AI is the reason why

Because of the risks posed by AI cyber-hacking, we're all about to get more frequent Apple security updates. Read more

0 fresh

CoinDesk
Will Canny @ CoinDesk · today 09:39 EDT

Citi slashes 12-month bitcoin, ether targets as ETF flows dry up

The bank cut its 12-month bitcoin and ether price targets after scrapping its ETF inflow forecasts, citing stalled U.S. crypto legislation and weak investor demand. Read more

0 fresh

MacRumors
Mitchel Broussard @ MacRumors 1 place · today 09:36 EDT

Last Chance: Get the 2026 MacBook Pro and iPad Air for Pre-Hike Prices Before They're Gone for Good

Last week, Apple introduced major price hikes across a number of products, including Macs, iPads, and more. This week, Apple's newly increased prices have begun to hit third-party retailers like Amazon, but there are a few select products that are retaining original prices, which now represent solid discounts on each device. MacBook Pro Note: MacRumors is an affiliate partner with Amazon. When you click a link and make a purchase,... Read more

0 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
xenon @ Habr · 06/24/2026 09:55 EDT

Бесплатный фото-хостинг на Youtube, Rutube, Telegram, Max

Из фото делаем слайдшоу видео и его заливаем (можно unlisted/private, чтобы никто не видел) на любую площадку, где хранят видео. Затем, если надо - скачиваем видео и извлекаем фото обратно. Потери качества - есть, но допустимые.Идеально для резервного хранения фото.https://github.com/yaroslaff/smugglerjpg Получить свой безлимитный фотоальбом! Read more

0

Habr
SpeShuAI_guide (ЦНИС) @ Habr · 06/24/2026 09:58 EDT

Seedance в России: как оживлять фото без VPN в 2026 году

Разбираем, как использовать Seedance в России в 2026 году: доступ, возможности модели, API, оплата, промпты, юридические риски, сценарии для креаторов и бизнеса.Ниже подробный разбор, как легально и эффективно работать с Seedance на российском рынке без VPN. Читать далее Read more

0

Habr
mrpromter (StudyAI) @ Habr · 06/24/2026 10:20 EDT

Как пользоваться Claude AI в России в 2026 году: официальный сайт Клод ИИ, возможности нейросети и доступ без VPN

За последние полтора года Claude AI из инструмента «для программистов» превратился в универсального рабочего помощника. Сначала его хвалили разработчики — лучше пишет код, аккуратнее ловит баги, дольше держит контекст. Потом подтянулись редакторы, маркетологи, студенты, юристы, аналитики и предприниматели. Причина проста: Claude вчитывается в задачу, спокойно работает с длинными документами и не сбивается на канцелярит к середине ответа.Разберём по порядку: что такое Claude AI, какие модели актуальны на июн Read more

0

Habr
Chilango (Окама) @ Habr · 06/24/2026 10:17 EDT

Okama.io: профессиональные инструменты для анализа инвестиционных стратегий

Сайт okama.io — набор бесплатных интерактивных инструментов для портфельного анализа инвестиционных стратегий: граница эффективности, сравнение активов, бэктестинг портфелей с денежными потоками и прогнозом Монте-Карло, поиск по базе финансовых данных и макроэкономика. Весь проект — open-source на Python (приложение okama-dash на Dash/Plotly). Читать далее Read more

0

Habr
pavel_kirillov @ Habr · 06/24/2026 10:20 EDT

Go для сетевой безопасности: почему (и как) мы перешли на net/netip

Работа с сетевой безопасностью требует внимания к деталям. В компании Netopia мы создаем платформу для непрерывной оценки защищенности и управления политиками межсетевых экранов. Наш продукт помогает контролировать доступы, моделировать трафик по сети и автоматизировать изменения правил. Нам доверяют крупные банки, федеральные компании и операторы связи. И требования по безопасности к продукту предъявляют немаленькие.Когда собираешь большие конфигурации сетевых устройств или интегрируешься с ITSM-системами. Read more

0

Habr
EkaterinaSerikova (AvitoTech) @ Habr · 06/24/2026 10:17 EDT

Процессы vs инструменты: как Авито Sales строит QA с нулевыми сдвигами сроков

Привет, Хабр! На связи Екатерина Серикова и Глеб Дмитриев, мы QA-инженеры в команде Авито Sales. В этой статье мы расскажем, как выстроили процесс обеспечения качества в Распродаже, где сроки нельзя сдвигать, а нагрузка на корчасть почти 2 млн RPM, а цена бага очень высока.Это не история про «идеальный процесс». Она скорее про рабочую систему, которая помогает не сгореть команде и не терять качество, когда QA в проекте один, а разработчиков... Read more

0

Habr
ArgusXII @ Habr · 06/24/2026 10:21 EDT

Что не вошло в концепцию прикладного решения «1С:ERP Управление предприятием» 2026 года от УЦ №1 фирмы «1С»

В 2025 году мы работали над концепцией прикладного решения «1С Управление предприятием» для учебного курса УЦ №1 фирмы «1С». В основу легла процессная модель дискретного предприятия, которую мы много лет проверяли на реальных проектах. Видеоматериала получилось около 50 часов, а рабочих наработок — ещё больше.Но в какой-то момент стало понятно: всё в учебную концепцию не войдёт. Хотелось показать и бизнес-предметы, и граф знаний, и объектно-ориентированный управленческий учёт, и связь ERP... Read more

0

Habr
2M12 @ Habr · 06/24/2026 10:47 EDT

Как разобрать .exe всего двумя инструментами: практический разбор с DeNuitkanizator и HxD

Возможно ли разобрать .exe всего двумя инструментами?В данной статье будет практический разбор программ с помощью двух инструментов: HxD и DeNuitkanizator. Без Ghidra, без IDA, без x64dbg. Посмотрим что получится, а что нет. Вам понравится :) Читать далее Read more

0

Habr
kmoseenk (OTUS) @ Habr · 06/24/2026 10:52 EDT

[Перевод] Unit of Work в Go: практический гайд по транзакциям между репозиториями

Когда у каждого репозитория есть свой Tx, код может выглядеть чисто, но атомарность всё равно сломается: один Store откатится, другой уже успеет закоммитить изменения. В статье показан более надёжный вариант для Go-кода: репозитории остаются небольшими интерфейсами, транзакционная логика уезжает в Unit of Work, а сервис работает с готовым набором хранилищ, построенных поверх одного sql.Tx. Разобраться в Go Read more

0

Habr
liho_boy (Night Street) @ Habr · 06/24/2026 11:03 EDT

Аудит выгорания команды: 10 триггеров, которые ведут к увольнениям

Чек-лист для HR: «Аудит выгорания команды: 10 триггеров, которые ведут к увольнениям».Как понять, что команда выгорает, до того, как люди начали массово писать заявления? Спойлер: к тому моменту, когда это становится очевидным руководителю, процесс уже идёт несколько месяцев. Читать далее Read more

0

Most popular sources

  • You see 936 news out of 936.
  • Sources 61 out of 61.
AlleyWatch 0%
VentureBeat 0%
Droid Life 0%
Startup News 0%
Tech Wire Asia 0%
View sources »

LIKE us on Facebook so you won't miss the most important news of the day!

01.07.2026 10:03
Last update: 09:55 EDT.
News rating updated: 16:50.

What is Times42?

Times42 brings you the most popular news from tech news portals in real-time chart.
Read about us in FAQ section.


Times42 © 2026