Ubuntu Fresh Install: RestrictedFormats?

Have you installed a fresh Ubuntu? If YES! then you might be experiencing a few problems in listening to the music, watching videos and surfing the web as in problems with Flash, Java and so on. Don’t worry just feed your terminal with the following commands and all will be well. πŸ˜€ This is just because the patent and copyright restrictions (see Ubuntu License Policy) complicate distribution of software to support non-free formats.

For Ubuntu:

sudo apt-get install ubuntu-restricted-extras

For Kubuntu:

sudo apt-get install kubuntu-restricted-extras

For Lubuntu:

sudo apt-get install lubuntu-restricted-extras

For Xubuntu:

sudo apt-get install xubuntu-restricted-extras

To play DVDs, you need to install libdvdcss by entering the following in a terminal:

 sudo /usr/share/doc/libdvdread4/install-css.sh

ENgulfing the tech

So as usual these days I am trying to engulf as much tech knowledge as I can. After HTML, CSS, PHP, it’s the time of JavaScript to be engulfed. Codecademy.com is really cool. I am in love with the way it tutors. Apart from this, I am thinking ofΒ  implementing this knowledge to make some productive project which will be of some use.

I am also trying my hands upon SQL injection, Cross Site Scripting (XSS), MD5 encryption and one more thing which is really cool but for now let it be a secret. πŸ˜‰ I will try to write the tutorials of each of the above once I do some considerable amount of work on these. But for now I have to leave because I don’t want to skip my breakfast in the hostel mess like the past few days. πŸ˜›

How to Install Firefox 34.0.5 on Ubuntu

Firefox 34, which includes eight security fixes, is the first version since Mozilla announced it was dropping Google for Yahoo as its default search engine.

What’s New:

  • Default search engine changed to Yahoo! for North America
  • Default search engine changed to Yandex for Belarusian, Kazakh, and Russian locales
  • Improved search bar (en-US only)
  • Firefox Hello real-time communication client
  • Easily switch themes/personas directly in the Customizing mode
  • Wikipedia search now uses HTTPS for secure searching (en-US only)
  • Implementation of HTTP/2 (draft14) and ALPN
  • Recover from a locked Firefox process in the “Firefox is already running” dialog on Windows


  1. Download Firefox from the Firefox download page to your home directory.
  2. Open a Terminal and go to your home directory: cd ~
  3. Extract the contents of the downloaded file: tar xjf firefox-*.tar.bz2
  4. Close Firefox if it’s open.
  5. To start Firefox, run the firefox script in the firefox folder: ~/firefox/firefox

Now your firefox should have opened. You may also create an icon on your Desktop to run this command.

EnJoY! πŸ˜€

God gifts those who gift themselves

Heard such saying before?Β  Yeah this is the enhanced version of the saying which is based on my self realisation. Today I read about the Internet’s Own Boy,Β  Aaron Swartz. He was the one who with the grace of God learnt to learn at a very young age. His father introduced him to the computers when he was about three. He wrote his first program in BASIC when he was 6. Astonishing? Then listen some more. He developed a website called infobase when he was 12. It was a website like WikiPedia for which he got scolded at school as the teacher disliked the idea to allow everyone to edit the content. Now the best part is WikiPedia was developed 5 years later. Startled? πŸ˜› You should be. And the title of the post indicates that you need to gift yourself with the gift of hardwork to continue receiving gifts from the Almighty which is what done by the people you call Legends.

Well for today this much of his golden tale is enough. I will try to be a good story teller by tomorrow too. :P.

Well I shared this story because I wanted to emphasise on the fact that good books good people good thoughts keep your spirits high and elated. I would personally acknowledge that the boy I told story of inspires me a lot. When you encompass yourself with the ideas and thoughts of such people you actually get motivated and pumped up to excel in life by emulating them which is actually too good a deed. So in my opinion to stay focused devoted determined towards your aim, surround yourself with good thoughts good people.

Other than this today I stayed immersed in the ocean of PHP and C++.

Gold-$X will be $X [$X= “mine”]

