Tuesday, November 30, 2010

Simple 5 Steps to publish on a facebook wall using DotNet C#/ cSharp

Simple 5 Steps to publish on a facebook wall using DotNet C#/ cSharp

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.

Monday, November 22, 2010

Follow-on in Cricket


Follow-on is a term used in the sport of cricket to describe a situation where the team that bats second is forced to take its second batting innings immediately after its first, because the team was not able to get close enough (within 200 runs for a five-day match) to the score achieved by the first team batting in the first innings.
In matches when each team has only one innings of batting; follow-on in such a case is obviously not applicable - it is found only in the longer (more traditional) two-innings-each match.
If the second team to bat scores substantially fewer runs than the first team, the first team can enforce (at their captain's discretion) the follow-on, instructing the second team to bat again immediately. In this case the sequence of batting innings will be first team, second team, second team and then (if needed) first team, so the second team is said to be "following on". This is in contrast to the normal progression of batting innings which is first team, second team, first team, second team.
This rules governing the circumstances in which follow-on may be enforced are found in Law 13 of the Laws of cricket.
The Follow-on has two major purposes. Firstly it helps prevent unnecessary play. If the first team to bat is winning after the other side has batted, and is likely to win even after the other side has batted again, there is no need for this team to bat a second time. If the team following on does actually pass the first team score, the first team can then come back for their second innings. Either way the length of the match is usually reduced and lowers the chances of a drawn match.
Secondly, matches are limited (typically to five days) and if the first team is made to bat again, again scoring a high score, they may not have enough time to take 10 wickets in the final innings, resulting the match being a draw, even though one team could have scored hundreds of runs more than the other. The team batting first and winning would then face a potentially very agonizing decision in its second innings — at what point should it declare and forfeit the remainder of its innings to save precious time, to ensure it can bowl the other team out.
Because cricket pitches deteriorate as a match continues, the follow on is not always enforced. This is because the team who enforced the follow on may be required to bat last, when the pitch is most difficult to bat on. If a team believes the pitch is still good (or has become good) for batting, they may elect not to enforce the follow-on, instead they will return to bat and increase their already existing lead.

IN THE NAME OF SMITH :) What else he can do...

Monday, November 15, 2010

PDMS - Ali Baba

Ali Baba

SKU: alibaba-01
Ali Baba And 40 Thieves
The Classic adventure tale of "Ali Baba And 40 Thieves" gets a amazing iPad makeover. Features beautiful animated illustrations, read-along audio narration and sound effects.
Turn pages manually back and forth.
You can Record your own voice narrating and hear it read back to you! Great for kids.
For more information - http://pakdata.com/products/alibaba 

Saturday, November 13, 2010

PTV suspends its Director News

Pakistan Television (PTV) has suspended its Director News Muzammil Ahmed Khan for failing to send a team for live coverage of a press conference of Hafeez Sheikh, the Federal Finance Minister on Thursday (November 11, 2010).
The sources add that Information Minister Qamar Zaman Kaira phoned up the Managing Director of PTV, Yousuf Baig Mirza to express his anger over this lapse.
The axe then fell on Muzammil, a senior PTV employee, who until two months ago was the Controller News and the acting Director News. He was then elevated officially as the Director News.

PTV suspends its Director News

Pakistan Television (PTV) has suspended its Director News Muzammil Ahmed Khan for failing to send a team for live coverage of a press conference of Hafeez Sheikh, the Federal Finance Minister on Thursday (November 11, 2010).
The sources add that Information Minister Qamar Zaman Kaira phoned up the Managing Director of PTV, Yousuf Baig Mirza to express his anger over this lapse.
The axe then fell on Muzammil, a senior PTV employee, who until two months ago was the Controller News and the acting Director News. He was then elevated officially as the Director News.

Wednesday, November 10, 2010

Adnan Akmal in Test side VS South Africa (What the hell is this Akmal Mafia)

Adnan Akmal Profile : http://www.cricinfo.com/pakistan/content/player/39038.html
Nothing special in his profile...

Selectors should consider their father or even mother, I think they deserve to be in the national side as they are part of Akmal Mafia...

