in

Chris Kirby

public string Subtitle { get { return "I hope i didn't say that out loud just now..."; } }

Syndication

This Blog

Chris Kirby's Inner Monolog

October 2005 - Posts

  • Visual Studio and Sql Server RTM'd

    Visual Studio 2005 and Sql Server 2005 have been released to MSDN! Those without an MSDN subscription will have to wait until the 7th...
  • Asp.net 2.0 Providers

    I've spent some time in the past few weeks with the release candidate of VS 2005, specifically, building a new site using asp.net and all the new goodies is has to offer. Thus far, I've concentrated my efforts working with the amazing new provider models as they relate to membership, roles, profiles. The best part of these new providers is that 2.0 already includes robust Sql providers for you to use right out of the box! Its truly as simple as running the included database setup utility and using the asp.net application configuration utility (visual web.config editor) to configure your connection string, access privileges, and the default sql providers for membership and roles. The only manual web.config changes I had to make were to setup the profile provider and properties sections, like so:

    <profile enabled="true">
     
    <
    providers>
        <
    remove name="AspNetSqlProfileProvider"/>
       
    <
    add connectionStringName="MyCS" name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"/>
     
    </
    providers>
      <
    properties>
        <
    group name="Contact">
         
    <
    add name="FirstName" type="System.String"/>
         
    <
    add name="LastName" type="System.String"/>
         
    <
    add name="Email" type="System.String"/>
       
    </
    group>
      </
    properties>
    </
    profile>

    Once all that is setup, you just start adding the new membership controls to you pages to begin using the new providers. Its truly amazing how much less code you need to accomplish these tasks vs 1.1 implementations. I've written many 1.1 web apps that had similar membership and role requirements and the custom code that was needed for the more complex scenarios was significant, especially when dealing with roles. With the new 2.0 implementation, its nearly codeless, with all the plumbing having already been done for you. The only code I've written so far related to membership and profiles was to save the user entered profile information to the data store:

    protected void Wizard_CreatedUser(object sender, EventArgs e)
    {
        ProfileCommon p = (ProfileCommon)ProfileCommon.Create(CreateUserWizard1.UserName, true);
        p.Contact.FirstName = ((TextBox)
    Wizard.CreateUserStep.ContentTemplateContainer.FindControl("FirstName")).Text;
        p.Contact.LastName = ((TextBox)
    Wizard.CreateUserStep.ContentTemplateContainer.FindControl("LastName")).Text;
        p.Contact.Email = ((TextBox)
    Wizard.CreateUserStep.ContentTemplateContainer.FindControl("Email")).Text;
        p.Save();
    }

    I just simply handled the CreatedUser event my new profile using the user entered data. Notice too that the properties from my web.config are strongly typed, very cool! Scott Guthrie actually has a great example with downloadable code on his blog that describes a membership scenario similar to mine, I found it very useful and informative.

    And this is only the tip of the iceburg! There are several other included providers as well (Active Directory, Passort, others), and you can even roll your own. I actualy wrote my own membership provider for one of my older 1.1 apps just to check it out, and it was very easy to do, you just write a new class which implements the MembershipProvider class and start overriding the methods plugging in code specific your database schema. Once done and configured (below), all the new controls worked seamlessly with my new provider!

    <membership defaultProvider="wookie">
     
    <
    providers>
        <
    add name="wookie" type="WookieMembershipProvider" />
     
    </
    providers>
    </
    membership>

    Only 1 month to go until the final release! Between that, the new Potter flick, and the Xbox 360, November should be a damn exciting month.
  • The Ultimate Gadget, Creative's Zen Vision

    I found out about this new gadget on Creative's website and was blown away! Its supposedly not available in North America yet (according to Creative) but I was able to get it online and under msrp from Digitally Unique. Basically after you take a look at creative's site and check out reviews like this, you will forget all about silly iPods that play QuickTime videos.

    I've had the unit for a few days now and, so far, theres not much this thing cant do. It plays video, plays audio (including subscription drm), views photos, tunes fm radio, has a built in PIM that syncs with outlook, supports compact flash (and other with adapter), has A/V out (via cable or opt. dock), and has a stereo voice recorder. So, not only does it have the guts, but the looks to boot. it measures 124.2 x 74.4 x 20.1mm and is encased in black or white magnesium, packs a 3.7 inch 640x480 high res screen, and supports accessories like the optional dock, ir remote, and CF adapter... iPod what??

    The video...It played all of my DivX, Xvid, and Windows movie files with no problem. There was no chop and any of the bit rates and resolutions I tested, and they all stretched or shrunk to fit on the screen. Really very impressive, so much so that you have to see to believe. The only issue I ran into was the lack of QuickTime support, shocking right ;). If you do have a lot of QuickTime or non DivX or Xvid mpeg 4 files, then you can opt to convert them, which I found rather painless when re-encoding a few of the vidcasts I listen to. DVD video may be an issue as well too, if thats your thing... the unit supports mpeg2 but not VOB files directly, so you have to convert those as well if you want them to play on the zen...I would re-encode anyway due to the sheer size, this thing only has 30gm after all ;)

    The music...This is really a no-brainer for Creative. All of their players that I've owned have played music beautifully. The noticeable differences with this player, coming from the Zen Xtra, are the beefier headphone amp (which drove my Sennheiser HD 580's with no problem) and the much improved navigational interface. I've loaded up about 15 gigs of songs thus far both from my private collection and from the Yahoo! Music Engine subscription service with no difficulty, every thing plays and sounds great, as you would expect.

    The photos...This is by far the best mobile solution for viewing photos. I could actually see photo enthusiasts buying the vision just for this feature; its ability to organize by folder, its thumbnail viewer, its slideshow and custom slideshow abilities, its composite video output, and most of all, its support for importing your photos (and videos) right off the cameras memory card are second to none. Basically, I'm now able to take my entire digital photo library with me wherever I go! Very cool feature...

    The rest...The FM radio support is awesome and is of more use that i though it would be. Sometimes it just nice to let someone else be the dj for a change...The voice recorder works well and has a nice visual line level on the screen, though I'm not sure how much I'll use that feature. Its just cool to have when you need it...The personal organizer is really a nice touch too, its great having the ability to take my calendar and especially my contacts with me. And finally, the battery holds out 13 hours listening to music (with hold button on) and 4.5 watching video, on the standard battery. There is extra beefy battery available as an accessory that bumps those numbers to 26 hours for music and 9 hours for video! I'm sure it will add some bulk but thats really negligible its worth it when longevity is the key.

    zen vision

  • Squinting the latest episode of Lost

    From what I've seen so far, the new iPod video is pretty damn cool. Its ability to play QuickTime video looks very impressive, though small, as suggested the various hardware reviews thus far. Also, the size and the style of the player have still gone unmatched by it competitors, which still astonishes me...but all of that is still not enough for me to fork over 300 bucks. As always, the biggest flaw of this awesome gadget, is that it locks you in a proprietary nightmare from which there is no escape. As of now, the only supported format on the iPod for leased audio and video content is their proprietary fairplay drm. Now, I've heard some say that this is very similar to Microsoft Windows Media drm, and for the most part it is; but the one major difference is that Microsoft licenses their format to other hardware manufacturers! I would imagine that, as an employee of Apple, you would get fired for even thinking the word 'licensing' within a 10 mile radius of their headquarters. I just don't get how they have all of these consumers bought in to their evil plan of control on downloadable media. Why would you pay for a song that you don't even own? for .99 cents you can play it on 4 computers (with iTunes only), an iPod, and burn it to cd a couple of times...now thats just fucking crazy. You are, in fact, leasing the content, not buying, as the iTunes store would have you believe. The only leasing model that makes sense to me is the one that Napster, Rhapsody, and Yahoo have adopted. That is to pay one flat monthly rate for access to their entire library of music which can be downloaded and transfered to any supported portable device (at least a dozen or more from different manufactures) for as long as you subscription remains active. So, 'owning music', has now been reduced to having the ability to burn the song to cd a few times...and music is just the tip of the iceburg on this drm nonsense. The real wake up call for these trapped consumers will be when the next 'must have' portable media gadget comes out thats not made by apple, then they may finally realize that they are fucking screwed. "Consumer: Hello, Apple...how can I copy my 2,000 purchased songs the my new Creative Super Wookie player?....Apple: muuuhahahahahaha, click!
  • Tech podcasts

    If you were a fan of TechTV or just tech content in general than you'll really want to check out these podcasts. Most are done in audio and video formats with the audio version being available on popular podcast directories such as iTunes and Odeo. I was a big fan of The Screen Savers, so its really cool to see these guys back doing their thing.
  • Overtime hell in East Lansing

    Can't we, just once, beat those Michigan bastards in overtime! Last years triple was bad enough, but its really hard to swallow two in a row! I would rather had Michigan make that last field goal in regulation, because the sudden death overtime rule is only cool when it works in your favor...when your on the losing end, it almost feels like you've been cheated. So now, after four straight losses, I think we may just have to accept being on the losing end of this rivalry...This must be how Notre Dame feels each time we kick their ass ;)

    Theres still plenty of football to be played, so now its time to move on and just win the rest! Go State!
     
Powered by Community Server (Non-Commercial Edition), by Telligent Systems