Saturday, November 22, 2014

What is Amazon Kindle ? what is the use of amazon kindle ?

first of all Amazon Kindle is e-book reader. It's a series of e-book readers designed and marketed by are different versions of Kindles based on that they have different features.Kindle Paperwhite is purposely designed as a dedicated e-reader. Indulge your love of reading without interruptions like email alerts and whatsapp notifications.

<click on this images to know more and buy it from Amazon with good discounts>

Features And Benefits 

  • You can borrow books from Amazon library (only kindle users can borrow)
  • Comfortable screen to read e books . Give same feeling as you are reading hard copy.
  • You can store as many ebooks as you want on cloud
  • Thinner than a pencil, lighter than a paperback—and over 30% lighter than iPad mini. Comfortably hold Kindle Paperwhite in one hand for long reading sessions.
  • Battery lasts weeks, not hours
  • Next-generation built-in light, read without eye strain 
  • The new Kindle Paperwhite's processor is 25% faster. Books open and pages turn faster for a seamless experience. Kindle Paperwhite also uses the latest in capacitive touch technology, responding more accurately to the slightest touches. 
 After mobile and tabulates this is the one of the best product , i came across . Worth to buy it . 

Friday, November 7, 2014

WhatsApp new update

WhatsApp latest update Version 2.11.432 is available now. They add some features as shown below

As Shown they added blue ticks , which means recipient has read your message .


This feature is being gradually rolled out on Android and iOS across the world, including in India. According to WhatsApp, this feature is available for iOS, Android, Windows, BlackBerry, BlackBerry 10 and Symbian devices.

Sunday, October 26, 2014

Inbox by Gmail

What is "Inbox by Gmail"?

It is a new email app by Google. It is available for android and iOS and also for web. App is available to a limited user group only, and will be expanding its user pool via an invite system similar to the one that Google used for Gmail. You can also email Google at to request access, if you don’t like your chances of getting an invite from a friend. Now watch a video .


  How does it work?

Inbox, built by the Gmail team, keeps things organized and helps you get  back to what matters.

BUNDLES - Similar messages are bundled together so you can deal with them all at once. And get rid of them with one tap.

•  HIGHLIGHTS - Get the most important information without even opening  the message. Check-in for flights, see shipping information for  purchases, and view photos from friends right up front.

REMINDERS: More than mail, you can add Reminders so your inbox contains all the things you need to get back to.

•  SNOOZE: Snooze emails and Reminders to come back when you are ready to  deal with them: next week, when you get home, or whenever you choose.

•  SEARCH: Inbox helps you find exactly what you’re looking for— from your  upcoming flight to a friend's address— without having to dig through  messages.

WORKS WITH GMAIL: Inbox is built by the Gmail team,  so all your messages from Gmail are here, along with the reliability and  spam protection of Gmail. All of your messages are still in Gmail and  always will be.

<content from Quora >

Wednesday, September 10, 2014

Variable Argument Lists in C and C++

If you want to use a function which can take variable number of arguments, you can use variable argument list. For example you want to design a function which accepts any number of integers and returns the average of those integers.You don't know the number of arguments will be passed to the function. There are some library functions also which take variable number of arguments for example printf().

first of all you have to include  <stdarg.h> header file.
Then you have to define va_list type variable which will store the arguments. 

C language
C language
Let's try to understand with example:

techshow irshad(char *arr, ...)
int num;
va_list ptr; /* create a new list ptr */

va_start(ptr,arr); /* attach ptr with arr */
printf("\n num=%d",arr); /* it will print 1st argument */

num = va_arg(ptr,int); /* fetch 2nd argument */
printf("\n num=%d",num);

num = va_arg(ptr,int); /* fetch 3rd argument */
printf("\n num=%d",num);

va_end ( arguments ); /* Cleans up the list */
int main()

printf("\n variable argument:");
return 0;

/* output */

variable argument:

You may also like :How to check whether particular bit is on or off in C language?  

Tuesday, September 9, 2014

How to fix: -Grub rescue (simplest solution)

Just before few days ago, my laptop was fallen down. After when I powered on it , it was showing error, and not allow to boot me any of my OS (windows and ubuntu 12.10 I had ).

Error was like this :
                  error:attempt to read or write outside of disk 'hd0'.
                  grub rescue>

I first started searching on google (using another laptop). Got some basic ideas like 
> it's problem with hard disk
> Either hard disk is damaged or corrupted.

First thing, i was looking for my data . I want to backup  my data anyway. 
 > I came to know that we can do it by using : "Live Ubuntu".

