Sticky Posts
Categories
manual
excerpt
Post List
Python 3.13 to 3.6.1
# TOML
tomllib — the built‑in TOML parser introduced in Python 3.11.
For Python 3.6.1, use the third‑party toml library instead.
Python 3.13
1234567891011121314151617181920212223import tomllibclass Config: def __init__(self, path: str): with open(path, "rb") as f: self.data =...
more...
A Deep Dive into TypeScript's infer Keyword
repost: A Deep Dive into TypeScript’s infer Keyword - Leapcell
The infer keyword in TypeScript is used in conditional types to infer a type. This is particularly useful when dealing with complex types, allowing us to extract or transform types.
# Basic Usage
The infer keyword can only be used...
more...
Python Pydantic Sample
from:Introduction to Pydantic - BUGBYTES
Pydantic is the most widely used data validation library for Python.
main.py123456789101112131415161718192021222324252627282930from pydantic import ValidationErrorimport requestsfrom models import Student# print(# json.dumps(Student.model_json_schema(),...
more...
Python FastHTML
from: Modern Web Apps in Pure Python - NeuralNine
Modern web applications in pure Python. Built on solid web foundations, not the latest fads - with FastHTML you can get started on anything from simple dashboards to scalable web applications in...
more...
WPF project in VSCode
# Create WPF Project
Execute dotnet new wpf -o WPFTutorials or in WPFTutorials directory execute dotnet new wpf .
Open the WPFTutorials using VSCode. There is a problem The name ‘InitializeComponent’ does not exist in the current context in MainWindow.xaml.cs. Becuase the MainWindow is a partial...
more...
Modern Node.js Patterns for 2025
repost:Modern Node.js Patterns for 2025
Node.js has undergone a remarkable transformation since its early days. If you’ve been writing Node.js for several years, you’ve likely witnessed this evolution firsthand—from the callback-heavy, CommonJS-dominated landscape to today’s clean, standards-based...
more...
XML Serialization and Deserialization with Jackson
repost: XML Serialization and Deserialization with Jackson
# 1. Overview
In this tutorial, we’ll learn how to serialize Java objects to XML data using Jackson 2.x, and deserialize them back to a POJO.
We’ll focus on the basic operation that doesn’t require a lot of complexity or customization.
# 2....
more...
Jackson Annotation Examples
repost: Jackson Annotation Examples
# 1. Overview
In this tutorial, we’ll do a deep dive into Jackson Annotations.
We’ll see how to use the existing annotations, how to create custom ones, and finally, how to disable them.
# 2. Jackson Serialization Annotations
First, we’ll take a look at the...
more...
Microsoft Word Processing in Java with Apache PO
repost: Microsoft Word Processing in Java with Apache POI
# 1. Overview
Apache POI is a Java library for working with the various file formats based on the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2).
This tutorial focuses on the support of Apache POI for...
more...










