Thursday, December 16, 2010

Legacy DOS Script: Loop Over Directories

Simple little script to loop over all sub-directories:
FOR /D %%f IN (".\*") DO ECHO %%f

Monday, November 15, 2010

ASP.NET httpRuntime element executionTimeout attribute appears to not work on IIS 7 and Windows 2008 R2.

This was driving me nuts. I was getting 'System.Web.HttpException: Request timed out.' from a long running ASP.NET web request.

I tried setting the executionTimeout in the web.config file, but to no success. It just didn't appear to honor it.

After a lot of digging, I found a post mentioning something new in the IIS 7 infrastructure. It appears there is a new Ping function of IIS to determine if the work process is still active. You have to either disable the Ping by setting the Ping Enabled to false in the Advanced Settings of the Application Pool. Or, you have to increase the Ping Maximum Response Time (seconds) to a higher value than 90 seconds (it's default.)

I went with increasing the Ping Maximum Response Time (seconds) to a much higher value and presto, success.

Thursday, October 14, 2010

Installing the first Atlassian Bamboo Remote Agent on Windows 2008

Summary

The below instructions are step by step to install Atlassian Bamboo Remote Agent on Windows 2008 server. You'll need to replace the «token» in the below instructions to match your setup.

Installation Instructions

  • Add «service_account» to the Administrators group
  • Ensure Java JRE 6 or JDK 6 or later is installed (e.g. jdk-6u14-windows-i586.exe)
  • Create a folder c:\program files\atlassian bamboo
  • Copy atlassian-bamboo-agent-installer-2.5.5.jar to c:\program files\atlassian bamboo
  • Run As Administrator Command Prompt
    CD c:\program files\atlassian bamboo
    "C:\Program Files (x86)\Java\jre6\bin\java" -Dbamboo.home=C:/Bamboo/agent1 -jar atlassian-bamboo-agent-installer-2.5.5.jar http://«bamboo_host»/agentServer/ installntservice
    
  • Change the Bamboo Remote Agent service to run as the «service_account»
  • Start the Bamboo Remote Agent service

Wednesday, September 1, 2010

Scrum Guide Diagram from Microsoft

I found the below diagram of Scrum Guide in the Microsoft Visual Studio ALM Rangers' Visual Studio 2010 Quick Reference download.

Very nice overview. Surprising coming from Microsoft. Guess Scrum is mainstream now.

Sunday, August 22, 2010

NAnt Intro

I found a decent (dated) intro to NAnt. I don't know if I agree with some of his statements in certain situations, but it's fair enough for someone coming into NAnt world.

Thursday, July 1, 2010

C#: Convert System.TimeSpan to long format (wordy version)

I found a nice VB.Net method which did close to what I wanted, so I tweaked it a little to offer a nice TimeSpan format alternative.

Thursday, May 13, 2010

Free IE Tester

A co-worker recently sent me a link to My DebugBar's IETester. It's a handy application allowing you to test your web sites against different versions of IE. Enjoy!

Tuesday, April 27, 2010

T-SQL for SQL Server 2005 to Shrink database to smallest size possible.

How can you shrink a SQL Server 2005 database to the smallest size possible? Using the below script will do the trick.

Thanks to Pinal Dave for help with log portion!

Sunday, April 25, 2010

CSV Microsoft Encoding a la C# .NET

Small, little method to do CSV encoding of values. It's brute force, but works.

Wednesday, April 21, 2010

A quick example of how to xmlpoke using NAnt an appSettings value that does not exist.

The below is an example of how to use NAnt to xmlpoke a new appSettings key and value xml element into a web.config. The same could be used for an app.config as well. In fact, it could be used generically on how to poke completely new XML elements into any XML document.

Sunday, January 24, 2010

Free ASP.NET Progress Bar Control for Long Running Process: Essential Objects Progress Bar

I came across Essential Objects' Progress Bar control, which just so happens to be free. It allows you to have a nifty progress bar for any ASP.NET long running processes. Very handy.

Friday, January 22, 2010

Free .NET Profiler: EQATEC Profiler

Need a solid, easy-to-use .NET profiler? Check out EQATEC Profiler.

I had to track down a recent DotNetNuke issue and EQATEC Profiler allowed me to do so quickly. Note, I had to use these instructions on how to make it work with ASP.NET.

Tuesday, January 12, 2010

ManicTime: Track Application Usage Statistics

I'm exploring the concept of application usage tracking on my machine to better understand what I do everyday. In doing so, I ran across ManicTime. I'm going to give it a try and see what it yields.

UPDATE: Love this tool. After two weeks of use, I'm able to generate pretty pictures and statics of my usage. It even tracks web site usage. This has been handy as we use Atlassian's Jira (web based tool) for our bug tracking.
There was an error in this gadget