Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Dev Blog - Johan Danforth

I'm Johan Danforth and this is my dev blog - a mix of .NET, ASP.NET, Rest, Azure and some other random coding stuff.

  • Nemo was great

    Amazing animations, just amazing...

  • Off to see Nemo

    We're (my family that is) off to see the Nemo movie together with some friends. The few scenes I've seen from it looks really cool. Gonna watch the dubbed version (in Swedish) so the kids can understand it better. I'll buy the original on DVD later on.

    I'm sure you've all seen this picture, but I love it :)

  • 2003 Visual Studio .NET Documentation Update

    Bah, I've just downloaded the Visual Studio .NET 2003 Documentation Update, but the exe refuse to work properly. I get a "... is not a valid Win32 application." in my face. Guess I'll have to try another download :/

    UPDATE: I cleaned the IE temporary files and went to the download page and downloaded the file again. Now it works fine :)

    Download page is here: http://www.microsoft.com/downloads/details.aspx?familyid=a3334aed-4803-4495-8817-c8637ae902dc&languageid=f49e8428-7071-4979-8a67-3cffcb0c2524&displaylang=en

  • [refactoring] Refactoring is fun

    I'm a fan of Martin Fowler and of refactoring. I've used rafactoring add-ins for different Java-editors the last years, and was very happy to read about the rafactoring support in the upcoming Whidbey. Until then, I'm using using the C# Refactoring tool from Xtreme Simplicity, which has refactoring support for the following methods:

    Extract Method 
    Change Method Signature 
    Decompose Conditional 
    Extract Variable 
    Extract Superclass 
    Extract Interface 
    Copy Class 
    Push Up Members 
    Rename Type 
    Rename Member 
    Rename Parameter 
    Rename Local Variable 
    Find References 
    Tidy Imports 
    Encapsulate Field 

    I've only tried a couple of them yet, like the "Extract Method", "Tidy Imports" and "Rename Xxx" and they work great. Pity there isn't support for VB.NET, since I use that alot too.

  • Extending the Exception Management Application Block for .NET

    I'm looking at adding a few features to the Exception Management Application Block for .NET. First, I'm adding support to write an Event ID to the BaseApplicationException type and to the actual event written to the event log. Looks pretty good so far.

    After that I think I'm gonna create a publisher that publishes extra information for ASP.NET exceptions. Like dumping the server variables, referrer and so on.

  • Proxy property of the HttpWebRequest

    I've had problems getting through the http proxy where I work at the moment, but I got excellent help from Luke Hutteman, the author of the RSS Aggregator SharpReader. It all works fine now:

    ...

    Dim webReq As HttpWebRequest = CType(WebRequest.Create(url), HttpWebRequest)

    Dim newProxy As WebProxy = New WebProxy(host,port)

    If username.Length = 0 Then

       newProxy.Credentials = CredentialCache.DefaultCredentials

    Else

       Dim cred As New NetworkCredential(username, password)

       Dim credCache As New CredentialCache

       credCache.Add(newProxy.Address, "Basic", cred)

       credCache.Add(newProxy.Address, "Digest", cred)

       newProxy.Credentials = credCache

    End If

    newProxy.BypassProxyOnLocal = True

    webReq.Proxy = newProxy

    'some proxys need this too

    webReq.Credentials = newProxy.Credentials

    Dim objResponse As WebResponse = webReq.GetResponse

    ...

    Something like that :)

  • Fugitive in my own house

    My wife is hosting a Tupperware party downstairs, so I grabbed my laptop and ran upstairs. Thank God I installed a LAN when I built the house! I've not used this laptop for quite some time, been running windows update for halv an hour now :/
  • Alien Director's Cut

    Ah, this will be something worth seeing I'm sure. I wonder what differs from the original movie. I heard something about it being even shorter (!) than the original. Anyone seen it yet?
  • Good morning...

    Some people thought that my post about Emotional Query Language was fun, except for this guy calling himself "Satan"...duh. I had no idea that the son of a bitch was surfing the Internet, thought he was too busy making real life a hell for people ;) Needless to say, I removed his comment.

    I read a Swedish article about the soon to be released "Two Towers" extended DVD. They've added 45 minutes to it! Yay!

  • Oracle JDeveloper 10g and memory consumption

    I just installed the preview of Oracle JDeveloper 10g (correct, I was not at the PDC so I do not have Whidbey, Longhorn, Avalon, Indigo, [insert favorite pdc buzzword here] to play with :( It happens that I have to do some Java coding now and then, and I wanted to see what the new features were.

    Anyway, what amazes me is the impressive amount of memory JDev occupies just to get running! I wish I could post a picture of it, but Task Manager reports the Mem Usage of jdevw.exe to 94 232 K! And I've not even opened up a project yet... phew! On my machine VS.NET 2003 chews some 20 Meg of memory right after startup, and if I load up a pretty big project, it rise up to 40 Meg.

    JDev 10g do have some very neat features though, which I know is appreciated by the regular Java developers. The box I installed this on only has 256 Megs of mem, so I think I have to move this over to another machine if I want to be able to run anything else on the same machine at the same time. I must say the installation of Jdev is very neat - just unzip the whole stuff and run. A bit faster than installing Visual Studio.NET ;)