Friday, September 17, 2010

Work At Dell

I joined in Dell in October 2009. Before joining Dell, I have no idea actually what Dell was doing.
When I joined into Dell then  I understand that dell is into manufacturer of dell laptops, Enterprise Servers & Storage Devices.

I learned so many things in hardware as well as Testing(Manual Hardware & Software)

Hardware(Learn):
   1. Different kind of Storage devices like SATA, SAS.
   2. Server Management Software's like USC, OMSA, IDRAC

I written some automated test-cases in OMSA and OMSS. which are like automating some commands and installing some software's remotely using Python.

Also I developed some web-apps, Which is for scheduling servers power actions(power off & power on) in automated way.

Not Completed it's just draft

Monday, February 16, 2009

Python Interview Questions

I Started Learning python in 2004,I applied for so many companies,
this are the questions they asked in Interview

1.what is strongly typed language?

2.what is statically typed language?

3.there is any difference between in below classes
class A(object):
pass

class B:
pass

4. how to generate a dictionary in a one line, which contains 1-100 numbers as keys,
squares of keys as values ?

5. what is REST?

6. what is the python interface for Postgresql?

7. what is the differece betweeen static method and instance method?

8. how do you connect to database in plan python?

9. how do you fetch first row using cursor?

10. how do you fetch all rows using cursor?

11. when did you started learning python?

12. why your more interested in programming rather then system administration?

13. do you know what is the "interfaces" in Java?

14. are you a mysql database expert?

15. what is the differece betweeen static method and instance method in python classes?

16. how to multiply two values in scheme?

17. how do you pass command line arguments in shell script,python,C?

18. what is the difference between Innodb ,ISM in mysql database?


Others questions

1. presently, what you are working in your project?
2. how will scale your self in JavaScript?
3. How will you declare class in JS? is there any difference with other class?
4. how will find html file is fully loaded or not?
5. how will You scale your self in dojo?
6. write a recursive function to get a reverse of a string?
7. they are two persons.one of them is going at speed of 20km while going in the forward direction while coming back he is going at speed of 60km
but other person going at constant speed 40km going same way how will reach first?
8. they are two persons.one of them is going at speed of x km while going in the forward direction while coming back he is going at speed of y km
but other person going at constant speed x+y/2 going same way how will reach first?


1. write a program to print all permutations for given a string?
2. list vs tuple?
3. can we use list in dict?
4. can we use list as key in dict?
5. a = []
b=[]
for i in xrange(2):
a.append(b)
a[0].append(1)
a[0].append(2)
a[1].append(1)
a[1].append(2)
print a
what is the output?
6.pass by value vs pass by reference
7. a = [1, 2, 3]
b= a
b.append(4)
what is value of a and b?
8. how will u cut when your required equal parts in a round shaped cake?
9. using only 3 cuts how will you get 8 peaces?
10 assume cream is there on top of cake how will u get all 8 peaces having cream using only 3 cuts?
11. write a Int-parser function in python.
      Ex:  int_parse('123') returns the value of 123
12. How to  Parse XML Files in Python.
13. Difference between String & List.
14. Write a power function.
15. How to run Linux commands in Python



Saturday, November 15, 2008

Emacs

Emacs is one of my favorite editor. After playing with some time i understand that,
as a programmer i felt life is very comfortable with Emacs.

Actually Emacs is purely written in Lisp, and I felt that lisp is good programming language. I tried things like chatting, remote file editing, sending mails from Emacs.

also I found a browser(conkeror), which works as Emacs for browsing.
meaning for opening URLs similar as file opening command in Emacs,
for searching also it's similar to Emacs. you don't need to use the mouse for this browser.

http://conkeror.org

i will just tell you essential commands in Emacs.

1. C-x C-f for opening a file
2. C-x C-s for saving a file
3. C-x-b for switching between buffers
4. C-x C-b for listing currently opened buffers
5. C-x-k for killing a buffer
6. C-h-t for Emacs Tutorial.
7. C-x-m opens a buffer writing mail.
8. C-c C-c sends the mail.
9. C-s for searching words in current buffer
10. C-r for reverse search

