Monday, September 26, 2011

Trying out Linkedin Ads

Clicks: 22
Impressions: 165,863
Click Through Rate: 0.013%
Avg. Cost Per Click: $2.98
Total Spent: $65.56

6185221047_3729e5983c.jpg

Installed Mac OS X Lion and Xcode 4

6185147079_274f2c0f92.jpg

6185676482_e48ce5bbee.jpg

Thursday, August 18, 2011

How to Increase Message Size Quota

Issue:
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

Solution:
Increase the following properties in web.config
maxBufferSize="20000000"
maxBufferPoolSize="20000000"
maxReceivedMessageSize="20000000"
maxStringContentLength="20000000"
maxArrayLength="20000000"

Second Day of Adwords Campaign

After one day of running Adwords campaign: 1359 impressions, 2 clicks, $.80

6055847281_d1d512e59c.jpg

Wednesday, August 17, 2011

XigniteMetalsSoapClient

using RemoteMetals = NopSolutions.NopCommerce.Web.xMetalService;

private xMetalService.XigniteMetalsSoapClient proxy;

proxy = new xMetalService.XigniteMetalsSoapClient("XigniteMetalsSoap");
RemoteMetals.Header header = new RemoteMetals.Header();
header.Username = "xxxxx";
header.Password = "yyyyy";
RemoteMetals.LondonFixing objLondonFixing = proxy.GetLastLondonFixing(header, RemoteMetals.FixingTypes.LondonGold, RemoteMetals.FixingCurrencyTypes.USD);

chart = proxy.GetLondonFixingChart(header, RemoteMetals.FixingTypes.LondonGold, RemoteMetals.PeriodType.Morning, RemoteMetals.FixingCurrencyTypes.USD, "8/15/2010", "8/15/2011", RemoteMetals.StockChartStyles.Line, 600, 400);

if (objLondonFixing == null)
{
/// add error processing here
/// this condition could be caused by an HTTP error (404,500...)
Response.Write("Service is unavailable at this time.");
}
else
{
switch (objLondonFixing.Outcome)
{
case RemoteMetals.OutcomeTypes.Success:
/// add processing for displaying the results, e.g.
/// display the value for Value
/// other values could be consumed in the same manner
Response.Write(objLondonFixing.Value);
Response.Write(chart.Url);
break;
default:
/// add processing for handling request problems, e.g.
/// you could pass back the info message received from the service
Response.Write(objLondonFixing.Message);
break;
}
}

Trying Out Google Adwords

6053595665_bc6c1b46c4.jpg

6053595599_557084e704.jpg

Sunday, August 14, 2011

Wednesday, August 10, 2011

New C# 4.0 Features

Parameters

  • Optional

  • Named

  • Overload Resolution


Co- and Contravariance

  • Covariance - same relationships

  • Contracovariance - inverted relationships


dynamic

  • run-time

  • DLR - Dynamic Language Run-time


New Compiler Options

  • Embedding COM Interop type information

  • Specifying an app.config file to the C# compiler

Wednesday, August 3, 2011

Thursday, July 28, 2011

Tuesday, July 26, 2011

VS 2010's Own Dev Server Path

Instead of "C:\Windows\System32\inetsrv", go here: "C:\Program Files\Common Files\microsoft shared\DevServer\10.0".

Wednesday, June 15, 2011

Some Good Links on Testing in TFS

patterns & practices: Team Development with Visual Studio Team Foundation Server
http://tfsguide.codeplex.com/releases/view/6280

Visual Studio UI Automation Testing (includes CodedUI)
http://social.msdn.microsoft.com/Forums/en-US/vsautotest/threads

How to: Create a Coded UI Test
http://msdn.microsoft.com/en-us/library/dd286681.aspx

How to: Generate a Coded UI Test by Recording the Application Under Test
http://msdn.microsoft.com/en-us/library/dd286608.aspx

How to: Create a Data-Driven Coded UI Test
http://msdn.microsoft.com/en-us/library/ee624082.aspx

Creating and Running Unit Tests for Existing Code
http://msdn.microsoft.com/en-us/library/dd293546.aspx

How to: Create a Data-Driven Unit Test
http://msdn.microsoft.com/en-us/library/ms182527.aspx

Walkthrough: Using a Configuration File to Define a Data Source
http://msdn.microsoft.com/en-us/library/ms243192.aspx

Let's Build Windows Phone 7 Apps

Link
5836474332_e436d0f742.jpg

Tuesday, June 14, 2011

Client Network Utility

Checking 'Force protocol encryption' option in Client Network Utility allows new instance of SQL Server 2008 to start.

5835257772_c327acb43d.jpg

5835257794_806110ab14.jpg

Installing Windows Phone Developer Tools 7.1 Beta

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=77586864-ab15-40e1-bc38-713a95a56a05&displaylang=en

Free Pluralsight .NET Training - Introduction to WebMatrix

Pluralsight .NET Training - Introduction to WebMatrix
Learn from the experts how to use WebMatrix to build and customize web sites.
Course available at no cost for 48 hours through 6/15/2011.
http://www.pluralsight-training.net/microsoft/OLT/Course/Toc.aspx?n=webmatrix-introduction

Thursday, June 9, 2011

ILDASM.EXE Tool

Run the ildasm.exe tool to determine the framework version of c:\dlls\TOBEREPLACED.dll.

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>ildasm.exe c:\dlls\TOBEREPLACED.dll /meta[=MDHEADER] /text /noil

// Microsoft (R) .NET Framework IL Disassembler. Version 3.5.30729.1

// Copyright (c) Microsoft Corporation. All rights reserved.

// warning : THIS IS A PARTIAL DISASSEMBLY, NOT SUITABLE FOR RE-ASSEMBLING

// ================================= M E T A I N F O

Wednesday, June 1, 2011

Killer Combo: MacBook Pro + Virtual Box running Win 7 Ultimate

Now I can do iPhone and .NET development on the same machine. Sweet!

Missing Test DLLs

Added from:

C:\Program Files\Microsoft Visual Studio 9.0 Team Test Load Agent\LoadTest\Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll
C:\Program Files\Microsoft Visual Studio 9.0 Team Test Load Agent\LoadTest\Microsoft.VisualStudio.QualityTools.WebTestFramework.dll