Monday, July 04, 2011

Quicksynergy autostart Ubuntu

Starting quicksynergy in Ubuntu is actually really easy. If you do a "ps aux" after you have quicksynergy configured and running you will see something like
/usr/bin/synergys -f --config .quicksynergy/synergy.conf

All you need to do is add this to your "Startup Applications"
System Settings -> Startup Applications -> Add
Name: Synergy
Command: /usr/bin/synergys -f --config .quicksynergy/synergy.conf
Add->Close->Log out and log back in.


Saturday, January 29, 2011

Python Uniquify a List

Using sets it is actually pretty trivial to do

import sets
my_list = [1, 2, 2, 3, 4, 5, 5, 5, 6, 7, 7]
unique_set = sets.Set(my_list)