Wednesday, June 22, 2011
Smart Color Tool
If you want a nicely color-coordinated Web application, try Behr's Smart Color tool. It will help you pick a perfectly coordinated, tri-chromatic color palette.
Monday, June 13, 2011
T4: Text Template Transformation Toolkit
T4 is a Visual Studio code-generation language which was introduced with Visual Studio 2005. T4 templates are used in the Entity Framework and MVC and can be useful for your own development purposes.
Oleg Sych
Oleg Sych - MSBuild Integration
Visual Studio 2010 offers a new capability to perform template-based code generation at build-time with a set of MSBuild extensions available as part of the Visualization and Modeling SDK.
Oleg Sych
Oleg Sych - MSBuild Integration
Visual Studio 2010 offers a new capability to perform template-based code generation at build-time with a set of MSBuild extensions available as part of the Visualization and Modeling SDK.
Friday, June 10, 2011
Calling WCF Web Services from JavaScript
Whenever you need to consume a WCF web service from a web page, you have (at least) three options:
Have the ASP.NET ScriptManager generate a strongly-typed JavaScript proxy to the service that you can call directly.
Use your own JavaScript, or some third party, library such as jQuery to invoke a service in REST style.
Use your own JavaScript to invoke a service using SOAP.
The first two require that you have control over the bindings specified in the Web.config file or the factory in the .svc file.
Call the service in JavaScript:
var svc = new WcfAjaxServices.TestService();
svc.GetTest('a', 'b',
function(result, context, functionName)
{
window.alert('A: ' + result.A);
},
function (error, context, methodName)
{
window.alert('error: ' + error);
}, null);
The methods look like the ones defined in the contract plus 3 additional arguments:
- a function to call in case of success
- a function to call in case of error
- an optional context
result and error are JavaScript objects
methodName is the name of the function that started the request.
Development With A Dot
Have the ASP.NET ScriptManager generate a strongly-typed JavaScript proxy to the service that you can call directly.
Use your own JavaScript, or some third party, library such as jQuery to invoke a service in REST style.
Use your own JavaScript to invoke a service using SOAP.
The first two require that you have control over the bindings specified in the Web.config file or the factory in the .svc file.
Call the service in JavaScript:
var svc = new WcfAjaxServices.TestService();
svc.GetTest('a', 'b',
function(result, context, functionName)
{
window.alert('A: ' + result.A);
},
function (error, context, methodName)
{
window.alert('error: ' + error);
}, null);
The methods look like the ones defined in the contract plus 3 additional arguments:
- a function to call in case of success
- a function to call in case of error
- an optional context
result and error are JavaScript objects
methodName is the name of the function that started the request.
Development With A Dot
Tuesday, June 07, 2011
Log parser
Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows® operating system such as the Event Log, the Registry, the file system, and Active Directory®. You tell Log Parser what information you need and how you want it processed. The results of your query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.
Common use:
logparser <options> <SQL expression>
Example:
"C:\Program Files\Log Parser 2.2\logparser.exe" -i:W3C -o:W3C -e:10 "SELECT date, time, cs-username, sc-status, cs-uri-stem, cs-uri-query INTO FT_*.log FROM *.log WHERE cs-uri-stem LIKE '%%.aspx' ORDER BY date, time"
Common use:
logparser <options> <SQL expression>
Example:
"C:\Program Files\Log Parser 2.2\logparser.exe" -i:W3C -o:W3C -e:10 "SELECT date, time, cs-username, sc-status, cs-uri-stem, cs-uri-query INTO FT_*.log FROM *.log WHERE cs-uri-stem LIKE '%%.aspx' ORDER BY date, time"
Subscribe to:
Posts (Atom)