Posts

Showing posts from 2017

AMD VGA drivers for Ubuntu 16.04

Hello friends, its been long time since my last post. Sorry about that. I will update the blog regularly from now. (I hope to do so :) ) If you have ubuntu 16.04 and trying to install AMD VGA drivers to your PC. Stop and listen to my story. Recently I bought a laptop with AMD A6-9220 Processor with Radeon 4 graphics. I installed Ubuntu 16.04 in it and tried to find VGA drivers for it. Then I got many many troubles. After the installation I understood that I need to have fglrx drivers to install AMD Radeon graphics in my PC. Which Ubuntu stopped support after 14.04 version. There were many suggestions given in askubuntu and ubuntu.help sites, one of them is installing third party fglrx drivers and then installing AMD drivers. It also suggest some other techniques. Let me tell you what happens after I tried all those steps. My PC got stuck, Could not to get into GUI. This is how I got AMD drivers and Ubuntu 16.04. Install Ubuntu 14.04 as the primary OS in your PC.  In

Django Basics - First step to Simple REST API

Image
         Recently I had been watching  Bucky's django  series and I got this idea to make a simple API. After few attempts I made it. Its really a simple one. For the initial phase, I just used post title and first name in my database. API, basically  a way to communicate between different parties. One party is providing its data to others. Others need to ask polite (protocal) to get data. Always API returns standard format.Like JSON. other parties can use these data for their own works.(as I understood)         Lets get started, first we need to have django installed in your PC. Its very easy. Open your Terminal (CMD) and type,               sudo easy_install django  (Here I am explaining the Linux terminal way, if you use windows. Just ignore the sudo part.) Ok, we now have Django in our PC, create a folder somewhere you want, and go to it from terminal (cd command).             sudo django-admin startproject your_project_name Here you can use an appropriate name fo

Git - In a nutshell (Part -1)

Image
                 If you are coding, then you must know about the guy called 'GIT'. Here in this post I m trying to post the most essential git coding for you. Here I will code the basic git commands. I assume you have installed git in your local machine. To verify it, open your terminal and type   git   If its installed, you should get something like this. Fig-1 : git installed machine If you are not getting this kind of window, you have to install git, please follow this official git guide. 1) Initializing a git repository in your local machine     Go to your project folder using cd command in terminal. Type           g it init           # creates an empty git repository               g it add .        # add all the files in the current directory to git repo           g it commit - m "type your message"         # commit all the files to git repo     These will create your first git repository in your local machine. Follow step by step. In the co

Shell Script Simple command-line python runner

                 Recently I have been watching some Shell Script videos from youtube. I just wanted to know how SH works and interact with user. But finally ended coding a simple shell script program for successfully executing python programs. Here I tried to execute php codes using my sh file, but still could't find a solution. You can download full program from  My github . First I will explain how the program flows. First user enters he/she desired file name, shell script creates an empty text file with that name. Then program asks what kind of file is this (python or php). When user enters appropriate file type,  changes the file extension from text to user desired file type. Asks user to enter the program and save it using CTRL+D. Finally tries to execute the program. (tries because only python codes are executed successfully in this) Here we go, I will explain line by line, what is happening behind the scene (as I understood).           echo "Please enter fi

Advance usage of Sublime Text-3

          I am posting this for coding your life easily using Sublime Text -3. These are a few but helpful shortcuts every sublime user should know. I hope these will make your coding life very easy and comfortable. Note : => is not a key word, I just use it to show you what is the next step. 1) To find a file :          Keys            : ctrl+p  => File name.          Description : When you need to find a file inside your working directory and you know the                                   name of that file (at least a fraction of it). Else you have to use sidebar. 2) To get a method in a file :          Keys            : ctrl+p  => @ method         Description : When you need to find a method inside your file, get the command pallet and                              just type @ . This will bring all the functions inside your working file. 3) To find a word in a file :          Keys            : ctrl+p  => # word         Description : When you need to find

Hello World

          class CodingYour Life {                         var blog = "Coding Your Life";                   function __constructor($blogger) {                                              $this->blog=$blogger;             }    public function who_Am_I( ){        echo "                            I am an enthusiastic computer engineering student for Laravel framework,                  Python,VHDL and electronic design. Self learning is my favorite. These days I am               following Django and Python web access tutorials.Also developing a Simple blog system                 using Laravel and Django ";    }    public function why_I_started_this( ) {               echo "                             My good friend Anjana suggested start a blog to share my ideas with my fellow                       enthusiastic coders.";    }    public function what_I_write( ){              echo "