Windows Powershell for Managing Azure

Download and Install Windows Management Framework: https://www.microsoft.com/en-us/download/details.aspx?id=48729 Ref: https://msdn.microsoft.com/en-us/library/mt125356.aspx   Start –> All Programs –> Accessories –> Windows Powershell Right-click Windows Powershell ISE and select “Run as Administrator” Execute the following in the PowerShell window: Install-Module AzureRM #Install the Azure RM modules Install-AzureRM #Download and install each module of Azure RM Install-Module Azure #Install the ASM module … Read more

Install Linux Updates via Command Line

sudo apt-get update     #Gets list of available updates sudo apt-get -y upgrade    #Upgrades current packages sudo apt-get -y dist-upgrade   #Installs new updates #Run as a single command sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade

How To Test For Empty ResultSet In Java

In theory, we set a String variable populated with “before” indicating that “results” have not been populated with .executeQuery yet. Set a watch on the String variable. Set a breakpoint so you can see the variable populate with your “before” text. Set a breakpoint on the first line of the setters code so you can … Read more

FIX: Oracle SQL Developer timeout when connected to Azure

When using Oracle SQL Developer to connect to an Oracle database housed on a VM in Microsoft Azure, Developer will “timeout” after approx. 2 – 3 minutes due to Azure closing unused connections. Using this configuration, Oracle SQL Developer will hold the connection open indefinitely. Download and unzip the Oracle InstantClient: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html Put the unzipped … Read more

Create and auto-increment field using “sequence” in Oracle database

Create a database table: create table Books ( bookID number(38), title varchar2(50), author varchar2(50), pages number(38), constraint pk_bookID PRIMARY KEY(bookID) ); Create a sequence: Create sequence sequence_name start with value increment by value minvalue value maxvalue value; ***** For example **** Create sequence auto_incr start with 1 increment by 1; Insert some sample data into … Read more

Unsharp mask

Amount determines how much to increase the contrast of pixels. Typically 20 – 30% Radius is used to identify how many pixels around edges to sharpen. Typically 40 -70 Threshold determines how far pixels must be from surrounding area in order to be considered an edge. Anything greater than 0 is useless. Amount = 20 … Read more