How to create a bootable USB drive to install Windows

If the computer you want to install Microsoft WIndows on, does not have a DVD drive, you can install Windows from a USB drive. To start the computer from the USB drive, you need to prepare the drive to make it bootable. Microsoft has a free tool that can download the edition of the Windows …

Setup failed: Failed to copy slug dir: lstat /Users: no such file or directory error in Terraform Enterprise

When you try to execute a Terraform configuration in Terraform Enterprise (Atlas) you may get the error message: Setup failed: Failed to copy slug dir: lstat /Users: no such file or directory Cause: The Git repository contains the .terraform/modules directory, and the Terraform Enterprise server cannot get the latest modules from GitHub. Solution: Create a .gitignore file …

Install a Python package

To install a Python package on Macintosh Download the Python package to your workstation, Unpack the package, Open a terminal window, Start sudo, sudo -i Change to the directory of the package, Install the package. pip install PACKAGE_NAME If you don’t install the package in sudo mode, you will get “Permission denied” errors during the …

PyCharm configuration

When you install PyCharm, the default Python interpreter is may not the version you want to use for your new projects. When you create a new project, and the project interpreter is not set, you may get the following error message: Executed command: /var/folders/_x/_f0zzs1s4sx6bk4s8n78l2jsbn9r3z/T/tmpBoQLx_pycharm-management/pip-9.0.1/setup.py install Error occurred: 40:357: execution error: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: …

Python ImportError: No module named …

Symptom: from MY_FOLDER.MY_FILE import MY_CLASS causes an error: ImportError: No module named MY_FOLDER.MY_FILE Debugging: Execute the program in debug mode, In the Variables window expand Special Variables, Read the __warningregistry__ value. Possible cause: The __init__.py file is missing in the directory of the referenced class. Solution: Create an empty __init__.py file in the directory where the class is referenced …

Python basics

Great Python introductory video for C# developers https://www.youtube.com/watch?v=jj60geqaP08 __  (double underscore) Starting the attribute name with double underscore attribute makes it private. To expose the private attributes and methods print(dir(MY_CLASS))   Code hierarchy In Python indentation denotes the hierarchy of the instructions, not curly braces, like in C# or Java. Directories When you create a directory …

Working with PyCharm

Project management Create a new project in PyCharm In the File menu select New Project…, On the left side select the Python framework you want to use, Enter the name for your project to the end of the Location path, If you have selected a framework that asks for more information Click the More Settings link …

Create a Terraform Enterprise environment

If you just start to work with Terraform Enterprise, you need to create a Terraform environment. Preparation GitHub account To access GitHub from Terraform Enterprise, create a GitHub team and account with admin access to the GitHub repository that will store the Terraform scripts. Create a GitHub team who will have admin access to the Terraform …

No instances for regex `’, try running `kitchen list’ in Chef Test Kitchen

When I tried to execute the “kitchen list” command in Chef Test Kitchen the following error came up: No instances for regex `’, try running `kitchen list’ I could not find the reason for the error, so I opened the .kitchen.yml file in the Atom editor, added a space to one of the comments, and saved the …