Saturday, December 9, 2017

Dictionary: data.table/pandas

This post contains translations from Python pandas to R data.table. All examples are based on Titanic dataset (can be easily found on the internet).

Saturday, March 25, 2017

Python win32com multithreading

Some notes on MS COM programming in Python. It is not a well documented topic. The only really helpful source is book Python Programming On Win32. Here I explain how to run two different COM event handlers in two separate threads. Example provided implements simple interaction with Excel app. But the method is universal, and I used it for accessing ITinvest SmartCOM API.

Monday, August 29, 2016

BeagleBone desktop forwarding via SSH

How to access a remote graphics environment via GNU/Linux machine? In this example I push LXDE though an SSH channel between BeagleBone Black and Ubuntu 14.04 laptop. I suppose that X11 SSH forwarding itself is already configured.

Initialise X server at display 1 on your client device. This command automatically redirects to the virtual terminal 8.

$ sudo xinit -- :1

Using white terminal at the top left corner establish SSH connection with X11 forwarding and run lxsession:

$ DISPLAY=:1 ssh -X root@192.168.7.2 lxsession

Enjoy. Closing the white terminal leads to the end of the session.