Python is nothing short of astonishing
What a nice learning day I had today! Continuing with my SuSE Linux playtime, I installed and tested lots of libraries and programs I found in the repository that guy in the Google Groups posting pointed me to. What a nice guy!
Well, just installing other people's software is something... how about installing something I myself made? I have in my Windows machine a program that can control a GSM modem. By the way, a GSM modem is a modem that works with the GSM celular network rather than the plain vanilla telephone land line. I made that program using the Python programming language; I also used a couple of extra Python libraries, one to access the serial port --which physically connects to the modem--, and another one to create nice GUIs.
I simply copied the files from my Windows laptop computer to the Linux desktop computer, and pooofff! It worked! The only tweak it required was to change the name of the serial port. In MS Windows, serial ports take a name such as COM1, COM2, etc. In Linux it's /dev/ttyS0, /dev/ttyS1, etc. Well, it'd be nice also if the font sizes were the same too, but the heck with it. Just a minor detail that the same text takes more space in Linux than in Windows. As a result of this, some words that show completely on top of a button in my Windows laptop, are truncated when displayed on Linux.
And how do I know this little program of mine works? Because I was able to send an SMS to my mobile phone!
0 Comments:
Postita kommentaar
<< Home