I took bootable ubuntu pendrive from friend and started. but it was not showing my hard disk. I tried 2-3 times but same problem . Then I find one option while booting to repair hard disk problem . After that I got all my data , i was looking for.

But still it was not able to boot any of my OS , but now I had no fear to format the disk. I started formatting using Ubuntu but it's not working. Then I tried with windows7 .  I have to format my disk  2-3 times - first C: drive only than all drive but at last have to delete all my partitions. 

Now it is working  fine.


Thursday, July 31, 2014

How to check whether particular bit is on or off in C language?

C language
C language
To check for particular bit , whether it is on or off we use "&" (AND) operator. Go through simple example given below,

Let consider 8-bit binary number,

Binary(8 bit) = 0000 1101
suppose we want check 3rd bit is on or off(on=1 & off=0), just like this,

0000 1100 (Decimal=13)
0000 0100 (Decimal=4,we are checking 3rd bit so it is 1)
0000 0100 (Decimal=4)
If we got some value then checking bit is on,otherwise off.
In C language,

print("The third bit is on");
print("The third bit is off");

You may also like this post : Dangling Pointer

Wednesday, April 9, 2014

Special characters in C

//Special characters:

C language
C language


'\a' // alert (bell) character
'\n' // newline character
'\t' // tab character (left justifies text)
'\v' // vertical tab
'\f' // new page (formfeed)
'\r' // carriage return
'\b' // backspace character
'\0' // null character. Usually put at end of strings in C lang. 
     //   hello\n\0. \0 used by convention to mark end of string. 
'\\' // backslash
'\?' // question mark
'\'' // single quote
'\"' // double quote
'\xhh' // hexadecimal number. Example: '\xb' = vertical tab character
'\ooo' // octal number. Example: '\013' = vertical tab character
 You may also like to read Dangling Pointer Problem  

Thursday, January 23, 2014

Pointers: Null Pointer.

C language
C language
Hope you have read the previous post on Dangling pointer ( if not click here.). Here I am going to introduce one more pointers: Null Pointer.

Null Pointer:

The simple meaning of null pointer is, the pointer which is pointing to null value i.e we can say pointer which is pointing to nothing. Null pointer identically points to the base address of memory segment.
Examples of NULL pointer:

1. int *ptr=(char *)0;
2. float *ptr=(float *)0;
3. char *ptr=(char *)0;
4. double *ptr=(double *)0;
5. char *ptr=’\0’;
6. int *ptr=NULL;

We cannot copy any thing in the NULL pointer.


