October 16, 2015

How to use Aliases in Linux | Superuse your Terminal

17:48 Posted by DurgaSwaroop , , , , , , No comments
Well, let’s face it, Linux is cool. Using Linux makes you look cool. But, for new users, may be not so much. Typing those long  commands can be a little intimidating and may even scare them off.
Wouldn’t it be awesome if there was a way, so that you won’t have to type long commands? Or even better, to create your own new commands by which you can do a lot of stuff?
You are in luck, because Aliases help you with that and much more.

What are Aliases anyway? 
Alias, as the name suggests is an alternate form of a previously existing command(s). So basically you are creating your own custom command with which you can do a lot of functions.
Enough with the definitions, let’s see an example.
Say you want to go to the Desktop folder. You would have to do something like this,

 [dsp@freblogg]$:~ cd /home/dsp/Desktop
How about instead of  typing all that, you just say desk like this and it takes you to Desktop?

August 21, 2015

TOP 4 Apps for taking Better Selfies | FreBlogg

16:16 Posted by DurgaSwaroop No comments
"But first, Let me take a selfie" is the new jargon that dominates all events. Even though the device that can get you that perfect selfie is in your pocket or your purse maybe, taking that picture-perfect selfie can be quite a task. The internet today, is full of apps to help you put your best face forward; here we have narrowed it down to the four apps that help you make the cut! 

May 12, 2015

Tesla Roadster - The All Electric Beast

18:30 Posted by DurgaSwaroop , , , No comments
Tesla roadster is the first all-electric sports car to hit the production line by the electric vehicle giant Tesla Motors, the brainchild of Elon Musk. It was officially revealed on July 19th 2006 in San Francisco International Auto Show. 

    The Roadster was in production from 2008 to 2012 during which a total of 2,400 were sold across 31 countries. The sports variant started rolling out in 2010. The roadster being the top-notch electric vehicle also gave a neck-to-neck battle to fuel-operated cars. It holds the World Distance Record of travelling 501 kilometer at an average speed of 40 kmph during the Global Green Challenge in Australia. Also, Tesla Roadster became the first electric vehicle to win the Monte Carlo Alternative Energy Rally and also the first to win any Federation Internationale de l'Automobile sanctioned championship which beat 96 other competitors.

April 27, 2015

How Long Will It Take To Be A Millionaire | This Calculator Shows You How

12:00 Posted by DurgaSwaroop , No comments
Let's face it every body wants to be a millionaire. I mean they have made a successful show on that, "Who wants to be a Millionaire?". So, Do you want to know how to be a millionaire? This calculator will show you how!
It tells you how many years it's gonna take for you if you consistently save up some money every month.
Who wants to be a Millionaire | FreBlogg

March 29, 2015

March 23, 2015

New Sports Bike in town | KTM RC 390

08:30 Posted by DurgaSwaroop , , No comments
  If you are a Motor Bike enthusiast, then you most likely would have heard about the Austrian manufacturer KTM. You might have even heard about the Duke 390 which was released a couple of years ago. A new Sports bike is coming up in the same lineup. So, here is the everything you need to know about the all new supersport bike from KTM, the RC 390.

KTM RC 390 | Swaroop's Blog

February 26, 2015

YouTube's Most Watched Videos | TOP 10 | UPDATED

03:21 Posted by DurgaSwaroop , No comments
Psy Gentleman | Swaroop's BlogEver 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 it has got. Many of you might be doing the same thing. And, quite recently Katy Perry's Dark Horse and Taylor Swift's Blank Space has crossed the 1 Billion mark becoming the third and fourth videos respectively to achieve this. And, there have been many new changes in the list. So, its time for another snapshot of the current top 10 videos of YouTube.
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

06:17 Posted by DurgaSwaroop No comments
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

05:25 Posted by DurgaSwaroop No comments
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 - Swaroop's Blog
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()

19:28 Posted by DurgaSwaroop No comments
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,