IronPython can expose Python types to C# libraries, and expose C# libraries to Python code.
Author Archives: Laszlo Pinter
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 …
Continue reading “Create a Terraform Enterprise environment”
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 …
Continue reading “No instances for regex `’, try running `kitchen list’ in Chef Test Kitchen”
GitKraken installation and configuration
GitKraken is a Git user interface to manage Git repositories. Installation Download the GitKraken installer from https://www.gitkraken.com/download Configuration Start the GitKraken application Login with your GitHub account, or create a new account or Connect to a Git repository Click the Open a Repository button Select a repository folder and click the Open button
3D Printer GCODE instructions
GCODE is a standard file type to control 3D printers. The 3D object is usually exported from the CAD program to an STL file, that fully describes the end product. 3D printers build the physical objects layer-by-layer, so we need to slice the object into thin layers. Turn off the fan after 5 minutes When …
Terraform Enterprise Administration
Create a new organization In your web browser navigate to https://atlas.hashicorp.com/help/organizations, On the left menu bar under Organizations click Create, In the middle of the screen click the new organization page link, Enter the email address and user name for the organization owner and click the Create organization button.
Using Git
Frequently used Git commands Git runs entirely on your workstation, and a copy of the entire repository is also on your local hard drive. GitHub, BitBucket, and other providers only give you a storage space to allow you to share your repository with others and provide a web user interface to manage it. You can use any …