Xor Party Tricks
The article presents four code examples demonstrating the use of the XOR bitwise operator in programming. The examples include finding a missing number in a sequence, encrypting text with a key, traversing a linked list …
Full-text search across 71077 articles. Combine with topic and date filters; results sorted by relevance.
The article presents four code examples demonstrating the use of the XOR bitwise operator in programming. The examples include finding a missing number in a sequence, encrypting text with a key, traversing a linked list …
Glean builds custom embedding models for each customer because enterprise data is highly heterogeneous, containing diverse sources like Slack messages, GitHub code, and meeting transcripts, along with company-specific te…
The provided code demonstrates a simple MCP (Model Context Protocol) server named "host info mcp" built using the `FastMCP` library. It defines a single tool, `get_host_info`, which collects and returns system informatio…
Based on the provided code, this is a Bash script that generates formatted links or citations from Zotero annotations. It extracts a Zotero item ID from clipboard text, queries a BetterBibTeX JSON export of the user's Zo…
This article provides configuration code for setting a custom base URL for TubeArchivist using Nginx. The setup involves a reverse proxy configuration that rewrites requests from `/multimedia/tubearchivist/` to the TubeA…
This code defines a lightweight router in Go that adds a Chi-like syntactic sugar layer on top of the standard library's `http.ServeMux`. It provides method-specific routing (GET, POST, PUT, DELETE, etc.), middleware cha…
This article describes a custom test runner for Zig 0.16 that provides improved output formatting, timing display, and support for special "tests:beforeAll" and "tests:afterAll" setup/teardown functions. The runner track…
The article notes that a comment reading "Look for indications that widgets are being created for a dead and dying world" was found in the Unreal Engine 5.1 source code file UserWidget.cpp at line 20351. The comment was …
Side-by-side comparison of syntax differences between OCaml and Elm, covering expressions, types, functions, type aliases, and algebraic data types (ADTs). It includes code examples showing how common OCaml constructs tr…
Google Sheets formulas for calculating Spanish social security contributions for self-employed workers (autónomos) and income tax (IRPF) deductions for employees. The code includes specific contribution rates, minimum an…
The file `assert_default_params.c` defines a custom `assert` macro that supports optional error messages by wrapping an `assert_func` function, which prints a failure message to stderr and calls `abort()` if a condition …
The article explains that while GenStage is typically a pull-based system where consumers request events from producers, it can also function as a push-based system. In this push-based approach, consumers register their …
This article provides a shell script by Brandon Azad for building XNU version 4570.1.46, which corresponds to macOS High Sierra 10.13. The script downloads the necessary source code from Apple's open-source repository, i…
The article provides a Swift code extension for `UINavigationBar` that applies a custom theme using a `Palette` class. The `setTheme()` method configures the navigation bar's background, tint, and title text colors, and …
The article contains the source code for an HTML file that implements a button to initiate an OAuth 2.0 authentication flow with Microsoft Azure Active Directory (AAD). The script constructs a URL to Microsoft's login en…
The article describes a Python script that generates an animated GIF of a jellyfish-like, pulsating blobby shape. The code creates multiple layered blobs that vary in size and phase, using random offsets and Bézier curve…
The article explains two methods to view the source code of a Chrome extension. The first method involves using a command-line tool to download and unzip the extension's CRX file directly from Google's update server. The…
This article provides a comprehensive list of GitHub Markdown emoji markup codes, organized by category such as people, nature, and objects. It pairs each emoji's shortcode (e.g., `:smile:`) with its corresponding visual…
JavaScript bookmarklet for nvALT that captures a webpage's title and URL, along with any selected text formatted as a blockquote. If text is selected, it creates a new note with the quote; otherwise, it saves the page li…
NVIDIA published a September 30 security bulletin listing numerous high-severity vulnerabilities in its GPU display drivers, with the Linux driver affected by at least six CVEs rated 7.8 High, including CVE-2026-47489, C…