Watch your favorite teams playing....
Just put the below code in your blog or website
Just put the below code in your blog or website
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Site Under Construction</title>
</head>
<body>
<h1>
Under Construction</h1>
<h2>
Gone to Florida for the sun...</h2>
<!--
Adding additional hidden content so that IE Friendly Errors don't prevent
this message from displaying (note: it will show a "friendly" 404
error if the content isn't of a certain size).
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
<h2>
Gone to Florida for the sun...</h2>
-->
</body>
</html>
for (int i = 2; i < 20; i++) { var result = SumRootN(i); Console.WriteLine("root {0} : {1} ", i, result); }
Parallel.For(2, 20, (i) => { var result = SumRootN(i); Console.WriteLine("root {0} : {1} ", i, result); });
namespace ParallelProgramming { using System; using System.Diagnostics; using System.Threading.Tasks; class Program { static void Main(string[] args) { var watch = Stopwatch.StartNew(); // for (int i = 2; i < 20; i++) { var result = SumRootN(i); Console.WriteLine("root {0} : {1} ", i, result); } Parallel.For(2, 20, (i) => { var result = SumRootN(i); Console.WriteLine("root {0} : {1} ", i, result); }); Console.WriteLine(watch.ElapsedMilliseconds); Console.ReadLine(); } public static double SumRootN(int root) { double result = 0; for (int i = 1; i < 10000000; i++) { result += Math.Exp(Math.Log(i) / root); } return result; } }
class
=
"brush: csharp"
>RequestToken GetRequesttoken() { var requestToken = (RequestToken)Session["RequestToken"]; Session.Remove("RequestToken"); return requestToken; }
Step 3:/// Step 1: Get a Request Token private void MakeRequestForToken() { string consumerKey = "anonymous"; string consumerSecret = "anonymous"; // Google requires an additional "scope" parameter that identifies one of the google applications string requestTokenEndpoint = "https://www.google.com/accounts/OAuthGetRequestToken?scope=https://www.googleapis.com/auth/userinfo#email"; string requestTokenCallback = GetRouteableUrlFromRelativeUrl("GoogleAuth/oAuth/GoogleValidation.aspx/authorizeToken/google/"); string authorizeTokenUrl = "https://www.google.com/accounts/OAuthAuthorizeToken"; // Step 1: Make the call to request a token var oAuthConsumer = new OAuthConsumer(); var requestToken = oAuthConsumer.GetOAuthRequestToken(requestTokenEndpoint, realm, consumerKey, consumerSecret, requestTokenCallback); PersistRequestToken(requestToken); // Step 2: Make a the call to authorize the request token Response.Redirect(authorizeTokenUrl + "?oauth_token=" + requestToken.Token); }
private void HandleAuthorizeTokenResponse() { string consumerKey = "anonymous"; string consumerSecret = "anonymous"; string token = Request.QueryString["oauth_token"]; string verifier = Request.QueryString["oauth_verifier"]; string accessTokenEndpoint = "https://www.google.com/accounts/OAuthGetAccessToken"; // Exchange the Request Token for an Access Token var oAuthConsumer = new OAuthConsumer(); var accessToken = oAuthConsumer.GetOAuthAccessToken(accessTokenEndpoint, realm, consumerKey, consumerSecret, token, verifier, GetRequesttoken().TokenSecret); // Google Only - This method will get the email of the authenticated user var responseText = oAuthConsumer.GetUserInfo("https://www.googleapis.com/userinfo/email", realm, consumerKey, consumerSecret, accessToken.Token, accessToken.TokenSecret); NameValueCollection nvc = StringToNameValueCollection(responseText); if (nvc["email"] != "") { FormsAuthentication.RedirectFromLoginPage(nvc["email"].ToString(), false); } }Step 4: