Hans Olav

Hans Olav hansol Cloudtastic

Comments

  • Channel 9 Live at PDC10

    I'm stuck wondering if this is the ultimate FAIL for azure. While Microsoft is dogfooding their own azure platform and finding out it didn't work... I'm really feeling pitty for all the places around the world who's actually live-streaming this as an event with free pizza and whatnot.

    Not cool, microsoft...

    And someone (I'm thinking Dan Fernandez) please tell the truth about the failure... Would be very interesting to hear the story from the inside!

    Perplexed

  • TWC9 - ​Illustrator-​to-Canvas, ​ms​Performance, ​Extension​Method.net,

    @exoteric: Agreed! I love the succint syntax of the ?? operator, but the Contract.Requires stuff, that's attributes from a feature that's not in production yet, right? Or am I not up to speed here...

  • TWC9 - ​Illustrator-​to-Canvas, ​ms​Performance, ​Extension​Method.net,

    Epic Dan-rant from minute 16:

    "But then I try to create... a God-damn stream - but that's an abstract class... so then I need to find... a StreamWriter...but."

    Truer words were never spoken... And I love the way it ends with a "but", that but is what every developer feels like a grunt coming from your soul every time you try to convince yourself that correct encapsulation and abstraction layers and architecture comes before productivity and ease-of-use.

    Or wait... No it doesn't! Cover the 90% use-cases first and the 10% use-cases later. In the case of symmetric encryption the 90% use-cases are with a string-in string-out. An extension method for this need to be in String - and this needs to happen now as a critical reboot-all-servers update to .NET 4.0! Heck I'll even implement the solution right here and now:

      /// <summary>
      /// Critical extension methods to make encryption and decryption easy.
      /// </summary>
      public static class CriticalStringExtensions
      {
        /// <summary>
        /// Gets a Stream containing the bytes from the given string.
        /// </summary>
        /// <param name="source">String object.</param>
        /// <param name="encoding">Encoding to use. Uses UTF8 as default.</param>
        /// <returns></returns>
        public static Stream AsStream(this string source, Encoding encoding = null)
        {
          if (encoding == null)
            encoding = Encoding.UTF8;
          
          if (source.Length > 0)
            return new MemoryStream(encoding.GetBytes(source));
          else
            return new MemoryStream(0);
        }
    
        /// <summary>
        /// Gets a string from the bytes in a stream.
        /// </summary>
        /// <param name="source">String object.</param>
        /// <param name="stream">Stream to read from.</param>
        /// <param name="encoding">Encoding to use. Uses UTF8 as default.</param>
        public static string AsString(this Stream stream, Encoding encoding = null)
        {
          if (encoding == null)
            encoding = Encoding.UTF8;
    
          using (var reader = new StreamReader(stream, encoding))
          {
            return reader.ReadToEnd();
          }
        }
      }
    

  • Cloud Cover Episode 29 - Working with CSPack

    @dunnry: Thanks, I'm looking forward to it already...

    Mmmmm... I can't wait Smiley

  • Cloud Cover Episode 29 - Working with CSPack

    Any chance of more sql azure shows? If not, can you answer how sql azure works with SELECT and the two replication servers, are they used for load-balancing read requests like SELECT at all?

    The reason for my asking is that this will greatly impact whether I must shard my DB or not since it's mostly SELECT-heavy and often with historical data not ever going to change, like how many orders where there last month by this or that customer or product blah-blah...

  • Cloud Cover Episode 29 - Working with CSPack

    , dunnry wrote

    *snip*@hansol:

    I have a habit of not knowing what I am going to say until I say it.  Hence, the emphasis on whatever words I feel like at the time.  Nothing to read between the lines there...

    Cool Smiley - Keepin it real!

  • Cloud Cover Episode 29 - Working with CSPack

    And one last thing: More SQL Azure please!

  • Cloud Cover Episode 29 - Working with CSPack

    Darn.. I was going for a "Hey homey, what's with the glum face? You glum or somethin, eh glummy?"-kind of joke above... Hopefully my Zoidberg-image next to it will compensate Smiley

  • Cloud Cover Episode 29 - Working with CSPack

    "Welcome to the show" with emphasis Smiley

    So the show shows itself being a show now, eh Ryan?
    Wow! What a blow to my show theorem Wink

  • Cloud Cover Episode 28 - SQL Azure with David Robinson Part 11

    @gahayden: Hmm.. After thinking about what you say I do think you have a good point. David didn't get to do much other than fend off Ryan and Steve fooling around Wink

    And about the shows intent, I'm sure officially it's to "promote and provide insight" and such, but I really like the loose style of Marx and Ryan. Of course it's not standup-material, but on the other hand I've laughed more listening to them than to many standup shows! This episode was about 90% fooling around and 10% topic. Maybe the mix should have been balanced better towards like 30-40% off-topic bantering...

    And as to the "thin SQL Azure story" I meant David's Access migration demo, not SQL Azure it self. That's an infinite topic! Smiley

  • Cloud Cover Episode 28 - SQL Azure with David Robinson Part 11

    Woah duderinos! (Leigh, Hp and gahayden!)

    What up wit da hate? I admit I didn't laugh as hard this time as many other episodes, but no need to hate on smarx and dunry trying to make the best out of the relatively thin sql azure story. Steve and Ryan don't you dare get all corporate and boring on me!

    And for the people with the trolling/downright rude comments: This show isn't just a "show", it's a community show where you sit down and relax - you don't sit and take notes. At least that's how I view it - It should be silly and a waste of time, except you get the side-effect of learning.

    I'm no expert but I'm pretty sure silliness and loose talk is the absolute purest form of entertainment which inevitably leads to the purest form of learning.

    Cheers! Smiley

  • Cloud Cover Episode 28 - SQL Azure with David Robinson Part 11

    Thanks! Finally a show dedicated to sql azure! Poor David Robinson though... That guy should start his own sql azure show and invite Steve and Ryan just to mess with them and get back Tongue Out

    But seriously, more sql azure please... May David have mercy! Smiley