Sunday, January 31, 2016

Show a temporary window in SikuliX

I can't find documentation in SikuliX to show a window or dialog and hide/close it after configured time. Since SikuliX uses Jython behind the scenes and Jython can access Java easily then showing a simple Swing window should be straightforward.

Sample code below demonstrates

Alternative solution as proposed by Raiman
Reference(s):
Github
https://github.com/haru-a8n/CodeSamples/blob/master/sikulix/ShowMessage.sikuli/ShowMessage.py
Jython GUI Sample applications
http://www.jython.org/jythonbook/en/1.0/GUIApplications.html
Swing Sample applications in Jython
https://wiki.python.org/jython/SwingExamples

Saturday, January 30, 2016

Read 64-bit remote registry from a 32-bit process in IronPython

Sample IronPython code to read remote 64-bit registry from a 32-bit process. Note that this can also be vice versa.
Reference(s):
https://github.com/haru-a8n/CodeSamples/blob/master/python/ipy/registry/readdword.py

Eclipse configuration

Mars.1(v4.5.x):
Base: Eclipse Classic
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Tfs Integration:
Web Development: Eclipse Web Developer Tools


XML Editor: Eclipse XML Editors and Tools

Juno(v4.x):
Base: Eclipse Classic
Python Editor: PyDev
System Integration: StartExplorer  http://basti1302.github.io/startexplorer/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Indigo:
Base: Eclipse IDE for Tester
Subversion Integration: Subclipse
Python Editor: PyDev
XML Editor: Eclipse XML Editors and Tools

Ganymede:
Base: Eclipse IDE for C/C++ Developers
Subversion Integration: Subversive
Python Editor: PyDev
XML Editor: Eclipse XML Editors and Tools

Saturday, January 23, 2016

Show Debian/Ubuntu/Mint package version using apt-cache

$: apt-cache show monodevelop | grep Version

How to install git on Debian 8.x(Jessie)

#: apt-get install git

Assign keyboard shortcut to lxterminal on LXDE

On my Debian 8.2 LXDE minimal install, need to assign keyboard shortcut to open lxterminal. To assign keyboard binding in LXDE, open ~/.config/openbox/lxde-rc.xml then add the following inside <keyboard> element:
Then run the following to for OpenBox/LXDE to reload the configuration.
$:  openbox --reconfigure
Reference(s):
http://superuser.com/questions/807047/how-to-add-a-shortcut-key-to-the-terminal-in-lxde

Change LXDE keybinding without logging out

When you make edits to ~/.config/openbox/lxde-rc.xml to change keybinding, you have two options to make the changes take effect. First option is to logout or second option is to run the following command:
$:  openbox --reconfigure

Reference(s):
http://wiki.lxde.org/en/LXDE:Questions#How_do_I_modify_mouse.2Fkeyboard_bindings.3F

Friday, January 22, 2016

The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?

After fixing items below related to MonoDevelop on Linux Mint 7.3, another error shows up:
http://8thstring.blogspot.com/2016/01/monodevelop-does-not-start-on-linux.html
http://8thstring.blogspot.com/2016/01/could-not-obtain-c-compiler-c-compiler.html

The type or namespace name `Gtk' could not be found. Are you missing an assembly reference?

To fix install gtk-sharp-2.0 libraries, like:
$: sudo apt-get install gtk-sharp2


Thursday, January 21, 2016

Could not obtain a C# compiler. C# compiler not found for Mono / .Net 4.0

Tried to build a monodevelop project in Linux Mint 17.3 but got the following error message

Could not obtain a C# compiler. C# compiler not found for Mono / .Net 4.0
To fix this do:
$: sudo apt-get install mono-gmcs

Reference(s):
http://stackoverflow.com/questions/8022653/c-sharp-compiler-not-found-when-building-a-package-monodevelop-linux

Monodevelop does not start on Linux Mint 7.3

This is issue is similar to this one but different dependencies. So, I have installed monodevelop like:
$: sudo apt-get install monodevelop
Unfortunately it is not working. Need to install the following dependencies to make it to work
$: sudo apt-get install libmono-cairo2.0-cil

Saturday, January 09, 2016

py2exe does not work yet on Python 3.5

Installing py2exe on Python 3.5 (64-bit) using pip works (pip install py2exe) but it can't build standalone executable yet - run-py3.5-win-amd64.exe does not exists.