Sunday, November 30, 2014

HowTo: Set IPv4 preferred DNS server to static IP from command line

c:\> netsh interface ip set dns VirtualBox Host-Only Network static 192.168.0.1

where:
VirtualBox Host-Only Network - is the network interface name

Saturday, November 29, 2014

HowTo: Set static IP on a Windows machine from the command line

c:\> netsh interface ip set address name="VirtualBox Host-Only Network" source=static addr=192.168.1.1 mask=255.255.255.0

where:
VirtualBox Host-Only Network - is the network interface name

Friday, November 28, 2014

HowTo: Set the network interface to get IP from DHCP using the command line

c:\> netsh interface ip set address "VirtualBox Host-Only Network" dhcp

where:
VirtualBox Host-Only Network - is the network interface name

Wednesday, November 26, 2014

HowTo: Join to a domain using WMIC

c:\> wmic.exe /interactive:off ComputerSystem Where name="MACHINE-NAME" call JoinDomainOrWorkgroup FJoinOptions=3 Name="DOMAIN-NAME" UserName="DOMAIN-NAME\user01" Password="Password01"

Copied this from the internet elsewhere forgot to get the URL to give credits.

Wednesday, November 19, 2014

PyCharm: Unresolved reference 'print'

PyCharm can sometimes get confused specially if you have multiple interpreters and using virtualenv. To fix "Unresolved reference 'print'" message, do File | Setting... (Ctrl+Alt+S) | Project Interpreter | Show All (drop down) | Show path for the selected interpreter () | Reload List of Paths ().

Reference(s):
http://forum.jetbrains.com/thread/PyCharm-291

Sunday, November 16, 2014

Installing Pyro 4.30 in IronPython 2.7.4

This assumes that IronPython is installed in D:\ipy.
  1. Download Serpent archive file - used 1.7 (link). Serpent is needed by Pyro 4.
  2. Extract to a folder, say D:\Serpent.
  3. Change directory to where Serpent was extracted then do D:\Serpent>D:\ipy\ipy.exe setup.py install. This will install Serpent.
  4. Download Pyro 4 tar archive (link).
  5. Extra to a folder, say D:\Pyro4.
  6. Change directory to where Pyro4 was extracted then do D:\Pyro4>D:\ipy\ipy.exe setup.py install.

Tuesday, November 11, 2014

Change network category in Windows 8.1

Windows 8.x network category or network profile affects how other Windows machines detects or discover the node. A machine on  a domain or private network will most of the time allow file sharing and printing, more relaxed firewall, etc.

For computers with multiple network interfaces changing network profile can be difficult using the GUI. To force a network interface to be in private profile for example you can do:

PS c:\> Set-NetConnectionProfile -InterfaceAlias "VirtualBox Host-Only Network" -NetworkCategory Private

where:
"Virtual Host-Only Network" - is the name associated with the network interface
"Private" - is the profile

Reference(s):
http://www.tinkertry.com/how-to-change-windows-8-1-network-type-from-public-to-private/