Sunday, January 30, 2011

Cricket World Cup : 2011 Pakistan Matches


 Match           Date                   Teams                                     Venue              

   1               19 Feb              India vs Bangladesh                        Dhaka
   2               20 Feb              New Zealand vs Kenya                  Chennai
   3               20 Feb              Sri Lanka vs Canada                      Hambantota
   4               21 Feb              Australia vs Zimbabwe                   Ahmedabad
   5               22 Feb              England vs Netherlands                   Nagpur
   6               23 Feb              Pakistan vs Kenya                       Hambantota
   7               24 Feb              South Africa vs West Indies             New Delhi
   8               25 Feb              Australia vs New Zealand                Nagpur
   9               25 Feb              Bangladesh vs Ireland                      Dhaka
10                26 Feb              Sri Lanka vs Pakistan                  Colombo
11               27 Feb                India vs England                              Kolkata*
12              28 Feb                West Indies vs Netherlands             New Delhi
13              28 Feb                 Zimbabwe vs Canada                      Nagpur
14              1 Mar                  Sri Lanka vs Kenya                         Colombo
15              2 Mar                   England vs Ireland                           Bangalore
16              3 Mar                  South Africa vs Netherlands            Mohali
17              3 Mar                  Pakistan vs Canada                     Colombo
18              4 Mar                   New Zealand vs Zimbabwe            Ahmedabad
19              4 Mar                   Bangladesh vs West Indies               Dhaka
20              5 Mar                   Sri Lanka vs Australia                      Colombo
21              6 Mar                   India vs Ireland                                Bangalore
22              6 Mar                    England vs South Africa                   Chennai
23              7 Mar                    Kenya vs Canada                            New Delhi
24               8 Mar                  Pakistan vs New Zealand              Pallekelle
25               9 Mar                   India vs Netherlands                         New Delhi
26              10 Mar                   Sri Lanka vs Zimbabwe                    Pallekelle
27              11 Mar                   West Indies vs Ireland                      Mohali
28              11 Mar                   Bangladesh vs England                     Chittagong
29              12 Mar                   India vs South Africa                        Nagpur
30              13 Mar                   New Zealand vs Canada                  Mumbai
31              13 Mar                   Australia vs Kenya                           Bangalore
32              14 Mar                   Pakistan vs Zimbabwe                  Pallekelle
33              14 Mar                   Bangladesh vs Netherlands               Chittagong
34              15 Mar                   South Africa vs Ireland                     Kolkata
35              16 Mar                   Australia vs Canada                          Bangalore
36              17 Mar                    England vs West Indies                   Chennai
37              18 Mar                    Sri Lanka vs New Zealand              Mumbai
38              18 Mar                    Ireland vs Netherlands                     Kolkata
39              19 Mar                 Australia vs Pakistan                    Colombo
40              19 Mar                  Bangladesh vs South Africa              Dhaka
41              20 Mar                  Zimbabwe vs Kenya                         Kolkata
42              20 Mar                   India vs West Indies                        Chennai
43              23 Mar                   First Quarterfinal                             Dhaka
44              24 Mar                   Second Quarterfinal                        Colombo
45              25 Mar                   Third Quarterfinal                            Dhaka
46              26 Mar                    Fourth Quarterfinal                         Ahmedabad
47              29 Mar                   First Semifinal                              Colombo
48              30 Mar                   Second Semifinal                         Mohali
49              02 Apr                    FINAL                                          Mumbai

Cricket World Cup 2011: Passion, Craze , Religion...India's Matches...


 Match           Date             Teams                                    Venue

   1               19 Feb         India vs Bangladesh                    Dhaka
   2               20 Feb         New Zealand vs Kenya                  Chennai
   3               20 Feb         Sri Lanka vs Canada                      Hambantota
   4               21 Feb         Australia vs Zimbabwe                   Ahmedabad
   5               22 Feb         England vs Netherlands                  Nagpur
   6               23 Feb         Pakistan vs Kenya                          Hambantota
   7               24 Feb         South Africa vs West Indies            New Delhi
   8               25 Feb         Australia vs New Zealand               Nagpur
   9               25 Feb         Bangladesh vs Ireland                     Dhaka
