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
F

Freak30

@Freak30
About
Posts
279
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A joke I just recieved
    F Freak30

    And then you phone the person 11:30 at night? :confused: I have a similar problem with birthdays. Even though I may technically know the birthday if asked for it, I still don't think of it at the exact day.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge question

  • Thought of the day
    F Freak30

    Do you really think someone nose what the word means without looking it up? :)

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge

  • Is there a linguist in the house?
    F Freak30

    In German we use "ausfüllen" for forms, which in principle means close the gaps so that it's completely filled in the end.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge com question learning

  • DOH!!!!
    F Freak30

    That's just copy & paste, i.e. code duplication. Object reuse would have been to link to the post containing this "picture". ;P

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge question csharp help

  • How to check if pieces are ordered
    F Freak30

    I would do the check in stages. For the piecesOnGoal you only need the count, not the individual numbers. So start like this:

    int piecesOnGoal = 0, piecesOnBase = 0;
    for (int i = 0; i < 4; i++)
    {
    if (piecePositions[i] > 50)
    piecesOnGoal++;
    else if (piecePositions[i] < 4)
    piecesOnBase++;
    }

    // If pieces on base and in goal don't add up to 4, return false.
    // If pieces on base is 4, rturn true.

    for (int i = 0; i < piecesOnGoal; i++)
    {
    // Check here that piecePositions contains an element 54 - i.
    // if there is none, return false.
    }

    return true;

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    C# csharp data-structures tutorial

  • Switch boolean.... (reinventing if, unnecessarily)
    F Freak30

    I see a reason for the function but not for the switch statement. Except if you are paid by lines of code of course. :-D

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Weird and The Wonderful

  • Another thought of the day
    F Freak30

    Reminds me of a (very) old joke from the text book used in my English class. "My dog has no nose." "How does it smell?" "Terrible!"

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge html com

  • Satellite Assembly Not Working Properly
    F Freak30

    If I understand you correctly, you do a change in the main resource of the project but don't compile it. Then you manually propagate the change to the satellite assemblies. This means your satellite assemblies contain strings that are not in the main assembly. I assume that this is the problem leading to the exception. And if you compile the project again, so that the main assembly matches the satellite assemblies again, it will work. If this is what's happening, I think the behavior is by design.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    C# tutorial visual-studio com hardware debugging

  • Do unto others as you would have them do unto you....
    F Freak30

    F-ES Sitecore wrote:

    ... read yesterday's hand over notes to myself ...

    Do you really do this? :omg:

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Soapbox question announcement lounge

  • Rachel Dolezal
    F Freak30

    I have read a slightly different version here in which the boy flew with his mother. And she also had a contingency plan for if the "N" was reached, in which case they both would identify as "Zulu".

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Soapbox com json help announcement

  • Failure to remove folders after using CFileDialog DoModal
    F Freak30

    I assume that the CFileDialog object contains a handle to the directory once it's opened and that the handle is freed when the dialog object is destroyed. You could try the following:

    CFileDialog * dialog = new CFileDialog(true);
    dialog->DoModal();
    delete dialog;
    RecursiveDelete("F:");

    Alternatively you could try:

    {
    CFileDialog dialog(true);
    dialog.DoModal();
    }
    RecursiveDelete("F:");

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    C / C++ / MFC

  • A Note on Pterry's Legecy
    F Freak30

    My favourite always was "The Time Thief" (or whatever the original English title is (I have it in German)), although admittedly I haven't read all the books. And I'm also a fan of the Death character.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge learning

  • Take the selfie... Just take it!
    F Freak30

    Reminds me of the selfies with tigers I read about some time ago. Consider especially the second-to-last paragraph. :-D

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge com hosting cloud question

  • A Gift to You All
    F Freak30

    Obligatory XKCD

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge com announcement

  • A portable virtual development environment
    F Freak30

    You may want to think about that statement again, considering that IDE means Integrated Development Environment. :-D

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge workspace database visual-studio sysadmin tools

  • When is Cheryl's Birthday?
    F Freak30

    Albert was told the correct month. So if he was told August, he couldn't say that he knows. That he can say confidently at the end that he knows the date, can only mean he was told July (assuming of course neither of the two was lying).

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge com algorithms question learning

  • Who/What am I
    F Freak30

    W∴ Balboos wrote:

    And, at the risk of being redundantly redundant:   What about those people about whom it is said "He's good for nothing".

    No one is good for nothing. He can always be used as a bad example. :-D

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge question design

  • Remoteseption
    F Freak30

    I tried that once with I think it was Citrix. And it even worked, althouh it looked strange. I could then in the remote remote session disconnect the original remote session, which deactivated the whole construct. :-D

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge question

  • Code Puzzle
    F Freak30

    Sascha Lefèvre wrote:

    It's supposed to somehow (don't ask me) help with fixing code that is vulnerable to SQL-injection.

    After reading the actual questions, I don't think he is trying to fix the actual vulnerability with his code. Instead he may be trying to cheat the test system (by obfuscation) from detecting that there is an SQL injection vulnerability.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Weird and The Wonderful question database docker

  • There are times when I wonder what MS developers are smoking...
    F Freak30

    VS 6.0 had the much more useful option: Enable copy without selection. One of the first things I did after each installation was switching off this option. This way I was protected from almost all accidental copying. I was quite mad when I discovered they changed the option to only apply to empty lines in later versions. :mad: I don't even bother to change the setting nowadays, because most of the time when I want to paste, the cursor is on a non-empty line making the option worthless to me.

    The good thing about pessimism is, that you are always either right or pleasently surprised.

    The Lounge visual-studio tools question lounge
  • Login

  • Don't have an account? Register

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