Blog — page 5
664 posts on software development, newest first. Browse by topic:Rust, Go, Python, JavaScript & web, AI & data, DevOps & tooling, Mobile & Android, .NET & C#, C++ & systems, LaTeX, Investing, Everything else.
dbt Core with DuckDB: models, tests and incremental tablesBuild a small dbt project on DuckDB: the dbt-duckdb profile, CSV sources, staging and mart models with ref, generic data tests, an incremental model and dbt build.
Resilient HttpClient calls in .NET with Microsoft.Extensions.Http.ResilienceAdd retries, timeouts and circuit breakers to IHttpClientFactory clients with AddStandardResilienceHandler, what its defaults are, and custom Polly v8 pipelines.
Shipping a single Go binary with embedBundle static files and templates into a Go binary with //go:embed and embed.FS, serve them with http.FileServerFS, and keep a dev mode that reads from disk.
Watching files for changes in Rust with the notify crateUse notify 8 to watch directories in Rust: raw events and their kinds, debouncing with notify-debouncer-mini and -full, a rerun-on-change tool, and platform limits.
Writing Reusable Terraform Modules: Inputs, Outputs and VersioningStructure a Terraform module, validate its input variables, expose outputs, call it locally, from the registry and with for_each, and pin module versions safely.
Running local LLMs with Ollama and calling them from PythonInstall Ollama, pull and run open models, call them over the REST API, the ollama Python package and the OpenAI-compatible endpoint, and size context and memory.
CSS size queries: components that respond to their own widthUse CSS container queries, container-type, named @container rules and cqi units to build a card that changes layout based on its slot, not the viewport.
Python logging setup: dictConfig, JSON log lines and per-library levelsConfigure Python logging with dictConfig: the logger hierarchy, a small JSON formatter, quieter third-party libraries, logging.exception, and library rules.Beyond the Whale: The Architecture, Trade-Offs, and Implementation of Post-Docker Container FrameworksDitch Docker Desktop. Explore modern OCI-compliant alternatives like Podman, containerd, OrbStack, and native host engines including Windows wslc.exe and Apple's native container toolchain without daemon overhead.
State Management in Flutter with Riverpod 3Riverpod 3 for Flutter apps: providers, ConsumerWidget, ref.watch versus ref.read, Notifier and AsyncNotifier, optional code generation, and tests with ProviderContainer.
Pulling company fundamentals from the SEC's XBRL company facts APIFetch revenue and net income for US-listed companies from data.sec.gov: CIK lookup, companyfacts and companyconcept, us-gaap tags, and deduplicating 10-K facts.
Chunking documents for retrieval: fixed size, recursive splits and headingsFour ways to chunk documents for RAG, from fixed windows to heading-aware splits, plus a small recall test that shows which one works for your embedding model.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)