Skip to main content

Python Convert

I shall officially look to Python for all my scripting needs from now on. Just when I thought scripting could not get any easier than Perl, Python
has come along and proved me wrong. Everything I have heard about Python's simplicity and elegance is true.

My Python education started a while back when I attended at least two tutorials in grad school by Python enthusiasts who were trying to pull some of us Perl enthusiasts to their side. The whole idea of learning a whole new scripting language did not appeal to me and thus I didn't give Python much thought. Lately I have had some downtime and there seemed to be no more productive way to spend it than learning Python and that's what I did.

My first set of tutorial was a quick and basic intro by Steven Thurlow. Aside from what is contained in those s ets of lectures, I needed to learn two sets of subjects, namely string/text manipulation and system calls. David Mertz provides a nice introduction to text processing using Python. The official Python documentation provides a few quick examples on making system calls using Python. So, in a very short time, I have learned to do in Python what took me a whole lot longer using Perl.

I took a slightly roundabout way to learn Python in an effort to cut corners, but it should be quick and easy to learn the basics from the official Python tutorial at http://docs.python.org/tut/tut.html

Comments

Popular posts from this blog

Distribution of Wealth in the US

The rich get richer and the poor get poorer. I heard this statement quite a bit lately particularly in light of the sub-prime mortgage and general housing crisis in the US. The country has enjoyed significant economic prosperity and both Clinton and Bush boasted economic growth under their reign. Unfortunately, the beneficiaries of the economic boom are not people from all economic backgrounds, but rather the top 10%. To make things worse, Bush gave tax cuts mainly targeting the top 10%. Being more of a numbers guy, I always wanted showing the validity of the-rich-get-richer-n-the-poor-get-poorer statement. Thanks to Wikipedia , I have finally found it!! Both the mean and median net worth of families for the bottom 50% of the population has remained absolutely flat while the 75th-90th percentile see a decent growth and the top 10% enjoy the most appreciation on their net worth. So, if you factor in inflation, the-rich-get-richer-n-the-poor-get-poorer probably holds true. The g...

Online Storage Solutions

Problem: I often need to have some files readily available online so that I can access them from any computer. There are many ways to go about solving this problem and each comes with its set of shortcomings: Yahoo! Briefcase - 30MB limit Online storage services like Box.net, Xdrive, MediaMax - usually cost money; signing up is cumbersome Email to myself as an attachment - enough said there It's time to find a home-made solution. The solution I am about to suggest is intended for -- A *NIX user someone with access to a *NIX web server Solution: I am a linux user and I have user level access to a web server. The web server is configured such that the public does not have access to directory structure. So, I would need to write a script that copies my files to the web server and creates an index listing my files. Password protection of the storage would follow after that. Client Side: Use the following script to transfer file to server, make the file readable by public and execu...

Democrats Have Kept Unemployment Low

According to unemployment statistics from 1950-2005, democratic presidents have consistently managed to achieve low unemployment rates while republicans have increased unemployment. Granted there are circumstances that are out of a president's control like Wars, global conditions, natural disasters Congress might have been controlled by a party different from the president to push his agenda The factors above notwithstanding, it amazes me how republicans can claim good stewardship of the economy while they have generally failed to provide people with jobs. The democrats, on the other hand, have kept unemployment low during their administrations. The more I learn about the post-WWII economic history of the U.S., the more I realize how the republican party is the party of fraud and myths, at least when it comes to the economic record.