SShortSingh.
Back to feed

dz_kit: Dart package for Algerian wilayas, communes, phone numbers, dinar amounts and postal keys

0
·2 views

dz_kit is a pure Dart package offering building blocks for apps targeting Algeria. It includes all 69 wilayas under law 26-06 of April 2026 and 1541 communes, with names in Arabic and French, plus accent- and case-insensitive search. Its DzPhone utility normalises Algerian numbers to E.164 format, detects operators from prefixes, and compares full national numbers rather than just the last seven digits. The Dzd type stores dinar amounts as integer centimes to avoid floating-point errors, with French and Arabic formatting. The package also computes and validates CCP and RIP keys against published Algérie Poste numbers and performs format checks on NIF and NIS identifiers.

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
ProgrammingDEV Community ·

Four container escape flaws and what they reveal about running untrusted agent code

Containers are often the default place to run AI agent code, but code written by a model after reading an untrusted issue should be treated as untrusted, making the container a real security boundary. The article reviews four public container vulnerabilities, all since fixed, to show a recurring pattern: containers share the host kernel and runtime, so bugs there can let code inside reach the host. The first, a 2019 runc flaw in Docker and related tools, let a root user in a container overwrite the host's runc binary, while a 2024 runc leak gave processes access to the host filesystem. The article also describes Dirty Pipe, a 2022 Linux kernel bug that let unprivileged users write to read-only files shared across containers and the host. The takeaways are to avoid running agent commands as root, to treat agent-written image builds as untrusted input, and to keep the host kernel patched.

0
ProgrammingDEV Community ·

How to export Markdown to a well-formatted PDF on a Mac

For a quick result, a Mac user can open the Markdown file in any app that renders it as a formatted page and then choose Print and Save as PDF. More control over margins, headers, page breaks and landscape layouts requires a tool such as Pandoc or a Markdown editor with configurable PDF export. Pandoc is free and scriptable, suited to repeated use, though it needs a LaTeX engine or a CSS route through HTML and some setup time. Editors such as Obsidian, Typora, iA Writer and Coffee differ in page size, margin, page number and template options. Since Markdown has no page settings, all layout choices are made in the tool rather than the file.

0
ProgrammingDEV Community ·

22 Claude Code Add-ons Reviewed, With One Star Count Found Misattributed

A widely shared list of 22 Claude Code skills, grouped by build, design, research, and marketing use cases, has been checked repository by repository. All 22 exist and are active, and some show higher star counts than the original post cited. However, the star figure given for remotion belongs to the flagship remotion-dev/remotion project rather than the smaller remotion-dev/skills repo that is actually installed. Two entries, graphify and humanizer, share names with other well-known skills but are separate projects, so users are advised to verify the exact repository before installing. The remaining skills can be installed with a single command each.

0
ProgrammingDEV Community ·

Solo developer open-sources zero-trust token verification starter kit in Rust

A solo developer has released mack-zerotrust-rust-starter, an open-source, MIT-licensed verification core written in safe Rust. It uses a default-deny token policy engine, meaning anything not explicitly allowed is rejected, and logs each decision to a SHA-256 hash-chained audit log. The author openly documents two limitations, pinned as tests: tail truncation is not detected by chain verification alone, and an unkeyed chain can be fully rewritten by anyone who knows the hash construction. A companion crate, aegis-seal, adds Ed25519 signing, a similar ledger, and secret scanning, with 22 and 18 passing tests respectively.