Monthly Archives: February 2011

Making F1 Google Search for Visual Studio

Start Visual Studio 2008 OR Visual Studio 2010

  1. From Menu bar select “Tools->Macros->New Macro Project
  2. Name the project “MyGoogleSearch
  3. Rename the default Module1 to “GoogleSearch” (right click on the module name in the left hand pan, select “Rename”)
  4. Copy following code and paste into the module body

Sub doGoogleSearch()

    Dim url As String
    Dim search As TextSelection = DTE.ActiveDocument.Selection()

    If search.Text <> "" Then
        url = "www.google.com/search?q=" + search.Text
    Else
        url = "www.google.com/"
    End If

    ' Run Command: "firefox.exe -new-tab http://www.google.com"

    Dim cmd As System.Diagnostics.Process = New System.Diagnostics.Process()

    cmd.StartInfo.Arguments += " -new-tab " + url

    cmd.StartInfo.FileName = "firefox"

    cmd.Start()

End Sub
  1. Build and save your “GoogleSearch” module.
  2. From menu bar  “Tools->Options->Environment->Keyboard
  3. In the “Show commands containing:” input textbox, type “Google” (to search your newly created macro).
  4. Go to the “Press shortcut keys” box, and press F1 and then Assign button
  5. Press OK.

Select text in your Visual Studio Environment that you want to google and press F1, now google searches for whatever you highlighted.
Your search result will be appeared by open New Tab in Firefox (no matter if firefox is already running ).

enjoy your development and google search interactive format.  Save your time of text copy/paste or typing the terms you want to google.


National Anthem of Pakistan (Qaumī Tarāna)

National Anthem of Pakistan
(Qaumī Tarāna Urdu)

پاک سرزمین شاد باد
كشور حسين شاد باد
تو نشان عزم علیشان
ارض پاکستان!
مرکز یقین شاد باد

پاک سرزمین کا نظام
قوت اخوت عوام
قوم ، ملک ، سلطنت
! پائندہ تابندہ باد
شاد باد منزل مراد

پرچم ستارہ و ہلال
رہبر ترقی و کمال
ترجمان ماضی شان حال
! جان استقبال
سایۂ خدائے ذوالجلال

 

National Anthem of Pakistan

National Anthem of Pakistan

Listen National Anthem of Pakistan

 

National Anthem of Pakistan
(Urdu Transliteration)

Pak sarzamin shad bad
Kishware haseen shad bad
Tunishane azmealishan arze Pakistan
Markazeyaqin shadbad.

Pak sarzamin ka nizam quwate akhuwati awam
Qaum, mulk, Sultanat
Painda ta binda bad shad, bad man zele murad.

Parchame sitarao hilat
Rahbare tarraqio ka mal
Tarjumane mazishane hal jane istaqbal
Sayyai, khudae zul jalal.

National Anthem of Pakistan
(English)

Blessed be the sacred Land
Happy be the bounteous realm
Symbol of high resolve
Land of Pakistan
Blessed be thou citadel of faith

The order of this sacred land
Is the might of the brotherhood of the People
May the nation, the country, and the state
Shine in glory everlasting
Blessed be the goal of our ambition

This Flag of the Crescent and Star
Leads the way to progress and perfection

Interpreter of our past, glory of our present
Inspiration of our future
Symbol of Almighty’s protection


IF EXISTS in Oracle(PL/SQL)

Here is a simple implementation to perform ‘IF EXISTS’ check

PL/SQL:


DECLARE 

vCount NUMBER;

BEGIN

      SELECT COUNT(*)
        INTO vCount
        FROM TABLE_NAME
       WHERE COLUMN_NAME = 'YOUR_VALUE';

      IF vCount > 0 THEN
       /*  Exists */
       DBMS_OUTPUT.PUT_LINE('Exists');
       
      ELSE
      /*  Not exists */
       DBMS_OUTPUT.PUT_LINE('Does not exists');
       
      END IF;

END;




ICC Cricket World Cup 2011



Group A:

Pakistan, Australia, New Zealand, Sri Lanka, Canada, Kenya, Zimbabwe


Group B:

India, England, South Africa, West Indies, Bangladesh, Netherlands, Ireland

  • Every team will play 2 warm-up matches before the start of WC.
  • Pakistan‘s two warm-up matches are against Bangladesh and England on February 15 and February 18 respectively.
  • Pakistan‘s all matches are in Sri Lanka and day/night. All  will start at 2.00pm PST and 9.00am GMT
  • Top four teams from each group will qualify for Quarter-Final, which would be first knock-out stage of World
    Cup.

 

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

1st QF: A1 v B4

Dhaka

44

24 Mar

2nd QF: A2 v B3

Colombo

45

25 Mar

3rd QF: A3 v B2

Dhaka

46

26 Mar

4th QF: A4 v B1

Ahmedabad

47

29 Mar

First Semifinal will be played between winners of both
Quarter Finals played in Dhaka

Colombo

48

30 Mar

Second Semifinal will be played between winners of
Quarter Finals played in Ahmedabad and Colombo

Mohali

49

02 Apr

FINAL

Mumbai