Tuesday, April 10, 2007

Google buys Blogger

Hi Folks ,
After a long time i tried loging in to my blog and saw that now ownwards i need to use the google id to login .Ghosssh has google bought Blogger. i tried searching over the google and realized that google had bought Blogger in 2003 and i was not aware of it till now .what a shame right ,its life i guess .I will leave you with some pointers which i found on this buyout
:- http://slate.msn.com/id/2079747/
:-http://google.blogspace.com/archives/000837.html

Wednesday, December 13, 2006

Bold decision ?!!#$

Today was my first day in a product company ,was busy trying to figure their(our) product architecture its huge,robust and beautyfull .Iam sure iam going to have a nicetime there,before i leave i will give you an hint of the product company ,it has got a famous CRM product .So watch out for more domain specific info on this blog .

Dont Dare!!!

So guys please dont think i have shutdown this blog iam recuperating from a financial .... ,it has nothing to do with the Sensex crashing :) :) . Keep on watching .

Tuesday, November 14, 2006

Leaving on a Jet plane

These are the lines taken from John Denver dont think iam leaving on a jet plane :).
Iam going home will be back by monday.Yahoo!!!!!!!!!!!!

Monday, November 13, 2006

Mysterious "sys" Files

I had Checked the options in the folder option dialog from the tools menu .
1.Show hidden Folders and files
2.Show hidden system files .

And in the drive were the OS is installed i saw two main files:-
1.hiberfil.sys
2.pagefile.sys

Now wat are these files they look pretty big in size.I ventured out to explore and here are my findings
1. hiberfil.sys
Wen you enable hibernation in your system ,the system compresses the system info into this file so that at startup it can load up (for persistence).
2. pagefile.sys.
This is used by the system for VM and swaping .you can set the size of this file .

More info on this will be put shortly .

Thursday, November 09, 2006

Services Information

All the information related to services that are run when the sytem boots and other information like which shouldnot run ,etc .. are stored in the registry .Next thing that comes into mind is were is it stored ,it's in HKLM\System\CurrentControlSet\Services all the keys under it have the DWORD value "start" which will be different which determines wether it needs to be run at start,suspended etc .

All the changes which we do to the services through services.msc or msconfig ( type in Run Window) changes this start flag .

Now since you are equipped with these information explore for yourself .

Registry repository

All these years i used to think were the information shown in the registry was stored :-

1. is it in a dll ( Many application store the data in dll's)
OR
2. is it in a file .

Well at last i tumbled over the files which contains those information and these are :-
1. System.dat
2. User.dat

Yes ,registry is a collection of the data present in these two files .

Vista RTM done

Atlast the long awaited vista release is done .vista has been released to the market for manufacturing of CD .
You can read more here :-
http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9004886&intsrc=hm_list

Monday, November 06, 2006

SUSIE Q by CCR

SUSIE Q by CCR(Credence ClearWater revival) is my latest favourite song .

My first product out

I was working on NSW -07 product for the past three months and iam pleased to anounce that my(teams) hard work has been paid of ,the beta of the Basic ,standard(With NAV) and premier (with NAV and NSR )are out Please download and let me know about your experience .Soon you can see these on your favourite shops by december .
NOTE:-
NAV - NortonAntiVirus
NSW - Norton SystemWorks
NSR - Norton Save And Restore .

Sunday, October 01, 2006

Test Post

Atlast posts are working .

Wednesday, September 27, 2006

Hi Guys

Sorry for the big delay , i was really busy with work will try to put some intresting things shortly.

Sunday, August 20, 2006

Check SafeMode

How do you check wether a system is in safe mode or not .
Check out the Api GetSytemMetrics(SM_CLEANBOOT)its return value of 0 means its in normal mode or else its in safe mode or in cleanboot.

NOTE:- This is needed because in safemode most of the services are stoped and maybe your app cant move forward without some services .
The services that are runing can be checked by typing msconfig in the run command .

Namespace a Real Boon

Sometimes it hapens that we have to use the classes provided by third party people and when two classes have the same name it leads to class redefenition compile time error and we can't change the header files because they are the root of the lib implementaion or others.

So how do you resolve this :-
namespace FirstClass
{
#include "FirstClass.h"
}

namespace SecondClass
{
#include "SecondClass.h"
}
FirstClass::CMyclass and the SecondClass::CMyClass are refering to two different classes therby resolving the compile time error.
But maybe you have to look out for the linktime error :).

NOTE:- Any class you make it should be in the namespace .

Thursday, August 03, 2006

How to create a LPTSTR,

Well yesterday i ran into the problem of making LPTSTR ,and i found that LPTSTR is an TCHAR * so you can allocate in TCHAR . another way we use it in MFC was to use CString then use the GetBuffer and ReleaseBuffer,some times it hapens that the function needs an LPTSTR .
I fixed the problem by making a smart pointer of type BYTE and then passed this class to that function were it allocates and gives me back .it converts the BYTE to LPTSTR using the reinterpret_cast(arg);

Note :-
DWORD :- unsigned Long
WORD :- unsigned Short also known as an ATOM .
TCHAR :- converts itself into the unicode or mbcs according to the hash define in the settings .
_T()- this is macro short form of TEXT().
_tcs :- the one used in front of the string functions which can be used both for the
unicode ,Multibyte etc ,it will convert itself into _mbcs** or simple strcpy according to the define in settings .
While setting this we neeed to give an entry point also in mfc its always the _winmainstart**.( project settings + link tab + output (from the drop down))
while debugging if you need to see the unicode string you need to go to
Tool+OPtions+Debug TAB and then check the display unicode string.

Sunday, July 30, 2006

mystery behind USES_CONVERSION

Well this guy _alloca allocates memory from the stack and not from the heap,basically used by the USES_CONVERSION macro in the ATL ,leading to the cause of stack-overflow ,wen used inside a loop .This automatically gets freed when it goes out of the function scope .
And the default size of the stack in VC6 is 1MB .

ATL7.0 doesn't have this problem.

Wednesday, July 26, 2006

Scope of namespace

Consider this :-

namespace PPP
{
CMyclass {
....
};
int iPPP;

}
int CMytest::ExampleNameSpace( PPP:: CMyclass &oTest, int p)
{
return iPPP;

}


it takes iPPP from the namespace of the PPP , firstchecks in the scope of CMytest and then in the scope of the std <\b> and then in the scope of the function argument scope .
Popularly known as namelook up rule

Tuesday, July 25, 2006

How to call the constructors in vector

CMyClass(int ,int):- is the default constructor
std::vector <CMyClass> oTest(2,CMyClass(2,3));
The above line will create 2 objects of type CMyClass and calls the constructor with the params 2 and 3.

Sunday, July 16, 2006

Use AfxSetWindowText

Internally this does an GetWindowText and sees wether the text are different and updates only if they are different ,therby saving un-necessary updates,

How easy to delete the linked list in c++

typedef struct _tagLinkedList
{
_tagLinkedList *pNextLink;
int m_iData;
_tagLinkedList()
{
pNextLink = NULL;

}

~_tagLinkedList()
{
if (pNextLink )
delete pNextLink;
pNextLink = NULL

}
}sLinkedList;