≡ Menu

Binary tree is the data structure to maintain data into memory of program. There exists many data structures, but they are chosen for usage on the basis of time consumed in insert/search/delete operations performed on data structures.
[continue reading…]

Linux Sticky Bit Concept Explained with Examples

Think of a scenario where you create a Linux directory that can be used by all the users of the Linux system for creating files. Users can create, delete or rename files according to their convenience in this directory. For all those who think that why would such a directory be created? There exists, for example, /tmp directory in the Linux system that can be used by different Linux users to create temporary files.
[continue reading…]

Mind, Body and Heart – The Three Musketeers of Yourself

Most of us work very hard to take good care of others. You do a good job in knocking down your projects at work, you take care of your family well, you spend time with your friends, you help others who are in trouble, etc.

Have you ever stopped for a moment and gave some thought about how much time or effort you spend in taking care of yourself?

Mind, body and heart are three essential parts of yourself. Do you pay enough attention to all these three aspects of yourself? In my opinion, all these three should be well balanced, and taken care equally. If you’ve never consciously paid attention from this angle, following few points will get your thinking going in that direction.
[continue reading…]

Classes and objects are fundamental concepts of object oriented languages. To learn an object oriented language such as C++, you should have a sound knowledge of classes and objects.

This tutorial explains concept of object and classes using an hello world example program.

This is the 1st article in our on-going new series on C++ programming.
[continue reading…]

Linux commands wc and nl will help you to identify the number of words, lines, bytes, etc, in a file. This tutorial explains how to use these two very useful command with various examples.
[continue reading…]

How to Avoid Stack Smashing Attacks with GCC

Stack smashing is a fancy term used for stack buffer overflows. It refers to attacks that exploit bugs in code enabling buffer overflows. Earlier it was solely the responsibility of programmers/developers to make sure that there is no possibility of a buffer overflow in their code but with time compilers like gcc have got flags to make sure that buffer overflow problems are not exploited by crackers to damage a system or a program.
[continue reading…]

How to Encrypt and Decrypt a File using GnuPG in Linux

Using GnuPG gpg command you can generate public and private keys. In this tutorial, we will use the keys generated by gpg command to send and receive encrypted files, and digitally sign a file.
[continue reading…]

Introduction to Perl Testing Using Test::Simple and Prove

Testing is an important part of SDLC activity. By automating the testing process, you can save considerable amount of time spent on testing. There are several modules available in Perl to automate testing process.

In this introduction article, let us discuss about how to write basic and simple test cases using Test::Simple module in perl.
[continue reading…]