gordon

About gordon

This author has not yet filled in any details.
So far gordon has created 107 entries.

Juniper VPN client keeps disconnecting

Are you using Juniper VPN Network Connect client but having issues staying connected? Maybe you are getting disconnected every 5-10 mins? I had this issue and it took me sometime to figure out this issue. I decided to write this blog post for anyone else experiencing this issue.

The error is: “The Network Connect session terminated. Do you want to re-connect?” “nc.windows.app.23711”

There is a common reason for this, when you’re on the VPN software running on your computer is trying to re-write the routing table. There are some known software packages that cause this, disable or remove the following to see if it fixes your problem:

Software Package Solution
Bonjour Service (it runs as MDNSResponder.exe), this is located in C:\Program Files\Bonjour\mDNSResponder.exe. Remove it from Add/Remove Programs
HP Software  If you’re hooked up to an HP printer remotely. This software always attempts to re-write the routing table, remove anything related to HP networking, you can keep your HP drivers but the miscellaneous software should be removed.  The only software I have left is “HP Smart”

 

Hope this helps you out, if you’re still having issues, please reach out to me on twitter.

By |September 19th, 2018|Windows|0 Comments

Searching Azure blob storage by file extension

Here is a powershell script to search azure’s blob storage by file extension:

By |September 20th, 2017|Azure|0 Comments

Best Domain Registrar 2017

Working as a web developer you encounter domains that are registered on various domain registrars. Some clients are on Google Domains, GoDaddy, Namecheap, etc. In my opinion the best registrar to use in 2017 is NameCheap.

They are a well known domain registrar founded in 2000. They made a name for them early on by allowing you to register second class TLD (.club, .info), etc.  I personally use NameCheap on a daily basis, their DNS servers are fast, support is great, friendly user interface for managing your domain names. To me it’s important that a registrar provides top class security as well. I’ve turned on 2 Factor authentication (more commonly known as “2FA”) to keep my account secure. Whenever I login there is a prompt for me to enter in the 2FA code, this is sent via an SMS text message.

As I mentioned earlier the support services are great, you can contact them via live chat, support ticket or phone.

So how much does a .com domain cost? As of June 28th 2017 it costs $10.88 for a .com domain registration for one year (this also includes the free whois guard protection for 1 year).

Visit Namecheap

 

 

By |June 28th, 2017|General Web Development|0 Comments

Visual Studio 2017 Preview 3 is out

Preview 3 of Visual Studio 2017 is out, learn more about this update at: https://www.visualstudio.com/en-us/news/releasenotes/vs2017-preview-relnotes

By |June 27th, 2017|Coding|0 Comments

Azure Automated Login via Service Principal

In order for this setup to work you must be an administrator for your azure subscription:

  • Create a new application registration under Azure Active Directory.
  • Generate a key for the application.
  • Assign the application to your azure subscription(s).

The community has put together an excellent how to document which will walk you though the 3 steps mentioned above, this can be found at https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal

After performing all 3 steps, you should gather the following information:

  • Tenant ID/Directory ID: This is found under the Properties blade of the Azure Active Directory
  • Application ID:  This is found under the Properties blade of the Register application
  • Secure Key: This is found and generated under the Keys blade of the Register application

After you’ve gather all the information, plug it into this script and execute it. I’ve tested this on Azure Powershell version 4.0.2. To get your version of Azure Powershell execute the following:

Here is the script to authenticate your service principal:

 

By |June 6th, 2017|Azure|0 Comments

Windows Subsystem for Linux (WSL) – Copy ssh key from windows

I found myself needing to connect to github via bash on windows. But I didn’t want to have to register a new public key with github. I decided to use my existing key from Windows. To do this I simply copy the file from windows to wsl.

Here is the command I used, you might find it useful:

 

Make sure to use the full path to your ssh folder on windows.

By |April 12th, 2017|Windows|0 Comments

Appending to your PATH variable

If you ever need to append to your PATH variable on your system follow these instructions (Windows 10).

  • In your windows 10 search, type “system variables”, then click “Edit the system environment variables”
  • Click on “Environment Variables…”:
  • In the second list, search for a variable called “Path”:
  • Double click it and then click the “New” button and enter your new path entry and click Ok.
By |March 30th, 2017|Windows|0 Comments

What’s new in Microsoft Visual Studio 2017

Here is an excellent poster to find out what’s new in Visual Studio 2017:

 

(source: https://blogs.msdn.microsoft.com/visualstudio/2017/03/13/visual-studio-2017-poster)

By |March 13th, 2017|Coding|0 Comments

Setting up Redis on a windows server and testing connectivity

In this post I will show you how to install redis on windows and test for connectivity.

 

Installation

Download the latest release at https://github.com/MSOpenTech/redis/releases

Perform the installation, leave everything as default. By default, redis should already configure your windows firewall to allow communication with the redis-server.exe file, redis server runs on port 6379 so make sure that port is opened on hardware firewalls, etc.

Configuration

After the installation is complete, a window service called “Redis” is created, this is your redis server.

Browse to the installation path, on my setup this was C:\Program Files\Redis

Open the file redis.windows-service.conf NOT redis.windows.conf

We want to make a couple changes to secure the server with a password and set the ip address binding:

  • Setting Password: Search for the word “requirepass”, this was on line 445 in my configuration file, uncomment and set a proper password, something strong.
  • Setting IP Address binding: By default it seems the redis server is configured to only work locally, because of the one binding to the loopback interface address, you should see a line “bind 127.0.0.1”, make sure to comment this, by doing so your redis server will be bound to all ip addresses on the server.

After making these changes, restart your Redis service and check the log file server_log.txt for error, you should see something like:

“[5676] 10 Sep 09:38:35.358 * The server is now ready to accept connections on port 6379”

Testing Remote Connectivity

After installing you may want to test your remote connectivity to the redis server.

Grab a copy of redis-cli.exe in the installation folder and place on another computer to test.

I then opened a command prompt and went to that folder where redis-cli.exe was placed and issued the command:

 

I hope this helps! If you have any questions feel free to contact me on twitter: @tekguy

By |September 10th, 2016|Coding|0 Comments

Exposing Artifacts during project build in Team City

I recently found myself in a situation where I needed to publish my artifacts to the team city’s internal nuget feed server DURING the build (not after). In order to accomplish this I had to let Team City know about my artifacts folder (or files) during the build. I simply needed to output a message. I used Team City’s Service message syntax to do this. In my build project I create another target step:

 

By |August 10th, 2016|Uncategorized|0 Comments