Skip to main content

Posts

Showing posts with the label ubuntu

Learn Git & Github - 4

Lesson 1 Lesson 2 Lesson 3 Lesson 4 Git Tree Navigation And Management: Lesson-4 Topics How to change remote repository Commit navigation in git How to jump to a specific commit How to create a branch from a speicific commit How to edit a specific commit How to merge commits How to delete commits How to pick/move commits from one branch to other Changing Remote Repository In the previous lesson , we learned how to make commits. If totally followed the lesson then i am sure you world have made some commits also. Now change your working directory to your project directory. Check you are on master and Use git pull origin master to update your master. Since Now, we were syncing our local repository with our forked repository. But what we need is to keep updated with the original project repository. So we need to add the url of original project as our main remote repository. We can do so by typing git remote add main https:...

Learn Git & Github - 3

Lesson 1 Lesson 2 Lesson 3 Lesson 4 Git Commands: Lesson-3 Topics What we learned in previous lesson Git Terminology Git Commands for project development What we learned in Previous Lesson In the previous lesson , we learned about github and how can we use it along with git to create an open source project(A project which is free to use and distribute). We set up our project on github and cloned it in our machine to modify it locally(On our machine only). Now either you have cloned fork of an existing project or your own project, the development process is nearly the same. I'll point out the difference wherever applicable. Git Terminology In first lesson, we talked about 3 most occuring terms of git which are branch, commit and head. Now Lets talk about some more terms which are associated with git Index : Index is the current state of the project for git. If you have changed some files then you will have to add them to git index so that git can tr...

Learn Git & Github - 2

Lesson 1 Lesson 2 Lesson 3 Lesson 4 Learn Github: Lesson-2 Topics Difference between Git and Github Geting started with github Work on existing github project Creating a new project on github Difference between git and github In the first lesson we learned how git works, Now we will see what is github. People often get confused between git and github. These two are entirely different things providing the same functionality. The major difference between git and github is that git works on your machine and github is a cloud service. You can see github as a cloud version of github where an entire team can work on a project. So there is not a point of choosing either one of them. You use git only if you have a project on which you are working alone and then you use github along with git if you are handling a team project. Its not mandatory to have a team to use github. If you want to share your code to people then you can push/upload it to gi...

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

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