Monthly Archives: September 2009

Twitter contest thanks to Apress


Hi all.

Thanks to the wonderful people of Apress I have 5 coupons worth each for a free copy of the ebook:


If you want one just need you to do 3 simple tasks:

  1. Follow me on Twitter: @jrguay (this is mandatory because I will DM you the code if you are selected as winner)
  2. Tweet: “@Apress books rock because…” (complete the phrase with your thoughts).
  3. Include in your tweet the tag #APRESSGUAY so I can look for the tweets later.

The rules are simple, I will randomly select the winners on Tuesday 29th at 12PM (CST) and will DM the winners the respective code. You can use the code to purchase the ebook in the Apress website and you’ll get a 100% discount.

[UPDATE]: The winners of the contest are: @gersonmayen, @ddurose, @rgreen, @EdvL & @gromer. Thank you!

Stay tune for more contests to come.


The ASP.NET Capsule #24: Examine Output Compression

Hi all.

After an interesting discussion with Cristian Prieto (ASP.NET MVP) he pointed me in the right direction of a problem I was having.

The issue was with a web application I recently published to IIS. A new page I added was throwing an exception but instead of showing the error as I would expect, it was throwing a lot of garbage:


Now, the problem was that I didn’t have a way to find what the real problem was until he said that the output was probably being compressed, so after following his advice I checked with Firebug and the results were:


If you see the header Content-Encoding the value is gzip. That was a clear indicator of the output being compressed.

I checked the IIS7 settings and compression was not enabled, so I checked the Global.asax file and this is what I found:

   1: protected void Application_BeginRequest(object sender, EventArgs e)

   2: {

   3:     if (Request.RawUrl.Contains(".aspx") && (Request.Headers["Accept-Encoding"] != null))

   4:     {

   5:         if (Request.Headers["Accept-Encoding"].ToLower().Contains("gzip"))

   6:         {

   7:             Response.Filter = new System.IO.Compression.GZipStream(Response.Filter, CompressionMode.Compress, true);

   8:             Response.AppendHeader("Content-Encoding", "gzip");

   9:         }

  10:     }

  11: }

After a couple of small refactorings thanks to ReSharper:

   1: protected void Application_BeginRequest(object sender, EventArgs e)

   2: {

   3:     if (!Request.RawUrl.Contains(".aspx") || (Request.Headers["Accept-Encoding"] == null)) return;

   4:     if (!Request.Headers["Accept-Encoding"].ToLower().Contains("gzip")) return;

   5:     Response.Filter = new System.IO.Compression.GZipStream(Response.Filter, CompressionMode.Compress, true);

   6:     Response.AppendHeader("Content-Encoding", "gzip");

   7: }

I was now able to disable output compression and see what the issue was. After solving the problem I enabled it again and things work as expected.

Checkout Cristian’s blog post about output compression (in Spanish).


News: New Free Tools from Telerik


TFS Work Item Manager & TFS Project Dashboard in a Nutshell

These two free applications have been designed to make working with Microsoft’s Team Foundation Server faster and easier. By promoting robust yet flexible project management practices, TFS Work Item Manager Beta and TFS Project Dashboard Beta allow for rapid delivery of high-quality software. Both applications have been built by Imaginet Resources using RadControls for WPF and are available for free download.

How Does TFS Work Item Manager Add Greater Value?

If you are using Visual Studio Team Foundation Server to manage your work items, you’ll simply love this tool! TFS Work Item Manager provides a unified platform to support those of you who want to take advantage of the Team Foundation Server without the need to switch from MS Team Explorer to MS Excel, to MS Project to find a certain work item. Its seamless integration with TFS allows you to add and edit work items, or save queries in real-time, along with the advantage of better work item visualization and improved team collaboration. The TFS Work Item Manager helps free up more developer time to actually write code, not manage what development teams have to do.

Read more.

Video: Webcast JetBrains ReSharper en Español

Hola a todos.

El día 31 de Agosto tuvimos un webcast sobre JetBrains ReSharper. Acá está el video para quienes no pudieron asistir.

Adjunto también la presentación de PowerPoint debido a que por un problema técnico no se visualiza.

Descargar la presentación aquí y el video aquí.

Felicitaciones a Jorge Albergo Gamba Porras de Colombia por haberse sido el afortunado ganador de la licencia personal de ReSharper.


News: JetBrains YouTRACK (Formerly ‘Charisma’) Enters Beta Phase

YouTrack (previously code-named Charisma) is a keyboard-centric bug and issue tracker web application. Whatever you do with your issues, you can do it much faster because most of your actions involve two simple controls:

  • Search for issues by typing queries in the search box using query completion. Read more »
    Search for issues using YouTrack search box 


  • Modify multiple issues at once using the Command window. Read more »
    Apply any commands to selected issues 


  • Commands syntax is similar to that of YouTrack search queries, so you can get started in no time!

YouTrack offers even more ways to minimize the time you spend on reporting and/or processing issues:

  • Create new issues by simply pressing Alt+Ins from anywhere within YouTrack. Read more »
  • Use extensive keyboard support to create, edit, and navigate between issues — all major actions have easy-to-learn shortcuts. For example, to close an issue, you type fixed, and press Ctrl+Enter. Read more »
  • Assign tags to group issues the way you like, regardless of their attributes. For example, you can create a tag like fix it today and associate it with issues from different projects, subsystems, etc. Read more »

YouTrack is distributed as either a JAR or a WAR file, ready to run as a standalone Java process or to be deployed at any of today’s popular application servers, including Apache Tomcat 5+, Apache Geronimo, Mortbay Jetty, Caucho Resin, and JBoss.

YouTrack is being developed with JetBrains MPS and is used to track issues in our own products, including TeamCity, dotTrace, MPS, and Web IDE.