Monday, 5 May 2014

Plan for kodaikanal trip

Hi I recently visited kodaikanal Already I visited that place twice but not in own board. Usually I use to go my bus or my taking car for rent so we use to visit usual places.

This time we went in our own car so we were able to see new places.
So My idea is though you go by rented vehicle you plan your visiting place well ahead.

Every Tuesday there is a special trip arranged by Forest office they will take you 50 KM inside the forest its really wonderful trip you have to pay only Rs 400 each they will take you to the following places
1. Silent valley view
2. Fire watching tower
3. Berijam lake view
4. Caps fly valley view
5. Berijam lake
6. Kodai lake (or)city drop
Other days you can take your own car but its not safe roads are very narrow and sharp bends also for some places they will allow only the forest office vehicle.
pioneer valley tour package


  1. Coaker's walk
  2. La saleth church
  3. 500 years tree
  4. Pambar falls
  5. Green valley view
  6. Golf course
  7. Pillar rocks
  8. Guna cave (Devils Kitchen)
  9. Pine tree forest
  10. Shanthi valley view
  11. Vaigai bam view
  12. Moler point
  13. Upper lake view
  14. Palani view
  15. Kurinji andavar temple
  16. Chettiar park
  17. Bryant part
  18. Kodai lake (or) city (drop)

pioneer trekking tour package

  1. bear shola falls
  2. vattakanal falls
  3. neptune falls
  4. lion cave
  5. mountain beauty
  6. dolphin's nose
  7. ecco point
  8. difference rock
  9. kodai lake (or) city drop
picnic tour package
  1. pine forest (shooting point)
  2. gundar falls
  3. palani view
  4. mahalakshmi temple
  5. poombarai village view
  6. sheep farm
  7. mannavanur lake view

park tour package

  1. chettiar park
  2. natural science museum
  3. silver cascade
  4. bryant park

Necessary List of software for a new Laptop/ Home Personal computer

When you buy a new computer immediate you will look for the software
Here I am giving you a list of software that are necessary for naive users especially for college students


  1. OS
  2. Anti virus
  3. Editors (Microsoft, OpenAccess)
  4. PC cleaner (eg: CCleaner)
  5. Audio Video Player
  6. youtube downloader
  7. Audio file converter
  8. Video file converter
  9. MP3 cutter
  10. dictionary (word web)
  11. Explorer (IE, chrome)
  12. PDF to word converter
  13. Rar extractor
  14. torrent
  15. picasa
  16. skype
  17. team viewer
  18. photoshop

Tips for government exam preparation (Bank, group exams, PA etc)



If you are preparing for government exam in home ie., without going for classes and you are depending internet as a only source then this blog is for you

Here I am willing to give some suggestion and tips on government exam preparation 

Steps to follow
  1. Prepare a syllabus for exam
  2. Start collecting materials
  3. Prepare your own notes in your convenient way all your preparation should have a short hints so that it will be useful when you revise at the last minute
  4. Have a study planner aside
  5. Start downloading previous year question paper and other model question papers and practice it daily
  6. watch, read news daily and stay updated 
  7. Have discussion with your friends on What you got to know new today.
These are the 7 steps you should follow if you wish to succeed in any exam and here comes the most important thing

Start checking online, NEWS channels, newspaper for government exam notification and apply for it



Wednesday, 30 April 2014

Python interview questions


  1. Python assignments and get user inputs
•a = b = c = 1
•a, b, c = 1, 2, "john“
•counter = 100 # An integer assignment
•miles = 1000.0 # A floating point
•name = "John" # A string
•To get input
Raw_input()
Name = Raw_input(“enter some name”).


2. Quotation in python


•Python allows ‘, “,”’
•Triple quotes are used to enter a string in multiple lines
•# is used for comment
•; is used to enter multiple statement in a single line
•import sys; x = 'foo'; sys.stdout.write(x + '\n')

•Print r’C:\\local\hema.txt’
•Is will allows to print the characters as such without processing the escape sequence


3. python datatypes

•string
•Number (int, long, float, complex) immutable
•Array is basic python are list of values that contain mixed datatype
•List []
•Tuple ()- immutable
•Dictionary {}
•Deleting obj
•del var
•del var_a, var_b
•Sequence => list, tuple, string are eg of sequences


4. File Operations


•File1 = open(filename,’r’)
•‘r’,’w’,’a’ => read, write, append
•Read -> for reading a long string
•Readlines -> for reading list of lines
•Write -> writing a string
•Writelines -> writing a list to a file
•F.tell() -> tells current position in file
•F.seek() -> moves to other position in a file

5. Concatenation and String operations

•Concatenation = +
•Name =“hema”
•Age = 27
•Eg: Name +” “ + age
•Result: Hema 27
•Subsets of strings can be taken using the slice operator ( [ ] and [ : ] ) with indexes starting at 0 in the beginning of the string and working their way from -1 at the end.
•str = 'Hello World!'
•print str # Prints complete string
•print str[0] # Prints first character of the string
•print str[2:5] # Prints characters starting from 3rd to 5th
•print str[2:] # Prints string starting from 3rd character
•print str * 2 # Prints string two times
•print str + "TEST" # Prints concatenated string

6. List handling