So sorry Pakistan Cricket :(

Awesome Amla


When Hashim Amla made his Test debut six years ago, few would have thought he'd be such a force in one-day internationals later in his career: after all, dogged defence was his preferred mode, and he demonstrated that in his first Test innings at home, when he scored 1 off 31 deliveries in Durban in 2004. In fact, South Africa's selectors seemed to have slotted him as a specialist Test batsman: in the first 40 months of his international career, Amla played 22 Tests and zero ODIs.
In the last 12 months, though, plenty has changed. So much so that Amla is the leading ODI batsman in 2010, and has scored runs almost at will in the format. In 13 ODI innings this year he has scored five hundreds and three fifties, and averages 82.16 at a strike rate of 103.13.
That form has rubbed off on his Test cricket as well, and 2010 has been his finest year as a Test batsman too, with an average of 79.60 in seven Tests. Over the last three years, Amla's fortunes in Test cricket too have improved considerably compared to the period before 2008: he averages almost 55 during this period and has scored runs in almost every series. His only disappointment, quite surprisingly, was in the West Indies earlier this year, when six innings fetched him only 122 runs.
Hashim Amla in Tests
PeriodTestsRunsAverageStrike rate100s/ 50s
Till Dec 200718104232.5644.703/ 5
Jan 2008 onwards28234154.4450.687/ 11
Career46338345.1048.6710/ 16
However, it's as an ODI batsman that Amla has truly been a revelation - both with his consistency and his strike rate. Admittedly these are early days in Amla's career in this format, but he has racked up some amazing numbers so far. Among batsmen who've scored at least 1500 runs, Amla's average is easily the highest, though this also needs to be tempered with the fact that the next three batsmen in the list below have played at least four times as many matches as Amla has.
Highest ODI averages (Qual: 1500 runs)
BatsmanODIsRunsAverageStrike rate100s/ 50s
Hashim Amla35183461.1392.536/ 9
Michael Bevan232691253.5874.166/ 46
Michael Hussey148442752.7088.312/ 33
MS Dhoni172573350.2888.347/ 37
Zaheer Abbas62257247.6284.807/ 13
Viv Richards187672147.0090.2011/ 45
Glenn Turner41159847.0068.053/ 9
Jacques Kallis30510,90445.8172.6917/ 79
Sachin Tendulkar44217,59845.1286.2646/ 93
Gordon Greenidge128513445.0364.9211/ 31
What Amla has achieved in 2010 is still spectacular, though - he has been dismissed below 30 only once in 13 innings, while his lowest strike rate in an innings this year has been 84.46, when he scored 87 off 103 balls against India in Ahmedabad. In all other innings he achieved a strike rate of at least 90, and on eight occasions he scored at faster than a run a ball.
The two Michaels, Hussey and Bevan, and MS Dhoni are immediately after Amla in the table above, and all of them had spectacular starts to their ODI careers. However, one huge difference between Amla and these batsmen is that while Hussey, Bevan and Dhoni batted down the order in most of their ODI innings, Amla has almost always opened (with only a couple of innings at No. 3). Batting down the order has meant many more not-outs, which boost the average: after 34 innings, Amla's aggregate is at least 500 more than the three batsmen listed below, but while Amla has been not out only four times so far, Hussey was unbeaten 18 times in his first 34 innings, while the corresponding numbers for Bevan and Dhoni were 15 and 11.
After 34 innings in ODIs...
BatsmanRunsAverageStrike rate100s/ 50s
Michael Hussey130881.7599.011/ 9
Michael Bevan112259.0576.170/ 7
MS Dhoni120452.34106.452/ 6
Perhaps the most impressive aspect of Amla's ODI batting has been his all-round composure: he handles pace and spin with equal ease, and he is as comfortable batting in the first 15 overs as he is when the field is spread out. The two tables below list his numbers at various stages of an ODI innings, and against pace and spin. In the first 15 overs he has been outstanding, averaging more than 100 and scoring at more than six runs per over. In the middle overs the average and strike rate drop a bit, but he still keeps the runs coming at a fair clip. He plays far more dot balls - almost 50% of the total balls he faces - in the first 15, which is entirely understandable since the field is in close during this period. What's also outstanding is his dot-ball percentage in the middle overs - 32.68% - which means he scores off nearly 70% of deliveries during this period.
Amla at each stage of an ODI innings in the last year (since Nov 2009)
PeriodRunsBallsDismissalsAverageRun rate4s/ 6sDot balls
First 15 overs6676496111.166.1684/ 4315
16.1 to 405195601051.905.5630/ 1183
40.1 onwards34300-6.803/ 08
The dot-ball stat also indicates his comfort levels with spin bowling, which is mostly used in the middle overs of an innings. In fact, there is little to choose between Amla's numbers against pace and spin - the difference in average is less than a run, and the run rates are very similar too.
Amla against pace and spin in ODIs since Nov 2009
TypeRunsBallsDismissalsAverageRun rate4s/ 6sDot balls
Pace787785987.446.0190/ 4362
Spin433454586.605.7227/ 1144
And then, of course, there's Amla's record in Tests in the last three years. It's also an indication of South Africa's batting strength that despite him averaging 54.44, he is only third in the list of their batsmen in terms of averages. And of the six specialist batsmen who've scored more than 1000 Test runs for South Africa during this period, the one with the lowest average is Jacques Kallis - that's a stat that deserves a separate column of analysis.
South African batsmen in Tests since Jan 2008
BatsmanTestsRunsAverage100s/ 50s
Graeme Smith27258861.619/ 10
AB de Villiers28215959.977/ 10
Hashim Amla28234154.447/ 11
Ashwell Prince23133149.295/ 4
Neil McKenzie17122547.113/ 3
Jacques Kallis28184443.906/ 7