Get Started!

Hey my lovely readers,

I was bit occupied earlier and was not having something spicy to share with you all. Today, I get back to work again and will surely update some new and interesting things in coming days.

To embark with, I wanna share a link with you all which can help you in understanding JavaScript in a fun way. Go through this and try each task as I did and it will surely be a wonderful experience for you all if you will do justice with the work.

Even you can go through Hacktoberfest for getting some stickers and T-Shirt. It’s conducted in October every month.

That’s all but stay tuned .. 🙂



Django Poll App

Firstly What Django is?

Django is a free and open source web application framework, written in Python. A web framework is a set of components that helps you to develop websites faster and easier.

This is a perfect tutorial for getting started. Choose the tutorial as per the version of your django installed. One can go with the latest:

You can install it using:

sudo apt-get install python-django

I had followed the above link to make my django app. I used django version 1.7 and python 3+

Here I am going to discuss about some of my struggles in doing this work:

This app is basically that people can view poll and can vote in that. Admin can add, delete or change polls.

  • The first problem I faced was in below command: startproject mysite

    This command is for starting a new project. Later on it’s solved by removing .py from above command. As in ubuntu there is django-admin.

  • django-admin is Django’s command-line utility for administrative tasks.
  • In mysite/, you need to edit as per your database. I had used Mysql so I replaced:

    ‘default’: {
        ‘ENGINE’: ‘django.db.backends.sqlite3’,
        ‘NAME’: os.path.join(BASE_DIR, ‘db.sqlite3’),

which is of Sqlite with mysql:

    ‘default’: {
        ‘ENGINE’: ‘django.db.backends.mysql’,
        ‘NAME’: ‘database name’,
        ‘USER’: ‘root’,
        ‘PASSWORD’: ‘**’,
        ‘HOST’: ‘localhost’,


  • I was getting an error when I gave this command:
python migrate

Error: pymysql not found

Then I installed: sudo apt-get install python-pip

pip install pymysql

  • One more error I was getting that mysql can not be connected to localhost. I had given some random port address in file after HOST. Then I deleted that line.

Till this point I am done with Django Welcome Page.

Its just a discussion that after that you will see a make migration command. By running makemigrations, you’re telling Django that you’ve made some changes to your models. This reminds me of Commit and push commands of git which finally pushes the changes to the rmeote repository.

Now lets play with API provided by Django,

  • It was silly but I got Indentation Error due to space between >>> and my text.
  • Its good to set different port number if you are working on a server

python runserver 8100

Basically you are working separately in API, admin and user content.

Part-2 :


It’s all about creating an admin page and setting a GUI for managing Question, Choices etc.



Here comes the section for polls.



Happy Valentine’s day

Love? What is it? It can be affection between two persons, trust on a friend, respect for your elders and what not!

Well said: Love is in the air. ❤

Today was really memorable for me. I went to an orphanage home (I met little wonders over there). That feeling of dancing with them, singing for them was just magical 🙂

It was beyond perfection. I have visited such place first time in my life and was just mesmerized in that moment. I was so happy by seeing a smile on their faces. Those twinkle eyes were just priceless. They all took my heart.

Taare Zameen par :))
Jaise Rango Bhari Peechkari…
Jaise Titliyan Phoolo Ki Pyari…
Jaise Bin Matlab Ka Pyara Rishta Ho Koi..  ^_^

P.S: A click from the day

“We make a ‘LIVING’ by what we get, and make a ‘LIFE’ by what we give” 🙂


A New Beginning

I was thinking to write down my thoughts from few days, finally got the chance today.

I absorbed many of the new things in this weekend. Starting with Design Aids Project (Mainly LaTeX), How to get started with a good Business Proposal, as my team had cleared the first phase of B-plan competition.

This exhilarates the spark in me to move further with some of the new tasks.

Apart from all above gossip :p

I converted a png image into a .txt file as I need it for LaTeX project.

Do refer OCR for seeing the steps.

Apart from this I completed Hacktoberfest  Challange too and got a mail from Digital Ocean for a new tee 😀

I worked upon improving Readme files, about Resume in LaTeX. A little bit about general information addition in the documentation regarding few topics.

Overall it was good spending time with GitHub :p 😉


But still, I found that last 2 weeks were not that much productive as it can be. So again on the track now after clearing all of the stuff in which I was indulged from few days.

.. 🙂 ..

Slog and Blog!

Today I tried setting an environment for computer graphics system so that output of c++ program can be seen from a terminal as well.

For this, I followed this link suggested by one of my friend (Gagan)

I was getting an error explained below after running the command

sudo apt-get install build-essentials


E: Encountered a section with no Package: header

E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages

E: The package lists or status file could not be parsed or opened.

For solving above I ran below two commands:

sudo rm -vf /var/lib/apt/lists/*

sudo apt-get update 

Apart from this my octave Ghost error also got solved. The problem was mainly related to broken packages in the installation of PPA packages and octave software.

Moreover, I got involved in Design Aiding project.

P.S: Music is LIFE (May be irrelevant here, but karo jo dil chahe :p ^_^ )

Time to be in Action!

Today was an ok day. One thing I did today is to get back to blogging :p

Firstly, I installed google chrome on ubuntu through terminal:

wget -q -O - | sudo apt-key add -

sudo sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google.list'

sudo apt-get update

sudo apt-get install google-chrome-stable

Apart from this I got to know about Grammarly

Currently working upon flatpak.

Apart from this got to know about downloading youtube videos from terminal

sudo apt-get install youtube-dl

sudo apt-get install python-pip

sudo pip install –upgrade youtube-dl


The best way to predict the future is to create it … 🙂


Ubuntu was Flickering

I always heard of that leaving something in between is just not acceptable. But realized it first time.

Yesterday, I run the following command on terminal:
sudo apt-get upgrade

But then I stopped the process in between (which is definately not good).
After that when I started my ubuntu OS it was flickring (shaking or dancing :p) and due to this system speed was also reducing.

To solve this problem I ran following commands:

sudo dpkg –configure -a

sudo apt-get update

sudo apt-get upgrade

sudo reboot

Problem Solved .. 🙂

Apart from above, today I just randomly put my hands again on Internet problem of Ubuntu. I just changed the signal antenna to 3 in driver’s config file. To my surprise, it worked. 😀

P.S: I tried IRC for help and found it good.