Saturday, August 7, 2010

Run python from a bash shell in Linux.

I have not written any code for a long time, so I had to relearn some basic stuff. I refer back to my python blog to get myself back up to speed. I wrote a very simple gas mileage calculator (again) to get me jump started. Having a blog is a great way to get back some of the programming skills I learned. What is neat about python programming in Linux is that I can run my program by typing "python program_name.py" in a bash shell. PS, this only work in version 2.6.

Wednesday, May 26, 2010


I am beginning to understand object oriented programing. Once I learned that methods are functions inside of a class then the light bulb went off. In this example, I created a "steve" object from my person class. Now I can get properties (age, name) and methods (describe, runfast) for the steve object. If I want I can create new objects from the person class like this: Jane = person().

Friday, April 2, 2010


I am writing a python 3.1 program to keep track of how many miles I ride and other stuff. I have added radio buttons for the first time! I really struggled with radio buttons, but I finaly got them to work! It needs some tweaking, but it works! It is a major achievement for me. Note the cool desktop I downloaded. When the "save" button is pressed it opens a text file and writes my data to it!

Wednesday, March 31, 2010

I decided to reinstall windows on my computer because I need to access my CD drive. Ubuntu won't do it for some reason. Well, after I erased my disk and reinstalled windows, then nothing would work! I finaly got xUbuntu installed, and I hope I can use that to get things going again. I am sort of enjoying this.

I might try some C# programing too, but its a pretty steep learning curve.

Tuesday, March 23, 2010


I could not get python to reinstall on crunch-bang, so I installed xubuntu instead. Xubuntu is great! I found out that you have to be very careful with gparted (a partition editor) or you can delete the OS from your computer. I did it twice before I learned my lesson!

Saturday, March 13, 2010


I installed Crunch bang Linux on a 1 gig USB drive, and then I wrote a little python program from my memory without referring to a book. I am very impressed that I can do all this on only 1 gigabyte! Crunch bang does a great job of web browsing too.

Monday, March 8, 2010

Steves Swiss Army Knife program


I tried limegreen as a color for the main window, and it worked! So, now I have a two tone GUI. I added a note taking window too, and it will save whatever you type to a text file. I am going to test it out at work.

Followers

Blog Archive

About Me

My photo
Biking helps me to cope with life.