Great Time At DevLink 2008

by michael 8/28/2008 2:36:17 PM

I had a wonderful time at DevLink last weekend, though I am just now recuperating. I must be getting old or something.  Anyway it is something to definitely add to the yearly calendar.

Getting There:

Having company makes long trips a lot more digestible.  I had a great time on the drive with David Mohundro and Randy Walker.  David, thanks again for driving.

BeforeDriveToDevLink

The night before the conference David and I went to eat at Bone Fish Grill.  This was the first time I had been to one.  It was very very good.  If you ever go there be sure to get the Bang Bang Shrimp appetizer.

Bang Bang Shrimp

I have never had a shrimp dish quite like it.

Anyway, on to the event:

Some of the sessions I attended:

  • Integrating WPF & WCF into Your Office Business Application by Tim Huckaby
    • Tim is an energetic speaker.  This was a good idea session / proof of concept.  He showed off some neat things you could do for automating Excel from a WPF action pane. 
    • He also showed some outlook integration,but his demo did have some malfunctions.  He was wanting to show a demo where: when you create a new email to a customer the customer sales information is retrieved via WCF and displayed in a WPF control.  For some reason he couldn't get it to replace the previous add-in.  I hope he gets a chance to post the sample code. 
    • The session also covered using Expression Designer to convert Adobe Illustrator files to XAML.
    • Tim stressed that as developer it is convenient to leverage open source app styles to give your WPF application a nice look without the need for advanced design skills.
  • The Scaling Habits of ASP.NET Applications by Richard Campbell
    • Richard sure knows his stuff.  He focused on using a formula to identify website performance.  Here is a good link to an article illustrating this.
    • Key Points:
      • Caching (too much) is not always the solution.
      • Be sure to work on the problems that degrade your performance the most.  Don't spend a lot of time re-coding the site to increase performance by 50% on 10% of the problem.
      • Browsers can only make a limited number of simultaneous requests.  Identify if any of your CSS or script files can be consolidated.
  • Multi-Threading with Silverlight 2.0 by Steve Porter
    • Discovered that multi-threading in Silverlight is almost the same as multi-threading in the rest of .NET.  :)
  • Silverlight 2.0: Styling and Skinning by Colin Neller
    • Colin gave an excellent presentation on styling and control templates.  This was a good illustration on how controls break down into their base components.  Expression Blend was utilized heavily.  He did things with Blend that I didn't even know were available.
  • WPF for Developers by Joe Wirtley
  • IN-Depth: Silverlight Deep Dive Part 2 by Todd Anglin
    • Todd covered isolated storage, DOM manipulation, and cross site scripting.  This was really good for me, because I had not dealt with any of these in Silverlight.  He also turned me on to an HTTP debugger called Fiddler that looks really handy.
  • Essence of LINQ (Advanced) by Charlie Calvert
    • This was a dissection of LINQ.  Charlie showed how the new language additions of anonymous types, partial methods, and Lambda expression were critical in the development of LINQ.  He showed how to look at the LINQ expression tree using the Expression Tree Visualizer.  This could come in handy for doing your own LINQ extensions.

Open Spaces:

I did not attend any of the Open Spaces sessions, but I wish that I had.  There seemed to always be a traditional session I wanted to attend.  I will definitely have to check this out next time.  David Mohundro posted a review on his blog referencing the Open Spaces if you want to know more.

 

The People:

It's always good to meet new interesting people at these events.  A bunch of us went out to eat sushi at Aya Sushi after the first day.  At first we were a little worried, because it was in an alley and we were the only customers.  It turned out to be a good place, and I think we were just there at an off time.  They apparently take pictures of the customers to post on their MySpace page.

Aya Sushi

 

Technorati Tags:

Currently rated 3.0 by 25 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

TrueCrypt 6a - System Encryption Benchmarks

by michael 8/13/2008 2:14:01 PM

TrueCrypt is a wonderful encryption package and best of all its free.  Many people already use it to encrypt thumb drives and to setup encrypted file stores. 

TrueCrypt has had system encryption (boot drive encryption) since version 5.  This is a similar technology to Vista BitLocker.  The entire boot drive is encrypted.  Before your operating system loads you have to enter a password.  This means you don't have to worry about the page file containing your encryption keys after shutdown.

I will be doing some traveling soon, and I was a little concerned about the safety of my data.  You hear all kinds of news stories recently involving theft of laptops.  With TrueCrypt you can do an easy in-place conversion of your existing system drive.  It also allows you to convert it back.  This convinced me to go ahead and give it a try after fully backing up my system. 

I need a very responsive system for development, so the possible performance impact worried me.  This of course leads to benchmarks.  I used the hard drive benchmarks included  in PC Wizard 2008.

Computer Stats:

Processor : AMD Turion 64 X2 Mobile TL-60 @ 2000 MHz

Ram : 2Gb

HDD : SATA 250 GB (5400 rpm)

Encryption Standard : AES (Best Performance)

Before Encryption:

1

After Encryption:

4

As you can see there is a decent performance drop mainly on the buffered IO.  CPU usage is higher during IO operations (encrypting and decrypting).  Qualitatively I haven't noticed much of a difference except slightly on bootup.  I would say TrueCrypt is a pretty good choice if you need a secure system, though you may want to have a decently powerful system.  It does utilize multiple cores so that helps.

You can download TrueCrypt here.

Currently rated 3.4 by 26 people

  • Currently 3.384616/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET WebControl ClientID Bloat

by michael 8/11/2008 2:29:00 PM

When you have a large control hierarchy this can lead to very large rendered ClientIDs.

The following illustrates what is rendered when you have a label within a GridView row within a UserControl within a Repeater.

<span id="ctl00_ContentPlaceHolder1_SampleRepeaterWithDescriptiveName_ctl00_SampleWebUserControlWithDescriptiveName_GridViewWithDescriptiveName_ctl02_Label1WithDescriptiveName">Sue 1</span>

This can greatly effect the page size especially if the Repeater or GridView has a lot of rows.

One way to take care of this is to override the ClientID property of the control.  Just create a server control that inherits from the WebControl.  Override the ClientID and UniqueID properties.  Use a hashcode of the string instead of the string itself.

Imports System.Web.UI.WebControls
Public Class LabelExtended
    Inherits Label
    Public Overrides ReadOnly Property ClientID() As String
        Get
            Return MyBase.ClientID.GetHashCode
        End Get
    End Property
    Public Overrides ReadOnly Property UniqueID() As String
        Get
            Return MyBase.UniqueID.GetHashCode
        End Get
    End Property
End Class

The output using the extended label is much more reasonable.

<span id="-819157441">Sue 1</span>

This took a sample page from 381 KB to 138 KB.  You can download the sample here.

I have a slight concern that the hashcodes may not always be unique.  They probably will be unique in the string ranges that would be generated in this case.  It might be better to use the hashcode generators found in the cryptopgraphy namespace.

I would be interested if anyone else has a better solution for creating shorter ClientIDs.

Currently rated 2.8 by 11 people

  • Currently 2.818182/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.NET Framework 3.5 SP1 and Visual Studio 2008 SP1 Released Today!

by michael 8/11/2008 8:18:33 AM

I have been using the very stable Beta, but a full release makes me feel a lot more comfortable.

VS 2008 SP1 Download

.NET Framework SP1 Download

Currently rated 2.7 by 6 people

  • Currently 2.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Michael Johnson Michael Johnson
Developer and Technologist.

E-mail me Send mail

Pages

    Recent comments

    Categories

    None


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2012

    Sign in