#include <string.h>
int main(){

char *ptr=NULL;

return 0;

This program will give output : null (or segment fault).


  • At the end of the linked list, last node's pointer is always null. so that the linked list terminates there otherwise it goes to infinite if last pointer points to garbage values.
You can  think more applications and comment here.

Monday, January 20, 2014

How to remove hidden virus from pen drive.

(Note: I got this trick by email, remove important data before doing this.)

If your Pen Drive is infected with any of the following viruses:

* Autorun.inf
* new folder.exe
* Iexplorer.vbs
* Bha.vbs
* nfo.exe
* New_Folder.exe
* ravmon.exe
* RVHost.exe or any other files with extension.

Actually this viruses are hidden and can't be seen even after you enable show hidden folders.
Following simple dos command will change the attributes of these files ,there after you can remove it
by pressing delete key.

Follow these steps:
Step1.:Type cmd in Run
Step2.: Switch to the drive on which pen drive is connected(like C:\> h: enter)
Step3.: type exactly as
attrib -s -h *.* /s /d
and hit enter(don't forget spaces).

Now you can see hidden virus files and
you can delete them.

You may also like :=> problem: All exe files are opening in vlc

Sunday, January 19, 2014

C Pointers - Dangling Pointer Problem

I found that many of under graduate students facing difficulties with pointers. In interviews generally the most of questions come from Pointers Only. Don't afraid of it . Make the basics clear by reading ANSI C or LET US C Or Try from some good video lectures. Here I am introducing some important aspects of pointers.

C pointers

Dangling Pointer Problem:

If any pointer is pointing to the memory address of a variable , but after sometime that variable is deleted from the memory. Now the pointer is still there and pointing to that particular location. Such pointer is known as dangling pointer and this problem is called dangling pointer problem.

So initially,

After the deletion of variable,
So now ptr is now become dangling pointer which is pointing to some garbage value.

Consider the following program:


int *foo();
void main(){

int *ptr;

int *foo(){

int x=25;

return &x;

Output of this programme:Garbage value
Here, Initially the pointer ptr is pointing the variable X of the function foo. The scope of X is only inside the function. So after returning address of X variable X became dead and pointer is still pointing ptr is still pointing to that location. 

The solution of this problem is , Make the variable X static so that it will not become dead or declare X as global variable then no such problem will arise.

You may Also like- Why C treats array parameters as pointers?

Tuesday, January 14, 2014

Basics Of Cloud Computing.

Yahh!! Each and every technical people is talking about cloud computing, but you ask them what is actually cloud computing? then 70% of them can't even give some basic definitions. So lets try.

Cloud Computing simply means Internet computing. The internet is commonly visualized as clouds, hence the cloud computing for computation done through internet.

Cloud Computing
Cloud Computing

What is the cloud?

The cloud is where you put all your data, all your files and even your software
so you can access it all from any computer or device, anywhere, anytime. 


  • Cloud computing is cost effective. Here, cost is greatly reduced as initial expense and recurring expenses are much lower than the traditional computing.
  •  Maintenance cost is reduced as a third party maintains everything from running the cloud to storing data.
  • Cloud is characterized by features such as platform, location and device independence, which makes it easily adoptable for all size of business.
  • Another most important characteristic of cloud is scalability, which is achieved through server visualization.

Service Models:

Once a cloud is established, how its cloud computing services are deployed in terms of business model can differ depending on their requirement. The primarily service model being deployed are commonly known as:

Software as a Service:
is a software model. It is provided to client through an online service. Clint  does not have to install or maintain SaaS application. Software is running on a provider’s cloud infrastructure and a user can access it via web browser. With SaaS, vendor makes the required software available to a business on subscription basis, and charges are based on the product usage. SaaS model can save the companies   expenses on buying hardware and software and it removes the maintenance costs.
·     Platform as a Service: 
PaaS is a platform and tools  provided to client to develop applications in a cloud environment.  The provider is responsible for maintenance and control of the underlying cloud infrastructure including network, servers, and operating systems. PaaS services provide a great deal of flexibility allowing companies to build PaaS environments on demand with no capital expenditures.

Infrastructure as a Service:
With IaaS, a company can rent fundamental computing resources for deploying and running applications or storing data. It enables companies to deliver applications more efficiently by removing the complexities involved with managing their own infrastructure. IaaS enables fast deployment of applications, and improves the ability of IT services by instantly adding computing processing power and storage capacity when needed.

Isn’t cloud computing just the internet?

You use the internet to connect your device to the cloud, but the internet is just the connection – the cloud is where your data lives.

Isn’t it possible to lose your data in the cloud?

Your data is actually much safer in the cloud than on your computer. Your computer can be stolen or corrupted quite easily, but cloud companies spend millions on systems and experts to protect your data.

You may also like to Read: Basics Of Cryptography.

Friday, January 10, 2014

Difference between “int main()” and “int main(void)” in C/C++?

Generally we don't concern anything above main() or main(void). both look similar to us but there is a difference between both and it is useful too.
C language

Consider the following two definitions of main().
int main()
   /*  */
   return 0;
int main(void)
   /*  */
   return 0;
What is the difference?

In C++, there is no difference, both are same.

Both definitions work in C also, but the second definition with void is considered technically better as it clearly specifies that main can only be called without any parameter.

In C, if a function signature doesn’t specify any argument, it means that the function can be called with any number of parameters or without any parameters. For example, try to compile and run following two C programs (remember to save your files as .c). Note the difference between two signatures of fun().
// Program 1 (Compiles and runs fine in C, but not in C++)
void fun() {  }
int main(void)
    fun(10, "GfG", "GQ");
    return 0;

The above program compiles and runs fine , but the following program fails in compilation
// Program 2 (Fails in compilation in both C and C++)
void fun(void) {  }
int main(void)
    fun(10, "GfG", "GQ");
    return 0;
Unlike C, in C++, both of the above programs fails in compilation. In C++, both fun() and fun(void) are same.

This is important to know about scanf()- SCANF() - Some important features.

Saturday, January 4, 2014

Algorithms Types Based On Their Working Nature.

Mainly there are three types based on the working nature of the Algorithms. Every student who learns algorithm should be familiar with the taxonomy. The types are :
  1. Las Vegas Algorithms
  2. Randomized Algorithms
  3. Monte Carlo Algorithms 

1. Las Vegas Algorithms:
->An algorithm whose  running time may change but always gives correct output is called as Las Vegas Algorithm.
for example : Randomized Quicksort.

2. Randomized Algorithms:

->which employs a degree of randomness. We can characterised acceptable algorithm based on bound the probability that any "bad" thing may happen. So running time and output is random.

3, Monte Carlo Algorithms:

->Actually it's a type of randomized algorithm whose running time can be determined but output may be incorrect in certain probabilities.