Unprecedented things!

Today I installed LXDE in my ubuntu. For accomplishing this task:

sudo apt-get install lxde

Further, it will create session files under:  /usr/share/xsessions 

LXDE.desktop         openbox.desktop

It’s a light weight desktop version and I found it really cool. But somehow I have to uninstall it later on (official reason).

sudo apt-get –purge autoremove lxde

c1.PNG

Apart from this, I was trying to install phpmyadmin and not only this program. Usually whenever I try to install stuff I encountered an error related to unmet dependencies and uninstallable candidate.
So, for banishing this:
sudo rm -rf  /var/lib/apt/lists/*
sudo apt-get update
Then, sudo apt-get install phpmyadmin
Further, add this in /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache2.conf
Now, restart apache2.
Beside this, I get to know about an open source Accounting Software today i.e ERP Next
e1.PNG
ERPNext  can setup email alerts on anything, Invoices, Orders, Leads, Opportunities, so you never miss a thing.
e2.PNG
Beside this, some previous work regarding project and website.

Why is the majority Average?

Are we meant to be average minded? No.

Just because Average people are better than others under them, doesn’t mean you have accomplished everything in your life.

Today, a thought just passed by my mind left me unanswered. So here I am annotating the fact .

We always feel amazed, surprised or even shocked by seeing multitalented personalities around us and land up giving statements like some are god gifted, few are book-worms etc. etc.

Really? Every child is god gifted. So, if they can excel, so can you.

Nothing worth comes easily dear. Indeed, they are excelling, because they are pushing themselves beyond limits. They are dedicated enough to reach heights. They are away from all the distractions.

These are just few points (or can say there secret to success) :

  • Daily work to enhance their ken.
  • Being subtle for achieving their Goals.
  • Rising like trough to crust. (Only because of hard work)
  • Passion and Dedication are the secret keys to their anomaly.
  • Hustle until you get it.

This is just the trailor. The subtle reason behind the excellence is learning from mistakes and courage to get up each time you fall.

The Majority is average because they aren’t putting their careers at first priority (atleast at right time.) We are being deviated by alot of distractions.

So, just gear up. Prove the world, more importantly prove yourself that you are worth it.

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: https://docs.djangoproject.com/en/1.11/intro/tutorial01/

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:
    django-admin.py 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/settings.py, you need to edit as per your database. I had used Mysql so I replaced:

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

which is of Sqlite with mysql:

DATABASES = {
    ‘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 manage.py 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 settings.py 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 manage.py runserver 8100

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

Part-2 :

111

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

11

Part-3

Here comes the section for polls.

1111

 

Key to Success

Hello, everyone. Today I am not gonna share stuff related to technology or my daily experience. I am here to write anything (literally anything) using some new words I have encountered today. Trust me it will definitely improve your vocabulary and is indispensable for those who want to build his/her skills. You want to overcome your fear? Do you feel a little inferior or not confident enough to face the stage? Wanna be a public speaker? Or any other similar kind of thing. The kick start is nothing else, just stop procrastinating your work. Do not delay anything by making excuses that you are being ingrained with such kind of habits and now it’s really difficult to get over them.
There is no such thing like Impossible, it’s just the matter of choice and priority.
Even Impossible says, “I’M Possible”
Being lethargic is another thing, but keep on lounging day by day is really not acceptable. Try to embrace every sought of thing you encounter in your routine. Just learn things from that because everything around is teaching us something.
Don’t be afraid at all. Even if you are in a dilemma, then quitting won’t help. If you don’t, then someone else will surely jeopardize things for a start. There are chances that you will get success if you are courageous enough to jump into the pool. Otherwise, you are on the safer side and it’s a NO to a bright future already. So, just keep doing and keep growing.
Even if you fail, then you have come across 10,000 reasons which won’t work. (Never Stop) This is nothing else but your experience. You have gained a lot already. (Believe me)
There is a common example we watch around. Whenever we are out, most of the people try to haggle things at the shopping store, grocery market etc. There isn’t a surety that the shopkeeper will bargain the things but still, we try. Why? Because we want best out of least. (Yes, we want to save our money.)
This concept works in this case. But in terms of success, we can’t get best out of least. One has to put a lot of effort to achieve something bigger in his/her life. Nothing worth came easier.
So just stop going for shortcuts, or believing the myths that these things will help, because in a long run it won’t. Once these habits will be infused within you, it will be difficult to go through them. (Again not impossible)
So avoid these temporary relaxation things, and go for permanent wonders.
Dreams do come true if seen from open eyes (not at the time of being drowsy r sleeping.)

Remember, “No Gain, Without Pain” 🙂

 

 

SEO Website

Today I brushed up some of the basic key terms related to Page Rank of a website. I get to know about Back-links: http://smallseotools.com/backlink-checker/ 

Also you can check it using: www.seoreviewtools.com/valuable-backlinks-checker/

OR http://www.backlinkwatch.com

To get more backlinks for your blog, there are no. of ways like write good content etc. Plus, start commenting on these forums: Increase Backlinks

Also, can be silly but I am the one who likes writing everything in her blog starting from a penny to huge things. I didn’t knew about shortcut for Redo i.e “Ctrl+ Y”

Moreover, I get  introduced with a tool to download almost any website: (HTTracker Website) https://www.httrack.com/

I searched with google Australia to figure out highest ranking websites over there (https://www.google.com.au/?gws_rd=ssl)

We are gonna make a website related to Hair Transplant with 0% Plagiarism. It must be optimized and must get at least an average page rank. I also get to know about Google AD words Keyword planner to enhance the Ranking.

Also I practiced some of the aptitude questions, brushed up technical and non-technical questions from here: http://cpt.hitbullseye.com/Infosys-Aptitude-Questions.php

Plus, I get to know a method for reading latest content. On Google Go to tools and select option as per your need.

Also, from a long time I was getting a warning on my terminal whenever I work with sudo:

sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700

For solving:

sudo chown -R root:sudo /var/lib/sudo   
sudo chmod -R 700 /var/lib/sudo  

I was getting above error because  the current permissions of /var/lib/sudo allow either the file’s group or the other group to write into the directory, while only the owner (root) should be able to do so.

Apart from this I was also facing another warning

W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)

Solution:

sudo rm /etc/apt/sources.list.d/google-chrome.list

Beside this, one of my software hanged my system, so to kill that process:

ps aux | grep <software name>

sudo kill -9 <Id number>

To my surprise, I get to know an interesting thing today. May be many of you are acquainted with this but still I would like to share.
Today when I was working, I noticed that for same file Windows and Ubuntu are showing different sizes.
At first, It made me sought of thinking like corrupted file or something.
Later on, I noticed that each OS has it’s own paradigm. One was showing 1.2 GB size and the other was 1.10 GB. (Though the bytes shown are same)
It was because in Windows, 1 KB = 1024 Bytes
Whereas, Ubuntu assumes 1 KB = 1000 Bytes

w.PNG

w.png

Also, for making unique logos, there is an online tool: http://www.onlinelogomaker.com/

To check whether your system is 32 or 64 bit, “run dxdiag” on Windows.

On Linux, go with commands like:

uname -m
or
arch

Moreover, “uname -a” will give alot of information like:
Kernel name, network node hostname, kernel release, kernel version, machine hardware name, processor type, hardware platform and operating system.

Also I created a basic documentation using Doxygen.

sudo apt-get install doxygen

doxygen -g <config-file>  //For creating a file

doxygen <config-file>  //For generating documentation in LaTeX, HTML etc formats.