Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

eddwo eddwo Wheres my head at?
  • Who Kinect see? Counting.

    This is more compact

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
           private int GetTotalSkeleton(AllFramesReadyEventArgs e)
           {
               using (SkeletonFrame skeletonFrameData = e.OpenSkeletonFrame())
               {
                   if (skeletonFrameData == null) return 0;
                   skeletonFrameData.CopySkeletonDataTo(allSkeletons);
                   return  allSkeletons.Count(s => s.TrackingState != SkeletonTrackingState.NotTracked);
               }
           }
  • How to Use ​DateTime.​Tostring("d​d/MM/yyyy hh:mm:ss") while creating expression tree?

    I think you want to be using

    Expression.Constant("MM/dd/yyyy hh:mm:ss",typeof(string))

    rather than Expression.Parameter().

    Yes you are using the value as a parameter to be passed to the MethodCallExpression, but it isn't a parameter of the lambda, its just a constant string included in the expression tree.

  • BBC on a roll

    +1 Shelock was awesome. Very few things seem be completely engaging any more, but that one managed to do it.  Htondo people manage to make things that good?

  • Need some input related to SQLite or alternative methods.

    Have you considered a binary NTFS Sparse File?

    That way you could store your data at a calculated offset [ID] into a file that you could quickly seek to to read back, but would not need to consume all the disk space for the IDs that do not have any associated data [K].

    Using a database engine to store such massive quantities of basic integers seems to be the wrong tool for the job.

  • Kitchen or Fridge pc?

    @devSpeed:

    Ah yes the old kitchen recipe computer, how often does that idea actually stand up to more than a weeks usage? A least with a tablet you wouldn't have to toggle in all the recipes via switches.

  • Will Oslo 'M' ever resurface?

    I don't really care about the Repository bit, and can do without Quadrant, but the 'M' language for Schemas, Models and Instances was really cool.

    I'd quite like to be able to create a meta-model for the stuff I'm trying to design and then read over it as an object graph and use it to generate schemas, plumbing and basic data entry forms. Or have a standard human-readable data storage format that I can then write import/export converters for into different formats. 

    I suppose I can make do with XML, the 'M' stuff seemed cleaner. With 'M' there was a standard way of expressing arbitrary graphs of a given structure, with XML it's only trees unless you use a lot of keyrefs. 

    It seems such a waste that years of work by all those talented people seems to have just evaporated. This always seems to be the case once a promising project is tied to another monolith like SQL or Windows. 

    I suppose there is always RDF and various tools built on that. Lots of research to do there.

  • Windows 7 restarts itself from hibernate

    Seems like the 'powercfg' -lastwake, command should be able to help you here.

    Though waking from hibernate is more of a hardware thing than a software one.

    I got fed up with having a home-made machine that wouldn't stay asleep so I eventually went and bought a pre-built 'designed for Windows 7' machine that goes to sleep, stays asleep, and wakes up to record programs with Media Center properly.

    I don't like doing things like that, the other machine worked well enought otherwise and there has to be a reason behind it waking up, but finding out what it is doesn't seem to be very straight-forward.

     

  • Has there been a negative video about MS on C9?

    Well this one was kind of a downer

  • Biggest Rip-Off on the Internet

    Jeff Atwood covered these a while back Profitable Until Deemed Illeagal 

    Guess that hasn't stopped anyone trying.

  • Is the Internet a place or a network?

    At least its not as bad as the people that ask "Did you remember to close down the internet?" when they mean closing IE.

    There really is no hope of ever explaining the difference between 'the web' and 'the internet' to most people, even those that otherwise seem reasonably clever have some fundamental misconceptions.

     

    Just a random example:

    "I have used Internet Explorer since the Internet first came out. I even remember the time when no-one had even heard of Internet Explorer (i.e. before the Internet was even available on PCs). The first version of IE that was released on standard PCs was IE 3.0 I believe (previous versions would only have been used in corporations); and I have used every version since then."