10                26 Feb         Sri Lanka vs Pakistan                     Colombo
11               27 Feb          India vs England                          Kolkata*
12              28 Feb           West Indies vs Netherlands             New Delhi
13              28 Feb           Zimbabwe vs Canada                      Nagpur
14              1 Mar             Sri Lanka vs Kenya                         Colombo
15              2 Mar             England vs Ireland                           Bangalore
16              3 Mar             South Africa vs Netherlands            Mohali
17              3 Mar             Pakistan vs Canada                         Colombo
18              4 Mar             New Zealand vs Zimbabwe             Ahmedabad
19              4 Mar             Bangladesh vs West Indies               Dhaka
20              5 Mar             Sri Lanka vs Australia                      Colombo
21              6 Mar            India vs Ireland                             Bangalore
22              6 Mar             England vs South Africa                   Chennai
23              7 Mar             Kenya vs Canada                            New Delhi
24               8 Mar            Pakistan vs New Zealand                 Pallekelle
25               9 Mar           India vs Netherlands                    New Delhi
26              10 Mar           Sri Lanka vs Zimbabwe                    Pallekelle
27              11 Mar           West Indies vs Ireland                      Mohali
28              11 Mar           Bangladesh vs England                     Chittagong
29              12 Mar          India vs South Africa                     Nagpur
30              13 Mar           New Zealand vs Canada                  Mumbai
31              13 Mar           Australia vs Kenya                           Bangalore
32              14 Mar           Pakistan vs Zimbabwe                     Pallekelle
33              14 Mar           Bangladesh vs Netherlands              Chittagong
34              15 Mar           South Africa vs Ireland                    Kolkata
35              16 Mar            Australia vs Canada                        Bangalore
36              17 Mar            England vs West Indies                   Chennai
37              18 Mar            Sri Lanka vs New Zealand              Mumbai
38              18 Mar            Ireland vs Netherlands                     Kolkata
39              19 Mar            Australia vs Pakistan                        Colombo
40              19 Mar            Bangladesh vs South Africa              Dhaka
41              20 Mar            Zimbabwe vs Kenya                        Kolkata
42              20 Mar           India vs West Indies                    Chennai
43              23 Mar            First Quarterfinal                             Dhaka
44              24 Mar            Second Quarterfinal                        Colombo
45              25 Mar            Third Quarterfinal                            Dhaka
46              26 Mar            Fourth Quarterfinal                         Ahmedabad
47              29 Mar            First Semifinal                             Colombo
48              30 Mar            Second Semifinal                         Mohali
49              02 Apr             FINAL                                        Mumbai



Thursday, January 27, 2011

How To Set and Change Tab Order in MFC.



Dialog boxes Controls get the focus in a specific order when the user hits the TAB key.


In VC++6 this order is decided through the interface (Dialog resource editor / Layout / Tab order - or Control-D).

In VC++.NET there are two new methods to access, set and change Tab order: Control .TapStop(boolean) and TabIndex(int).


- TabStop (there_is_a_tab_stop)
- TabIndex (index_of_tab_stop_the_lower_the_nearer)

Query:
How to adjust tab order in dialogs so that if it reaches the highest tab index then focus jumps to another dialog. Considering dialogs are placed in the same view.

Which function retrieve tab order number of current focused control?

Solution :  Please be aware that Tab order is a fiction. The order numbers just control the way in which
the control declarations are sorted in the resource (.rc) file, but have no other discernable property. When you invoke the set-tab-order. it is reflecting the Z-axis  order.
For example,  the first control on the dialog is 1, the second is 2, and so on.

Considering an example,  if you have the dialog,
Write,
               CWnd * child= GetWindow(GW_CHILD);