•list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
• tinylist = [123, 'john']
•print list # Prints complete list
•print list[0] # Prints first element of the list print list[1:3] # Prints elements starting from 2nd till 3rd
•print list[2:] # Prints elements starting from 3rd element
•print tinylist * 2 # Prints list two times
•print list + tinylist # Prints concatenated lists
•List accessing
•List[startposition:stopspoition:steps]

7.  List operations
•Append -> adds one element
•Extend -> adds a list of element
•Insert -> adds a item at a specific index position
•Index(element) -> the position of the element
•Remove -> specific element from the list
•Pop -> removes last element from the list
•>>> li = ['a', 'b', 'mpilgrim']
•>>> li = li + ['example', 'new']
•>>> li
•['a', 'b', 'mpilgrim', 'example', 'new']
•>>> li += ['two']
•>>> li
•['a', 'b', 'mpilgrim', 'example', 'new', 'two']
•>>> li = [1, 2] * 3
•>>> li
•[1, 2, 1, 2, 1, 2]
•Assign multiple values at a time
•v = ('a', 'b', 'e')
•>>> (x, y, z) = v
•>>> x
•'a'
•>>> y
•'b' >>> z

8. Tuple usage

•#!/usr/bin/python
•tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )
•tinytuple = (123, 'john')
•print tuple # Prints complete list
•print tuple[0] # Prints first element of the list print tuple[1:3] # Prints elements starting from 2nd till 3rd
•print tuple[2:] # Prints elements starting from 3rd element
•print tinytuple * 2 # Prints list two times
•print tuple + tinytuple # Prints concatenated lists

9. Dictionary usage  •dict = {}
•dict['one'] = "This is one"
•dict[2] = "This is two“
• tinydict = {'name': 'john','code':6734, 'dept': 'sales'}
•print dict['one'] # Prints value for 'one' key
•print dict[2] # Prints value for 2 key
•print tinydict # Prints complete dictionary print
•tinydict.keys() # Prints all the keys print
•tinydict.values() # Prints all the values
•Tinydict.items() # print key and value pair

10. How to reverse a string?

•Str1 = str1[::-1]
•List1.reverse()

11. Type Conversion

•List(s) # converts s to list
•Tuple(s) #converts s to tuple
•Dict(s) #converts s to dictionary s must to be a key, value pair
•EVAL(x) # evaluate a string returns a obj
•Chr(x) #integer to a obj  

12. Frequently used python modules

•Sys
•os
•Re
•Datetime
•Time 
13. Python regular expression

•re.Match – checks at the begining
•re.match(pattern, string, flags=0)
•Re.search method –checks the whole string
•re.search(pattern, string, flags=0)
•Returns a object
•We can access the matched element by group method
•Re.sub -re.sub(pattern, repl, string, max=0)
•Re.findall
•Re.search ->search whole text
•Re.match ->anchored at the begining
•Re.findall -> found all occurence
•re.sub() is re.sub(pattern,repl,string)
•Re.subn() returns tuple and number of replacement
•Re.finditer()
•+ 1 or more
•? 0 or 1
•* 0 or more
•search ⇒ find something anywhere in the string and return a match object.
•match ⇒ find something at the beginning of the string and return a match object.

 14. Python iterators

•Immutable
•Tuple, string, file, numbers
•Mutable
•List
•Iterator
•List, generator


useful tutorials for python  candidates to refer during interviews

PERL interview questions


1. What is PERL?
PERL - Practical Extraction Report Language

It is high level, General Purpose Programming Language.
It is used for text processing, web development.
2. What arguments do you frequently use for the Perl interpreter and what do they mean?

•-w Which show warning
•-d Which debug
•-c Which compile only not run
•-e Which executes
• -e for Execute, -c to compile, -d to call the debugger on the file specified, -T for
train t mode for security/input checking -W for show all warning mode (or -w to show
less warning)
•-strict = to get information about error msg.
3. How will you declare constants in PERL?

•Use cpan module Readonly for declaring constants in a perl program so that variables which are used as constants will not be reassigned by other part of the code.

use Readonly;
•Readonly my %ATOMIC_NUMBER =>
• ( NITROGEN => 7, NIOBIUM => 41, NEODYNIUM => 60, NOBELIUM => 102, );

•use Readonly;
Readonly my $MOLYBDENUM_ATOMIC_NUMBER => 42;

useful Linux Commands

Command terminal

1. To display file content 
cat 
head
tail
vi 
note: vi is the text editor

2. make directory - mkdir

3. create new text file-
vi filename
it will open in the command terminal 
write the content of the file and finally enter esc and :wq

4. To know the current working directory address
pwd

5. move file from one location to other
mv /filelocation/filename newlocation/

6. various ways of file listing 
ls -r  reverses the listing order
ls -s  gives sizes of the files
ls -C  lists files in col
ls -R  recursively lists files in the current directories and all subdirectories
ls -p subdirectories
ls -a   include all files including files whose names start with a period
ls -c   list files by date of creation
ls -l    list files in long form: links, owner, size. date and time of last change

7.Print my login name
whoiam

8.  to display date
date

9. to alter system date
date -s '06/23/2009 10:30:00'

10. display calender
cal

11. display calender of particular month
cal 9 2011

12. display date of a day
date -d -fri

Art out waste using paper plates

Paper plate designing


This is my first art work with paper plates. It is very simple to make all you need is waste paper plate simple paintings that's it.