Posts

Showing posts with the label Python

GUI Applications in Python

In the last months I have spent some time trying out different GUI toolkits for Python that are cross-platform (Linux, Mac OS X and Windows). I settled with PyQt . It combines Nokia's Qt cross-platform application framework with Python so you get all the power of Qt with the simplicity of Python. Other Desktop GUI frameworks I have tried are: the Tk GUI development library included in most Python distributions wxpython a blending of the wxWidgets C++ class library with Python PyGTK to use the GTK+ library Others (such as .NET using IronPython ) are not running equally good on Linux, Mac OS X and Windows as they favour Windows. From the frameworks above, PyQt  seemed the one with the most active development, the most easy usage and the best documentation. Like Qt, PyQt V4 (its newest version) is available under a variety of licenses including GNU GPL (V2 and V3; today Qt Software announced that Qt V4.5 will also be available under LGPL). If you want to write commercial applicat...

Sage: Open Source Mathematics Software

Recently, I spent some time to search for free, open-source alternatives for commercial mathematics programs such as Matlab and Mathcad. By far the most promising software I have found was Sage. Sage combines the power of many (currently 71) existing open-source packages into a common Python-based interface. It can be used to explore mathematical constructions in algebra, geometry, number theory, calculus, numerical computation, etc. The combination of proven open-source packages (including excellent Python packages such as Numpy, Matlibplot, Scipy and Sympy) and an excellent web browser based entry of formulas and plots in worksheets called notebooks. The usage of Python as the glue that holds all packages together provides several advantages. First you have the full power of python available in Sage. Second, you don't need to learn another specialized script language that you would otherwise not need. Excellent screencasts together with good tutorials and documentation pages p...

Synchronize files between a Macbook and an Ubuntu machine using rsync via ssh

Have you ever considered mirroring/synchronizing your important files from your Mac to your Linux machine to decrease the risk of data loss because of a hardware crash? One very effective way to do this is using two open source tools available on your Mac and your Linux machine called rsync and ssh. This document will lead through the necessary steps. The main reason for this document was to have a reference for myself as it wasn't trivial. Maybe it can be helpful for others. As a precondition, it is assumed, that you have two computers that are connected via a network. I am using a Macbook with Mac OS X 10.4 Tiger and an Ubuntu PC with Ubuntu 7.10 Gutsy connected via a WLAN where I have verified all the steps. Some of the steps described are Mac / Ubuntu specific. Most information should be valid for other operating systems where ssh and rsync can be installed (e.g. other Linux distributions) but you might check out the distribution specifics if something should not work. ...