Lance Larsen - .NET Architect Madison Wisconsin

Some very difficult choices in choosing from so many awesome talks at That Conference – but can’t wait – and wanted to share…

For those speakers and talks that I’m not able to get to – love to have you out to MADdotNET to give your presentations!

Encourage everyone to share their schedule!

 

 

Monday

8:30 AM

Denise Jacobs Denise Jacobs Keynote
 

10:30 AM

Chris May Developing applications for Google Glass
 

1:00 PM

  THAT Wildlife
 

2:30 PM

Chris Gardner Biometrics: Using You Body for Fun and Profit
 

4:00 PM

Mike Rohde Sketchnoting Workshop
 

8:00 PM

  Game Night

Tuesday

8:30 AM

Dave Thomas Dave Thomas Keynote
 

10:30 AM

Leon Gersing Keep Software Weird
 

1:00 PM

Lance Larsen Sewing for Geeks — IL Weaving with AOP
 

2:30 PM

Brian Kalbfleisch We Can with WeDO. Using LEGO to Teach Little Campers Programming.
 

4:00 PM

Lance Larsen Robots Robots Robots!  Lego Mindstorm EV3
 

5:30 PM

  That Pig Roast
 

10:30 PM

  Waterpark Party

Wednesday

8:30 AM

Doc Norton Michael “Doc” Norton Keynote
 

10:30 AM

Sharon Cichelli Hello, Arduino: Write code that interacts with the real world
 

1:00 PM

Keith Burnell Teaching the Junior Campers to Program with the Grown Up Tools
 

2:30 PM

John Hauck Kidz That Code

Created the following Xbox’ish Achievements and wanted to share with everyone for That Conference

Updated my Counselor image on my That Conference Profile page as follows.

Achievement1-ThatConference-CamperAchievement2-ThatConference-CounselorAchievement3-ThatConference-SponsorAchievement4-ThatConference-OrganizerAchievement0-ThatConference-Blank

Download them all here!  With a PaintShop Pro master image file for all the layer’y goodness.

Thanks Clark adding to the ideas!

Tickets for #thatConference – the premier Mid-West ( and beyond ) developer conference go on sale at 8:12 am tomorrow morning!

Get over to Eventbrite early @ http://thatconference2013.eventbrite.com/

After all the success last year and 750+ very happy attendees – be warned that they could sell quickly, so get your tickets as soon as possible – don’t be left out of the waterpark… errr… developer conference…!

  • 125+ talks — in fact, just finished arranging the schedule of talks ( top secret – hush hush ) – and there are so many great ones that I don’t know which ones to choose myself!
      
  • All technology stacks – and spectacular lineup of speakers.  Check out the sessions!  Check out the speakers!  After that, easy decision…
      
  • New this year!  A whole room and set of talks specifically for kids and family geek events — including many about teaching programming to kids.  I’ll be doing “Robots Robots Robots! Lego Mindstorm EV3” about the not even released yet new LEGO robotics Mindstorm EV3 set – that comes out just a little more than a week prior to the event.  Look at these links for new EV3 awesomeness – http://goo.gl/HWgxz & http://goo.gl/5Qo0n
       
  • Waterpark – Waterpark – Waterpark!  Did I mention I’m bringing my family to a developer conference?  How many conferences can you say that about and NOT be filing for a divorce afterwards…? :)
      
  • Lastly, don’t forget to signup for the thatConference Newsletter – middle of page off of thatConference site.

Again – get on early – get your tickets and then you don’t have to worry about missing out.

See you at 8:12 am @ http://thatconference2013.eventbrite.com/

So we will pick up from where we left off in “Custom Configuration Pattern 101” – we are looking to elegantly consume complex configuration settings in App.config and Web.config files – in this case we are looking to step up our game and consume the following…
  

