<2005 August>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

On this page...

Search

Links

Member of...


ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories

Microsoft

Blogroll

Deutsche Resourcen

Management

Sign In
 

#  Monday, 08 August 2005
Go here, and download samples, slides, and for almost all sessions, actually watch it! Especially interesting might be this one here: WEB340 IIS7: Discover and Move to the Next Generation Web Application Server Platform.
Monday, 08 August 2005 19:02:29 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 

I finally got around to make a new version of SvnPostCommitHook. For one, it was about time to include Ben's changes, and secondly I wanted to roll a new version onto our Subversion box - it was still running on v1.3. So much for dogfooding...

With that, here is the change log. Note that the last public version was 1.5:

8/8/2005 - 1.7, Changes by Christoph Wille

  • LookInfo getter logs when _lookinfo is null
  • MailTextOnly & AppendDiffToMail properties added to .config file (text-only currently does not send diffs anyways)
  • UU case added to svnlook parser
  • Change SvnLookOutputParser.SkipBlanks method to return bool if StringCollection hasMoreLines

5/14/2005 - 1.6, Changes by Ben Lowery, ben AT blowery DOT org

  • <pre> blocks for code#
  • Updates CSS for new HTML
  • Logic for finding CSS updated
  • More logging

And here is the usual binary & source code archive:

SvnPostCommitHook1.7.zip (420.75 KB)
Categories: Subversion | this | Use the source Luke
Monday, 08 August 2005 17:39:49 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Sunday, 07 August 2005

With the weather being abysmally bad this weekend (snow on 1700m in early August is quite a nasty surprise), I at least got around to complete the book The Best Software Writing I, which consists of essays collected and introduced by Joel Spolsky. I have to admit that I would have never read most of those had I simply stumbled upon them on the Web. But the preselection with a focus on good writing made it appealing to me.

From a technical point of view (technical not necessarily meaning a developer-centric world), I really enjoyed reading (in order from the TOC) Strong Typing vs Strong Testing, C++ - The Forgotten Trojan Horse, What to Do When You're Screwed, Larry's rules of software engineering #2: Measuring testers by test metrics doesn't, Team Compensation (only in the book or Better Software Magazine) as well as all the stuff by Eric Sink (Hazards of Hiring being the favorite among his essays printed in the book).

Categories: Books | this
Sunday, 07 August 2005 19:56:46 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Wednesday, 03 August 2005
Found out about this Webcast on Brian Nantz' blog. This Webcast really is your ticket to skip reading any documentation at all and get productive with OneNote immediately. Only 45 minutes of your time necessary.
Categories: this
Wednesday, 03 August 2005 12:40:47 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 

Scott Guthrie has written a blog entry about how to make this happen. Really, really easy to do.
Categories: 2 Ohhhh | ASP.NET
Wednesday, 03 August 2005 09:50:14 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Tuesday, 02 August 2005

On 12th of August, the Austrian .NET community is hosting a one-day conference on security, targeted at developers (no surprise here). The topics for NCC 2005 A include:

  • Threat Modeling
  • What's new in .NET 2.0 Security
  • What's new in SQL Server 2005 Security
  • What's new in Windows Vista Security

Quite a nice line-up I'd say. This event is supported by Microsoft Austria, so attending this event is free, except for your time, but I am sure security does warrant a day of your time! Sign up here

Tuesday, 02 August 2005 15:27:45 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 

The Microsoft ASP.NET Developer Center has the Provider Toolkit online. It sports the Access Provider as a C# class library project for download!
Tuesday, 02 August 2005 11:46:18 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 

This blog entry confirms my findings from last Thursday - VPC's virtual networking does not work with WinVi. That basically shot down my idea of using Vista as the primary OS on my laptop, aside from the really slow performance and its tendency to hog enormous amounts of memory. I would have put up with the latter two issues, but my VPC images do need network access (Subversion repository access for one).
Categories: this | Virtual PC
Tuesday, 02 August 2005 10:26:32 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Sunday, 31 July 2005

