Skip to content

Posts

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. …

Read more →

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. …

Read more →

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 …

Read more →

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 …

Read more →

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. …

Read more →

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 …

Read more →

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 …

Read more →

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 …

Read more →

October 10, 2026

Git Basics: Saving Unfinished Work with Stash

A stash temporarily sets aside local edits so you can return to a clean working tree. Practice saving and restoring one tracked file before using it during an interruption. Run …

Read more →

October 9, 2026

Git Basics: Resolving a Merge Conflict

When two branches change the same line differently, Git may need you to decide the final contents. This exercise creates a small conflict, resolves it, and records a merge commit. …

Read more →

October 9, 2026