Amazon Great Offers

December 15, 2008

My III Sem result

I got 3rd position in III Sem result...I dont know how I got...with god's grace and my friend's help i got 8.61 CGPA...After my AP and Kerala Trip, i am creating new post to blog...I will update my photos soon....till that Advanced Happy Christmas...and Adavanced Happy New Year...

November 03, 2008

My first Matlab Program, Encode and Decode image using Huffman Coding

For the academic purpose i had written a small program in Matlab.

I have tried encoding and decoding the image by using Huffman coding.

Huffman code generally used for data encoding but i tried Huffman coding on small image.

  1. You need to create a small image, in my code i am using PSR.jpg
  2. It will work well only with small images

Matlab Code:

%Huffman Coding on image by Suresh Raju Pilli

%clearing all variableas and screen
clear all;
close all;

%Reading image

%converting an image to grayscale

%size of the image

%variables using to find the probability

%computing the cumulative probability.
for i=0:255

%pro array is having the probabilities

%Symbols for an image
symbols = [0:255];

%Huffman code Dictionary
dict = huffmandict(symbols,pro);

%function which converts array to vector
vec_size = 1;
for p = 1:m
for q = 1:n
newvec(vec_size) = I(p,q);
vec_size = vec_size+1;

%Huffman Encodig
hcode = huffmanenco(newvec,dict);

%Huffman Decoding
dhsig1 = huffmandeco(hcode,dict);

%convertign dhsig1 double to dhsig uint8
dhsig = uint8(dhsig1);

%vector to array conversion

%variables using to convert vector 2 array
arr_row = 1;
arr_col = 1;
vec_si = 1;

for x = 1:m
for y = 1:n
arr_col = arr_col+1;
vec_si = vec_si + 1;
arr_row = arr_row+1;

%converting image from grayscale to rgb
[deco, map] = gray2ind(back,256);
RGB = ind2rgb(deco,map);

%end of the huffman coding

  1. Check the original image and decoded image
  2. Analyze the compression ratio.
You can easily understand the code. Its not at all difficult.

Please send your feedback and comments to

October 28, 2008

Trip to Isha Yoga Foundation

Isha Yoga FoundationIsha Yoga Foundation tour:

Its a memorable journey for me and my friends....

1. We started from our university at 7:30AM
2. We reached Coimbatore Railway Station at 8:20AM
3. I already visited the center once so i know the bus timings and bus no is 14D(direct to the Isha Yoga Center) and 14A to semmedu(7Km distance to Isha Yoga Center).

Bus Timings at Isha Yoga Foundation
4. The above bus timings at the Isha Yoga Center.
5. We got 14A bus at Bigbazzar and got down at semmedu(7km distance to Yoga School).
6. We enjoyed the 7km walk with lot of pictures and scenery.
7. Climate also cool and as per our estimations it rained and we have umbrellas also with us
8. After reaching the Yoga Center according to the directions of the devotees we entered into every block and we enjoyed each and every moment.
9. Two things are not shown in pictures
  • Under 5 feer water "mercury siva lingam", which we can feel the vibrations from the siva lingam.
  • DhyanaLingam, where we can do dhyanam...its very peaceful there....
10. As per schedule we returned from the yoga center at 3:00PM bus, which will start from yoga center to Coimbatore Town Bus Stand.

If you come to coimbatore and if you want some peaceful area, I prefer, you to visit Isha Yoga Foundation, where you can get some peaceful climate...
Thank you everybody,

August 31, 2008

GSM Based Remote Monitoring and Billing

I am trying to draw UML Diagrams and Class Diagrams for that project. Give me some suggestions so that I can perform well in the competition.

August 26, 2008

Are you interested in Hacking?

Dont know how to start from basics?
Then do this...
1) Install Mozilla Firefox latest version
2) Install Add-ons like Firebug, Firecookie, WebDeveloper for editing the script and do some SQL Injection to the week website databases.
3) Install LiveHTTPHeaders Add-on to firefox to check how the request and responses are done.
4) Try to get the WebGoat and practice it. You will know how the hacking happening in the real world.

For any queries send mail to me...urs PSR.COM

August 19, 2008

Registered for IBM Great Mind Challenge 2008

Our project is "GSM Based Remote Monitoring and Billing".

The vision of the project is to replace the existing manual reading of electricity meters installed throughout the country (Home, Agricultural, and Industrial). The proposed solution is to build a server for the Electricity boards in each state where the custom built GSM meters would update in real time through SMS and instant status of the meter network can be established. The system will cut costs and improve transparency to a very large extent. Any failure or inconvenience on the consumer side can be instantly detected and rectified. The electricity board server can monitor and analyze the status of each and every individual meter on the network. The server would also provide a complete billing solution for the same.

August 10, 2008

Sccfg.sys Hidden File Virus Removal Procedure

Virus Name: Hidden File Virus.