I spent this weekend in Bad Ischl together with other members of the #develop open source project. This was the first get-together under the "#develop developer days" umbrella, and most of the core team was able to attend the two-and-a-half day event.

Our focus was to talk about #develop 2.0 "Corsavy", feature-set wise as well as hashing out architectural issues not addressed yet. Aside from that, coding was the #1 priority: to tackle a couple of outstanding issues, such as Forms Designer or Refactoring support. Spending time in one room makes communication so much easier when you have to solve tricky issues that span multiple modules in our infrastructure. It definitely paid off to spend this weekend together.

Categories: .NET | 2 Ohhhh | this | Use the source Luke
Sunday, 31 July 2005 16:45:03 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Friday, 29 July 2005

One thing I didn't get around to demo at last week's CBC05 is the usage of profiles to remember and subsequently set the culture on ASP.NET pages. That's why I am documenting it now.

To get started, we need to have a profile that stores the user's preferred culture. So your profile in web.config looks could like this:

    <profile enabled="true" defaultProvider="myProfile">
      <providers>
        <add name="myProfile"
          type="System.Web.Profile.SqlProfileProvider"
          connectionStringName="NWConn"/>
      </providers>
      <properties>
        <add name="Culture" type="String" defaultValue="en-US" />
        <add name="Theme" type="String" />
      </properties>
    </profile>

The Culture profile setting is changed via a simple (hard-coded) dropdown list in default.aspx, which also displays a greeting pulled from a localized global resource, the culture code for verification purposes, as well as the current time formatted according to the respective locale:

The code for the button in default.aspx.cs is rather basic as you would have expected:

protected void Button1_Click(object sender, EventArgs e)
{
   Profile.Culture = DropDownList1.SelectedValue;

   // really nasty redirect to go back to this back and see the effect
   Response.Redirect(Request.Path + "?" + Server.UrlEncode(DateTime.Now.ToLongTimeString()));
}

The real magic for setting the culture so that formatting is done correctly, as well as the right resources being displayed, is done in a custom HttpModule, which needs to be registered in web.config:

    <httpModules>
      <add name="myProfileModule" type="ICSharpCode.Web.ApplyProfileToPageModule" />
    </httpModules>

This guy lives in App_Code\ApplyProfileToPageModule.cs, and looks like this:

using System;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Threading;
using System.Globalization;

namespace ICSharpCode.Web
{
 public class ApplyProfileToPageModule : IHttpModule
 {
  public void Dispose()
  {
   // currently, does nothing
  }

  public void Init(HttpApplication context)
  {
    context.PreRequestHandlerExecute += AppPreRequestHandlerExecute;
  }

  private void AppPreRequestHandlerExecute(object sender, EventArgs e)
  {
   Page p = HttpContext.Current.Handler as Page;

   if (null != p)
   {
      ProfileCommon pc = (ProfileCommon)HttpContext.Current.Profile;

      string cultureName = pc.Culture;

      CultureInfo culture = new CultureInfo(cultureName);

      Thread.CurrentThread.CurrentUICulture = culture;
      Thread.CurrentThread.CurrentCulture = culture;

      // You can set the Theme exactly the same way, shown below:
      // p.Theme = pc.Theme;
   }
  }
 }
}

In PreRequestHandlerExecute, I can access the profile, and go ahead and read the culture that is defined. Then all you need to do is set the CurrentUICulture as well as CurrentCulture of the CurrentThread. Done.

By the way, this event is also your ticket to set the Theme for a Page - if you have defined the user's preferred theme in her profile. Neat way of doing this.

LocalizationModule.zip (6.09 KB)

Categories: 2 Ohhhh | ASP.NET
Friday, 29 July 2005 11:00:03 (W. Europe Daylight Time, UTC+02:00)  #    Comments [2]

 



© Copyright 2017 Christoph Wille

newtelligence dasBlog 2.3.9074.18820
Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

 
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.