Skip to main content

Posts

Learn Git & Github

Lesson 1 Lesson 2 Lesson 3 Lesson 4 Learn Git : Lesson 1 Why Git or any VCS Image from git-scm Version control system is a software which maintains the records of changes done to a project and also the states of the project which you can switch anytime. As a programmer, it sometimes happens to me when i write a piece of code and it works but when i try to optimize it then it gets broken. Also i could not be able to traceback the changes and get my working code back. If this happens to you also then you might undo tens of times to get back the previous code. But what will you do if your project contains multiple files with hundred lines of code in each file. If you now brong some changes to more than one file then its not easily possible to get back the working code. Here comes the importance of a version control system. In a VCS, you can save the current state and continue to work on a different state but it doesn't mean that vcs creates a copy of the current state....

Python : Learn it my way

Why Python The first question we should ask ourself before learning something is "Why should we learn it" .I don't know about other stuff but i can answer why should you learn python. Python is a scripting as well as programming language. What does that mean is we can use it for web servers, softwares etc. Also it has a vast open source community behind it which provides thousands of libraries, frameworks and applications based on python.Today, development is moving forward to use languages like python, perl , ruby etc. So if we want to keep ourself updated with latest technologies then we'll have to learn them.Python also becomes handy for GUI development.Learning python is considered to be easier than any other object oriented language. Is this a python tutorial ? Obviously not. This is not a python tutorial. I am just gonna show you the right path to get yourself into python. When i first faced python(during sublime plugin development), it seems so scary that i s...

C-Mate : Your companion for C in Sublime Text

What is C-Mate ? When it comes to writing code then either we choose an IDE like codeblocks or ecllipse, OR we use some text editor like notepad++ or sublime text. Sublime text is a very powerful, flexible and free text editor. You can install any package you want in sublime which help you writing codes easily. C-Mate is also such a sublime package which will help you write C code efficiently on ubuntu. It consists of many useful snippets, pre-coded functions and a powerful build system. Why C-Mate Although there is a pre-installed c++ sublime package which helps you writing c as well as c++ codes but the feature it lags is the code running in the terminal. People like writing code in sublime but when it comes to build and run the code then they need to go the directory containing the code file and then build and run it from there. It gets so annoying when we debug the code. No sublime package allows to run the code within the sublime. Here C-Mate makes the exception. Its build system...

Why to Use Ubuntu

Why Ubuntu Brief Intro to Ubuntu This section follows the legacy of article writting in which an intro to the subject is necessary. Ubuntu, as you all know, is an operating system under linux distribution. Ubuntu started as a command like operating system but now it offers the gui also to accompalish all the tasks. Ubuntu is open source software so it comes free. Using it is easy and it suits best for development process. The next section of this article describes the benefits come along with ubuntu. What comes in the box ? There are so much benefits which ubuntu brings. But listing all of them is not necessary. The following few things about ubuntu will be enough to persuade you to use it or atleast give it a try. Open Source : What it means is that it is totally free of cost. It also specifies that there are thousands of developers sitting who are willing to help you anytime you are stuck with your machine. New updates come regularly and bugs are tackled as soon as they are ...

Hybrid Apps : A New Prodigy

Hybrid Apps : The New Era What are hybrid apps ? Hybrid apps are the love children of web applications and java-based applications. Web applications are constructed using HTML, JavaScript, CSS, PHP and other web fundamental languages. These are run and operated on browsers so they are globally available on the web. On the other hand, java-based applications as the name suggest require java to construct them. These applications are stand-alone apps and may or may not require internet to work. Hybrid apps are the apps which are built using web development languages and are stand-alone applications which work like any other java based applications. If you are confused right now or curious to learn building these apps then keep reading because i am gonna list the features and the tools required to build your own simple app in less than 10 minutes. Features of Hybrid Apps Easy Languages As i told in the previous section, these apps are build using web development languages which a...

How to fix Ubuntu brightness problem

How to play with Ubuntu brightness Fix the fixed brightness If you have faced the problem of fixed brightness of ubuntu then you are at the right place because after searching so much, i have finally found the solutions. Yeah you are right, solutions..! There are so many causes to this problem thats why i have listed the possible solutions.You can try each and every solution and do a reboot after applying solution. Solutions Run this code in the terminal. xrandr --output LVDS1 --brightness 0.5 (It will not change the brightness but only the contrast. Also there is no need to reboot) Editing Grub Configuration Run this command sudo gedit /etc/default/grub . It will open the grub file. Change this code B_CMDLINE_LINUX_DEFAULT="quiet splash" to B_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" OR (try the first one then second if first didn't work) Change this code B_CMDLINE_LINUX_DEFAULT="quiet splash" to B_CMDLINE_LINUX_DEFAUL...

Cordova viewport problem solved

Include the viewport settings in Cordova If you are facing the auto zooming problem of cordova then go read on the full article. Cordova actually ignores the viewport meta tag which causes the pixel density problem. So we need to tell cordova that viewport tag is equally important as other tags. To do this, we need to add some code to a file which is specify in the article. Corodva messes with pixels If you are using the latest cordova version or creating the cordova app for latest android versions then you may have faced the zoom malfunctioning.I also faced it when creating an app. Many of you may have already searched the web and found the answer of changing the meta tag attributes to get it working. But adding target-densitydpi=medium-dpi does not solve the problem for latest android versions. It may work for gingerbread but not for kitkat and others. So the final solution which i found was one of the stackexchange answer but rarely found. So i am gonna two things here, i ...