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 SQLite, SQL, Go, C, C++, Swift, Java, Python, Node.js, Git, 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.
-
datasette-charts 0.4a0
Release: datasette-charts 0.4a0
-
Closing and Reopening My Kinect
My Kinect streamed, then failed to close and reopen.
-
Audit Logs Need an Integrity Boundary
Use hash chains to expose changes, then place trusted checkpoints and append permissions outside the boundary an attacker can rewrite.
-
Review Metalio E-INK4 Plus e-reader
When Xteink brought out their original X4 device in late 2025, they effectively created the sub-4.5-inch, sub-$100 “microreader” category.
-
Tell Someone You Appreciate Them
'Tis always the season.
-
mise, Alone
I previously wrote about using asdf and direnv together to manage my project dependencies and a per-project postgres version.
-
Geospatial AI Has a Benchmark Problem. This Paper Finally Says the Quiet Part Out Loud.
The geospatial AI community has spent the past several years building increasingly sophisticated foundation models for Earth observation.
-
Why I built Vulcan Veil
There is probably a meme at this point: if you are AI-pilled enough, you will build your own agent harness.
-
12 NeoPixel Effects & Browser Control on Raspberry Pi Pico 2 W (MicroPython)
Last Updated on 27th November 2026 by peppe8o This tutorial will show you how to connect and control a Neopixel from a Raspberry PI Pico 2W (or any Raspberry Pi Pico model) to be able to create fancy LED effects for your home.
-
Recently I found - 11
Introduction
-
MacAdmins.news: Home for the Holidays
The MacAdmins.news Thanksgiving issue is packed with articles, security news, and updates.
-
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.
-
How many triangles can a graph with no pentagons have?
Suppose you have a graph with n nodes and no pentagons, how many triangles can it contain?
-
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.
-
Temporary Relationships – Speed Dating for Programmers
Have you ever been on a speed date?
-
O is for Oooops!
Mind yourselves over there, this one is backing-up a bit!
-
Forgejo Packages: Docker and npm Registry
Forgejo already ships a Docker registry and a private npm registry.
-
Counterexamples to proof by example
There are a few standard examples of statements that appear to be true for a large number of examples but eventually fail.
-
#359: Filter Users in a Telegram Bot
Telegram bots are public by default.
-
Why Land Value Tax Would Not Work
Land Value Tax is very popular in smarter political circles.
-
StillPoint: Meditation for People Who Think They Can't
A meditation app that starts with one breath and adds a little each day.
RSS for this view · OPML of the feeds with posts in this view (up to 1,264 feeds)