My Childhood and Teenage Part-2

Hey, I’m back here with the second part. Where did I stop in the part-1? Yeah, came till my 10th class story right? In this part I will tell some of my best adventurous journeys and my Intermediate education.

10th Class summer holidays:

Soon after my 10th public Exams, I traveled  Mumbai alone for the first time. The journey was so exciting because there is no one to stop me in the train from enjoying. That journey is one of the memorable moments in my life. In the starting of the journey I was so scared because at that time I had a fear for trains (accidents and stuff). But the journey was not that boring for me because till PuneI was playing with a small kid from the beginning of the journey. After going to Mumbai the real fun started for me. I used to live in BARC. There I went to water parks and 3D movies and so on. I almost spent one month of my holidays in Mumbai along with my relatives. It is really fun spending time in Mumbai for me because of their kids who always likes to play with me.

Intermediate Education:

As every one knows the intermediate education is one of the crucial stages of education. But for us (people of Andhra Pradesh) it is like spending a year in hell because the system of education is like that there for us. As Amir Khan says in 3 IDIOTS film right, all of them will start revolving round the books to get the first mark always. No one cares for how much time is it we are in the college and what the knowledge they are gaining by studying those subjects. All the time they will be mugging the whole entire study materials which are given. That’s it nothing much they want because all the questions will be given from that material itself only.

There have been a lot of changes in me when compared to my school age when I started my Intermediate Education. I’m no more the old Anup who my friends know me during my school time. Along with all the remaining people I also started to get into the race for the marks. ūüėõ Some how I managed to get through the examinations and came out as an average student.

I really hate the system in Andhra when it comes to the Intermediate education especially because they will divide the whole student into three categories i.e. Toppers, Average Students and Below-Average students. The administration will take good care of the toppers and the below-avg students and leave the average students all the time. That is one of the reasons why all the average students lag in their studies in Intermediate.

That’s it all about me. Thanks for reading.¬† ūüôā

My Childhood and Teenage

Hi, since I have decided to tell about my life till now, it will be a little bit long. So I have decided to break this entire story into two parts. In this part I will be expressing my memories till 10th class and in the next part I will be explaining you the remaining part till now. It might be a bit boring reading my life story, I will try my level best to make it a good post.

My Childhood:
I was born in July 1993. My parents used to say that I was the most naughtiest child ever during my childhood. When ever some one comes to my home, I used to play a lot like anything regardless of age. I think that is one of the reason why most of the people hate me the most.

Basically for anyone their childhood is the best time ever in their life right? In the same manner for me also, my childhood is the best and had a lot of memorable moments which I can never forgot in my life. Sometimes, I remember my grand father(expired) who used to bring me from my school. I used to play with him all the time. My dad used to say that once we used to have a dog in our home and it was the best friend of mine during my childhood.

My complete school education is done in my hometown itself in Gayatri Model High School. During the entire school age from class 1 to 10 I have come across so many situations. For the entire school age I got some really good friends who always takes care of one another in need of help. My parents used to say that I was one of the most bright students in the class till 3rd class. After that I am no more like that because at that age my dad bought a computer. As every one knows, once there is a computer in home what a kid will actually do, start playing games on it. From then onwards my downgrade in studies started. ūüėÄ

During my 9th class my school decide to take us to excursion to Hyderabad. That was the first time ever in my life I went out with out my parents. Anyway on one side, I was excited that I was going to some new place for the first time. Our school decided us to take us to Ramoji Film City which is one among the best of all for the whole Andhra Pradesh. I was almost begging my parents that I wanted to go for that trip. All of my friends have decided that this would be the best time ever in our life where we can enjoy. That’s right with that trip almost all of us became really good friends.

Excursion tour to Hyderabad:
It is really fun traveling with friends right? Before we started the trip we got really strict instructions that we should behave in a good manner. But once when we got into the train the real fun started. The whole night we were singing songs and dancing in the train. After reaching Hyderabad we started to Ramoji Film City in bus. We were wonder struck by seeing the buildings and other. In Ramoji Film City we have enjoyed a lot, and there in Ramoji Film City for the first time ever I have seen a 3D film which was amazing.

My friends and myself

