React tutorial on adding a minimum loading delay to prevent spinner flickering when fetching data, using a throttle hook.
Tag: Programming
Avoid data corruption when writing files by syncing to disk. Learn about the risk and solutions in Python and Rust with code examples.
Tutorial on using Google Sheets to manage i18n translations for web projects (React Native focus), with a Node.js script to generate JSON files.
C# tutorial on partial JSON deserialization using System.Text.Json.Nodes.JsonNode to extract specific data without full deserialization.
Exploring the technical stack of the ‘Split the Tank’ project: Azure hosting, MongoDB, C# ASP.NET, React Native, and payment solutions.
A guide for backend engineers on learning React in 2024, covering setup, fundamentals, web tech, deployment, and testing.
A guide to Docker fundamentals, covering core concepts, Dockerfile instructions, building images, and running containers.
Learn how to URI encode strings and query parameters in C# using
System.Uri.EscapeDataString
. This tutorial provides code examples for basic encoding and within an ASP.NET integration test.
Argues that REST APIs should return 204 (No Content) or an empty response instead of 404 (Not Found) when a resource is null, citing reasons like cleaner error logs and simpler client-side handling.
A tutorial on adding API versioning to ASP.NET Core endpoints for .NET 8 and .NET 9, covering setup with OpenAPI/Scalar and Swagger, and providing code examples for implementation.
Argues for weekly dependency updates and outlines an iterative process for updating crucial feature dependencies, including reading changelogs, fixing bugs, and testing.
Provides a Python function using
glob
to recursively find files with multiple extensions, highlighting robustness with glob.escape
and efficiency with generators, and critiquing common online solutions.
Detailed notes and summaries from a university course on Software Delivery, covering release pipelines, version control, build systems, CI/CD, virtualization, infrastructure as code, and deployment strategies.
Tutorial on how to SSH into a VirtualBox VM by configuring port forwarding, installing openssh-server, and setting up password-less SSH from Windows or Linux.
A letter to JetBrains detailing the author’s decision to stop using their products due to high memory/storage usage of the Toolbox app and unresolved issues like the persistent Python Console bug.
C# tutorial on adding items to a MongoDB Dictionary field using the $push operator, demonstrating the array-of-documents approach.
Tutorial on implementing a QR code scanner in React Native using
react-native-camera-kit
, covering installation, platform configuration, and basic usage.
Explains how to access global JSON serializer options in ASP.NET Core using dependency injection for consistent serialization/deserialization outside of controllers.
Learn how to integrate Razor Pages into your ASP.NET Core Web API project to serve dynamic HTML content. This tutorial covers necessary configurations in Program.cs and demonstrates creating a basic HTML page with Razor syntax.
Demonstrates returning HTTP error responses with strongly-typed responses in ASP.NET Core using ActionResult for validation and authorization.
Tutorial on making Windows apps start on login by adding a registry value, including the registry key and a Python code example for programmatic control.
Tutorial on serving embedded resources in ASP.NET Core for debugging/simple scenarios, covering .csproj configuration and C# examples for accessing resources.
In .NET 9, please use Scalar. Add a dark theme to your ASP.NET Core Swagger UI. This guide provides two methods: serving a CSS file from wwwroot or using an embedded resource.
Configure ASP.NET Core routes to automatically follow method names using
[Route("[controller]/[action]")]
on the controller, reducing the need for individual route decorators and streamlining API development.
A concise tutorial on implementing JWT authorization in ASP.NET Core, with code examples for configuration, setup, token generation, and securing API routes.
Learn how to implement logging and use tracepoints in your Uno Platform applications for effective debugging and monitoring.
A fast Python method to convert XLSX files to CSV on Windows using
win32com.client
, requiring Microsoft Excel. Includes a Python function and basic command-line usage.
Get your local area network (LAN) IPv4 address using Python.
Implement hyphen-separated (kebab-case) routes in ASP.NET Core 7.0 by creating a custom parameter transformer and adding it to your MVC conventions.
Learn how to serialize enums as strings in ASP.NET Core for consistent JSON handling on both the backend and client-side using
JsonStringEnumConverter
.
Handle optional JSON fields and serialize enums as strings in ASP.NET Core. Configure
JsonSerializerOptions
globally or use attributes for precise control over JSON output.
Configure your ASP.NET Core Web API project for debugging in Visual Studio Code using a custom
launch.json
file, enabling a native development experience.
Implement a custom titlebar in your Tauri and ReactJS application, including handling window controls, translations, and ensuring rounded corners on Windows 11.
Dive into JSON handling using serde within the context of the Rocket web framework.
Learn how to make network requests in Rust using the
reqwest
crate, handle JSON responses with serde_json
, and integrate requests within a Rocket web framework backend.
Get started with Rust programming by learning how to set up and manage projects using Cargo, including installation, project initialization, basic code, and compiling/running.
A guide for Windows developers to set up their environment and contribute to Monero projects like
monero
or monero-gui
without a Linux VM, covering prerequisites, VS Code setup, dependency installation, building, and contributing.
Discover essential VS Code extensions for developers, covering themes, icons, language support, Git integration, and various utility extensions to enhance your coding workflow.
Explore practical React.js tips for optimizing performance, managing state, and improving code structure. Learn about efficient object updates, using React Fragments, structuring props, leveraging Providers for contexts, advanced type comparisons, and effective cookie usage with useCookie. Discover insights on useLayoutEffect, persisting state with useRef, and forcing component updates.
Discover helpful JavaScript snippets for converting between Date objects and various YYYYMMDDHHMM string formats
Design document for creating a monero processor, based on the payment processor I implemented on lenerva.com. These days, I’d recommend spinning up monero-pay on a server, although support for mempool webhooks is a missing feature.
Delve into the nuances of ES6 import statements in Node.js, moving beyond the familiar require().
Create mobile-responsive designs for websites using HTML and CSS (and React?). Meta tags, CSS media queries, and desktop-first CSS design.
A collection of Bash and Linux helper scripts and concepts. It covers Bash argument parsing with flags (alternative to getopts), conditional logic, and loops. Includes snippets.
Groovy code snippets for Jenkins, for example how to safely abort outdated builds and retrieve build logs.
A concise Bash quickstart guide. It provides links to a Bash scripting cheatsheet and other Bash helpers. Key examples include the shebang (
#!/usr/bin/env bash
), iterating through a literal array using a for
loop, and demonstrating C-like increment logic with ((counter++))
.
A straight-forward tutorial to help C++ projects organize as cross-platform ready
Learn how to setup a blog using Hugo and host it for free on GitHub Pages.
Learn how to register your Python program as a default file handler in Windows by modifying the Windows Registry. This guide covers implementing URI protocols, defining commands, and adding custom right-click options.
Discover the most efficient way to handle parallel and concurrent network requests in Python. Learn why ThreadPoolExecutor outperforms asyncio for network-bound tasks and see a practical proof of concept.