I am not a user of facebook, I did not registered and even then I got two emails from facebook - first one being "confirm for the activation of facebook account" and then later "welcome to facebook".
I was worried whether some body hacked into my Google account. I logged into facebook after resetting the password of this facebook account. I noticed a profile with a picture which was thankfully not mine!
I deactivated the account.
Later on, I read a news item that facebook is accused of creating fake accounts of non existent users. Facebook if this is true; please listen me ; this is not a good practice. Please, Mr Zuckerberg understand the cyber law and why don't you study a course in netiquettes (I am sure it will be available online).
This act can panic any user and some people can get heart attack also !
Everything I think, and want to share
This blog is for posts about anything i think about any issue. might be technology related, usability, devotional if any :)
Thursday, October 27, 2011
Tuesday, October 18, 2011
why MP exists in India?
can somebody explain the use of MP/MLAs ? what they do - why we waste money on their election. the whole system should be crapped. seriously. why we don't have direct president/pm elections. they can choose govt from good people etc. elections just to see who got more seats is big waste of money. people of India need to think out of box.
Friday, September 16, 2011
what you should ask the girl before saying yes"
I have just made a list of questions you should ask a girl/boy before saying yes for marriage. its absurd and its your wish !
1. Do u like to visit some place on weekends? how often and why?
2. Do u like to visit cinemas on weekends? how often and why?
3. Do u like to do window shopping? how often and why?
4. Do u like to pray god? how often and WHY and how loud?
5. How often u have clash with parents and siblings?
6. Judge dressing sense; if you don't like, never marry? or you should have confidence that I will change. My Warning is that it is very difficult to change someone's dressing sense from within. you can force her but can't change his/her attitude.
7. I will take decision after meeting at least 5 time and at max 10 time, if i could not take decision its NO.
8. I won't fall in love with u as soon as marriage is fixed.
9. I may get attracted to other persons. But I will be fair and wont cheat and will tell you.
10. Describe approaches towards job.
11. Take comparison with u and decide.
12. How he/she treats the poor people, shopkeepers etc. so you must need to do shopping with her (in mall, and roadside !)
13. Try to find out how insecure he/she feels / or how much proud he/she has
14. How much she praises her father and in what style
15. Will she give respect to your parents and why?
16. Ask him/her some imaginary family problem and take her views to solve the same.
1. Do u like to visit some place on weekends? how often and why?
2. Do u like to visit cinemas on weekends? how often and why?
3. Do u like to do window shopping? how often and why?
4. Do u like to pray god? how often and WHY and how loud?
5. How often u have clash with parents and siblings?
6. Judge dressing sense; if you don't like, never marry? or you should have confidence that I will change. My Warning is that it is very difficult to change someone's dressing sense from within. you can force her but can't change his/her attitude.
7. I will take decision after meeting at least 5 time and at max 10 time, if i could not take decision its NO.
8. I won't fall in love with u as soon as marriage is fixed.
9. I may get attracted to other persons. But I will be fair and wont cheat and will tell you.
10. Describe approaches towards job.
11. Take comparison with u and decide.
12. How he/she treats the poor people, shopkeepers etc. so you must need to do shopping with her (in mall, and roadside !)
13. Try to find out how insecure he/she feels / or how much proud he/she has
14. How much she praises her father and in what style
15. Will she give respect to your parents and why?
16. Ask him/her some imaginary family problem and take her views to solve the same.
Friday, July 1, 2011
Monday, April 4, 2011
won the world cup !
i was just watching TV and live India raised a brilliant point that after winning the world cup cricket Indian people came on roads but after cwg, 2g and other scams Indian people never came on roads to complain.
anyways i was thinking that now Indian media should change itself a bit and should not make a cry when Indian team looses because winning and loosing is integral part of game. of course they should just give a positive report.
of course i expect (and should) govt, people and media will concentrate on some other games also.
anyways i was thinking that now Indian media should change itself a bit and should not make a cry when Indian team looses because winning and loosing is integral part of game. of course they should just give a positive report.
of course i expect (and should) govt, people and media will concentrate on some other games also.
Tuesday, March 1, 2011
my simple wishlist
sports
1. would like to see hockey world cup in a format of football world cup
i.e. group of 4, two team from each group qualify to knock out
2. would like to see cricket world cup in a format of hockey world cup i.e. two groups of six team and top two teams qualify for semifinals
3. would like to see hockey champions trophy also in cricket i.e. only top six teams qualify for round robin league tournament
others
4. i don't know and i will post somewhere else also - why manufacturers like (toothpaste, toothbrush, anything packaged in steel box) don't recollect the empty or used things and recycle them to sell again to reduce the prices etc.
1. would like to see hockey world cup in a format of football world cup
i.e. group of 4, two team from each group qualify to knock out
2. would like to see cricket world cup in a format of hockey world cup i.e. two groups of six team and top two teams qualify for semifinals
3. would like to see hockey champions trophy also in cricket i.e. only top six teams qualify for round robin league tournament
others
4. i don't know and i will post somewhere else also - why manufacturers like (toothpaste, toothbrush, anything packaged in steel box) don't recollect the empty or used things and recycle them to sell again to reduce the prices etc.
Monday, January 10, 2011
utility to separate executable files.
i wrote a small utility to separate executable files from a given directory path with the help of code given in Windows SDK.
// w_file.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
LPTSTR gDirpath;
size_t glength;
LPTSTR gNewDirPath;
size_t gnewlength;
int createfolder()
{
LPTSTR Dirpath;
wchar_t append[] = L"executables\\";
size_t len;
Dirpath = (LPTSTR) malloc (BUFSIZE);
if( Dirpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
len = wcslen(append);
StringCbCopyN (Dirpath, BUFSIZE, gDirpath, glength+1);
//StringCbCatN (Dirpath, BUFSIZE, append, len+1);
wcscat(Dirpath, append);
if(!CreateDirectory(Dirpath, NULL))
{
DWORD lasterror = GetLastError();
if(lasterror != ERROR_ALREADY_EXISTS)
{
printf("createdirectory has failed. \n");
return 0;
}
}
gNewDirPath = (LPTSTR) malloc (BUFSIZE);
if( gNewDirPath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
size_t length_dirpath;
StringCbLength(Dirpath, BUFSIZE, &length_dirpath);
StringCbCopyN (gNewDirPath, BUFSIZE, Dirpath, length_dirpath+1);
StringCbLength(gNewDirPath, BUFSIZE, &gnewlength);
_tprintf(TEXT("path is %s\n"), gNewDirPath);
return 0;
}
int Wrap_GetBinaryType(wchar_t *filename)
{
BOOL bres;
DWORD BinaryType;
LPTSTR Dirpath;
size_t length_of_filename;
Dirpath = (LPTSTR) malloc (BUFSIZE);
if( Dirpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
StringCbLength(filename, BUFSIZE, &length_of_filename);
StringCbCopyN (Dirpath, BUFSIZE, gDirpath, glength+1);
StringCbCatN (Dirpath, BUFSIZE, filename, length_of_filename+1);
bres = GetBinaryType(Dirpath, &BinaryType);
if(bres == 0)
{
DWORD lasterror;
lasterror = GetLastError();
//_tprintf(TEXT("lasterror is %s %d \n"), Dirpath, GetLastError());
if (lasterror == ERROR_BAD_EXE_FORMAT)
_tprintf(TEXT("file is a DLL \n"));
}
else if(bres > 0)
{
LPTSTR newpath;
newpath = (LPTSTR) malloc (BUFSIZE);
if( newpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
StringCbCopyN (newpath, BUFSIZE, gNewDirPath, gnewlength+1);
StringCbCatN(newpath, BUFSIZE, filename, length_of_filename+1);
//_tprintf(TEXT("newpath is %s %s\n"), newpath, gNewDirPath);
MoveFile(Dirpath, newpath);
}
return 0;
}
int _tmain(int argc, _TCHAR* argv[])
{
WIN32_FIND_DATA FindFileData;
HANDLE hFind = INVALID_HANDLE_VALUE;
DWORD dwError;
LPTSTR DirSpec;
size_t length_of_arg;
INT retval;
gDirpath = (LPTSTR) malloc (BUFSIZE);
if( gDirpath == NULL )
{
printf( "Insufficient memory available\n" );
retval = 1;
goto Cleanup;
}
DirSpec = (LPTSTR) malloc (BUFSIZE);
if( DirSpec == NULL )
{
printf( "Insufficient memory available\n" );
retval = 1;
goto Cleanup;
}
// Check for the directory to query, specified as
// a command-line parameter; otherwise, print usage.
if(argc != 2)
{
_tprintf(TEXT("Usage: %s\n"), argv[0]);
retval = 2;
goto Cleanup;
}
// Check that the input is not larger than allowed.
StringCbLength(argv[1], BUFSIZE, &length_of_arg);
if (length_of_arg > (BUFSIZE - 2))
{
_tprintf(TEXT("Input directory is too large.\n"));
retval = 3;
goto Cleanup;
}
glength = length_of_arg;
_tprintf (TEXT("Target directory is %s.\n"), argv[1]);
// Prepare string for use with FindFile functions. First,
// copy the string to a buffer, then append '\*' to the
// directory name.
StringCbCopyN (DirSpec, BUFSIZE, argv[1], length_of_arg+1);
StringCbCopyN (gDirpath, BUFSIZE, argv[1], length_of_arg+1);
StringCbCatN (DirSpec, BUFSIZE, TEXT("\\*"), 2*sizeof(TCHAR));
createfolder();
// Find the first file in the directory.
hFind = FindFirstFile(DirSpec, &FindFileData);
if (hFind == INVALID_HANDLE_VALUE)
{
_tprintf (TEXT("Invalid file handle. Error is %u.\n"),
GetLastError());
retval = (-1);
}
else
{
_tprintf (TEXT("First file name is: %s\n"),
FindFileData.cFileName);
// List all the other files in the directory.
while (FindNextFile(hFind, &FindFileData) != 0)
{
_tprintf (TEXT("Next file name is: %s \n"),
FindFileData.cFileName);
Wrap_GetBinaryType(FindFileData.cFileName);
}
dwError = GetLastError();
FindClose(hFind);
if (dwError != ERROR_NO_MORE_FILES)
{
_tprintf (TEXT("FindNextFile error. Error is %u.\n"),
dwError);
retval = (-1);
goto Cleanup;
}
}
retval = 0;
Cleanup:
free(DirSpec);
return retval;
return 0;
}
// w_file.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
LPTSTR gDirpath;
size_t glength;
LPTSTR gNewDirPath;
size_t gnewlength;
int createfolder()
{
LPTSTR Dirpath;
wchar_t append[] = L"executables\\";
size_t len;
Dirpath = (LPTSTR) malloc (BUFSIZE);
if( Dirpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
len = wcslen(append);
StringCbCopyN (Dirpath, BUFSIZE, gDirpath, glength+1);
//StringCbCatN (Dirpath, BUFSIZE, append, len+1);
wcscat(Dirpath, append);
if(!CreateDirectory(Dirpath, NULL))
{
DWORD lasterror = GetLastError();
if(lasterror != ERROR_ALREADY_EXISTS)
{
printf("createdirectory has failed. \n");
return 0;
}
}
gNewDirPath = (LPTSTR) malloc (BUFSIZE);
if( gNewDirPath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
size_t length_dirpath;
StringCbLength(Dirpath, BUFSIZE, &length_dirpath);
StringCbCopyN (gNewDirPath, BUFSIZE, Dirpath, length_dirpath+1);
StringCbLength(gNewDirPath, BUFSIZE, &gnewlength);
_tprintf(TEXT("path is %s\n"), gNewDirPath);
return 0;
}
int Wrap_GetBinaryType(wchar_t *filename)
{
BOOL bres;
DWORD BinaryType;
LPTSTR Dirpath;
size_t length_of_filename;
Dirpath = (LPTSTR) malloc (BUFSIZE);
if( Dirpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
StringCbLength(filename, BUFSIZE, &length_of_filename);
StringCbCopyN (Dirpath, BUFSIZE, gDirpath, glength+1);
StringCbCatN (Dirpath, BUFSIZE, filename, length_of_filename+1);
bres = GetBinaryType(Dirpath, &BinaryType);
if(bres == 0)
{
DWORD lasterror;
lasterror = GetLastError();
//_tprintf(TEXT("lasterror is %s %d \n"), Dirpath, GetLastError());
if (lasterror == ERROR_BAD_EXE_FORMAT)
_tprintf(TEXT("file is a DLL \n"));
}
else if(bres > 0)
{
LPTSTR newpath;
newpath = (LPTSTR) malloc (BUFSIZE);
if( newpath == NULL )
{
printf( "Insufficient memory available\n" );
return 0;
}
StringCbCopyN (newpath, BUFSIZE, gNewDirPath, gnewlength+1);
StringCbCatN(newpath, BUFSIZE, filename, length_of_filename+1);
//_tprintf(TEXT("newpath is %s %s\n"), newpath, gNewDirPath);
MoveFile(Dirpath, newpath);
}
return 0;
}
int _tmain(int argc, _TCHAR* argv[])
{
WIN32_FIND_DATA FindFileData;
HANDLE hFind = INVALID_HANDLE_VALUE;
DWORD dwError;
LPTSTR DirSpec;
size_t length_of_arg;
INT retval;
gDirpath = (LPTSTR) malloc (BUFSIZE);
if( gDirpath == NULL )
{
printf( "Insufficient memory available\n" );
retval = 1;
goto Cleanup;
}
DirSpec = (LPTSTR) malloc (BUFSIZE);
if( DirSpec == NULL )
{
printf( "Insufficient memory available\n" );
retval = 1;
goto Cleanup;
}
// Check for the directory to query, specified as
// a command-line parameter; otherwise, print usage.
if(argc != 2)
{
_tprintf(TEXT("Usage: %s
retval = 2;
goto Cleanup;
}
// Check that the input is not larger than allowed.
StringCbLength(argv[1], BUFSIZE, &length_of_arg);
if (length_of_arg > (BUFSIZE - 2))
{
_tprintf(TEXT("Input directory is too large.\n"));
retval = 3;
goto Cleanup;
}
glength = length_of_arg;
_tprintf (TEXT("Target directory is %s.\n"), argv[1]);
// Prepare string for use with FindFile functions. First,
// copy the string to a buffer, then append '\*' to the
// directory name.
StringCbCopyN (DirSpec, BUFSIZE, argv[1], length_of_arg+1);
StringCbCopyN (gDirpath, BUFSIZE, argv[1], length_of_arg+1);
StringCbCatN (DirSpec, BUFSIZE, TEXT("\\*"), 2*sizeof(TCHAR));
createfolder();
// Find the first file in the directory.
hFind = FindFirstFile(DirSpec, &FindFileData);
if (hFind == INVALID_HANDLE_VALUE)
{
_tprintf (TEXT("Invalid file handle. Error is %u.\n"),
GetLastError());
retval = (-1);
}
else
{
_tprintf (TEXT("First file name is: %s\n"),
FindFileData.cFileName);
// List all the other files in the directory.
while (FindNextFile(hFind, &FindFileData) != 0)
{
_tprintf (TEXT("Next file name is: %s \n"),
FindFileData.cFileName);
Wrap_GetBinaryType(FindFileData.cFileName);
}
dwError = GetLastError();
FindClose(hFind);
if (dwError != ERROR_NO_MORE_FILES)
{
_tprintf (TEXT("FindNextFile error. Error is %u.\n"),
dwError);
retval = (-1);
goto Cleanup;
}
}
retval = 0;
Cleanup:
free(DirSpec);
return retval;
return 0;
}
Subscribe to:
Posts (Atom)