Profile cover photo
Profile photo
Vivek Menon
About
Posts

Post has attachment
What decides right from wrong?
I have seen discussions where people claim they are coming from a neutral perspective, when they comment on an issue. In certain cases that night be true. But in many cases its hard to decide if your opinion is truly neutral. Taking my own example, at the t...
Add a comment...

Post has attachment
Find port number used by a process in windows
If your process is launched in a java process, then sysinternal tools by itself is not easy enough to figure out the port used by your process, because there are usually many java processes running on a machine. One way to get around this is 1>Create a uniq...
Add a comment...

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...
Add a comment...

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 ...
Add a comment...

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...
Add a comment...

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...
Add a comment...

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...
Add a comment...

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...
Add a comment...

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. ...
Add a comment...

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...
Add a comment...
Wait while more posts are being loaded