Friday, December 31, 2010

Shahid Afridi - A Spinner or a Fast Bowler :)

Wednesday, December 22, 2010

Split Big Files using WINRAR

First Open WINRAR.

Then right click on the file u wanna select and select Add to Archive then a window will open from Rar..... 

At the bottom there is a Tab saying "Spilt to Volume, Bytes" 

In the box enter a figure... Remember bytes ... For e.g. if u enters 10000000 that will be equal to 9.53 MB ... 

Remember u has to enter the value in bytes... So enter a big value.. 

And that’s it Your File will be split into your requires no of file... 

Returning XML natively in a .NET (C#) webservice


StringBuilder sb = new StringBuilder();
XmlWriter writer = XmlWriter.Create(sb, settings);

writer.WriteStartDocument();
writer.WriteStartElement("People");

writer.WriteStartElement("Person");
writer.WriteAttributeString("Name", "Nick");
writer.WriteEndElement();

writer.WriteStartElement("Person");
writer.WriteStartAttribute("Name");
writer.WriteValue("Nick");
writer.WriteEndAttribute();
writer.WriteEndElement();

writer.WriteEndElement();
writer.WriteEndDocument();

writer.Flush();
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.LoadXml(sb.ToString());
return xmlDocument;

Saturday, December 11, 2010

Jahangeer Khan - True Legend

Squash World Records

SUMMARY OF WINNERS  (WORLD OPEN / WORLD INDIVIDUAL)

Maqsood Ahmed (Pak):  1977*
Steve Bowditch (Aus):  1981*
Rodney Eyles (Aus): 1997
Geoff Hunt  (Aus):  1967*  1969*  1971*  1976 1979 1980
Jahangir Khan  (Pak):  1979*  1981  1982  1983  1983*  1984  1985 1988
Jansher Khan  (Pak):  1987  1989  1990  1992 1993 1994 1995 1996
Thierry Lincou (Fra): 2004
Rodney Martin  (Aus):  1991
Peter Nicol (Sco): 1999
Cam Nancarrow  (Aus):  1973

Wednesday, December 8, 2010

Younger than the Don, a little older than Tendulkar

When (if?) Sachin Tendulkar eventually retires, Alastair Cook, the choir boy who became a batsman, could be best placed to overtake his world-record tally of Test centuries. The possibility is not as outrageous as it sounds. England play more Tests each year than other countries do. Cook made his debut in 2006 and has 62 caps already. And, at 25 years and 348 days, he has age on his side, so form and fitness permitting, Cook will have plenty of opportunities. He has made outstanding use of his chances in Australia so far this summer, scoring 235 and 148 in the first two Ashes Tests. They were his 14th and 15th hundreds, making him the second youngest batsman - after Sachin Tendulkar, ahead of Don Bradman - to score so many.

Tendulkar isn't the youngest batsman to score a century - he's behind Mohammad Ashraful and Mushtaq Mohammad - but he's the youngest to score five Test hundreds, and ten, and every other multiple of five attained by a human being. Tendulkar's the only teenager to have had five Test centuries. He was 40 days younger than Bradman was when he reached his tenth. He is the only 24-year-old to score 15 tons and the only batsman to have 20 before his 27th birthday. And it's likely to stay that way, until another batsman begins in his teens and combines productivity with longevity like Tendulkar has.

Bradman, of course, needed only seven Tests to score five centuries, but he is not unmatched in that feat - George Headley and Everton Weekes did it too. Bradman and Headley were 21 years old, Weekes 23. All of them are in our table of youngest batsmen to score five Test centuries. Headley finished his Test career on 10 tons, Weekes with 15. Both of them don't appear in the tables of youngest batsmen to score 10 and 15 centuries though, but Bradman does. He made his 10th Test century in his 16th match when he was 23, and his 15th ton in his 28th Test five days before his 26th birthday.

Tuesday, December 7, 2010

List of Pakistan Cricket Team coaches in last decade

ISLAMABAD: Former captain Intikhab Alam returned for a second stint as Pakistan cricket coach on Saturday, a day after the sacking of Australian Geoff Lawson.

Here is a timeline of the country's cricket coaches in the last ten years:

Sept 1998: Legendary former captain Javed Miandad takes over from Haroon Rasheed, a former middle-order batsman.

April 1999: Miandad resigns after falling out with senior players and is replaced by former captain Mushtaq Mohammad for the 1999 World Cup.

Aug 1999: Mushtaq sacked after the World Cup. Wasim Raja, a former allrounder, steps in.

Nov 1999: English-born Richard Pybus becomes Pakistan's first foreign coach.

Dec 1999: Intikhab Alam takes over after Pybus is axed following Pakistan's 3-0 rout
in a Test series in Australia.

Mar 2000: Miandad replaces Intikhab after Pakistan lost home series to Sri Lanka.

April 2001: Miandad sacked after Pakistan's tour of New Zealand and is replaced by Pybus.

Sept 2001: Pybus refuses to come to Pakistan for security reasons after the September 11, 2001 attacks on the United States and Mudassar Nazar takes over.

Sept 2002: Mudassar summoned home midway through ICC Champions Trophy in Sri Lanka and Pybus returns for a third stint.

March 2003: Pybus says he does not want to stay on after Pakistan were knocked out in the first round of the World Cup held in South Africa. Miandad returns as coach.

June 2004: Miandad sacked after Pakistan lost one-day and Test series against India at home.

July 2004: Former England batsman Bob Woolmer takes over.

March 2007: Woolmer dies in his Jamaica hotel room hours after Pakistan crash out in the first round of the World Cup in the West Indies.

July 2007: Lawson appointed as coach.

October 2008: Lawson sacked over poor results. Intikhab Alam appointed for three-day series against the West Indies to be played in Abu Dhabi.

source: geosuper

Saturday, November 27, 2010

Programmatic Twitter Updates via OAuth and Twitterizer By Peter Bromberg


There is a lot of somewhat confusing information about Twitter's change to requiring OAuth authentication to use the service programmatically. This short FAQ should help.


If you are the owner of a Twitter "App" that you've registered, and all you want to do, for example, is post an update programmatically to your own account, you can get all the tokens you need by simply logging in at dev.twitter.com under that account.

Click on the "Your Apps" link at the top, and then click on the application you want to use programatically.

What you need are the ConsumerKey and the ConsumerSecret, and then if you click on "My Access Token" at the right, you will need the Access Token, and the Access Token Secret.

With these four strings stored in your
The OAuth token, PIN and callback redirect scenarios are only needed if you want to be able to have a user authorize your application on their behalf.

Here is some easy sample code that posts a Twitter update on your account using the Twitterizer library:

OAuthTokens tokens = new OAuthTokens();
tokens.ConsumerKey = ConfigurationManager.AppSettings["ConsumerKey"];
tokens.ConsumerSecret = ConfigurationManager.AppSettings["ConsumerSecret"];
tokens.AccessToken = ConfigurationManager.AppSettings["AccessToken"];
tokens.AccessTokenSecret = ConfigurationManager.AppSettings["AccessTokenSecret"];

StatusUpdateOptions options = new StatusUpdateOptions();
TwitterStatus newStatus = TwitterStatus.Update(tokens, message, options).ResponseObject;

-That's all it takes! Of course, your code will need to have a reference to and a using statement for the Twitterizer (Twitterizer2.dll) assembly.  As with any Tweet, you'll need to include your own short url, along with any RT or other key Tweet Tokens you need, and it all must fit into 140 characters in the message variable.

You can find the Twitterizer Google Code repository here.  

Thursday, November 25, 2010

LiberoVision

LiberoVision is the global leader for virtual sports enhancements. Based on existing TV images only, Libero Highlight and Libero Offside generate the perfect perspective for analyzing interesting or controversial scenes. The vision is to provide sports fans with unlimited insights into sport games.
LiberoVision's Emmy nominated technology is available for football, American football, basketball, ice hockey, baseball, and rugby. Broadcasters around the world such as ESPN, NBC, BBC, ZDF, Sky Italia, or Televisa use LiberoVision to enhance their sport analysis.
The company was founded 2006 as a spin-off of the ETH Zurich, the Swiss Federal Institute of Technology, which counts Einstein as one of its alumni.
More information at www.liberovision.com.

Parameter in VIZ desktop shortcut

-A
Reuse all table entries = ON
Viz reuse object internal numbers of deleted objects.
By default set to OFF - Viz will not reuse internal numbers of deleted objects.

-a
Import archive = ON
Viz will start and import defined archive, than close.
Usage: -a
If path contain spaces (i.e. Program files) use argument in between inverted
commas: “full path“

-B
Viz starts with a different display mode of performance bar.
Shows, in addition to MAX/CUR fps, the FrameTime value.
Frame time is white if Realtime, Red if not.

-C
Run Viz with NO Console window.

-C
Run Viz with NO Console window.

-E
Capture Key Events = OFF
Similar to –F or -P flags which are more popular.

-e
Use font auto free = OFF
Disable Autofree mode for fonts.
Autofree mode means that elements which are deleted from a scene are
removed from memory. When Autofree mode is OFF, elements will remain
loaded in memory and will not require loading, when used again.
Useful for Big fonts, to avoid loading every time they are used in the scene.

-F
Capture focus = OFF
Disables keyboard events completely.
Keyboard events will not work, even not when clicking on renderer (See –P)

-g
Viz runs with defined Config File
Relates to *.cfg files located in the Viz directory.
Usage: -g
Usable with Viz2.8pl3 and up.

-H
Render on mouse move = ON
Force rendering on mouse move.

-M
Hide On Air Mouse = OFF
Enables mouse cursor to be visible in On-air mode

-m
Auto free host memory after texture loaded to GL = OFF
By default it is set to ON. Textures loaded to GL are cleared from memory.

-N
Run Viz IO if Virtual set mode active = OFF
Viz_IO will not auto start, when Viz is set to Virtual set mode.
Default is ON.

-n
Runs Viz in On-air mode (Viz|Engine)
If scene name defined, it will load Viz|Engine in on-air mode and load scene.
Similar to –o flag.
Usage: -n

-o
Runs Viz in On-air mode (Viz|Engine)
If scene name defined, it will load Viz|Engine in on-air mode and load scene.
Similar to –n flag.
Usage: -o

-P
Keyboard Focus on Mouse move = OFF
Keyboard focus and events do not occur on mouse move, only on mouse click.

-p
Mouse capture = OFF

-q
Redraw always in on air = ON
Force Viz to always render.

-R
Start Viz with defined data root directory (ignores definition in Viz Config)
Usage: -RD:\viz_data (no space between flag and path)

-r
Use Image auto free = OFF
Disable Autofree mode for textures.
Autofree mode means that elements which are deleted from a scene are
removed from memory. When Autofree mode is OFF, elements will remain
loaded in memory and will not require loading, when used again.
Useful for Big images, to avoid loading every time they are used in the scene.

-S
Sets the Ringbuffer size on BlueVelvet driver only,
For Bluefish 444 (Voodoo) Video cards.
Usage: -S 2

-s
Free search = ON
Enables extended Tree search (Done for CBS)

-T
Keep On-Air Camera = ON
Renderer keeps last on-air camera when new scene loaded,
Regardless of which camera is saved in the new loaded scene.

-V
Video out = ON
Always shows last rendered frame on video output.
This should always be used with Virtual set setups.

-v
Verbose = ON
Start Viz in “Show commands” mode enabled.

-W
Restart on Crash = OFF
Default set to ON.