<CertificateSection authenticationMode="Test">
  <Certificates>
    <add certificateType="cipherCertificate"
          findValue="E86D56AC84D51F9C2D12C898341F5FA38E909B02"
          storeLocation="LocalMachine"
          storeName="TrustedPeople"
          x509FindType="FindByThumbprint"/>
    <add certificateType="serviceCertificate"
          findValue="3D25DB176A2098F010C288761F5B367F3DFA07FA"
          storeLocation="LocalMachine"
          storeName="TrustedPeople"
          x509FindType="FindByThumbprint"/>
  </Certificates>
</CertificateSection>

We will continue our “CustomConfigurationPattern” console application!

Read more

So if you’ve even needed to store custom data in your App.config or Web.config files before – you’ve probably used the ConfigurationManager.AppSettings for name/value pair data – but what if you have more complex settings that you want to store in the config files?

Such as…
 

<Certificate findValue="7776F8E373CF19EEEC88293031893B8D985792F8" 
             storeLocation="LocalMachine" 
             storeName="TrustedPeople" 
             x509FindType="FindByThumbprint"/>

What do we do?  We extend .NET’s System.Configuration.ConfigurationSection of course… :)

Read more

dotnetConfHave the dotnetConf live stream up and running while working… Totally free – online 2-day developer conference.  It looks to be a fantastic line up of talks both today and tomorrow!  Join dotnetConf

Last we saw our intrepid developers they were creating their first “Code First + Migrations” 101 project – today we join them facing the dreaded “we want to do code first, but already have an existing database!!!”.  Can they survive? Absolutely, and here’s how… :)

imageFirst we need to add “Entity Framework Power Tools” – click on “Tools” –> “Extensions and Updates…” –> select “Online” and then search for “Entity Framework Power Tools” –> “Install” and we have added some great new EF Power Tools features!

Now that we have EF Power Tools installed – if we right-click on our project we should see “Entity Framework” as one of the options – and off of that we have “Reverse Engineer Code First” and “Customize Reverse Engineer Templates”.

Read more

Had the need to randomly shuffle an IEnumerable collection that I was bringing back through Entity Framework – so did some searching and came across a couple solutions – some that were completely crazy – but took the best ideas, combined them and then wrapped the final solution into an extension method that I wanted to share. :)  Code is as follows… ( BTW – I love extension methods btw == code & forget )
  

   1:  public static class IenumerableExtensions
   2:  {
   3:      public static IEnumerable<T> Randomize<T>(this IEnumerable<T> enumerable)
   4:      {
   5:          var r = new Random();
   6:          return enumerable.OrderBy(x => r.Next()).ToList();
   7:      }
   8:  }

imageSo just by doing the following:

var widgets = db.Widgets.AsEnumerable().Randomize();

Results are randomized, and it Works Beautifully! 

Wrote the following console app – based on my previous Entity Framework “Code First + Migration” 101 blog article – that shows the Randomize Shuffle – so you can Download and try it for yourself!

Good Coding!

Download Code ( ~2.7M )

So for those who haven’t used Microsoft Entity Framework’s “Code First” approach to application development – it’s a very powerful approach that allows us developers to spin up a project with a database back end in record time!  Early on it had the distinct disadvantage that it didn’t allow for changes in your code to migrate to the database – but, as we will see, that feature has also matures and is pretty sweet now… :)

So where to start?

Open Visual Studio, click “New” –> “Project” –> “Console Application” and create your application…

imageAdd Entity Framework to the project.  We’ll do this by using “NuGet”.  Right-Click on the project, select “Manage NuGet Packages…”, enter “EntityFramework” ( usually right at the top ) and click “Install”.  This will add all of the “entity-goodness” to your project!

 

 

Right-Click on your project and click “Add” –> “Class…” –> name it “Model.cs” and insert the following code…

Read more

We have a lot of really great events coming up!  Wanted to make sure everyone is aware of how many cool events there are – and how dedicated the people that make these events possible are looking to help you!

image
image
image
image image

Read more