Archive for the 'English' category

autossh: setup

Why? You want to access machine that is behind firewall or otherwise inaccessible. Even if connection has been down.
Example you want to make your home computer accessible from work. Home computer is not accessible, because it doesn’t have public IP.

Unicode, Python and win console

I wrote small python script that had to print out text in French. French language contains different umlauts. As I used UTF-8 for my code source, I assumed that python is able to print texts in correct encodings. It doesn’t. Solution is to specify source code encoding and specify special characters as ‘\xNN’:

#!/usr/bin/python
# -*- coding: [...]

Ubuntu 7.04 and SE M600i bluetooth internet PAN

I was able to access internet over bluetooth (PAN) under WinXP using network bridgeing, but I was unable to get PAN working under Ubuntu. Although I managed to setup PAN connection manually using static IPs and browse web on my laptop, the pand dev-up script was never executed and I was unable to setup [...]

Simple != easy: net-snmp table example

Implementing tables with net-snmp is real pain as there is ~7 APIs that all “help” implementing tables and the documentation is scarce. It doesn’t help either that net-snmp table example is ~50kB of code. Here is shorter one.
To run these examples, you also need to edit mib_module_includes.h and net-snmp mib_module_inits.h files and add following lines:
#include [...]

Sharing files between Ubuntu Linux and SonyEricsson M600i

The easiest is to use M600i USB cable. Ubuntu detects it automatically as usbmedia drive and is mounted as /media/usbmedia.
But there is a catcha - no files are copied to M2 memory card before running ’sync’ from command line or unmounting the /media/usbmedia.
Simple bluetooth file sending and receiving works also. I followed this guide for [...]