Posts

How to ask a question on StackOverflow

When we do coding we often face many problem. Theoretically ok code may not run in practical environment. So what we should do. First we can ask from our fellow coders near you. If they cant help you, what do you do? You must have checked StackOverflow. Most of the time, we go there just as a reader and read threads about similar problems. But what would happen if non of them help you. You have to ask a question. Here are some tips for asking a good question on StackOverflow. Its not for helping you to complete your homeworks. So never ask, I have to do this, how I can do it. First try something by yourself, even its a simple hello world program. Then ask your question with you used code, expected result and the actual result you got. When you ask a question, be simple and short, include only the necessary details to your question. Always give some details about your environment, such as your OS, software version. Be polite with the fellow coders who tries to help you there....

My experience with VS Code

Hello readers, How had you been? Its been long time since my last blog post. I promised to keep update this blog, yet again I broke my promises. So lets go to the topic. I will cover only the user experience I had with VS-Code, not the technical details about it. Few years ago, I was a Sublime user, I loved it a lot. One of my friend suggested about VS-Code. As I remember it was just the beta or first release. I installed it and tried to use it. But my first experience was similar to Sublime, so didn't give any interest about it. But after a year, when I start programming as my job, I understood the importance of VS-Code. Here are some facts changed my mind. Tons of useful extensions from Docker to syntax highlighting. Excellent git extension. Light-weight ( I can run it on my 5+ years old laptop) Constant updates. ( adding more new features frequently ) LiveShare option ( we can share our coding live with anyone ) Super fast booting time and syntax highlighting. He...

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.  ...

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).   ...

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...

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 un...

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 in...