Net 5 is finally here! Official announcement.
Let’s test it out by writing the famous Hello word console app.
Easy way to manage python virtual environments.
$ python -m pip install --upgrade pipenv$ pipenv --version # Verify installation
# i. Creates new project using the latest version of python 2x or 3x$ pipenv --two
$ pipenv --three
# ii. Using a specific python version
$ pipenv --python 3.6.5
# iii. Specify a path where python is installed
$ pipenv --python /path/to/python
$ pipenv install requests
$ pipenv install --dev pytest
A brief comparison of networking modes in Oracle Virtualbox.
# Example (using vagrant):config.vm.network "forwarded_port", guest: 22, host: 2222
Example: Say you have an authentication API, that receives a JSON request to register a new user.
How would you log events that occur in the end-to-end new user registration process? Here’s how I would do it:
Reference: pyinstaller home
Question: How do you go from python myscript.py -verbose to just myscrpt -verbose? Follow along to find out!
$ pip install --upgrade pyinstaller
2. Add the python scripts folder to the system path if you have not done so already
$ pyinstaller <your-script>.py# output(s):
# <your-script>.spec - Default settings used to generate exe
# build/ - Build artifacts e.g. build logs
# dist/ - contains <your-script>.exe + python dependencies
2. Useful options
This simple guide will show you how you can use pyinstaller and argparse to create a simple console application with python.
$ pip install --upgrade psutil
$ pip install --upgrade pyinstaller
Lets try this out by creating a simple console app that will list processes or applications that are currently running on your PC.
Before we begin: Make sure vagrant is installed in your machine and added to the path. To verify, run vagrant -v and make sure you get a version number of the vagrant version installed on your machine.
Reference: Vagrant Official Docs
# Syntax: vagrant init [name [url]]
# name = name of the box to create i.e. config.vm.box
# url = url to download the box from
# Example:$ vagrant init my-company-box https://boxes/example.box
2. vagrant up
# Syntax: vagrant up [name|id]…
WPF DataGrid Control — Provides flexible a way to display collection of data in rows and columns
# Sorting # Grouping # Filtering etc.
This article assumes you have some exposure to WPF and common data display controls such as ListBoxes,ListViews etc.
The term control is generally used to refer to any visual element in a WPF application. Technically this can imply that the element inherits the Control class.
Grid: Child controls are positioned using rows and columns.
StackPanel: Child controls are stacked along a single axis( x or y).
Disclaimer: This is article only covers the C# concepts that are prominent when developing WPF applications. If you are looking for a full C# course, please visit the official Microsoft docs.
This article continues from this article.
// This delegate can point to any function with a return type of //void and one string argumentpublic delegate void TestDelegate(string arg);// We…
Former Glorified Electrician(aka Electrical Engineer). Now a Software Developer working on complex Enterprise Software. Lets connect on twitter @NdamuleloNemakh