My friends and myself (A small kid in the corner :P)

In that trip we went to Snow-world where all of us really enjoyed. It is where they will be reducing the temperature to -ve and blows in snow(artificial). There almost all of us really enjoyed because there we have even played with our school teachers who were really strict. We took complete revenge on our teachers by throwing snow-balls at them. In the same manner they also replied to us by doing the same. But it was the only place where we had lot’s of fun. What my friends did is that all of them decided to attack on me. Suddenly all of my friends started throwing snow at me. Very soon I was almost filled out with snow and was looking like a snow man. Remaining days we went to some of the important places in Hyderabad.

One funny thing is in Ramoji Film City there was a ride “Tumbler” which revolves us in a circle. The first time I somehow managed to get into that ride because people below 5ft were not allowed. The next time when I tried going for the same ride again the security guard caught me and told me that “This ride is not for children like you.” Anyway I got a chance to try all the adult rides at least one time.

Next is class 10 and all of us started our preparations for the exams. My style of preparation for the exams is completely different. I won’t even study the day before the exam also if parents are not at home. During the preparation holidays for us, what I did is really adverse when compared to my remaining classmates. The very next movement when my mom went to office, I had started the system and started playing games. Some how, I managed to get through the exams.

Escaping from the clutches of death:
During my 7th class I asked my parents to get me a cycle, so that I can learn cycling and can go out freely. According to my wish they gave me a cycle and I have started learning riding on my own. Once I got complete grip on cycle, I have started riding really fast on the street roads. My parents got many complaints on me regarding my fast and reckless driving. Even though my parents warned me so many times, I never listened to those people. Once when I was riding on the streets along with my friends, I suddenly clashed with an ambassador and I was down on the road. From the other side it was a truck coming at an avg speed, and by the time he applied the brakes the tires were almost at my neck. Thank god, I was saved with some major injuries. That day I got really good scoldings from my parents and after that it was only in 10th I got my cycle back and this time I never repeated the mistake again.

I feel like as if I was taking a lecture class. Ok, I will stop here and I will continue the remaining part in the next part. Thanks for reading…. ūüôā

Adding Swap to Ubuntu

In this post I will be explaining you about adding Swap to Ubuntu manually after installing the Operating System.

If you are installing Ubuntu alone on the system, it won’t ask for adding the swap memory. All the time I am talking about Swap memory right, what is Swap memory actually?

Linux RAM consists of chunks of memory blocks called as Pages. If the pages are filled the system will become slow. To avoid this problem we will be adding Swap Memory. This will take some memory in the hard-disk and acts as an alternate RAM for Ubuntu. Linux swap allows the system to harness more memory that it was physically available.

However, allocating Swap Memory does have disadvantages. Because hard disks have a much slower memory than RAM, virtual private server performance may slow down considerably. Additionally, swap thrashing can begin to take place if the system gets swamped from too many files being swapped in and out.

Check for Swap:

Before we proceed to add a swap file we need to check whether there are any swap files are or not by having a look at the summary of swap usage. To check run the following command in the terminal.

               sudo swapon -s

An empty list will confirm that you have no swap files enabled:

               Filename                     Type                   Size                  Used                Priority

Check the File-system:

Once if we are confirmed that we do not have a swap file enabled, we can check how much space we have on the server with the df command. The swap file will take 512MB, since we are only using up about 8% of the /dev/sda, we can proceed.

               Command: df

               Filesystem       1K-blocks      Used           Available       Use%       Mounted on
               /dev/sda2        20907056       1437188     18421292      8%             /
               udev                  1964644          4                  1964640         1%            /dev
               tmpfs                789380            804              788576           1%            /run
               none                  5120                0                   5120                0%            /run/lock
               none                 1973448          592              1972856         1%            /run/shm

Creating and Enabling the Swap file:

Now it’s time to create a swap file using the dd command.

               sudo dd if=/dev/zero of=/swapfile bs=1024 count=512K

where of=/swapfile designates the file’s name. In this case the name is swapfile.

Subsequently we are going to create the swap file by creating the swap area:

              sudo mkswap /swapfile

Now you will be able to see the manually created swap file in the swap summary.

               sudo swapon -s

