Skip to main content

My First Python Program

I am very glad today. Because I finally wrote a python program all by myself. I am programming for about 3 years. Of which 2 are using C++ (Old standard and using Turbo C++ IDE ver 3.0 and yet to master Templates and STL. [:-p]) and After starting python using Dive into Python an excellent book by Mark Pilgrim during my 1st year summer vacation, and I only completed Data Structure section. Then I found an excellent Java tutorial by Sang Shin and obtained a certificate by completing First and basic course in Java.

Now I am working with My Friend to develop applications in java. We established a web site already. He started programming when he is in 10, ie. more than 2 years of experience. He has Visual Basic too in his side. Now he is doing with JSP and I am concentrating on Python, Ruby (yet to start) and CSS.

Today My pleasure is that I completed a python program myself. Which is asked to do in 'A byte of Python' by Swaroop.C.H. Which is a command line program; and helps us to organize and store our contacts. But I found many Optimizations, that can be possible, when I wrote the code.
But I decided to do it later and possibly with another version number. It's licensed under Creative Commons Attribution-Share Alike 3.0 Unported License.

All your suggestions are welcome. Also if there is any errors that I don't found, but your seasoned I found and any improvements; all are valuable to me. After a certain period I'll put this into my site.

you can download the sources:
and the book it self.
A byte of Python

Creative Commons License
contact manager by Arun.K.R is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.


Popular posts from this blog

AJAX File Upload with Web2py

It was not that long, since I experienced a problem while trying to upload a file using an ajax  trapped form. I thought, it must be me doing something wrong. I was using web2py to embed another page into a page via ajax. That is better known to web2py folk as LOADing a component.

It's just happened that one of such component contains a file upload form. It was my first time using LOAD function provided by web2py. Basically it make use ofjQuery to load the page via ajax into a target div and traps input of any form in that page, so that page doesn't reload. Oh, I forgot to say that web2py is bundled with jQuery.

It's always boring and tedious to understand a problem without experiencing it. So, Let's play with an example, (PS: I"m using web2py a full stack python framework, but you can use any language at server side and this problem will be there because, it's a problem with ajax)

My model which defines table like this,

In RDBMS world, it column 'file…

Java Certification

There is no validity for this course. I mean currently no institution or firms consider this as a qualification. But may be in future they consider so.
This course differs from ordinary course. There is no projects or assignments.
All we want to do is study the material provided by them and submit the home works. We have more than five months of time for that. And in total more than twenty home works.

This course covers Basic of Java or Core Java.
It starts from novice (ie., loops and declaring variables too ) and advances from there. This covers swing, File handling, Little bit RMI and client/server networking, Threads, Java Beans etc. etc. ...

The course is maintained and developed by Mr. Sang Shin. Also there are many to help him. We get support from class mailing list. And if we complete the course successfully, we also get a certificate like above one that get to me.
There are other courses too. For example Java Performance tuning, Java EE, Java FX etc. And like this co…

Rich Internet Application & GWT : Angel of Java Programmers

We all are hearing the buzz about Rich Internet Applications (RIA) about a year or so. But, what the heck is that beast? You may ask. For the user's perspective, it's the desktop like experience delivered over web. Yes, you feel like you are using a real desktop application (well, at least sort of). The richness of desktop controls is transferred to web.

How RIA is build? Arise another question. These all started with that amazing kid called AJAX (Asynchronous JavaScript And XML). Then more and more tools become available, like Java FX, Adobe Air, Adobe Flex (and Adobe Flash), Microsoft Silverlight. But these tools, though it gives rapid and organized web application development, required some kind of plug-ins to be installed on your browser. There is the importance of AJAX based RIAs, because JavaScript is enabled in almost all browsers in use today.

However, It's not a fool proof solution, because there are people who switch off JavaScript for some reason, like me ;-).  Bu…