When a laptop lid is getting closed, different scenarios are possible: do nothing, blank screen, suspend or shutdown. In Linux Mint, the system behavior on closing the lid is controlled by the “Power Management” and “Screensaver” settings. This note shows how to enable or disable screen locking when closing the lid in Linux Mint.
Python Script Not Showing Output [SOLVED]
It may happen that you execute a Python script and nothing happenes, i.e. it seems that it “hangs” without showing any output. Even if you explicitly include some print() statements to debug the issue, it may still not print anything to a terminal. One of the reasons of why your Python script does not show […]
Ansible: Skip Parameter If Variable Not Defined
In Ansible, if you run a task that has some module’s parameter with a variable that is not set you will get “The task includes an option with an undefined variable” error. If for some reason you can’t or don’t want to define this variable, you can make it optional. In this case Ansible will […]
Rename User Folder in Windows
User profiles in Windows on the most of computers are usually located in the folder C:\users\. By default, the user folder name is the same as you user name. But if you change your user name, the old name of your user folder will remain and you may want to rename it as well. The […]
PasswordNeverExpires: Disable Password Expiration
A password expiration is a feature in Windows that forces users to change their passwords after a certain number of days. When it is time to change your password, Windows will send you a “Consider changing your password” notification. In this note i will show several ways of how to disable the password expiration of […]
Change User Name of Local Account in Windows
There may be different reasons for changing a local user account name in Windows. For example, you may want to change the name on the sign-in screen to your actual name instead of the nickname or vice versa. This short note describes the easiest way of changing a user name of the local account in […]
Disable Startup Programs in Windows
It is quite annoying when some apps are not expected to, but they are automatically opening on startup in Windows. And it raises a perfectly logical question, how to stop such apps from running at startup. In this note i will show the easiest and the most efficient way of how to find ALL startup […]
You Need Permission to Perform This Action [FIXED]
While trying to delete, copy, move or rename some files or folders in Windows you may get the error: “You need permission to perform this action” followed by “You require permission from the computer’s administrator to make changes to this file or folder“. This “Access Denied” error means that you are not authorized to make […]
Kubernetes: Get ServiceAccount Permissions/Roles
A Service Account in Kubernetes is a special type of non-human privileged account that provides an identity for processes that run in a Pod. When you create a Pod, if you do not specify a Service Account, it is automatically assigned the default Service Account in the same Namespace. This note shows how to list […]
Python: Check Package Version
While working with Python you may wonder what is the version of a certain Python package (library) that you are using. There are several ways of how to get the version of a package or module in Python. This note describes how to check the version of Python packages from a Python shell, from a […]