February 26, 2015

YouTube's Most Watched Videos | TOP 10

Ever since Psy's Gangnam Style has crossed 2 Billion views, the only reason i go to that video is to check the number of views. Many of you might be doing the same thing. And, quite recently psy's other video, Gentleman has crossed the 800 Million mark, so, its time for another snapshot of the current top 10 videos of YouTube. The list is really important and shed light on the interest patterns of the people and what kind of things attract us the most.
To look at the list from last year, here.

Not surprisingly all of them are Music Videos, because we all love music, except for the Charlie video which we absolutely love and adore.
So, Let's see how each of these videos is doing starting with #1, Gangnam Style.

February 16, 2015

C Program for decrypting Caesar's Cipher

Caesar's cipher is one of the most popular encryption techniques in Cryptography. It is also referred to as Caesar's shift cipher or simply Shifting cipher.  It is said to be widely used in private communications of Julius Caesar. The encryption of the plain text is done by shifting the letters by a previously agreed number. So, after a shift of 2, 'a' becomes 'c', 'b' becomes 'd' and so on..

This article will show you a program that can be used to decrypt the cipher text encrypted using this method. To decrypt, you need to know the key which is the shift used to encrypt. Using the key we'll just do the reverse of encryption to get the Plain text. And, we'll program all that.

For example, the following is a decryption with a left shift 3.
The following is the function implemented in C Programming for the decrytpion.

February 01, 2015

C Program that prints its own Source Code | C Programming Quine

Quine in programming terms is a program which outputs its own Source code. These are self-replicating programs and are very popular in the programming community. So, in this article we will see how we can achieve this.
           This problem may sound complex, but this is actually quite easy and simple. So, the way we proceed with this is by opening the source file from the program and print out each and every character.
Sounds simple, doesn't it? Lets code it.
Things you need to know for this : Usage of File Pointers
C Programming
Procedure: Lets break down the approach step by step
  1. Open the current file (fopen()) using a file pointer (in Read Mode)
  2. Read characters one after the other and print them until you reach the end of the file (EOF)
  3. Close the file
To open the file we'll use the fopen() function which takes in two parameters, the location of the file and mode of opening (Read/Write). Fortunately for us, there is a macro in C, to give us file's location, called  _FILE_  macro. Using this we can get the location/path of the current file.

January 13, 2015

Things you don't know about scanf()

Scanf() is an inbuilt function in the C Standard libraries. This is used to get input from the user and store that in a variable.
scanf provides inbuilt mechanisms to tackle with de-limiters which many people are not aware of. So, today we'll show you how you can limit your input till a certain symbol.

Consider we have a variable declared as
char a[20];
Reading a String:
To read a string usually we use '%S'. Instead of that we can also use the following way to get the value till you encounter '\n' and discard it.
This only stores the value till '\n' is encountered and discards it.
To read till a Comma:
Just like the above scenario we will use comma (,) as our delimiter. That would be,

August 04, 2014

The Earth is Flat | Flat Earth Society

The earth as we know is flat! All the scientists have conspired to keep this lie from the people of the world. The Modern Astronomy Is inconsistent and the Doctrine of Spherical earth is nothing but an elaborate hoax.
At-least, that is what the people of this "Flat earth society", believe so.
The Flat Earth Society (or) The International Flat Earth Research Society is an organization which was established with an aim to expand the idea that Earth is FLAT. As, crazy as this may seem to us, this organization has been around for 200 years and is very active to this day !

Flat Earth Society Logo
How did it all start?
The idea of Flat earth is something that has been there from many centuries. It was very prevalent and was the accepted idea of the society before 4th