August 8, 2015 asvignesh

I’ve been developing an automation scripts to provision and expand VMFS Datastore. Expand not Extent… I increased the storage volume size and need to increase the size of VMFS datastore without affording the downtime Here is the VIjava / YAVI Java code for expanding the datastore   https://gist.github.com/cd02090562b8cf2ee0e3   [amazon_link asins=’B002SSBD8A’ template=’ProductLink’ store=’asvignesh-21′ marketplace=’IN’ link_id=’2f839008-c0c9-11e7-a460-f1aec9ea1733′]

May 28, 2015 asvignesh 2Comment

When i was working on a WIX, i encountered some issue in installing the application  (REST based webservice), my service is not started and later identified that the port number which i set in the application is already used by another application To identify whether the port is in use, i used the Socket Class in Java, which is an endpoint for communication between two machines but i used for local machine to validate specified port public Socket(String host, int port) throws UnknownHostException, IOException https://gist.github.com/c830a8f4c94fa17d68a8 if the host is null it will set the host as loopback address

May 27, 2015 asvignesh

When I write blogs which explains something using code snippet, i used to add the code directly and blockquote it later i find some plugins which will render the code in the readable format with syntax highlighting, later i used to add code snippet in GIST and embed in post using some plugins, recently i got a chance to read this post  Which lets you to embed the GIST code in your blog post without any additional plugins with simple steps Login to WP_admin In WordPress admin console Goto Appearance > Editor > Select the current theme and click on functions.php Paste the below code snippet to your WordPress…

May 24, 2015 asvignesh 1Comment

Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work In this scenario developer can use Powershell To add DLL to the Global Assembly Cache Run the powershell PS C:\Users\Vignesh> [System.Reflection.Assembly]::Load(“System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”) GAC    Version        Location —    ——-        ——– True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50… PS C:\Users\Vignesh> $publish = New-Object System.EnterpriseServices.Internal.Publish PS C:\Users\Vignesh> $publish.GacInstall(“C:\Users\Vignesh\bin\asvignesh.dll”); To remove DLL from the Global Assembly Cache (Unregister) Run…

May 22, 2015 asvignesh 1Comment

VSS hardware provider can be initiate and test using DiskShadow Commands Open the Powershell and Enter Diskshadow PS C:\Users\Administrator> diskshadow Microsoft DiskShadow version 1.0 Copyright (C) 2013 Microsoft Corporation On computer: WIN-VigneshDev, 5/22/2015 12:06:35 AM DISKSHADOW> List the Hardware Providers DISKSHADOW> list providers * ProviderID: {74600e39-7dc5-4567-a03b-f091d6c7b092} Type: [2] VSS_PROV_SOFTWARE Name: Hyper-V IC Software Shadow Copy Provider Version: 1.0.0.0 CLSID: {3e02620c-e180-44f3-b154-2473646e4cb8} * ProviderID: {89300202-3cec-4981-9171-19f59559e0f2} Type: [4] VSS_PROV_FILESHARE Name: Microsoft File Share Shadow Copy provider Version: 1.0.0.1 CLSID: {fce59da7-7bac-40da-8d21-3e7311ba51cd} * ProviderID: {b57190af-4567-4dd0-ad8d51abd60b20d5 Type: [3] VSS_PROV_HARDWARE Name: Vignesh Test Provider Version: 6.2.9200.16384 * ProviderID: {b5946137-7b9f-4925-af80-51abd60b20d5} Type: [1] VSS_PROV_SYSTEM Name: Microsoft Software Shadow Copy…

May 22, 2015 asvignesh

There are lots of document and posts about GIT repos and commits, i wrote this like a note for future reference for me and my colleagues Firstly need to setup a bare repository SSH into the remote Unix machine and create a bare repo ssh git@asvignesh.in mkdir asvignesh_proj.git cd asvignesh_proj.git git init –bare Then move to the client machine, mkdir asvignesh_proj cd asvignesh_proj init git //Create Some files add * git commit -m “My initial commit ” git remote add origin git@asvignesh.in:/path/asvignesh_proj.git git push -u origin master Now your team can download / clone it git clone git@asvignesh.in:/path/asvignesh_proj.git

March 22, 2015 asvignesh

If you connected with VPN (Virtual private network), by default your internet will go through the remote gateway (ie. VPN gateway ), Here i explain how to access internet through your local gateway while you are connected to the VPN And the below steps applies only to VPN setups that use Windows default VPN connection and Windows Server RRAS as remote VPN server. The steps may differ if you are using some other My home gateway : 10.0.0.1 My VPN Gateway : 192.168.0.1 My VPN assigned IP : 192.168.0.210 To verify that i use tracert google.com, it goes to my…

March 14, 2015 asvignesh

First login to the ubuntu server via terminal or console To gain super user access, enter the following command and re-type the user password. sudo su – Type the following command to set the password for the Root user passwd root This will prompt user to enter the new password. and confirm password The terminal will return with Password updated successfully! Simply adding a password for root is not enough for Ubuntu 14.04+ Server. You need to edit /etc/ssh/sshd_config, and commend out the below line: PermitRootLogin without-password Add the following line: PermitRootLogin yes Then restart SSH: service ssh restart Yes…

January 14, 2015 asvignesh

There is an updated rolled out for chrome today which adds adds a new menu in the top-right of the chrome browser that allows the user to manages the user accounts. Many people feels it as ugly and a bit obnoxious, If you are the one who doesn’t switch the accounts often here is the tip to disable the menu To disable it,head into your flags menu. Type in address bar chrome://flags Search the page for “Enable new profile management system” Change the drop-down menu to “Disabled” Restart Chrome That’s it. You’ll lose the user management menu and return to…

January 8, 2015 asvignesh

HTTP GET The HTTP GET method is used to retrieve (or read) a representation of a web resource. In the non-error ( aka Happy path ) path, GET returns a representation in form of XML or JSON and the HTTP Status code will be 200 (OK). In case of any error in the path, it most often returns a 404 (NOT FOUND) or 400 (BAD REQUEST). According to the design of the HTTP specification, GET requests are used only to read data and not change it. Therefore, when used this way, they are considered safe. That is, they can be…