Kyy 0.2 Beta – Python Cheatsheet in Code

Kyy is Tero’s Python Cheatsheet in Code. Kyy shows you how to program the most common things in Python. Each concept is shown as a separate, stand alone program. This is the obvious stuff I don’t want to search for … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , | Comments Off on Kyy 0.2 Beta – Python Cheatsheet in Code

Two Books for Robot & Sensor Hackers

I’m finishing two new books for robot & sensor hackers. Would you like to get started with electronics and sensors? Are you ready to meet simple Arduino and Linux-based Raspberry Pi?  Read Getting Started with Sensors. Written with Kimmo Karvinen. … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | Comments Off on Two Books for Robot & Sensor Hackers

ShowRun – Focus Application Window or Launch

Showrun – show window, or run the program if it has no window. Download now. Use showrun in Launchers in your panel Easygest mouse gestures Keyboard shortcuts, such as xbindkeys, or your favourite desktop: XFCE, KDE, GNOME or even .icewm/keys. … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | 5 Comments

Capture Program Output on Python – subprocess.check_output()

Run an external program, capture output. With pipe support. Prequisites: command line, Python hello world. One Liner Well, two lines if you count module import. Try it out in a python console: $ python >>> import subprocess >>> subprocess.check_output(“echo hello … Continue reading

Posted in Uncategorized | Tagged , , , , , | Comments Off on Capture Program Output on Python – subprocess.check_output()

Windows and Buttons in Python – Ten Lines of PyGTK

It’s easy to write grahical user interface with python. Write twindow to a text file, then run it. $ nano twindow.py $ python twindow Do you see a window? Does it print some text to command line when you click … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Comments Off on Windows and Buttons in Python – Ten Lines of PyGTK

2dresize – Precise Window Placement without 3D Acceleration

Coding? Want to see browser on the left and code editor on the right? No problem, 2dresize can position your windows so that your display is excactly halved. Edit: You need 2dresize when running 10.04 LTS. Starting at Ubuntu 11.04, … Continue reading

Posted in Uncategorized | Tagged , , , , , | Comments Off on 2dresize – Precise Window Placement without 3D Acceleration

Python Annoyances

Table of Contents Python Annoyances Type Casting Required Future of Division Are You Reserved? Seekers of Truth Me, mySelf, and I Exit Only Python Annoyances Python’s goals include simplicity, lack of unnecessary boilerplate and being easy to understand. Python is … Continue reading

Posted in Old Site | Tagged , , , , , , , | Comments Off on Python Annoyances