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 SQL, Rust, C++, Swift, Java, JavaScript, Node.js, Linux, Docker, 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.
-
QuePaxa vs. Raft: WAN Consensus, or Why "Slow but Never Stops" Beats "Fast but Dies at the Slightest Jitter"
Starting from two structural dependencies—leader dependence and timeout-based failure detection—this article breaks down Raft's failure paths in wide-area networks, and the resilience QuePaxa gains from optional proposers, random priorities, and hedging.
-
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.
-
Mapping the Wind with Planes
The Flights in the Air Right Now map from Tailodds displays two things: the live positions of aircraft flying over the United States and the wind conditions at cruising altitude.
-
Tensile by Horology
Tensile by Horology, a 64k intro for the PC by the three members of Horology, computer science students at ETH Zurich, released at Revision 2013 in Saarbrücken (29 March to 1 April 2013) and second of six in the PC 64k intro competition with 1,019 points, behind Turtles all the…
-
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.
-
Skimmers que pasan por debajo de la CSP con WebRTC
Puedes tener la valla del huerto perfecta, alta, sin huecos y con una puerta que sólo abres tú, y aun así un día encontrarte las zanahorias mordisqueadas.
-
Las skills de Convex y lo que le contaban al agente a tus espaldas
El cuco no hace nido: pone el huevo en el de otro pájaro, y el carricero, que no sospecha nada, lo empolla y alimenta a la cría como si fuera suya.
-
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).
-
Converting physical and virtual machines to incus instances
Including same-host VM to container conversion
-
datasette-charts 0.4a0
Release: datasette-charts 0.4a0
-
Closing and Reopening My Kinect
My Kinect streamed, then failed to close and reopen.
-
Run ARTEX with a local Ollama model on macOS (Docker)
Running ARTEX locally on Ollama + Docker Desktop on a 16 GB Mac including a config plus a fix table for each error along the way.
-
Court and Jail Records at the Command Line: Is He Still Locked Up?
This is a Just the Facts (JTF) post: generated by AI from my own raw material (voice memos, session notes) and a short outline I wrote, then checked by me.
-
@js@bsd.cafe it doesn't not :)...
@js@bsd.cafe it doesn't not :)
-
@js@bsd.cafe # halt -p...
@js@bsd.cafe # halt -p
-
Tell Someone You Appreciate Them
'Tis always the season.
-
Passwords, Secrets and Environments: A Practical Map
Password managers serve people, OS keyrings serve programs, and credential helpers connect them.
-
Machine Secrets: Vaults, Cloud Stores and Environments
Vault, cloud secret managers, SOPS and environment variables serve machines.
-
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.
-
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.
-
Functional Programming in TypeScript
Functional programming offers powerful tools for building robust, maintainable software, and Software Development as a whole has moved more and more towards employing a functional style in its programs—yet comprehensive guides for normal work in real-world applications are…
-
Unpatched Cacti Zero-Day (4HTTP2ROOT) Lets Guests Run Code: How to Protect Your Server
A Cacti zero-day lets anonymous guests run commands on Cacti 1.2.31, and there is no patch yet.
-
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.
RSS for this view · OPML of the feeds with posts in this view (up to 1,845 feeds)