My technical and personal observations about softwares and other entities

Monday, December 26

Mod_Survey

Installed intersting system called Mod_Survey. I think its very interesting system to conduct poll/surveys..

Saturday, December 17

Perl Course (Day 3)

Third day was long day (Actually we had a meeting twice in the last week but the duration was small-So I am calling this as a single day).

Following stuff was covered:

  • Arrays, Array operations like push, pop, shift, unshift.
  • split function on strings - to covert them into arrays (did not get time to talk about join-later)
  • Introduced -foreach- also shown the use of foreach(0..10), how it can be used on any list.
  • Regular Expression(RE)- Just introduction. Explained meaning of RE. A few examples. Explained command "grep". The shown some similarites. Played with many strings, wrote small scripts. The five rules-how RE works will be covered on next day. I am planing to talk more from Regular Expression tutorial.
  • Example - Count the number of lines from a text file.
  • Example - Count the number of words (what do i mean by "word"?) from a text file.
  • Example -various parsing stuff on /etc/passwd file using RE, using split command on each line.
  • Example-How to build the a script which can give current status/details of Linux system-use /proc filesystems. e.g. /proc/cpuinfo shows details on cpu, so how RE can be helpful to get the exact information. Assginment will be given to create the script which will have output similar to phpsysinfo in text format. Thats in next lecture.

It was good day. Response was also good.

Saturday, December 10

Sarthak Shewale (My Son)

Sarthak Enjoyes playing, watching TV, sometimes reading/painting, loves water colors. He loves visiting "I am loving it" i.e. McDonald..

Sarthak is in LKG -D at Bishops, Kalyni Nagar Pune.

Poor fellow has to get-up everyday moring 7:00 to attend the school.

Perl Course (Day 2)

I have covered the following stuff-

  • How Perl treats integers, floating numbers, strings? Gave simple examples.
  • Played with simple values, how one can declare simple variables, how to assign them values, how to modify there values, how to access those values, how to print those values
  • Explaination on "my" syntax, scope of the variable.
  • Played with arithmetic operations (+, -, *, etc), String operation (.) concatenation. Also covered things like $int++, $str .= $str, explained the real life situation- while creating the log files how these things are used (e.g. $log="Log"; $log .=$date."txt"; this helps to create log file names like "Log20051208.txt").
  • Introduced loops (if-else, for, while). Explained on comparison operators like >, < , ==, eq, ne etc. Wrote small scripts for them to show how they are used.
  • Introduced $_ ? Gave example while using "while" loop?
  • How to pass the command line arguments to scripts? Yes, I have not introduced arrays yet, but told them to assume this thing. On the first day I have covered, how script can take input from user, so I have converted the script from taking inputs using command line arguments to take input from user in interactive mode.
  • Quiz 1. Write a script which takes two integers as input from user and prints the bigger number.
  • Quiz 2. Write the script which takes the input as two integers, prints the gcd .
  • How to do file operations? Yes I explained them today.
  • Quiz 3. Use ping command, use file operation, use while loop, use system() command, write script to check the availability of particular set of hosts on the network.

The second day was fun. I have used my mathematics background to give simple examples, explain the algorithms. I wanted them to be productive at the end of day, they were able to write script to check the availability of hosts :).

BTW- I have not explained them yet use strict;, use warnings;. I Wanted them to write something productive, then introduce all that things- so on third day I will introduce them.

Thursday, December 8

Perl Course (Day 1)

Perl Course (Day 1)



  • Introduction to Perl -
  • My Plans on Course - details on Books (1. Begging Perl from online library 2. Advanced Perl Programming by Sriram Srinivasan)
  • Main differences between Windows and Unix Perl programs, Meaning of Perl Libraries/Modules, where to get modules?, why to create modules? etc details. Also talked on advantages of learning perl.
  • How to write the perl program? How to make it executable? How to add comments in the program? Meaning of first line #!/usr/bin/perl, how to find the details on installed perl in the system.
  • Example program - Hello.pl
  • How to write interative - taking input from user and doing someting on that, wrote hellouser.pl script, takes input from user, displays Hello Username.
  • Interpolation of variable, main difference between double quotes and single quotes.
  • How to run a system commands like "df -k" in the scripts, how to print there outout - my $output = `df -k`; Also another method is my $result = system("df -k"); Covered which method to be used when.
The first day was cool. I have shifted my PC to the place where I am teaching perl. I was not able to connect the PC because power-cord was missing. I was forced to use pen/paper to explain all the details, one way it was good because people was forced to listen my explaination that doing something on PC.