December 2026
Every post published in December 2026, newest first. Pick a day to jump straight to it.
- Posts
- 97
- Topics
- 38
- Reading time
- 10 h
- Active days
- 1
Posts 31–60 of 97 · December 1, 2026
Page 2 of 4
Tuesday, December 1, 2026
30 of 97 posts
How to Check a Model's License on the Hugging Face Hub
Find out whether you may use a Hugging Face model in your project: where the license is on the model page, what its menu links to, and how to read it from the terminal with hf models info. Real screens and output from huggingface_hub 2.5.0.
5 min readHow to Delete a Model from Your Hugging Face Cache with hf cache rm
Free up disk space by deleting a downloaded model from the Hugging Face cache with hf cache rm: preview it with --dry-run, confirm the deletion, and check the result with hf cache ls. Real output from huggingface_hub 2.5.0.
5 min readHow to Change Where Hugging Face Stores Downloaded Models with HF_HOME
Move the Hugging Face cache, where downloaded models and your token live, to another folder or drive by setting the HF_HOME environment variable, in bash, zsh or PowerShell. Real output from huggingface_hub 2.5.0, checked with hf env.
6 min readHow to List the Models in Your Hugging Face Cache with hf cache ls
See every model and dataset Hugging Face has downloaded to your computer, with its size and when you last used it, with hf cache ls, and every saved revision with --revisions. Real output from huggingface_hub 2.5.0.
6 min readHow to Check Whether PyTorch Can Use a GPU (CUDA or Apple MPS)
Find out whether PyTorch can run on your computer's GPU: torch.cuda.is_available() for NVIDIA, torch.backends.mps.is_available() for Apple silicon, and torch.accelerator to pick whichever you have. Real output from PyTorch 2.15.0 on an Apple M1 Pro.
5 min readFixed: UserWarning: Failed to initialize NumPy: No module named 'numpy'
A fresh PyTorch 2.15 project printed UserWarning: Failed to initialize NumPy: No module named 'numpy' on import, and tensor.numpy() then failed with RuntimeError: Numpy is not available. PyTorch doesn't install NumPy itself; adding it fixes both.
6 min readHow to Add a Command to a Python Project with [project.scripts]
Give your Python project its own terminal command by pointing a name at a function in [project.scripts] of pyproject.toml, then run it with uv run. Real output from uv 0.13.10 and Python 3.15.2, including the two errors a typo causes.
4 min readHow to Change a uv Project's Python Version with uv python pin
Move a uv project to another Python version with uv python pin: why uv refuses when requires-python doesn't allow it, the one-line fix in pyproject.toml, and how uv rebuilds the environment. Real output from uv 0.13.10, from Python 3.15.2 to 3.14.10.
5 min readHow to Import a Module Inside a Function in Python
Put an import statement inside a Python function so the module loads only when the function runs, and see it with sys.modules. Real output from Python 3.15.2, plus the NameError when you use the name outside.
4 min readHow to Make a Folder into a Python Package with __init__.py
Group Python files into a package by adding an __init__.py file to their folder, then import from it with from package.module import name. Real output from Python 3.15.2, including when __init__.py runs.
4 min readHow to Loop over a Dictionary's Keys and Values in Python with items()
Get each key and its value together in a Python for loop with dict.items(). Real output from Python 3.15.2, plus the ValueError you get without items() and the RuntimeError for changing a dictionary while looping.
3 min readHow to Turn a Tuple into a List in Python with list()
Convert a Python tuple into a list with list(), so you can add, remove or change items, while the original tuple stays as it was. Real output from Python 3.15.2, plus the AttributeError for append on a tuple.
3 min readHow to Show a Number with Two Decimal Places in a Python f-string
Print a Python number with exactly two digits after the decimal point using :.2f inside an f-string, so 3.14159 shows as 3.14 and 2.5 as 2.50. Real output from Python 3.15.2.
3 min readHow to Make zip Raise an Error for Lists of Different Lengths with strict=True
By default Python's zip() drops the extra items of a longer list without a word. Pass strict=True and it raises a ValueError instead. Real output from Python 3.15.2, side by side.
3 min readHow to Make a Dictionary from Two Lists in Python with dict and zip
Turn a list of keys and a list of values into one Python dictionary with dict(zip(keys, values)), then look a value up by its key. Real output from Python 3.15.2, plus what happens with repeated keys.
3 min readHow to Pad Text to a Fixed Width in a Python f-string
Line up text in columns by padding it to a fixed width in a Python f-string: :<8 to the left, :>8 to the right and :^8 in the centre. Real output from Python 3.15.2.
3 min readHow to Make a Python Data Class Read-Only with frozen=True
Stop a Python data class from being changed after it's created with @dataclass(frozen=True), see the FrozenInstanceError it raises, and make a changed copy with dataclasses.replace. Real output from Python 3.15.2.
4 min readHow to Loop over Two Lists Together in Python with zip
Walk through two Python lists side by side with zip(): each turn of the loop gets one item from each list. Real output from Python 3.15.2, and what zip does when the lists have different lengths.
3 min readHow to Create a Data Class in Python with @dataclass
Create a Python class that holds data in four lines with @dataclass: Python writes __init__, a readable print-out and == for you. Real output from Python 3.15.2, including the TypeError for a missing field.
4 min readBuild an Overtime Timesheet App in Power Apps — Part 21: Install the App in a New Environment
Install the Overtime Timesheet app from its release zips into a new trial environment and a new SharePoint site: environment, group team, users, setup flow, template and script, the app import, the payroll script picked again, sharing, and a first entry, approval and payroll workbook.
35 min readHow to Set Connection References in a Deployment Settings File
Install a solution from the command line with its connections already chosen: create a deployment settings file with pac solution create-settings, find each ConnectionId with pac connection list, fill it in, and import with --settings-file.
7 min readHow to List Connections with pac connection list
List the connections in a Power Platform environment from the terminal with pac connection list: its syntax, what the Id, Name, API Id and Status columns mean, and how to find one connector's connection ID.
6 min readHow to Add an Existing Cloud Flow to a Solution in Power Apps
Put a cloud flow that already exists into a solution with Add existing: the From Dataverse and Outside Dataverse tabs, why a flow made in My flows can be on the first one, selecting it, and checking it in the solution.
6 min readFixed: Power Apps Downloads an Old Solution Zip After "Exported Successfully"
Two identical messages said Solution exported successfully, and the first Download gave yesterday's zip of a solution with the same name and version. Wait for Currently exporting to finish, use the newest message, and check what's inside the zip.
6 min readHow to See Ignored Files in Git with git status --ignored
List the files and folders Git is ignoring with git status --ignored, read the !! marks in its short format, and check that a .gitignore really works before your first commit. Real output from Git 2.56.1.
3 min readHow to Stop a Running Command in the Terminal with Ctrl+C in Bash and Zsh
Stop a command that's still running, such as a server or a long sleep, by pressing Ctrl+C in bash or zsh, and read the exit status 130 it leaves behind. Real output from both shells.
3 min readHow to Print a File in the Terminal with cat
Show a text file's contents in the terminal with cat in zsh and bash, or Get-Content in PowerShell, and print several files one after the other. Real output, including the errors for a missing file and a folder.
3 min readHow to Get the Current Folder in the Terminal with pwd
Print the folder your terminal is in with pwd, use its full path in other commands with $PWD in zsh, bash and PowerShell, and watch it change after cd. Real output from each shell.
4 min readHow to Give a Variable a Default Value in the Terminal
Use a fallback value when a variable is missing with ${NAME:-default} in zsh and bash, and with the ?? operator in PowerShell, and see how each treats an empty variable differently. Real output from both shells.
4 min readHow to Create a Variable in the Terminal
Create a variable in zsh and bash with NAME='value' (no spaces) or in PowerShell with $name = 'value', use it in text, mark where its name ends with braces, and see why a program you start can't read it. Real output from each shell.
4 min read