Profile cover photo
Profile photo
Vivek Menon
About
Vivek's posts

Post has attachment
Command to connect to scvmm from powershell
Import-Module 'C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1' $username = "xxx"           $password = "yyy" $credentials = New-Object System.Management.Automation.PSCrede...

Post has attachment
Windbg download location
https://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx This Windows driver kit install includes windbg which works for Windows 10 Windows 8.1 Windows 8 Windows 7 Windows Server 2016 Technical Preview Windows Server 2008 R2 Once you install Windows ...

Post has attachment
Powershell log all commands
If you want to log every single powershell command, run on your machine one way to do it is to upgrade to powershell 5 . Once you install powershell 5 all you need to do is to update a registry key to turn it on HKLM:\Software\Policies\Microsoft\Windows\Pow...

Post has attachment
Java DeepCopy using JAXB
import javax.xml.bind.JAXBElement; import javax.xml.namespace.QName; import java.io.Serializable; /** * Returns a deep copy of any object that implements Serializable. * This class uses JAXB to serialize and deserialize objects */ public class Copier< T ext...

Post has attachment
Java collections tutorial
The two most popular collections used in Java are List and Map . Both are generic interfaces. Java framework library provides many implementations of both these interfaces.    The most popular implementation of List is the ArrayList class. ( If you are from...

Post has attachment
Java Collections Tutorial
The two most popular collections used in Java are List and Map . Both are generic interfaces. Java framework library provides many implementations of both these interfaces.    The most popular implementation of List is the ArrayList class. ( If you are from...

Post has attachment
Builder pattern tutorial Java (Beginners introduction to builder pattern)
The requirement Suppose you need a Sandwich class which has 3 ingredients bread, cheese and meat. The requirement is you can pick any combination of these items. And once the Sandwich class is initialized, you shouldn't be able to change these ingredients. ...

Post has attachment
Is chaos a necessary evil?
When I was 16 I learnt the periodic table in school. I learned about protons and electrons and neutrons. I found out that knocking protons out from the nucleus actually changes the element. Every atom interacts with the adjacent atom in a consistent way. Wh...

Post has attachment
Java InputStreamReader simple example
To  follow along go to a ascii to binary converter and get a binary array for your text. The text I am using is Hi 9 This text when converted to binary looks like this In the java program below these are things I will do Create a byte array for my data Crea...

Post has attachment
Java InputStreamReader example
To  follow along go to a ascii to binary converter and get a binary array for your text. The text I am using is Hi 9 This text when converted to binary looks like this In the java program below these are things I will do Create a byte array for my data Crea...
Wait while more posts are being loaded