Powershell vs CMD

Let’s compare Powershell vs CMD. Both Powershell and CMD are command line interfaces (CLI) or shell environments for Windows. CMD is the older version, and Powershell is where Microsoft is now putting all of their develoment resources.CMDYou can think of the CMD environment as the evolution of Microsoft DOS (Disk Operating System). While CMD might look a lot like DOS, it is not really the same thing. CMD was merely the shell that DOS used. Over the years, CMD has evolved and added commands. Read more […]

Read More

Installing SQL Express

Installing SQL Express is a very easy thing to do. FIrst I will cover how to intall it manually, then I will cover a more automated way to do it. What is SQL Express? Before we begin, lets talk about what is SQL Express? SQL Express is a limited version of MS SQL. You get all of the basic functionality, but none of the cost. You don’t get access to SQL agent, which you would use for scheduling jobs, you have a memory and CPU limit, which varies by version, and you have a database size limit Read more […]


Chocolate bar

Installing Chocolatey Package Manager on Windows

In this article, I will describe how to install and use the Chocolatey Package Manager on Windows. But first, what is Chocolatey? To get the best explanation, it is best to quote the makers of chocolatey. “Chocolatey is a package manager for Windows (like apt-get but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from Read more […]


Python Switch Statements

In languages like C, you have Switch statements allowing you to evaluate the input, then have a few options for the output.  Switch statements are used in place of a series of if/else statements in order to make your code more readable.  Case statements can also have better performance than a traditional if/else setup.  This is because if you have a bunch of if statements, the system will have to evaluate all of the if statements at the time of execution.  However, with a case statement, it is Read more […]


Python If, Else, and Else If conditional statements

Conditional statments are a large part of writing computer programs and switches. You want to take some sort of input, evaluate it, then take some action based on what the input was. The decision you make about what to do is called a conditional statement. The first conditional statement we will look at is an if statement as shown below.

  The above script gives X a value of 1. It then evaluates X and prints Higher if X is larger than 2. There is then a Read more […]


Python For loops and While loops

Python like all other major programming languages support both For and While loops for running the same block of code over and over again. Generally the difference between the two kinds of loops is that you declare and initialize the loop and variables at the same time with a for loop. Whereas with a while loop, you declare the variables first, and then the wile loop separately. The most simple while loop would be something like this:

The above loop will run Read more […]


Protecting yourself from Spectre and Meltdown

Spectre (CVE-2017-5753 and CVE-2017-5715) and Meltdown (CVE-2017-5754) are exploits in CPU architecture allowing attakers access to protected memory they should not have access to. Spectre effects all CPU vendors, while Meltdown is specific to Intel chips. More details below.Lucky for you, there are patches available to remediate or workaround the issue. The downside is there is up to a 30% performance reduction in CPU performance after installing these patches. Older intel CPU’s will be harder Read more […]


Face and Object Detection using Python and OpenCV

For those who want to do object or face detection, the standard way to do it is with OpenCV. OpenCV is a programming library for Object recognition and is very flexible. You can train it to recognize any number of different objects. For the purpose of this tutorial, I will be using Python3. However, you can use other programming languages with OpenCV as well. PreRequisites 1. Pip Pip is not nesicarily a prerequisite. But it makes it a lot easier. Below are instructions on how to install Pip Read more […]


lightbulb on whiteboard

Getting OSX ready for Tensorflow

This article will describe the process of getting Tensorflow working on OSX.  By the end of the article, you will have all the prerequisites installed to allow you to run Tensorflow-based python applications on your MacOS/OSX computer. Install Homebrew Homebrew is a package manager for OSX.  It is similar to apt-get on Ubuntu or yum on Redhat linux.  Homebrew requires xcode to be installed. If you do not already have xcode to be installed, the install command below will install it for you. Read more […]


padlock

Hashicorp Vault – Managing your vault Tokens

The default authentication method in Hashicorp Vault is Tokens.  When you authenticate with any method, what it is really doing is creating a token, storing it somewhere, then using it to authenticate.  This article will discuss how the process for managing your vault tokens. https://www.vaultproject.io/docs/concepts/tokens.html vault client: Creating tokens (Default Lifetime 24 hours): https://www.amon.cx/blog/managing-all-secrets-with-vault/ vault token-revoke <TokenID> vault Read more […]