Posts
Python Basics: Working with Files Using pathlib
Python’s standard-library pathlib module represents filesystem paths as objects. It can join paths, read small text files, and find matching filenames without building shell …
October 11, 2026
Python Basics: Reading and Writing JSON Files
JSON is useful for small configuration files and data exchanged between programs. Python’s standard-library json module converts JSON into dictionaries, lists, and other Python …
October 11, 2026
Python Basics: Reading and Writing CSV with Headers
CSV files often contain a header row followed by records. Python’s standard-library csv module handles quoted fields, including values that contain commas. Use Python 3 on Linux. …
October 11, 2026
Python Basics: Querying SQLite with Parameters
SQLite stores a database in a local file without a separate database server. Python’s standard-library sqlite3 module can create tables, insert records, and query them using SQL. …
October 11, 2026
Python Basics: Adding Command-Line Arguments with argparse
Python’s standard-library argparse module turns command-line arguments into named values. It also generates help text and reports invalid input. Use Python 3 on Linux. Run the …
October 11, 2026
Git Basics: Working on Two Branches with Worktrees
A worktree gives another branch its own directory. You can leave unfinished changes in one directory and work on another branch without stashing them. Run these commands in Bash …
October 10, 2026
Git Basics: Saving and Applying a Patch File
A patch file stores a textual diff that you can inspect and apply later. This example saves an unstaged edit, returns the file to its committed state, then applies the saved patch. …
October 10, 2026
Git Basics: Recovering a Detached Commit with Reflog
A reflog records local updates to references such as HEAD. It can help find a commit you made and then left behind without putting it on a branch. Run these commands in Bash with …
October 10, 2026
Git Basics: Finding a Broken Commit with Bisect
When an older version works and the current version fails, git bisect narrows down the first bad commit. Give Git a repeatable test and known good and bad endpoints. Run these …
October 10, 2026
Git Basics: Copying One Commit with Cherry-Pick
Cherry-pick applies the change from one existing commit to your current branch. It is useful when you need a specific fix without merging an entire branch. Run these commands in …
October 10, 2026