Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

SortaCore

@SortaCore
About
Posts
164
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Today I did the impossible.
    S SortaCore

    jochance wrote:

    Does endian-ness ever matter to you?

    No, normally the compiler handles endian for you. The only time you have to check endian is when you're doing network programming, and then you just call a function to convert to network-endian from native endian or vice versa. Shouldn't even be using signed pointers, that's normally handled for you too... it was me messing up the code.

    jochance wrote:

    So. Much. Stuff.

    Yea, C++ got a lot, but if you learn it, you learn 80% of all the other languages. I'd recommend C# as a first language or for regular use, though.

    The Lounge debugging help data-structures testing beta-testing

  • Today I did the impossible.
    S SortaCore

    I once had VS debugger say a condition was false when the C++ code continued like it was true. Turned out the VS debugger was using unsigned pointer comparison, whereas the code was using signed pointer comparison. Debugger was technically more correct since signed pointers don't really make sense...

    The Lounge debugging help data-structures testing beta-testing

  • Lights on your PC, love or hate them?
    S SortaCore

    I don't use them, because it's just light pollution. My desktop is tucked away, and even if it wasn't, it's like having your boiler on display. I even found the little plugs for the lights on the desktop case to keep them unplugged. Headphones have a USB to light up, which I don't plug in. I do like having a backlit keyboard, though, all the keys lit up via transparent letters. Does help find keys, particularly good for things that need quick fixes at night. (usually just take a note on my phone, though) I just set my keyboard to plain blue, no fancy RGB or flashing/cycling.

    The Lounge java regex performance tutorial question

  • Do you all use wysiwyg web site editors.
    S SortaCore

    DerekT-P wrote:

    Then copy/paste changes back to the source. The downside with that is I have to remember all the elements where I changed any CSS values; to make this manageable I tend to work in very small "increments" updating the source CSS / HTML frequently and reloading the page

    You may want to explore the Filesystem tab in Chrome dev tools: it'll save your changes to the original CSS file. Might just be for when you're working on a localhost webserver, but I've found it pretty useful.

    The Lounge css question

  • Albert Einstein needs you to do something...
    S SortaCore

    Wasn't Einstein the same one to say "If you can't explain it simply, you don't understand it well enough"?

    The Lounge game-dev tutorial question

  • Customise my static without a ctor
    S SortaCore

    I'm used to C# so tried

    return new client(){username = ""; /* etc */ }

    but didn't get told off about it until compile-time ;P

    The Weird and The Wonderful c++ performance question

  • Customise my static without a ctor
    S SortaCore

    I'll get a static initialised without a explicit ctor if it kills me! header:

    struct client {
    static client dummy;
    std::string username;
    int id; // 0+ OK
    }

    cpp:

    // Static definition
    client client::dummy = std::move(*[=] { client * c = new client();
    c->username = "";
    c->id = -1;
    return c;
    }()
    );

    I'm not going to use this code but I wonder about it... memory leak?

    The Weird and The Wonderful c++ performance question

  • Malware discovered that could threaten electrical grid
    S SortaCore

    I wouldn't say it's common sense, since it's not commonly done. It's certainly not a bad idea, or an irrational one. Preppers do take the form of "build a nuclear bunker and stock up years worth of baked beans". Some people make it an obsession, so the term "prepper" tends to be used similarly to "conspiriacy theorist" now. It's a large solar flare that'll kill all the plants. The heavy-duty transformers will blow and need replacing. Multiply that by most the side of the Earth getting overwhelmed and you're not looking at power back anytime soon. I just have a little UPS that'll keep my compy running for an hour. Enough to save docs and check the internet. Not enough space to get a generator or whatnot. I wonder how those living in caravans will cope...

    The Lounge css com question announcement

  • Everyone says c++ is faster than c#, why?
    S SortaCore

    Also, you're using < in one for loop, and <= in the other.

    The Lounge csharp c++ algorithms question

  • The Greatest Invention
    S SortaCore

    I've reached Twenty x 10. ;P Time well spent. (I have a screenie, but since it's HTML5, that's kinda moot.) The trick is to build 3 towers, on the left/right/center, and move all the joined-together ones on top of the towers. And just play it endlessly whenever you're not sure of some code, with some music like Ayreon's The Human Equation.

    The Lounge

  • Windows 7 Welcome Screen
    S SortaCore

    Being serious, it may not be possible, if it's caused by updates. Probably done by M$ in the name of 'simplifying things'. You can get programs that custom-make your login screen[^], so that might be an option. Obviously it might be a security risk too, but that's up to your discretion. Give changing Fast User Switching on/off as well. That might have something to do with it. Another hacky workaround is to design an auto-login program that logs both users in on PC bootup, in some way - that will make their icons be specified explicitly as per the lock screen design.

    The Lounge help question com windows-admin tools

  • Brainless and Questionable Action
    S SortaCore

    Seems like "ban user" is their default response. ...sounds like quite a few chatroom admins.

    The Lounge sales question announcement

  • The Greatest Answer in the History of StackOverflow?
    S SortaCore

    Visual PH# Studio 2015 SP3 to be released with three editions: Ultimate, Professional, and Express[ly Irritating].

    The Lounge regex question com tutorial

  • Now I finally know where 42 is coming from!
    S SortaCore

    He apparently "gazed into the garden, scratched, listened to the birds, then wrote 42". I suspect there was a time-traveller wearing a camo suit in his garden with a MindRay 3000.

    The Lounge csharp question com graphics game-dev

  • Fear Of Wide Monitors
    S SortaCore

    They worked out you can read faster with one word displayed at a time. So why not apply that to code too? Go through hundreds of lines in a few minutes and hope your instincts are attentive enough.

    The Lounge csharp visual-studio tools help question

  • Being told to fix bugs caused by others
    S SortaCore

    They know regex. That's a coding language, right?

    The Lounge help sysadmin tutorial question learning

  • Being told to fix bugs caused by others
    S SortaCore

    I thought Vista was a virus. I tried installing XP but Vista insists it's a "better version". Now I just use 3.1 and have no viruses!

    The Lounge help sysadmin tutorial question learning

  • Bacon Good For You, Reports Best Scientist Ever
    S SortaCore

    Jörgen Andersson wrote:

    Enter the banjos. :)

    Dramatic banjos. :laugh:

    The Lounge com help

  • Neither weird nor beatyful
    S SortaCore

    Richard Deeming wrote:

    t was decompiled rather than released as open-source

    Apparently it's from a PDB file. That essentially contains the original full code. Notwithstanding tools like .NET Reflector can revert C# apps back to original code as well. They'll have to run ngen to hide anything. Presumably the "winner" had more important matters to deal with, so they gave them the PDB so they could debug anything that went wrong.

    The Weird and The Wonderful csharp security xml help announcement

  • CP in other languages
    S SortaCore

    Oso Oluwafemi Ebenezer wrote:

    I will go for Whitespace[^]

    Whitespace, where you can write two coding languages at once in one badly-indented file.

    The Lounge com help career
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups