Saturday, March 22, 2014

Extracting tar.gz file into specific folder

For example, to extract pycharm-community-3.1.1.tar.gz to ~/bin folder do:
$: tar -xvzf pycharm-community-3.1.1.tar.gz -C ~/bin

Wednesday, February 19, 2014

Read 64-bit registry key from 32-bit process in IronPython using WMI

References:
http://msdn.microsoft.com/en-us/library/aa393297(v=vs.85).aspx
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23080571.html

Sunday, February 16, 2014

Manually configure a network interface to get an IP from a DHCP server

Got an Ubuntu 13.10 machine with one network interface. Added another one to test internal networking. To make this new network interface get IP address from DHCP server, we need to modify /etc/network/interfaces, like:

auto eth1
iface eth1 inet dhcp


Reference(s):
https://help.ubuntu.com/10.04/serverguide/network-configuration.html

Keywords:
network interface IP Ubuntu

QNX Momentics throws a lot of error on start up after install in Ubuntu 13.10 64-bit

tldr;
Reboot the machine.

When starting up QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit, it throws a lot of errors, like below.

'Initial state verification' has encountered a problem. An internal error has occured.
[Details>>] [OK]


There is an error in the QNX Configuration settings. Either the QNX_CONFIGURATION environment variable is not defined correctly or the location it points to is not accessible. Exit the IDE and fix the error?
[No] [Yes]


There is an error in the QNX compiler settings. Either the QNX compiler is not defined or compiler definition directory is not accessible. You should exit the IDE and fix the error immediately.
Exit the IDE and fix the error?

[No] [Yes]


And what is the workaround? Reboot the machine.

Guessing that the environment variables are not yet set after install, reboot picks up the new configuration.

Keywords:
QNX Momentics Ubuntu

Saturday, February 15, 2014

Fixing QNX Momentics Gtk themes warning on Ubuntu 13.10 64-bit

You might observe the following Gtk warnings when running QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit.

(qde:9636): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

To fix, run the following command.
$: sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 gtk2-engines:i386

Configure DHCP server for VirtualBox internal network

c:\>vboxmanage dhcpserver add --netname qnxnet --ip 192.168.100.1 --netmask 255.255.255.0 --lowerip 192.168.100.10 --upperip 192.168.100.100 --enable

Keyword:
VirtualBox, DHCP, internal

Sunday, January 26, 2014

HowTo: Upgrade Ubuntu 13.04 to 13.10 from the command line

$: sudo do-release-upgrade

References:
http://askubuntu.com/questions/110477/how-do-i-upgrade-to-a-newer-version-of-ubuntu