Automatic scp command

Secure Copy or SCP is a means of securely transferring computer files between a local and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol. When we use this command, we must prompt password to copy file from other host. We can use upload public key for

Ubuntu install Java Sun Package

Sun Java packages have been dropped from Ubuntu 10.04 LTS from the Multiverse section of Ubuntu archive. Ubuntu team is encouraging users to use OpenJDK instead of Sun JDK/JRE but still if you want to install Sun JDK on your Ubuntu then here is the solution for the same. This is instruction to install Java

Qt Loop Over Widget

I create a program with ten QLabel by Qt Nokia. I want to loop over that QLabel widget and change property over that widget. I can use qFindChild and findChildren function to loop over widget.  For example, I have ten QLabel with name label_1, label_2, … , label_10. We can loop over that that widget

C/C++ Get The Program Execution Time

When we crate a program, we can get time execution from our program to know how long our program running. This is a code how to get time execution from our program with C/C++. Create a main.c file and copy this code to that file. #include <time.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char