jon torresdal

  • About
  • Contact

    NNUG Bergen August meeting coming up

    20. August 2007

    NNUGMost of us
    are back from vacation and so are Norwegain .Net User Group in Bergen. Check
    out the agenda and register for the August meeting here: http://www.nnug.no/Avdelinger/Bergen/Moter/Brukergruppemote-August/

    If you’re not a member of NNUG, go here to register: http://www.nnug.no/Profil/RegistrerDeg/

    While I’m on it, you should check out the agenda for upcoming MSDN Live as well: http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032343418&Culture=nb-NO

    and if your a student or new to asp.net you should check this out the introduction to asp.net development.

    No support for Application Pools in Wise

    20. August 2007

    altiris.gifI’ve been
    using both Install Shield and Wise (Wise Installation Studio) for some time
    now and have mixed experience with both, but one thing puzzles me about Wise;
    there’s no support for Application Pools! The IIS dialog in Wise only has
    support for IIS 5 features. I just can’t fathom how they can keep releasing new
    versions of Wise without supporting IIS 6/7. Are no one using Wise for
    deploying web apps, web services etc? Are Install Shield the only choice for
    (advanced) plain Msi’s?

    Back in December 2006 I requested this feature from Wise on their forum and I
    got this answer:

    “I’ve run it past the product manager, and
    there is no specific timescale for adding application pool support. I know it’s
    come up once or twice before, but I think the overall demand is not significant
    enough to priorities this feature ahead of others.”

    On their
    website they list key features and one of them is:

    “Supports the latest
    technologies, including virtual applications and Microsoft Windows Vista.”

    Fantastic! But no app pools! Later someone else
    requested this feature on my thread and Wise finally added a
    link where you can subscribe to this feature request. The more subscribers, the
    more attention it gets. Want to help me Wise out? Visit: https://kb.altiris.com/display/1n/articleDirect/index.asp?aid=3066&r=0.7956964 and click subscribe/unsubscribe on the right
    side, and hopefully this feature request will get Altiris Symantec’s
    attention.

    TV Program Guide – LINQ

    19. August 2007

    If you are like me you probably have a hard time finding something to create when trying out new stuff.  This time I sat down and tried to figure out something to use LINQ and Silverlight for and maybe WCF, WPF and Ajax as well. At the time I was watching TV and the EPG (Electronic Programming Guide) didn’t work, so I started to look for a web site with a program guide supporting reminders and other nice features to let you know what’s on TV. I didn’t find anything good.
    I then started to look for an xml/text format for TV programs. I did some searching and came across xmltv. Nice! I now had an xml source looking something like this:

    <tv>

      <channel id=“channel1“>

       
        <
    display-name lang=“nb“>Channel 1</display-name>

      </channel>

      <channel id=“channel2“>

        <display-name lang=“en“>Channel 2</display-name>

      </channel>

      …

      <programme start=“20070801033000 +0200“ stop=“20070801053000 +0200“ channel=“channel1“>

        <title lang=“nb“>Program 1</title>

        <desc lang=“nb“>Program description.</desc>

        <credits>

          <director>…</director>

          <actor>…</actor>

          <actor>…</actor>

        </credits>

        <date>2004</date>

        <category lang=“en“>movie</category>

        <category lang=“en“>drama</category>

      </programme>

      …

    </tv>

    So now I had an xml document containing all the data I needed
    and this was a perfect time to try out XLINQ. I decided to stick with the LINQ
    query syntax and not mix in Lambda expressions to keep things simple and
    readable. I came up with this expression to get all TV channels:


    public List<TvChannel> GetTvChannelsWithoutGuide(){    IEnumerable<TvChannel> channels;
        try    {
            XElement tvGuide = XElement.Load(_xmlFileLoc);
    
    	channels = from c in tvGuide.Descendants("channel")		   orderby (string)c.Element("display-name")                      ascending		   select new TvChannel		   {		       Id = (string)c.Attribute("id"),		       Name = (string)c.Element("display-name"),		       Lang = (string)c.Element("display-name")                                .Attribute("lang"),		       TvGuideLoaded = false		   };    }
        catch (FileNotFoundException fileNotFoundEx)
        {
            throw new FileNotFoundException(                  string.Format("Xml file for tv guide not found at {0}",		_xmlFileLoc), fileNotFoundEx);
        }
        return channels.ToList<TvChannel>();
    }
    
    

    The XElement gives me the complete xml document that I can
    use XLINQ expressions on. In my query I’m looking only for TV channels, so I
    specify that in the query by

        from c in tvGuide.Descendants(“channel”)

    This gives my a variable c that I use in my orderby clause and select statement. The orderby clause

        orderby (string)c.Element(“display-name”) ascending

    uses the c variable to access the “display-name” element to set order by. But it’s the select statement which is the cool thing here! First here a listing of the TvChannel class:

    [Serializable]public class TvChannel
    {    public string Id { get; set; }
        public string Name { get; set; }
        public string Lang { get; set; }
    
        [XmlIgnore]    public IEnumerable<TvProgramme> TvGuideNonSerializable {
            get { return TvGuide; }
            set { TvGuide = value.ToList(); }
        }
    
        public List<TvProgramme> TvGuide    {
            get;
            set;
        }
        public bool TvGuideLoaded { get; set; }
    } 

    Ignore the TvGuideNonSerializable property for now. By using select new TvChannel I can create an object of my TvChannel class an assign data from the xml document to my properties. I just love this syntax! It’s really nice and easally understandable. Another cool feature (running VS 2008 Beta 2) is that you get ItelliSense in LINQ for your classes, like this:

    LinqIntellisence.png

    I also created other methods for retrieving all programs for one channel, all channels etc. At the time of writing I’m working on a Silverlight implementation for the TvGuide which I hopefully can show you soon. And later I’ll make all source code available.

    Last episode of The .Net Show!

    14. August 2007

    TheDotNetShow.jpgJust
    saw that there was a new
    episode
    (Silverlight) of The .Net Show out,
    and it started with telling us that this is the last episode! I’ve been
    watching this show on and off since its startup in December 1999! The show has
    been running for almost 8 years which makes this the longest running series at
    Microsoft. However, all good things have to come to an end. But it’s sad. I’ve
    really enjoyed this show and for a time (before blogging and rss) it was one of
    my few sources to new .Net technology inside the walls of Microsoft. Robert
    Hess’s (the host) last words in the show were:

    “Well, until next time, we’ll see you on the
    Web and I might recommend you check out channel9.msdn.com. You never know who
    you might see show up there.
    ”

    So I guess this isn’t the last time we see
    Robert. Thanks for all your hard work on this show during the years, giving us the latest news and
    insight into .Net technology! Salute!

    Windows XP Service Pack 3?

    11. August 2007

    InstallingUpdates.pngI just installed a new VM with Visual Studio 2008 and ran the Windows update to have a fully updated OS. There were 82 updates to download! About time to ship service pack 3? According to Mary Jo Foley, Microsoft have made a pre-beta available for testing and Microsoft says:

    “We’re currently planning to deliver SP3 for Windows XP in the first
    half of CY2008. This date is preliminary, and we don’t have any more
    details to share at this time.”

    Until then I’ll rather wait for the download to finish than waiting for Service Pack 3 <smile>

  • Next Page
  • Page 1 of 2
  • Recent Posts

    • How ConDep came to life
    • Introducing ConDep
    • Lightning Talk: Why you shouldn’t track bugs
    • How Do We Track Bugs? Check In a Failing Test!
    • Stepping Down from NNUG Bergen, Still Chairman of NNUG National
  • Archives

    • March 2013
    • February 2013
    • November 2012
    • January 2012
    • June 2011
    • May 2011
    • September 2010
    • August 2010
    • June 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
  • Categories

    • .Net
    • ADFS
    • Agile
    • Ajax
    • Architecture
    • Articles
    • ASP.NET
    • ASP.NET-MVC
    • Blogging
    • Books
    • BPEL
    • CleanCode
    • CloudComputing
    • Community
    • ContinuousDelivery
    • ContinuousDeployment
    • CSharp
    • DasBlog
    • Database
    • DDD
    • Deployment
    • DevOps
    • DSL
    • Events
    • ExtremeProgramming
    • Fun
    • Gadgets
    • IIS
    • InfoQ
    • Java
    • Kanban
    • Lean
    • Linq
    • MemoryLeaks
    • Microsoft
    • MVC
    • NDC
    • NNUG
    • Other
    • Patterns
    • Performance
    • Scrum
    • Security
    • Silverlight
    • Software
    • TeamManagement
    • TechEd
    • Testing
    • Tools
    • TvGuide
    • Uncategorized
    • Vista
    • VisualStudio
    • WCF
    • Web
    • WebDeploy
    • WIF
    • Windows
    • WiX
    • Work
    • Workflow
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Tumblog WordPress Themes by Theme created by Obox