Getting started with AngularJS

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this blog post we will start exploring the AngularJS framework. If you are not familiar with this framework do a simple search on the web and should result into bunch of introductory posts that explains the basics of AngularJS framework. Here is the one from my blog.

For few initial demos I am not planning to integrate any server side connection so the application will be just a purely client side. In the later blog posts I am planning to integrate AngularJS with the framework like Asp .Net MVC Web API. However, I will be using Visual Studio as my editor of choice because that will make things simpler when we start adding more and more server side components.

For start, let's go ahead and build an Empty Web Application in Visual Studio 2013. Here is a short video explaining how to create this.

Setting up the Project Structure

Installing Package Manager On Sublime Text

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

That's right, I am going to blog about how to set-up a text editor !! As easy and dumb it sounds, believe me, this is not your ordinary text editor. You must be living under a stone to not have heard about this new Text editor that has taken Developer community by a storm. I am talking about the sophisticated, amazingly fast and extremely extensible Text editor named "Sublime Text".

We are going to work with Version 3 of the text editor. For now Sublime Text 3 is in beta and few things might change. For me reason to do this blog series with new version is to keep the content more relevant over coming months/years. Benefits of this text editor are end less but following are few to name,

  • Cross Platform [Once you get used to it,you can use it between Mac/Windows/Linux
  • Enormously huge plug-in community, here
  • Extremely fast and fluid
  • Strange type of Trial-ware that does not expire !

We will be using Windows OS as our target for setting up and using the Sublime Text editor.

Download the Sublime Text Installer

Go to the website and download the Sublime Text Installer for Windows OS.

Enable SSH On ESXi 5

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this blog post I will outline steps you can follow to enable SSH on your ESXi host using VMWare VSphear client. One the SSH is enabled you can use any SSH client to connect to your VMWare ESXi host and from there you have complete support for ESXCLI commands and other troubleshooting you need to do on your ESXi host.

First of all open your VSphear client and connect it to your ESXi host.

Convert VHD to VMDK

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

Recently I found myself in a situation where I had a .VHD file and wanted to upload and attach it to one of my VMs in ESXi server. Easy enough, right!! Well, not as easy as I thought.Apparently the Microsoft Hyper-v version of the virtual hard disk(.VHD) is not directly compatible with the format of other VMWare product such as VMware Workstation, VMware Player, VMware Server, VMware Fusion or something like VMWare ESXi. My assumption was that ESXi will be able to accept .VHD file and attach is just fine with the existing VM but that is not true.

After doing some research online I figured that .VHD file can not be attached directly. So what I ended up doing is

  • Converting the .VHD file to .VMDK file.
  • Then uploading .VMDK file to the ESXi Data Store
  • Attaching the .VMDK file as a Hard Drive to my Existing VM

Anyway, the point is, I wanted to list out some of the free tools available out there for someone like me who wants to move the Hyper-V .VHD files to VMWare infrastructure.

Of course I did not use all of these tools but just wanted to list them out here for some who is interested in using one of these utilities. I am sure, there are plenty of other tools available. You can also use Oracle VM VirtualBox VBoxManage.exe application to convert between different formats of the virtual hard drivers.

Also be careful if you are planning to use VMWare vCenter Converter because that only converts the live VHD meaning you can not just point it to non attached .VHD file and convert to .VMDK

What I ended up using was WinImage and I following is the step by step tutorial on who to convert .VHD file to .VMDK file using WinImage.

Be mindful that WinImage is something you have to buy. For me this was not an issue because they provide 30 Day trial version and this conversion was a just a one time deal for me.

Install and open WinImage.

Error: ENOENT, stat 'C:\Users\Demo\AppData\Roaming\npm'

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

Ok, so you have Node.JS installed on your machine and you are trying to work with NPM and gives you following error.

Error: ENOENT, stat 'C:\Users\Demo\AppData\Roaming\npm'

This seems to be the problem with the installer in the Node.JS or issues related to how the folders are being setup. In order to fix this issue, you need to go at following Location and create a new Directory named "npm".