How to flatten arrays in JavaScript with flat() and flatMap(): the depth argument, Infinity, empty slots, arrays of objects and the map + filter trick.
Latest in Rust, C++, Swift, Java, Android, Node.js, Shell and HTML
author · site-
JavaScript flat() and flatMap(): Flatten Arrays
-
AI answers link to the exact sentence. Your site can too
AI answers link straight to the sentence they quote.
-
RustyBox v0.4.0: Zero-Alloc O(log N) Dispatch, 8.24x HW SHA-2, 6.64x Grep & RFC 10008 Agent Search
Inside RustyBox v0.4.0: replacing 399 startup heap allocations with compile-time sorted dispatch tables, bypassing StdoutLock's LineWriter for 1,631 MB/s grep and 1,317 MB/s SHA-256, cutting rustybox-core release size by 6.4%, and serving RFC 10008 HTTP QUERY search.
-
A Million Rows and Live Excel Formulas, Inside Your Own App
DataGrid scrolls a million rows with frozen columns, grouping, aggregates, editing and a tree mode.
-
Fix: TimeZoneNotFoundException: The time zone ID was not found on the local computer (.NET on Linux and Docker)
On Linux, FindSystemTimeZoneById reads /usr/share/zoneinfo.
-
pgembed: any Postgres version, side by side, no Docker
pgembed is a CLI and MCP server, from npm or NuGet, that runs real PostgreSQL servers of any version side by side, with no Docker and no system install.
-
Agent Framework PyPI 1.26.1 and 1.26.2 Were Malicious, and the GitHub Repo Is Offline
Two unauthorized agent-framework releases on PyPI ran a credential stealer from a .pth file on every Python start.
-
AI Tools #9: An MCP Robot Bench, Where an LLM Agent Builds Circuits in Free Air
I’ve been attending a monthly Electronics meetup Zoom call, and I described a machine that could assemble 3D circuits “in the air” (in a harness with a set of grippers and manipulators).
-
datasette-charts 0.4a0
Release: datasette-charts 0.4a0
-
Closing and Reopening My Kinect
My Kinect streamed, then failed to close and reopen.
-
Tell Someone You Appreciate Them
'Tis always the season.
-
Adding Qwen-Audio 3.1 and realtime voice conversation to sayneat
I added Qwen-Audio 3.1 to sayneat for speech synthesis, transcription, streaming ASR, voice cloning, and full-duplex realtime voice conversations over QwenCloud.
-
Recently I found - 11
Introduction
-
MacAdmins.news: Home for the Holidays
The MacAdmins.news Thanksgiving issue is packed with articles, security news, and updates.
-
Adding OCRia-1 to looksneat
OCRia-1 shares a model architecture with Xiaomi.
-
Why My Local Dashboard Has a Publisher, a Frontend, and an API
I wanted a dashboard I could leave running on a big TV.
-
iOS 27.3: Face Unlock for iPhone Duo
Chance Miller: This isn’t Face ID.
-
Google Ties Search in Schools to Gemini
Victor Tangermann (Hacker News): But it’s a fraught relationship that’s now seriously being tested as teachers start to suspect that the AI use is wreaking havoc on the impressionable minds of their students.
-
MobileSec #2: Recording your mic without permission, 8 ways into your iPhone, and 153 million stolen IDs
An iOS bug that recorded the mic with no permission and no orange dot, eight ways exploit kits reach iPhones, selfie sign-in at Google and TikTok, and why a real ID proves nothing.
-
Polars new Streaming Engine and Spill-To-Disk
Probably one of the biggest updates in the history of Polars happened recently, one that was long overdue.
-
LOG 026: Vacation
Cleaned up some build and publishing scripts.
-
From Books to Articles: the state of my Calibre library in Obsidian
For the past few days I've been having this incredible conversation with David about what he called "Rethinking the Boundaries of an Obsidian Vault".
-
Temporary Relationships – Speed Dating for Programmers
Have you ever been on a speed date?
-
MeshCore and human presence sensors
MeshCore license-free radio seems to have taken hold in many parts of the world for general communications.
-
Slimbook Executive report 16 - Pottering along
Let's have a look at my long-term usage review and report 16 of the Slimbook Executive laptop running Kubuntu 24.04 LTS, including continuous recurrence of the suspend and resume problem, resolution attempt using C states limitations in BIOS and kernel command-line options via…
-
Fixing NickelMenu's Generator error on a Kobo Aura HD
My Kobo Aura HD is over ten years old and still my only e-reader.
-
b0rk: Notes on using a single-person Mastodon server
On my reading list: [Wayback/Archive] Notes on using a single-person Mastodon server Via [Wayback/Archive] Julia Evans on Twitter: “some notes on running a single-person Mastodon server” –jeroen
-
Browse Gopher with nothing but Unix
In the article a Gopher server in 9 lines of Python I was on the server side, building a simple implementation.
-
Skills, Slash Commands, Subagents: When I Use Which in Claude Code
I used to cram everything into custom slash commands.
-
Day 56: Headscale – Your Own Tailscale Control Plane in Docker – 7 Days of Docker
Tailscale solved peer-to-peer networking so well that most people stopped thinking about it.
RSS for this view · OPML of the feeds with posts in this view (up to 762 feeds)