Tuesday 10 September 2013

Need of Microsoft Visual C++ programs that get installed automatically...

Never thought what the hell are these Visual C++ programs that come into your installed programs list when other applications are installed....??Whatever may be your answer,here is why they are being installed...I know the answer is pretty simple and even if you don't know also, you can just guess the reason. Anyways...here is why they are installed......

    Those are basically installers for libraries that other apps need and were installed because some of the apps you have were built with Visual C++.If you remove them, some of your apps may stop working and will need to be reinstalled or repaired. I wouldn't advise removing them, unless you are willing to go through the reinstall / repair route. Windows 7 will only install updates to the original packages, not the packages themselves.

Sunday 8 September 2013

Exchange files between PC and Bluestacks....

As you know,Bluestacks lets you run Android apps in your PCs........................

Sending files through Bluestacks....

What you need to do is just drag the files that you wanted to send into Bluestacks....
Dats it....:)


Exchange files between PC and Bluestacks....


I guess this is the most common problem any user that uses Bluestacks in your PC/Laptop will be facing with..............

Actually, I have been searching for a solution to this problem as to save some files that have been sent through Whatsapp or some App like it....where I got a solution and now I am sharing you with.....

Firstly,Bluestacks creates a virtual SD Card in your PC during its installation and uses it for memory requirements...
You can share files in your PC from Bluestacks by dropping your files into a folder....

C:\ProgramData\BlueStacks\UserData\SharedFolder
                                         (in case,if you installed Bluestacks in your C:/ drive)

For Windows 7 Users:
If you don't find the folder "ProgramData"...
Go to Organize on the top left corner of your Explorer window

Click on "Folder and Search Options"
Go to VIEW tab
Search for "Show hidden files,folders and drives" option and select it
Dats it...Now,u'll b able to find the folder "ProgramData"

For Windows 8 Users:
Go to VIEW option on the top 
Then mark/select the option "Show Hidden Files"...
Dats it....Now,u'll b able to find the folder "ProgramData"

If you want to access the files in Bluestacks, install a FileManager App like Astro File Manager in your Bluestacks and then in that,you can find various files that are present in your virtual SD Card of Bluestacks.....

Now,in order to get access of those files that are being received/sent from various Apps,you need to copy the files in that specific folder(accesed through file manager app) and paste them in the folder:

/mnt/sdcard/bstfolder/BstSharedFolder/      (in Bluestacks)

This is the same folder that was specified before....(in PC)
C:\ProgramData\BlueStacks\UserData\SharedFolder

Hope this helps you alot....:)

Dats it for now....bbye :) :)

Wednesday 4 September 2013

C program without main function...

Code:
#include<stdio.h>
#define decode(s,t,u,m,p,e,d)m##s##u##t
#define mepco decode(a,n,i,m,a,t,e)
int mepco()
{
    printf("hello");
}


Surprisingly,this code works succesfully....:D

Letz see how the hell does this code work....:)

Firstly,## is known as token merging operator.
and #define is a macro which replaces a word with another word that is specified....

So,in our code....
decode (s,t,u,m,p,e,d)m##s##u##t..........4,1,3,2 characters of the given string
similarly mepco decode (a,n,i,m,a,t,e) => m,a,i,n

Thus, int mepco() finally becomes int main() during the pre-processing stage itself and hence the code works....:) 

LOL!!

Sunday 1 September 2013

3 Ants on a triangle moving towards each other


There are three ants on a triangle, one at each corner. at a given moment in time, they all set off for a different corner at random. what is the probability that they don’t collide?

Solution

Consider the triangle ABC. We assume that the ants move towards different corners along the edges of the triangle.
Total no. of movements: 8 
A->B, B->C, C->A 
A->B, B->A, C->A
A->B, B->A, C->B 
A->B, B->C, C->B 
A->C, B->C, C->A 
A->C, B->A, C->A 
A->C, B->A, C->B 
A->C, B->C, C->B

Non-colliding movements: 2 
A->B, B->C, C->A 
A->C, B->A, C->B
(i.e. the all ants move either in the clockwise or anti-clockwise direction at the same time)
P(not colliding) = 2/8 = 1/4 = 0.25

Join me on Facebook