Some more issues with .94

.Text Comments

I've updated my site to .Text .94, but unfortunately I have had some issues, though I followed Scott's instructions. Maybe I did something wrong during the setup, but here are my changes to the aggregated version of web.config to get my site working:

  1. Whenever I tried to go to the admin section of a blog, I got an error. .Text complained about missing templates of the admin pages. Therefore, I added following entries to the appSettings section:

    <add key="Admin.DefaultTemplate" value="~/Admin/Resources/PageTemplate.ascx" />
    <add key="Admin.DownlevelTemplate" value="~/Admin/Resources/PageTemplate.ascx" />
    <add key="Admin.DefaultContent" value="PageContent" />
    
    
  2. The authentification was set to Windows. I switched back to Forms authentification:

    <authentication mode="Forms">
      <forms name=".ASPXFORADMIN" loginUrl="login.aspx" protection="All"  timeout="90" />
    </authentication>
    
  3. Steve ~~~~ mentions to change the httpHandlers. Hmm, there is no httpHandlers section in my web.config. I admit I was already wondering when Scott moved all the handling stuff to blog.config. Someone has to tell ASP.NET to use that. Therefore:

    <httpHandlers>
      <add verb="*" path="*" type="Dottext.Framework.UrlManager.UrlReWriteHandlerFactory,Dottext.Framework" />
    </httpHandlers>
    

With these modification my .Text installation works like a charm :-)

Update:

  1. ASP.NET 1.1 validates the input, so I cannot use HTML in my posts. I've added following line:

    <pages validateRequest="false" />
    

Ooops, my fault. I was using the out-dated web.config. Note to myself: RTFM.

.Text and Image quality

.Text Comments

I don't know what others think, but IMHO the quality of the preview images generated by .Text isn't as good as it could be. Currently it just resizes the images with the simplest algorithm existing in the .NET framework.

Therefore, I've patched the sources, so it will use bicubic interpolation. Here's a comparison:

Previous resizing Bicubic resizing
Standard resizing Bicubic resizing

Maybe Scott wants to commit my changes to his sources, so here's what I did: The image conversion happens in the method MakeAlbumImages in Dottext.Framework.Images. I've added another method which does the resizing, and added the calls to it in the original method. Following the affected code snippet, I've marked my changes bold:

public static void MakeAlbumImages(ref Dottext.Components.Image _image)
{
    System.Drawing.Image original = System.Drawing.Image.FromFile(_image.OriginalFilePath);

    Size _newSize = ResizeImage(original.Width,original.Height,640,480);
    _image.Height = _newSize.Height;
    _image.Width = _newSize.Width;
    System.Drawing.Image displayImage = ResizeImage(original,_newSize);
    System.Drawing.Image tbimage = ResizeImage(original, ResizeImage(original.Width,original.Height,120,120));
    original.Dispose();

    displayImage.Save(_image.ResizedFilePath, GetFormat(_image.File));
    displayImage.Dispose();
    tbimage.Save(_image.ThumbNailFilePath,ImageFormat.Jpeg);
    tbimage.Dispose();
}

private static System.Drawing.Image ResizeImage(System.Drawing.Image original, Size newSize)
{
    System.Drawing.Image result = newBitmap(newSize.Width, newSize.Height);
    using(Graphics g = Graphics.FromImage(result))
    {
        g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
        g.DrawImage(original, 0, 0, newSize.Width, newSize.Height);
    }
    return result;
}

Starting signal

Site news Comments

Just started blogging. Well, sort of. In fact, I'm already blogging for two month by now,  but restricted to the intranet in our company Cycos.

My first contact with weblogs was back in March this year. I've stumbled over the blog of Don Box. That was my starting point for my journey across the fascinating world of blogs. I don't now which aggregator I used first, but for several month I'm using SharpReader. This app has this nice feature called threading. It encourages you to follow the URLs linked in a RSS post.

The idea to start my own blog conceived some time ago. Not that I've much to tell you 😉 It's more the technical point of view. In May I've installed BlogX at work and studied the sources. But one feature I'm missing is the support for multiple user (bloggers, is that), because I plan to establish a blog culture in our development department. But that's another story.

Anyway, I've been waiting for several weeks for the sources of .Text, which drives Weblogs@ASP.NET. Finally, Scott Watermasysk released it three weeks ago.

Now I have a fresh installation of .Text at home. Since I'm connected via T-DSL, I get a dynamic IP only. Therefore, I've created an account at dyndns.org. Don't wonder, if this page is not available every now and then ;-).

I think it's enough for my very first posting. Oh, one last point: I'm German, so please excuse my English...