How to Implement Periodic Timer in Linux

In this article we’ll see how to implement periodic timer in Linux using C programming language. We’ll first create a timer library that will be used to create one or more timers. Timers can be periodic or single shot. You’ll be able to use this timer library in your own program to create one or multiple timers. … Continue reading “How to Implement Periodic Timer in Linux”

Loop in Linked List, C Program to Detect and Remove

What is loop in linked list? Loop in linked list means you can traverse the list endlessly. If you traverse a linked list with loop, you will hit all or some of the nodes again and again. We’ll see how this is possible. Consider the normal (without loop) linked list above. Head points to the … Continue reading “Loop in Linked List, C Program to Detect and Remove”

C Program to Sort Linked List without Allocating Extra Memory

We’ll first create a linked list which is not sorted, then we’ll re-arrange the list such that the list becomes sorted. Logic is simple, we’ll iterate the list for all nodes, in every iteration we’ll take the first node out of the original list and insert that node into a new list. At any point … Continue reading “C Program to Sort Linked List without Allocating Extra Memory”

How to Protect Android Smartphone from being Stolen

Today’s smartphones are not used only to make voice calls and exchanging SMS(es), they are full-fledged computers. Today we use smartphone for various other purposes like email communication, social networking, banking, entertainment and many more. Most of the time you remain logged-in in various accounts like email, Skype, Facebook etc. Loosing your phone can become a … Continue reading “How to Protect Android Smartphone from being Stolen”

C Program to Convert Binary Number to Decimal

Binary number system is 2-based which means at most two symbols, 0 (zero) and 1 (one), can be used to represent a binary number. Example of binary number is 110110011, sometimes binary numbers are written as 1101100112, where 2 is represented as base of the number system. Binary number system is the basis of all computer and digital systems. … Continue reading “C Program to Convert Binary Number to Decimal”

What is Secure Copy (SCP)?

Secure Copy (SCP) is a mechanism that allows us to transfer files (or folder) between a local and a remote host or between two remote hosts. It refers to two things, 1) Secure Copy Protocol, 2) Secure Copy (scp) Command. Secure Copy (SCP) is an application level networking protocol that supports file transfer in secure … Continue reading “What is Secure Copy (SCP)?”

Compilation Error, Linking Error and Run Time Error

All these types of errors refer to different stages of program’s lifetime. To understand these errors, we have to understand the stages of a program’s lifetime. Generally the programs are written in high level programming languages like C or Fotran which is referred as source codes. Source codes are human readable text that are written in English … Continue reading “Compilation Error, Linking Error and Run Time Error”

Difference between Compiler and Interpreter

Compilers and interpreters often deal with how program codes are executed. Program codes are human readable texts written in high level programming languages, such as C or Fortran, to accomplish certain tasks. One thing you should know that program codes can not be executed on its own. Either, they needs to be converted into executable, the machine language … Continue reading “Difference between Compiler and Interpreter”

How to Disable App Notification on Android Phone

Many Android Apps displays notifications in the notification board of the phone. Like for email app displays notification if any new mail arrives. Most of the Apps display notification if any new update is available for that particular App. Sometime some Apps display more notifications than you want, particularly the shopping apps, they display lot … Continue reading “How to Disable App Notification on Android Phone”

How to Remove Password from PDF File

Many times we receive password protected PDF files, that means we need to provide password every time in order to view the document. When we get bank account or credit card statement or income tax return statement in form of PDF file over email, the files are usually password protected. This is in general good thing … Continue reading “How to Remove Password from PDF File”