Saturday, April 25, 2015

Updating Eclipse Kepler shows 'Backup of file eclipse.exe failed'

Tried to update Eclipse Kepler but failed with message below.
An error occurred while uninstalling
session context was:(profile=epp.package.testing, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.v20130521-1847 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file D:\eclipse\eclipse.exe failed.
Can not remove : D:\eclipse\eclipse.exe
The workaround?

  1. Rename existing eclipse.exe to say eclipse1.exe
  2. Run eclipse1.exe
  3. Do Eclipse update 

Change Tfs scrum working days

By default Tfs scrum template sets Monday to Friday as working days, and Saturday/Sunday as excluded. To change the days or include Saturday/Sunday for the work, do:


  1. Click on the "Administer Account", this is the gear icon.
  2. Navigate to Control Panel > [CollectionName] > [Project] > [Project] Team.
  3. Click on Settings, then change as appropriate.


Notes:
Tested on Tfs 2013/Visual Studio online (as of 04/25/2015)

Fix corrupted console font on Ubuntu 15.04

My tasksel looks like below.

To fix this do:

$: sudo dpkg-reconfigure console-setup

Then select:
  •  UTF-8
  • Guess optimal character set
  • Terminus
  • 8x16
Select different font type as appropriate.

Keywords:
tty;console;command line;cli install

Refs:
http://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console

Sunday, April 05, 2015

Get domain controller from NetBios name using Python

Where:
     myad is the NetBios name of the domain.

Note: Using ActiveState Python 2.7.x.

Get domain controllers from the command line using nltest

c:\> nltest /dclist:myad.test.local
This will return list of domain controllers for myad.test.local domain.

Get PDC domain controller name using nltest

c:\> nltest /dcname:myad
Note using myad(NetBios) instead of FQDN.

Get domain roles from the command line

c:\> netdom query /domain:myad.test.local fsmo

This can be used to get the PDC (Primary Domain Controller) emulator on AD environments.

Links:
http://serverfault.com/questions/174745/what-is-reliable-way-of-getting-name-of-primary-domain-controller


Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...