So what I did today is:

  1. Practised a few C++ programs based on Multi-dimensional Arrays and Data Storage Item–Stack. Both of these types of programs completely refreshed my brain and it seems now I am learning the real C++. πŸ™‚ I will share these programs as distinct posts / tutorials soon.
  2. Studied about the security vulnerability of websites. Got to learn about the various concepts through which the privacy of the site can be compromised.
  3. Learned techniques to harden PHP websites mostly WordPress.
  4. Explored the functioning of perilous functions and language constructs such as base64_decode() and eval().
  5. Also learned how to enable / disable them.
  6. Installed Suhosin, Advanced Protection System for PHP, on production server.
  7. Finally I had a date with PHP OOPs. πŸ˜‰

Okay gotta go now because it’s 3 in the midnight and I have to attend tomorrow’s presentation at 8 and make that Gold-$X $X (Gold-mine mine). πŸ˜‰ πŸ˜€

Dream is not the thing you see in sleep but is that thing that doesn’t let you sleep

I look up to the sky
and now the world is mine

I’ve known it all our life
I made it,
I made it!
I used to dream about, the life I’m living now
I know there is no doubt
I made it, I made it!

Known from the city where no one believed in me
But I never gave up the fight.
Yeah, but now I’m on top.
I told you to let it rock
Now the money’s fallin’ from the sky-y-y-y-y
I made it.

Don’t mistake me for boasting. πŸ˜› The above are the lyrics of the song (Wrestle Mania Theme)Β  which I like the most. It levitates me up so high that I can barely settle down. In the morning I hearkened to the presentation of Gagan and Gurjot regarding the Licensing issues. It was too informative. Thereafter I got to peep down deep into eCAD which is too doing good.Β So after the night clouds enveloped the day, I plucked the fruitsHTML, CSS, and PHP down from codecademy.com tree for my dinner . πŸ˜€ I am relishing every bit of these fruits these days (five days in a row). πŸ˜€


One more thing which I enjoyed today was experimenting with the experimental server to befool my friends. I wrote a PHP script which tossed the coin till we get the required number of heads and hosted it on the experimental. I set the number of consecutive heads so high that running the program on the system caused it to hang. πŸ˜› As an aftermath of which Harjot, Hitesh, Chanpreet had to restart their laptops. Working this way is toooooooooooooooooo playful. πŸ˜›

Just one thing that astonishes me these days is, “Where the hell has my slumber gone?” πŸ˜›

Do before you die

So the first quarter of the day was expended in having deep slumber as I was fatigued from many a day. The second quarter was spent in exploring incredibly creative websites, learning techniques to optimise images for websites. It can be done with the help of two tools “optipng” and “jpegoptim“. They tools do lossless compression and can be installed as follows

sudo apt-get install optipng

sudo apt-get install jpegoptim

respectively. Then another technique to decrease the size of an image is using “convert” command from the terminal. We can resize an image by increasing / decreasing the quality (50% below) as much as we want as follows:

convert -resize 50% image_name.jpg

Deepak and I share interest / longing to create websites seeing which one may become awestruck. One of such is http://makemepulse.com/ .

In the next quarter I went to Alisha for covering CPlusPlus. We covered a few superb topics from Arrays and Strings, Robert Lafore. We also explored MediaWiki’sΒ http://phabricator.wikimedia.org/ for picking up a task. Then I bought a couple of winter wear too from their Hosiery Sale (you may also shop online from their website πŸ˜‰ ).

Now in the last quarter I have solved a big problem with common sense. πŸ˜‰ My laptop was getting immensely hot despite the proper functioning of the fan. I surmised some extra processes must be running which were exhausting it. So I just issued htop command and to my utter surprise there were three process running with the same name “firefox” and different process ids but graphically I could not see firefox running. So I killed them using “kill” command. And to my utter surprise again the scorching temperature turned out to be like absolute zero (I felt like I needed applause. πŸ˜‰ ) One may also learn about kill, top, htop and ps commands from this marvellous article from digital ocean.

And before the last couple of eye blinks I have almost completed the codecademy CSS which I aim to finish by today itself. I am just concerned if I would be able to attend Kamal‘s presentation but I WILL definitely attend the rest of the presentations (seems I have to change my eating / sleeping patterns πŸ˜‰ ).