Monday, March 21, 2016

How to install Squeak 5.0 on Ubuntu 15.10 64-bit

Squeak 5.0 stable as of this writing (3/21/2016) only supports 32-bit on Linux. To get this to work on 64-bit install follow the instructions below.
  • Download Squeak 5.0 from http://squeak.org/
  • Extract to location, e.g., ~/apps/
    • Open a console
    • $: cd ~/Downloads
      $: unzip Squeak-5.0-All-in-One.zip -d ~/apps/
      
  • Get 32-bit libraries
    • Use the Squeak built-in script to get most (not all is installed)
    • $: cd ~/apps/Squeak-5.0-All-in-One
      $: Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/install-libs32
      
  • This will fail with the error message below (at least on Ubuntu 15.10)
    • Fail with the following error message:
      E: Unable to locate package lib32bz2-1.0
      E: Couldn't find any package by regex 'lib32bz2-1.0'
      E: Unable to locate package libgl1-mesa-dri-lts-utopic
      E: Unable to locate package libgl1-mesa-glx-lts-utopic
  • Let us fix this by running command below:
    • $: sudo dpkg --add-architecture i386
      $: sudo apt-get update
      $: sudo apt install lib32z1
      $: sudo apt install libuuid1:i386
      $: sudo apt install libgl1-mesa-glx:i386
      $: sudo apt install libsm6:i386
      

Enjoy~

View library dependencies in Linux

I was trying to get Squeak VM 5.0 running on Ubuntu 16.04 beta 1 and got the following:

/home/timus/Downloads/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/Linux-i686/bin/squeak
could not find display driver vm-display-X11; either:
  - check that /home/timus/Downloads/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/Linux-i686/lib/squeak/5.0-3397//vm-display-X11.so exists, or
  - use the '-plugins <path>' option to tell me where it is, or
  - remove DISPLAY from your environment.
./squeak.sh: line 1:  8289 Aborted                 (core dumped) ./Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/squeak.sh

To view library dependencies in Linux, do:
$: ldd Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/Linux-i686/lib/squeak/5.0-3397/vm-display-X11

This should display library dependencies of vm-display-X11.

Sunday, March 20, 2016

Hyper-V enhanced session mode supported guest OS



Enhanced session mode in Hyper-V allows redirection of local devices and resources from computers running virtual machine connection. This is very convenient functionality as it allows the same level of interaction as remote desktop connection. In fact, it seems like it is a modified version of RDP from the way it works.

To use it you need to have host OS running Windows Server 2012 R2 or Windows 8.1 Enterprise or later. The guest OS has to be Windows Server 2012 R2 or Windows 8.1 Pro or later.

Saturday, March 19, 2016

PS: Download using Powershell

Download file using PowerShell

PS A:\> $wc = New-Object System.Net.WebClient
PS A:\> $url = "https://eternallybored.org/misc/netcat/netcat-win32-1.12.zip"
PS A:\> $output = "a:\netcat-win32-1.12.zip"
PS A:\> $wc.DownloadFile($url, $output)

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

Oxygen.2 (v4.7.2):
Base: Eclipse Platform Binary(link)
Tfs Integration: Team Explorer Everywhere (link)
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

Neon (v4.6.x):
Base: Eclipse Platform (link)
Tfs Integration: Team Explorer Everywhere (link)
Python Editor: PyDev
System Integration: StartExplorer(link)
 Location: http://basti1302.github.com/startexplorer/update/
Subversion Integration: Subclipse
Web Development: Eclipse Web Developer Tools
XML Editor: Eclipse XML Editors and Tools

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

Installing QNX 6.4.1 on Ubuntu 20.04

Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...