Software Freedom Day Eve @Kathmandu University

Software Freedom Day Eve @Kathmandu University

Lets start this article with the saying of Richard M. Stallman, software freedom activist and computer programmer “Control over the use of one’s ideas really constitutes control over other people’s lives; and it is usually used to make their lives more difficult.” Every year open and free software lover celebrate  Software Freedom Day (SFD) on third saturday of september and in the same way third friday as Software Freedom Eve. In Kathmandu University, we have Kathmandu…

Read full Article Read More

How to simulate on-screen type like you see in movies?

How to simulate on-screen type like you see in movies?

While you have seen movie in which there is on-screen typing. Well, you can do same simply using “pv” command. First install pv command by simply copying or typing command below: sudo apt-get install pv Then do the following : echo “This is the checking of on-screen typing. Yes i can see on-screen typing using pv command” | pv -qL 10 Enjoy Linux

How to check the support status of linux destro?

How to check the support status of linux destro?

This is short article to check the support status of your version of linux. Here I show you in my system. I am using Ubuntu 14.04 LTS, Trusty Tahr. Copy or type the following command to check yours. ubuntu-support-status Result is: You have 36 packages (1.9%) supported until May 2017 (3y) You have 26 packages (1.4%) supported until February 2015 (9m) You have 5 packages (0.3%) supported until June 2016 (9m) You have 1779 packages…

Read full Article Read More

Unable to lock the administration directory (/var/lib/dpkg/), is another process using it

Unable to lock the administration directory (/var/lib/dpkg/), is another process using it

Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable) Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? Have you ever faced this problem while trying to install any program in linux? Today, while I was installing “pv” command then I came across this problem. This problem may arises when other apt-get  may have been running in background. This can be resolved simply by rebooting the system or by killing the…

Read full Article Read More

Difference Between ALTER and UPDATE in database ?

Difference Between ALTER and UPDATE in database ?

ALTER is a DDL (Data Definition Language) statement. Whereas UPDATE is a DML (Data Manipulation Language) statement. ALTER is used to update the structure of the table (add/remove field/index etc). Whereas UPDATE is used to update data. Example of ALTER: ALTER TABLE Persons ADD PRIMARY KEY (P_Id) Example of UPDATE: UPDATE table_name SET column1=value1,column2=value2,… WHERE some_column=some_value;

Installing and Running mysql in Linux/Ubuntu

Installing and Running mysql in Linux/Ubuntu

This is short article to give basic instruction how to install mysql in Linux from terminal. First open terminal and use this command: sudo apt-get install mysql-server During the installation process you will be prompt to install root password. After the installation process is completed you can check whether mysql server is running or not by using following command. sudo netstat -tap | grep mysql When you run the above command you may see the…

Read full Article Read More

Implementing Polymorphism in C++

Implementing Polymorphism in C++

Polymorphism means one name different forms. Polymorphism occurs in program when we inherit  base class to derived class having similar function. When base class has same function name as in derived class than the program return the value in base class because of early binding or static binding. In early binding function in the base class is read by compiler and its returns the same value during execution. #include <iostream> using namespace std; class Pizza{…

Read full Article Read More