AIM of Virus: We can't find our hidden files if its infected.

  1. We need to install Anti-Virus software if your system not having any anti-software.
  2. After installing the anit-virus or if installed already once you scan the entire system.
  3. Run-->regedit and press enter
  4. It will show the registry editor
  5. MyComputer/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Folder/Hidden/NOHIDDEN
  6. The values must be this for Checked Value is 2, Default Value is 2
  7. If the values are not matching with u r system registry editor then you please doubleclick on that and edit the data.
  8. MyComputer/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Folder/Hidden/SHOWALL
  9. The values must be this for Checked Value is 1, Default Value is 2
  10. If the values are not matching with u r system registry editor then you please doubleclick on that and edit the data.
  11. Now you check whether its showing the hidden files in your system. To view the hidden files. Click on MyComputer-->Tools-->FolderOptions-->view-->Show Hidden Files-->Click on Apply-->Click on OK
  12. Run-->msconfig
  13. Please in startup tab deselect amvo and regsvr processes and click on Apply then click OK
  14. Antivirus automatically detect the virus now
  15. Restart your system and then scan again

Virus Name: sccfg.sys

AIM of Virus: It wont detect the infected pendrives.

  1. Identify the path of the file
  2. Create a file in notepad and save the file with name sccfg.sys and It will ask you to replace the existing file.
  3. Click on Ok
  4. Scan your computer and Restart

August 08, 2008

Exploring the Network in Linux

Hi all,

Do you want to connect to your remote system in Linux?

With the root privilege in Linux type these commands to explore remote system.

1. #ssh root@IP
2. Enter the password of remote system.
3. Now you connected to remote system.
4. Explore it and even you can shutdown the remote system by just executing poweroff command in your system.

Source: Prashanth Venugopalan.Y (My M.Tech Classmate)

Linux C Code Debugging for Segmentation Fault with GDB

Hi Friends,

Whenever you are doing some programming, you will be getting lot of errors. Myself have been in the same situation while programming.

When I was tried to write a code in C language (though I'm not a good programmer of C language), For my friend's sake I have tried some code.

The most frustrating error came in to picture, called "Segmentation Fault". Took help of google and no clue why I was getting the error.

What I have understand about Segmentation fault is
"Segmentation fault appears as if it is not easy to understand;
when your trying to access the memory that is not allocated by you ...
then segmentation fault appears after executing a.out"

Let me explain you with an example

int a[5]; // Declare an array
printf("%d\n",a[6]); // Then try to print the last+n location of the array where n>0

You will get segmentation fault error.

How to over come this?

There are different debuggers to locate the memory area where the segmentation fault occurred.

  1. 1.c // Your file name
  2. gcc 1.c -g // Then compile it
  3. gdb a.out // Type at the command prompt/console
  4. Now you will get a prompt >>>
  5. Type 'r'
  6. Give the required input
  7. It will locate the memory area where your trying to access the memory
  8. u is not allocate by u (it will give the lines in the program 1.c here segmentation fault has occurred )

You can rely on gdb about 70% and there are also other debuggers
for which you can refer to the book "Linux is a Nutshell"

For further queries/comments mail to

August 05, 2008

Changing MAC address of a system in Linux with root privileges

Hi Friends,

Have you ever tried to change the MAC address? It is so easy to do. Just follow the below steps.

  1. Login as root

  2. Write the MAC addresses of the system which u r going to change on a file or paper if you want the previous MAC addresses.

  3. Open terminal

  4. ifconfig eth0 down

  5. ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX

  6. ifconfig up

  7. ifconfig

Now your system MAC address will be changed to the specified MAC address. If any packet comes into the network to the specified MAC it will get confused where to go. If u specified the MAC address of the other system. i.e. if two system's MAC addresses are same.

July 31, 2008

Change Default Localhost File in Linux

Hi friends,

Whenever you type localhost or in browser, you will be getting some default file.

If you would like to change the default file and wants to put your own desired file then follow this procedure.

  1. Login into Linux as root
  2. Open the terminal
  3. cd etc/httpd/conf
  4. You can see the httpd.conf for configuration of httpd
  5. Place your .html file in /var/www/html
  6. Change the file name as index.html
  7. cd /etc --Change the directory to /etc folder
  8. service httpd start -- For starting the service
  9. service httpd restart -- To restart the service
  10. Now you open the browser
  11. In address bar of the browser type http://localhost/
  12. Now you will get your own html as default localhost
For further queries/comments, please mail to

July 30, 2008

Problem with University Organization

Before joining here(Amrita, Coimbatore) everybody in our M.Tech thought that, this University have AICTE approval....But in 2007 it got university for AICTE approval they need to send some documents ... But they didn't send ... so, we did get GATE stiphend ... We didn't pay our fee till now... we wrote letter to Dean(Engineering) that we are not going to pay the fee till we received our GATE, waiting for GATE money....

Thanks for my friends who are helping us ...

Friends are created by GOD to help...

For paying my second M.Tech fee I dont have money to pay...I asked some of my friends...They helped to get out of this problem...Prasanna Manikonda, who is working in WIPRO gave 40% of the money..and my classmates Pavan, Jagadeep, Meenakshi gave 30% of the money...and Brahmaji gave 5% and my father arranged 25% of the money...Thanks to everyone...

About my placement

I got placement in WIPRO ... after my frist year study in Amrita Vishwa Vidyapeetham, M.Tech Cyber Security .. I attended TCS, CTS written tests... I didn't cleared it.. After that WIPRO came...With the help of Srinivas I cleared my written and with GOD's grace I got the job...

Thanks to my friends who helped me...

Featured Post

Java Introdcution

Please send your review and feedback to