The results of the above command will be:

               Setting up swapspace version 1,   size  = 262140 KiB no label, UUID=103c4545-5f-c5-47f3-a8b3-dfbdbd64fd7eb

Finish up by activating the swap file:

               sudo swapon /swapfile

Now, you will be able to view the swap file in the swap summary:

               sudo swapon -s

               Filename                Type        Size            Used     Priority
               /swapfile                 file          262140      0             -1

This file will be there on the virtual private server until the machine reboots. You can ensure the swap is permanent by adding it to the fstab file. To do this run the following command in the terminal:

               sudo nano /etc/fstab

and paste the following lines there

               /swapfile               none         swap         sw       0      0

Finally to prevent the file readable by the other users you need to give the necessary permissions for the swap file:

             sudo chown root:root /swapfile

             sudo chmod 0600 /swapfile

Note: It is not necessary to take the exact values as if it is in the post. Those values are directly pasted from my terminal when I was adding swap to my file system.

That’s it now you have created the swap file.

My first bug fix: Mozilla

Mozilla Firefox LogoIn this post I’ll be sharing about my experience on my first open-source contribution and installing the Mozilla browser source code for experimenting. This post contains answers for almost all the problems which you will be facing during the build (Mozilla Build). For beginners, simply this is what you have to follow if you want to contribute to Mozilla.

My experience with open-source contribution:

Before when I was in first year by seeing all my seniors, fixing bugs and contributing to open-source. After a while, when our sir told to start open-source contribution, I was completely confused at one point when I have to choose an organization to work on. Finally I have decided to work for Mozilla. It was really like solving the puzzle when I was trying to install the Mozilla source code. After doing lot’s of experiments some how I finally managed to complete the build. It was really funny trying to get through the errors and completing the build. After that it took a while for me to find some minor bugs to work on. When I was assigned to a bug and I was blank in the sense don’t know where to start and what to do. At that time I have decided to take help from IRC.¬† During my first bug fix I was asking silly silly questions and the people are a kind of irritated on me. But in IRC you will get help for almost all the questions which you have. Anyway it was really fun doing open-source contribution.

Installing Mozilla-browser source code:

Installing Mozilla Source code mainly involves the following steps:

  • Downloading the Mozilla mercurial file.
  • Installing the dependencies required for the build.
  • Building the Mozilla source code.

Downloading the Mozilla source file:

You can get the mozilla.hg file either from here or from the Mozilla site. The mozilla.hg file is from where you will be installing the source code of the latest browser.

Installing the dependencies required for the build:

To get the build installed in your system you need to install the following the Linux build prerequisites which are nothing but the libraries which all are necessary for the build to get installed.

  • sudo apt-get install mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libiw-dev libxt-dev mesa-common-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev

Building the Mozilla source code:

The following installation process explains for people who all are installing the source code through mercurial(.hg) file. The mercurial build is preferred for the people who have very poor Internet connections. The mercurial bundle is nothing but like the off-line version of the hg clone which you can download and install when ever you want.

Once you have downloaded the repository bundle, follow these steps:

1. Initialize a new repository (in a directory called ‘mozilla-central’ here):

mkdir mozilla-central

              hg init mozilla-central

Un-bundle the bundle file to that repository:

To use the below command in windows, export the \path\to\hg and invoke the command from command prompt.

              cd mozilla-centeral

              hg unbundle /path/to/your/bundle.hg

(The unbundle will take quite a lot of time)

3. Add the following lines to the file mozilla-central/.hg/hgrc which you may have to create it, so that hg will automatically know where to pull changes from in future (replacing ¬†mozilla-central‘ as appropriate):

      default =

4. Update the repository to get all the changes since the bundle was created long back. To get the update run the following command in the mozilla folder.

      hg pull

5. Check out a working copy from your new up to date repository:

      hg up or hg update

You now have a clone of mozilla-central that is identical to one made via “hg clone”.

6. Now, you have done all the requirements to be done for the building the source code. The build is going to take quite a lot of time approximately 2 hours. So please be patient. To start the build run the following command in the terminal.

./mach build

7. Once if you have completed the build you can run the browser by using the following command.


Note: If you have any problems during the build then feel free to comment in the post. ūüôā