Search:

Type: Posts; User: pianorain

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    982

    The development machine had two. The server...

    The development machine had two. The server machine had eight.

    The server did have a lot of RAM, but I don't think much of it was committed to hard drive caching. Most of it was used by the...
  2. Replies
    2
    Views
    982

    Hard Drive File I/O Help

    I'm pretty ignorant about many computer hardware topics. I've been banging my head against this for a couple of days, and then I figured I should ask people who might be able to help.

    At a...
  3. Replies
    20
    Views
    2,569

    Nope, that's fine. Given that was the entirety...

    Nope, that's fine. Given that was the entirety of the program, notice that there are no references to the object created from the first new after the second new has been performed. The GC will...
  4. Replies
    20
    Views
    2,569

    You don't; the GC handles that for you. Just...

    You don't; the GC handles that for you. Just make sure you don't have any references to what you want to clean up, and the GC will (one day, hopefully) take care of it.
  5. That's entertaining, considering I had the exact...

    That's entertaining, considering I had the exact same feeling about your post.

    At least this saves me from wasting time looking through the code that just finished downloading.
  6. Replies
    5
    Views
    1,129

    QFT. WPF apps have a marginal chance of...

    QFT. WPF apps have a marginal chance of converting over to Silverlight with a minor amount of hassle, but that's about it.
  7. Replies
    12
    Views
    2,145

    Yeah, you should probably ignore my first post. ...

    Yeah, you should probably ignore my first post. I'm still a bit groggy. ;)

    What does it mean to "remove" an instance from your array? Do you have to shorten the array, copying all the instances...
  8. Replies
    12
    Views
    2,145

    I don't fully understand what you're asking. Let...

    I don't fully understand what you're asking. Let me suggest a solution, and you tell me why it wouldn't work.

    Assuming your structure was named Struct, I'd use a SortedDictionary<Struct,...
  9. Replies
    3
    Views
    1,248

    Sure. My freelance rate is $100 USD an hour. ...

    Sure. My freelance rate is $100 USD an hour. Forward your billing information and we can get started.
  10. Replies
    20
    Views
    3,174

    There is no debate. The C++ standard requires...

    There is no debate. The C++ standard requires main() to return an int.
  11. Thread: Vampires

    by pianorain
    Replies
    15
    Views
    3,955

    While generous, you've needlessly bumped a 7 year...

    While generous, you've needlessly bumped a 7 year old thread in the C++ forum with C code. Please read the Forum Guidelines before posting.
  12. Replies
    6
    Views
    2,114

    Neat idea. Since my IDE allows you to collapse...

    Neat idea. Since my IDE allows you to collapse sections of code that won't be compiled due to the preprocessor, that's really handy.
  13. Replies
    5
    Views
    1,155

    I'd do something like this: void...

    I'd do something like this:
    void xorEncrypt(string& str, const string& key)
    {
    int strLen = str.length();
    int keyLen = key.length();

    for(int x=0; x < strLen; x++)
    {
    ...
  14. Replies
    10
    Views
    2,150

    Ha. After re-reading your post without the first...

    Ha. After re-reading your post without the first sentence, it sounds right. I think just the wording of the first sentence made me think you were going down the wrong path. My bad.
  15. Replies
    10
    Views
    2,150

    Everything the prof says in the video is correct,...

    Everything the prof says in the video is correct, but your explanation of it is wrong. Take a good look at the formula the prof writes on the board explaining how the parts of a single-precision...
  16. Replies
    6
    Views
    6,388

    8 year old thread. Nice one.

    8 year old thread. Nice one.
  17. Replies
    9
    Views
    1,585

    I agree. If you want to do something every time...

    I agree. If you want to do something every time the value changes, use ValueChanged. If you want to do something with the final value, use LostFocus or Validated (if you've turned on validation for...
  18. Replies
    13
    Views
    4,561

    Not quite.For example, for the following unsorted...

    Not quite.For example, for the following unsorted data:
    9 3 5 7
    3 8 5 1
    4 2 7 5
    1 5 3 7
    2 4 6 1the sorted data would look like this:
    1 2 4 6
    1 3 5 7
    1 3 5 8
    2 4 5 7
  19. First, read this:

    First, read this: << !! Posting Code? Read this First !! >>

    Second, this is just the code-behind. The UI is all in the XAML.

    Third, what is your question? You've got event handlers for...
  20. Replies
    9
    Views
    1,585

    Have you thought about using the Validated or the...

    Have you thought about using the Validated or the LostFocus event instead of ValueChanged?
  21. Replies
    8
    Views
    1,846

    Alternately, if both methods are so fast and the...

    Alternately, if both methods are so fast and the main thread must wait for them anyway, why not use blocking calls?
  22. Replies
    16
    Views
    18,759

    This thread is nearly two years old. I think...

    This thread is nearly two years old. I think Bubba has taken care of it by now.
  23. Replies
    16
    Views
    3,054

    Not that this matters a great deal, but you only...

    Not that this matters a great deal, but you only need to bitwise-and with 0xffffff in one place:
    private void CheckSelectFirework(Point point)
    {
    foreach(Firework firework in Fireworks)
    {...
  24. Replies
    16
    Views
    3,054

    There's probably a value in the alpha channel. ...

    There's probably a value in the alpha channel. If you mask with 0xffffff, it'll strip the alpha channel out.
  25. Replies
    16
    Views
    3,054

    You can do it that way, but if you're using...

    You can do it that way, but if you're using System.Drawing.Color, I'm not sure why you wouldn't do this:
    private void CheckSelectFirework(Point point)
    {
    foreach(Firework firework in Fireworks)...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4