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

evildictaitor evildictait​or Devil's advocate
  • Docker on Windows Server

    , TexasToast wrote

    Why did we need 3 browsers?   All browsers work the same don't they? :S

    Not quite. They all render pages pretty much the same, but you have a choice of which billion dollar American technology panopticon you want to surrender all of your privacy and private data to.

  • Docker on Windows Server

    , fanbaby wrote

    So, Microsoft will add capabilities to the Windows kernel that are already in linux (cgroups and namespaces) which enable containers. That's all.

    It's had cgroups (a "Job") since at least XP and namespaces have existed since NT was originally concepted, although not everything has always been namespacable. Processes, files and IPC has always been namespaceable but I think network only been namespaceable since ~Windows2000.

    All of these had a major upgrade first in Vista (with better support for low integrity levels) in Windows8 with AppContainer syscall-isolation, so it's certainly the case that someone could implement cgroups and namespaces in, say, cygwin to run docker natively on Windows.

    These features are used quite aggressively in various applications (like IE, Chrome, Firefox, Adobe Reader and Office) to spawn sandboxed processes for rendering to ensure any malware that exploits a 0day in their respective products is isolated to an ultra-low privilege process, and used in WinRT apps to ensure that programs installed from the Windows Store cannot be used to install malware on your PC.

  • i hate that volume 13 limit !!!!!

    , ScanIAm wrote

    My elected official has very little sway with whatever EU group decided this was important....

    If you're in Europe, complain to your MEP (or vote for a party that is seeking to leave the European Union).

  • Ebola spreads to USA

    , TheJoe wrote

    @Proton2:Only a Sith deals in adsolutes.

    My favourite part about that quote is the only at the front - which is an absolutism in its own right.

  • i hate that volume 13 limit !!!!!

    It's not a BT thing - it's a UK (and European) thing.

    To comply with local laws, WP and other devices are not allowed to have a volume that exceeds a proscribed decibel level. The limit is determined by where you bought your phone and cannot be disabled. This isn't because Microsoft is being a nanny - it's because the alternative is Microsoft would be legally prohibited from selling their phones in your jurisdiction.

    If you don't like it, feel free to write a letter to your elected officials and tell them it's stupid.

  • No more need for developers (that means you)

    I just hope these new fangled compilers never get popular. I hear they'll make us all redundant too!

  • Most epic method you've seen?

    Nested code, code with gotos and do {} whiles with breaks are all just ugly. Instead, if you're writing C, learn to program with status-codes, and if you're writing in (non-kernel) C++ or C#, use exceptions.

    How to program with status-codes:

    HRESULT SomeFunc()
    {

    HRESULT hr = S_OK;
    void* somealloc = NULL;

    //
    // 1: Do first thing
    //
    if(hr == S_OK)
      hr = DoFirstThing();

    //
    // 2:
    //
    if(hr == S_OK)
    {
      somealloc = malloc(sizeof(AThing));
      if(somealloc == NULL)
        hr = E_OUTOFMEMORY;
    }

    //
    // 3: Do another thing
    //
    if(hr == S_OK)
      hr = DoSomethingWithTheNewThing(somealloc);

    // 4: cleanup:
    if(hr != S_OK)
    {
      if(somealloc != null)
        free(somealloc);
    }
    return hr;
    }

  • Most epic method you've seen?

    , androidi wrote

    @figuerres: Scroll to the bottom of this link (GetSniNameFromSslPacket).

    https://raw.githubusercontent.com/SoftEtherVPN/SoftEtherVPN/master/src/Mayaqua/Network.c

    Personally if I came across this code on something I was actually working on I'd leave it alone unless it stopped working. I'm not expert in C so if I started manually fiddling around with it I think there's a high risk I broke it. Even if it was in C# I'd still be hesitant to manually re-arrange it - as long as it works, I'd rather be working on new features or fix something thats broken. (Yeah there's Extract Method in C# but if I was writing this same function from scratch, the result wouldn't look like what doing a bunch of Extract Method's here would, so I'm not tempted to do that here just for sake of removing the nesting)

    There's so much wrong with that function it's hard to know where to begin.

    Basically, there's zero excuse for writing code like that. It's negligent programming that leaves the codebase unmaintainable and your users vulnerable because code like that is hard to properly security review.

  • Windows 10 won't be the last major version

    , DeathBy​VisualStudio wrote

    If I recall wasn't the folks who brought us W8.1 and W8.1U1 more of a maintenance team rather than the principle Windows development team.

    Not sure where you heard that, but Windows8.1 (Windows Blue) was developed by the core Windows development team at Microsoft in Redmond.

    "Maintenance" of Windows is done by the sustained engineering team, but they literally only fix, test and regression-test security bugs, they never add new features.

    Similarly, the "tweaks and bugfixes" in Windows Blue is your opinion coming from a user's perspective; specifically, the shell didn't really change all that much. But it doesn't match at all with the changes under the hood, which introduced major new syscalls, security model components and breaking changes across all of the core API sets.

    Windows 8.1 feels like a small improvement to Windows 8 to users, but with kernel-colored glasses it's as big a change as Windows Vista -> Windows 7.

  • It's called...

    , Craig_​Matthews wrote

    I've been hearing so much conflicting information about this, so I'm asking...on desktop systems or hybrid systems (e.g. Phone or hybrid tablet), can I switch between 'modern' UI and desktop UI? Sometimes I think Microsoft takes the 'more choice = more confusion' a little far sometimes.

    No. Unless they've hidden the option somewhere, on Threshold the Start Screen is just gone. You have a Start Menu instead. On tablets you'll have a Start Screen and no start menu.