Tuesday, August 26, 2008

As A Programmer In Office

I started my carrier as a System admin, later I recognized as web developer in my office(Servelots).I learned so many things in this Office.

what i understand as a web developer ,I learned how to test web applications.
how to fix bugs in web applications. python's Web.py, Django, Ruby's Ruby on Rails web frame works are making easier to develop web application.But writing web application using java is more pain full i think.

-----not completed

Sunday, December 23, 2007

The Movie

Till now i saw so many movies in Hindi ,English,japanese,Telugu,Tamil.
Still now i cann't justify movies are good or bad. People are going to watch movies in Theaters. i don't know in olden days movies how much influenced the people.but currently people are very much influenced by movies.

Tuesday, December 11, 2007

still now what i did in Servelots

iam started working as System Admin in Servelots from April 07. I learned so many things as a System Administer in Sevrelots. Also i met some new people who has much experience as system administers and some computer programmers.

In servelots i met one person who is a expert in wireless network, his name is Rene, from him i understand how to maintenance the systems, how to check logs and fixing bugs when we installed new applications.how to solve problems in Linux environment.

A). Virtualization:
we both together installed virtual server in one machine. We installed 3 virtual machines on that.on the 3 virtual machines we installed different application for different purpose.the applications are :

I. Godavari virtual Host:

1.Apache2 server
2.No-ip client
3.Servelots wiki
4.Dhcp server

II. Ganga Virtual Host:
1. Chennai web application(developed in ruby on rails)


III. Himalaya
1. Ltsp server.

B). Remote Linux installation:
we installed Debian in one remote server from office it's like changing filesystem from one partition to other partition without loosing the data.

there is more information about this from here:
http://www.underhanded.org/papers/debian-conversion/remotedeb.html

C). I written a script for data backup using rsync.file name is copy-backup.sh
#! /bin/sh

rsync -avvz --progress --delete-after --exclude-from="Delete" / -e "ssh -p 222 -i /root/backup-rsync-key" joebackup@backup:/remote-backup
touch timestamp
exit

here it's copies data into backup server the /home ,/etc,/usr/bin,/var/www
directories using ssh.

here in rsync we are passing one argument to ssh.this argument is root key, if we pass this to ssh it will login automatically without asking password.

so i just added this script file in "/etc/crontab" like this:

30 18 * * * root /root/copy-backup.sh

this line tells crontab that it will run everyday evening at 6:30.

D).
In office someone written a Perl script for generating static pages using dynamic URLs ,and also it will copy the static pages into where shell we want.

after understanding of the Perl script i wrote small Perl script for generating single static page using dynamic URL.

Perl script is like a scrapbook which is a FireFox plugin.

E). I installed svn in of our server. For our developing software repository. Then i configured the svn with Apache2 for accessing svn repository from outside.

F). I understood how Jakarta-tomcat works.all our office old web applications are developed in java.i deployed all web apps in tomcat,iam maintaining tomcat web server.

G). I written some shell scripts for changing text patterns in database. I installed and configured mediawiki for office use.i configured firewalls in office network for network traffice monitoring, blocking ssh from unknown users, port forwording.


H). Also some times iam working as web developer in office.As a web developer i integrated calendar in a webapplication.i developed the calendar in ruby on rails.

I). I learned little bit of ruby and rails in office.


.......still there is a lot to write.




Wednesday, December 5, 2007

zip function

iam struggling for writing zip function in python.actually i wrote once this zip very long time back.meanwhile i forget the whole concept. Again iam trying to write a zip function with basic knowledge of python.

I think this called unlearning. i don't know exactly what is unlearning.

actually i written zip function using Python builtin function called map.what map does is
"it takes any number of arguments,but first argument should be function and remaining arguments should be lists.it return a list of the results of applying the function to the items of the argument sequence or sequences. If more than one sequence is given, the function is called with an argument list consisting of the corresponding item of each sequence, substituting None for missing values when not all sequences have the same length. If the function is None, return a list of the items of the sequence."