which gives you the first window in the sequence (tab # 1)

Note that the function GetNextDlgTabItem is what is normally used, so if you did
                           CWnd * last = child->GetNextDlgTabItem(TRUE);

then it will give you the last control (note that there is a difference betrween asking for the next window and the the next dialog item, or the previous window or the previous dialog item, because the next dialog item or previous dialog item return you the CWnd * of the window which is visible, enabled, and has WS_TABSTOP set (and if it is a static control such as a label, it deals with this situation by returning the associated active window), whereas iterating with
GetWindow(GW_HWND[NEXT|PREV]) merely gives you a window.

If you want to find the window which is the first window in the sequence, so actually try this,

CWnd * first = last->GetNextDlgTabItem();
(the default is FALSE, to move forward), which would give me the first active window.
But one need to be very careful to in implementation part.  It gets even more complex if, during the time you are running, you could disable that first tabbable window, or hide it, or the last window is disabled, along the way.
Easy method: 
Use UI. Open dialog and Press Ctrl+D and then you can set tab order for your control by click on numbers.

Please provide your comments...


Also Visit:
http://journeyallover.blogspot.com/2010/04/way-to-south-korea.html

http://journeyallover.blogspot.com/2010/04/frequently-asked-interview-question-in.html

http://journeyallover.blogspot.com/2010/04/biometrics.html



Wednesday, January 26, 2011

Workplace myths debunked: 9 things you should never assume at work

What do you think about your work area the people who are working your around...
Do you feel that all your colleagues are friends? Or that your life is all about your job? You could be wrong.

Is it good to consider them as your close friend; it may be true and nice to realize. We spend never the less  around 8-10 hours in office normally or some of us even more.
We often make bad assumptions and then become disappointed when situations don't work out.

My job completes me - It's not your whole life, avoid the Work, Sleep, Repeat cycle or else your sense of self will erode any time your job disappoints you, reports the New York Daily News.

Your Money columnist Carolyn Kepcher, author of the best-selling book 'Carolyn 101,' tells you the top nine areas in which it's important to maintain a healthy sense of reality:

My boss reads my mind - Lobby for your promotion and take the initiative of talking to your boss about it. Many workers make the mistake of not engaging in any self-promotion at all - and then suffer the crushing disappointment of not receiving a pay raise, or a promotion.

Co-workers are friends - Although you may find friends at work, it's very important to draw boundaries. Unlike friendships or romances gone awry, you have no choice but to see your co-workers every single workday.

Salaries are set fairly - It's your responsibility to negotiate for a higher salary. Employers will pay what they feel they need to pay to hire and keep an employee, and nothing more.

H.R. is here to help me - They will help you, but their true job is to protect the organization. There are certain areas in which it may be best not to seek the H.R. department's assistance, such as using them as a shoulder to cry on for your every workplace woe.

You aren't indispensable - Millions of workers learned that their jobs are not as secure as they once thought. Being valuable is realistic, feeling irreplaceable is not.

My personal life is my business - only as long as something that reflects poorly upon your employer. For example, you're probably not free to bad-mouth them on Facebook. Even if you do not face disciplinary action, your future career will take a hit.

I'll sue - Don't be naive. Filing a lawsuit alone takes a lot of money. Even if you are right, sometimes your only decision is whether to stay or to go. Righting wrongs can be a very costly mission.

My bosses are cool when i slack off - Do not take your job for granted. While you're accepting their pay, it's important to honour your end of the bargain, or expect them to reward your poor attitude by bestowing your job to someone who actually wants it

I get inspired by this article I found it in yahoo. So I think, I'd like to jot it down with some modification. ((: >

CDateTimeCtrl Class

CDateTimeCtrl Class  :
Encapsulates the functionality of a date and time picker control.

class CDateTimeCtrl : public CWnd

The date and time picker control (DTP control) provides a simple interface to exchange date and time information with a user. This interface contains fields, each of which displays a part of the date and time information stored in the control. The user can change the information stored in the control by changing the content of the string in a given field. The user can move from field to field using the mouse or the keyboard.

You can customize the date and time picker control by applying a variety of styles to the object when you create it.

Header: afxdtctl.h

Base Class Members:

CObject Members
CCmdTarget Members
CWnd Members

Construction
CDateTimeCtrl

Constructs a CDateTimeCtrl object.

Create  : Creates the date and time picker control and attaches it to the CDateTimeCtrl object.

Attributes
GetMonthCalColor :  Retrieves the color for a given portion of the month calendar within the date and time picker control.

GetMonthCalCtrl :  Retrieves the date and time picker's child month calendar control.

GetMonthCalFont: Retrieves the font currently used by the date and time picker control's child month calendar control.

GetRange   :  Retrieves the current minimum and maximum allowable system times for a date and time picker control.

SetFormat :  Sets the display of a date and time picker control based on a given format string.

SetMonthCalColor :  Sets the color for a given portion of the month calendar within a date and time picker control.

SetMonthCalFont : Sets the font to be used by the date and time picker control's child month calendar control.

SetRange : Sets the minimum and maximum allowable system times for a date and time picker control.

Operations

GetTime : Retrieves the currently selected time from a date and time picker control and places it in a specified SYSTEMTIME structure.

SetTime : Sets the time in a date and time picker control.


CDateTimeCtrl::SetRange

Sets the minimum and maximum allowable system times for a date and time picker control.

Signatures:
BOOL SetRange( const COleDateTime* pMinRange,   const COleDateTime* pMaxRange );
BOOL SetRange( const CTime* pMinRange,  const CTime* pMaxRange );

Parameters

pMinRange :   A pointer to a COleDateTime object or a CTime object containing the earliest time allowed in the CDateTimeCtrl object.

pMaxRange : A pointer to a COleDateTime object or a CTime object containing the latest time allowed in the CDateTimeCtrl object.

Return Value
Nonzero if successful; otherwise 0.


CDateTimeCtrl::GetRange

Retrieves the current minimum and maximum allowable system times for a date and time picker control.

DWORD GetRange(COleDateTime* pMinRange, COleDateTime* pMaxRange ) const;
DWORD GetRange(  CTime* pMinRange,   CTime* pMaxRange ) const;

Parameters:
pMinRange : A pointer to a COleDateTime object or a CTime object containing the earliest time allowed in the CDateTimeCtrl object.

pMaxRange : A pointer to a COleDateTime object or a CTime object containing the latest time allowed in the CDateTimeCtrl object.

Return Value
A DWORD value containing flags that indicate which ranges are set.
 If  return value & GDTR_MAX == 0

then the second parameter is valid. Similarly, if
return value & GDTR_MIN == 0, then the first parameter is valid.

EXAMPLE
// This function will set several ranges in the control, then  call the ShowRange() function to show the set ranges to the  user.

void CDatesDlg::OnTestBTN()
{
// Gain a pointer to the control  CMonthCalCtrl* pCtrl = (CMonthCalCtrl*)  GetDlgItem //IDC_MONTHCALENDAR1);

CDateTimeCtrl* pCtrl = (CDateTimeCtrl*) GetDlgItem(IDC_DATETIMEPICKER1);
ASSERT(pCtrl != NULL);

// Set minimum of January 1st, 1995 with no maximum.
COleDateTime dtMin;
COleDateTime dtMax;

dtMin = COleDateTime(1995, 1, 1, 0, 0, 0);
dtMax.SetStatus(COleDateTime::null);
pCtrl->SetRange(&dtMin, &dtMax);
ShowRange(pCtrl);

// Set no minimum and maximum of September 30th, 1997.
dtMin.SetStatus(COleDateTime::null);
dtMax = COleDateTime(1997, 9, 30, 0, 0, 0);
pCtrl->SetRange(&dtMin, &dtMax);
ShowRange(pCtrl);

// Set minimum of April 15, 1992 and maximum of June 5, 2002.
dtMin = COleDateTime(1992, 4, 15, 0, 0, 0);
dtMax = COleDateTime(2002, 6, 5, 0, 0, 0);
pCtrl->SetRange(&dtMin, &dtMax);

ShowRange(pCtrl);
}

void CDatesDlg::ShowRange(CDateTimeCtrl* pCtrl)
{
   ASSERT(pCtrl != NULL);
   CString strMessage;
   COleDateTime dtMinimum;
   COleDateTime dtMaximum;

// Get the range.
WORD dwResult = pCtrl->GetRange(&dtMinimum, &dtMaximum);

// If a minimum was specified, format it. Otherwise, indicate that there is no lower bound.
if (dwResult & GDTR_MIN)
strMessage += dtMinimum.Format(_T("Minimum range is %x %X.\r\n"));

else
strMessage += _T("No minimum range.\r\n");

// Treat maximum similarly.
if (dwResult & GDTR_MAX)
strMessage += dtMaximum.Format(_T("Maximum range is %x %X.\r\n"));

else
strMessage += _T("No maximum range.\r\n");

// Show the user.
AfxMessageBox(strMessage);
}

Also read :
http://journeyallover.blogspot.com/2010/08/date-and-time-in-c.html

Sunday, January 23, 2011

Veena Malik Become a Bread and Butter for Pakistani Media...

Yesterday , I wrote an analysis on the program telecasted in Pakistani Express TV on Friday , hosted by Mr. Kamran Shahid. In which he was asking for the justification from Veena Malik. Along with Veena Malik, Islamic cric Mufti sah'ab and Indian actor Ashmit Patel also participated in the show.

Surprisingly, after just gap of one day another show,  framing Veena Malik is being telecasted by the same Host Mr. Kamran. Also with again Veena Malik and another, two somehow known personalities participated.

Believe me, this show was much more hilarious than of Friday's telecast. Among participants apart from hot property Veena Malik, the two new participants were Mr. Syed Noor, film director & Ms. Attiqa Odo actress turned politician. Topic was the same, why Veena went to India.

The reason,  why I told this show was much more hilarious. This time the whole discussion involved about Indian movies and channels should banned in Pakistan.

Ms. Attiqa Odo said,  India once tried to approach US, advocating to declare Pakistan as "Terrorist Nation" , so we should boycott the Indian media, TV and films.
I got this above analogy as US president, Mr. Obama and Mr. Nelson Mandela are real brothers because they both are African descendants.

The new thing of this telecast was the caller lines were also opened, so that viewers could make a call and ask questions. Most of the viewers, asked repeatedly the same questions to same person (Veena)
And more over,  they got the same answers from her ( the answers were like, she offered NAMAZ, talked Urdu, cooked food, spread love in Big Boss house)

Mr. Kamran Shahid started the program; as giving his own view regarding the behaviour of Veena Malik in Big boss house.

In between, the show Kamran Shahid told viewers that he has done more than 150 shows on National problem but in this topic, this is his third attempt. Indirectly, he was trying to convey to viewers, be ready "Kamran Shahid is coming with (150-3 = ) 147, such more programs on Veena Malik".

During the question-answer (or justification) round, Veena Malik keep on talking about Mr. Noor's films contents. In spite of, Mr. Noor reminding her that what ever she has done is in (so called) reality show.
But she was insisting, all the tasks in the show was scripted.
Is Veena Malik trying to say; the show like Big Boss or Big Brother is scripted. Are these shows are scripted  in the name of reality shows?
Actually, she herself facing so much pressure, now she is confused and converting to little bit shameless.

Mr. Kamran Shahid, was again and again advocating to stop, Indian entertainment programs in Pakistan.Ironically, he himself has been running the program on this topic. If this going to happen ( no Indian movie released in Pakistan or no artist would go across border),  how he would be going to run his programs, on this topic.
At the end of the show,  the same Veena Malik, who was spreading the love message and being the Love Pigeon, during the Big Boss show, was agreed and sounded  advocating, to stop Indian movies and channels in Pakistan. And broke all the connections and contacts with Bollywood.
Watching the back to back programs on Veena Malik , spreads the message that Veena Malik become a bread and butter, to today's Pakistani media . She has become hot selling buns for Pakistani entertainment channels.  Is she so important, for the nation, in current situation or her going to India become the selling point.
We cant predict that but that's for sure Veena Malik has collected a lot of publicity and she's a long way to go now.

Also Read :
http://journeyallover.blogspot.com/2011/01/double-faced-veena-maliks-new-publicity.html
More video you can see:




Double faced Veena Malik's new publicity Stunt

http://www.youtube.com/watch?v=xIwYTOG9Wgs
http://journeyallover.blogspot.com/2011/12/veena-malik-did-it-again.html

Pakistani actress Veena Malik, who was an inmate in season four of Indian TV reality show 'Big Boss', has said she has perform her role as muslim by motivating, a non muslim towards NAMAZ...

Actress was condemned not following the Islam and due to her activities Pakistan gets the bad name, outside Pakistan.

She said she has not done anything wrong in India.

It's quite amazing, even a little things about neighbouring country, create a great news in Pakistani media. Knowing this fact very well, a low profiled actresses  like Veena Malik try to take full advantage, to boost up their career.
This is not happening first time. There are\were many artists from Pakistan who had tried to in-cash this weakness of Pakistani media's and Pakistani public.
Being closely associated with paki-media and entertainment, Veena Malik herself; knows it very well, and trying to reap maximum benefits of this.

She has already drawn a lot of media attention in whole Indian-Sub Continent. Due to her relations with one of the Pakistani cricketer and with cricket bookies.

Her recent act and shameless activities in Big Boss , shows her real character.

In her interesting interview with the Express TV Friday night; she talked so boldly and shamelessly. Rather confessing her deeds, she exposed a lot of drama in the TV show.

When an Islamic cleric, Mufti Abdul Baqi, who also participated in the interview, said: 'Veena had shamed all Pakistanis and Muslims with her immoral acts during the show.'

She started with all her scripted dialogues about women and man dominating society. She bursted into crocodile tears during the interview.

Being pressurized to answer and give justification about her deeds; she started changing the colors saying that she was performing Islam and performed all times NAMAZ, inside the show.
She also said she has done a Islamic deed by making one non-Islamic to perform NAMAZ. She brought one DVD with her as an evidence.

According to her, Asmit Patel is the person whom she motivated to perform Namaz. Ashmit  also participated in the interview . This is the same Ashmit Patel who already was in controversy after circulating sexual MMS of his girl friend to gain cheap publicity, couple of years ago.

Veena Malik who seems to be desperate to get an opportunity in Indian booming entertainment Industry and has been saying that she wants to be Indian bride as Indian males always attracts her.

Today sounds to be complain about the inmates in Big Boss; naming couple of other inmates of  house, she was complaining about the intolerable behaviour what she faced in Big Boss house.

It seems she want to have all the things in life, Bollywood life , working in Indian entertainment Industry and  good in front of Paki- media. And pakistani media appreciation.

She also said she should be appreciated for performing non-muslim a NAMAZ and she tried to teach Urdu to hindi speaking nation.

During the interview she become quite hostile and furious; and talking very impolitely to Islamic cleric. She also heard saying "She dont want to talk this man" about Islamic cleric.

The interview was really interesting in many senses, Veena Malik tried to opt all  the stunts. And if you really go thru the whole program and interview, It went quite intsrumental and rythmic.
Actress showed all the human emotions in a quite a routine sequence.
Rythms of shades of her acting went like this.
Interview start with some nice words, the cleric  Mufti Abdul Baqi mentioned that she is a beautiful lady in Urdu he addressed as by the Allah's grace she has got a lot of  " Husn-o-Jamal"
1. Hearing, her beauty's  appreciation, she tried to blush, a little bit.
2. Then she become quite defensive and apparantly offered the evidence in the form of DVD, which she handed over to Mr. Kamraan
3. Then next level she become quite aggressive.
4. Another level she tried to put her words, saying she is dealing with male dominating society.
5. At end when nothing wok, she started brust with tears.

She commented and said that she is not only single actress who went to Indian  to act and wearing short clothes.
She also said that Pamela (Hollywood actress) recognized her social work and would like to contact her further and Veena Malik would be the point of contact to Pamela in Pakistan.

Also read:
http://journeyallover.blogspot.com/2011/01/veena-malik-become-bread-and-butter-for.html

http://www.youtube.com/watch?v=xIwYTOG9Wgs
http://journeyallover.blogspot.com/2011/12/veena-malik-did-it-again.html


Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...