Search:

Type: Posts; User: cpjust

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds; generated 26 minute(s) ago.

  1. Replies
    2
    Views
    3,869

    How to install Cygwin with sshd?

    Hi,
    Does anyone know the minimum number of packages I need to install to get an sshd server running on Cygwin?

    If I install all of Cygwin, I can get it working, but that's almost 17GB.

    I found...
  2. Hey, I just used that WaitForExit() today...

    Hey, I just used that WaitForExit() today actually. ;)
    I guess my example wasn't that good. But here's a better one. Lets say you're starting a service on Solaris that takes a while before it's...
  3. Also, I'm pretty new to C# (which is why I'm...

    Also, I'm pretty new to C# (which is why I'm looking for tips on best practices), but I really liked the guidelines Herb Sutter had in "C++ Coding Standards: 101 Rules, Guidelines, and Best...
  4. Can you explain why something like this is bad? ...

    Can you explain why something like this is bad?



    // psudo-code
    proc = Process( "some_test.exe" );

    while ( proc.IsRunning() )
    {
    Sleep( 100 );
  5. Here's some things I came up with so far: 1. ...

    Here's some things I came up with so far:

    1. Use proper Dispose pattern to properly release resources (such as raw pointers or handles, files or network connections…):


    class SomeClass :...
  6. Here's some things I came up with so far: 1. ...

    Here's some things I came up with so far:

    1. Use proper Dispose pattern to properly release resources (such as raw pointers or handles, files or network connections…):


    class SomeClass :...
  7. Looking for C# best practices/coding guidelines

    Hi, I'm trying to come up with a good set of C# coding guidelines for my team. What I'm interested in are things that could could prevent actual problems or optimizations rather than just coding...
  8. Don't use 26 different variables. Use an array...

    Don't use 26 different variables. Use an array or better yet, a vector. There should be info about arrays & vectors in the FAQ section if you haven't used them yet.
  9. Replies
    3
    Views
    3,977

    I would create a map of sentence fragments where...

    I would create a map of sentence fragments where the keys/values are input/output text. You might want this map to be read from a file so you can add/change the responses easily without recompiling...
  10. Replies
    21
    Views
    10,476

    Have you read this yet? Amazon.com: Operating...

    Have you read this yet? Amazon.com: Operating System Concepts (Windows Xp Update) (9780471250609): Abraham Silberschatz, Greg Gagne, Peter Baer Galvin: Books
  11. If you want to return null, you have to do what...

    If you want to return null, you have to do what Java does and return a pointer.
    But that's not usually the best idea. Just do what bithub suggested.
  12. Replies
    9
    Views
    4,145

    Use the localtime()...

    Use the localtime() function.
    There's an example on that page.
  13. Replies
    7
    Views
    6,595

    ‘Lusername’ was not declared in this scope It's...

    ‘Lusername’ was not declared in this scope
    It's pronounced "Losername" :D

    I haven't done much C++ lately, but if I remember correctly, putting L infront of a string makes it unicode. So you...
  14. Replies
    3
    Views
    5,458

    Strange chmod permissions?

    Hi,
    I'm looking at some Python code and I saw a very strange like like this:

    os.chmod( filename, 33152 )

    WTF?? I've never seen 5 digits in a chmod permissions number. What exactly does 33152...
  15. Thread: Freak data loss

    by cpjust
    Replies
    14
    Views
    4,418

    And also about doing regular backups. :)

    And also about doing regular backups. :)
  16. Thread: using classes

    by cpjust
    Replies
    7
    Views
    3,516

    Wow! I don't even know where to start. All I...

    Wow! I don't even know where to start. All I can say is, you need to learn the basics first before you start with classes...
    Specifically, you need to learn the difference between assignment &...
  17. Replies
    109
    Views
    26,156

    Actually, the thing that bugs me the most is the...

    Actually, the thing that bugs me the most is the list of threads in a forum. I used to be able to see about 3x as many threads/screen.
    If you can make the icon a lot smaller and move the "Started...
  18. Replies
    22
    Views
    7,504

    I don't see the point of only appending to the...

    I don't see the point of only appending to the code. It would be more fun (and easier to fix mistakes) if we can only insert new lines (anywhere) but not edit or delete lines.
  19. Replies
    109
    Views
    26,156

    OMFG! I haven't checked the site for a week and...

    OMFG! I haven't checked the site for a week and now it looks like total crap. :(
    Why does everything have to be so huge? My scroll wheel is gonna break soon with all this scrolling.
    Is there any...
  20. Why not add public setX()/getX() functions?

    Why not add public setX()/getX() functions?
  21. Replies
    4
    Views
    4,137

    I don't even bother reading messages with useless...

    I don't even bother reading messages with useless titles. I don't have time to read them all, so I look for titles that I might be interested in and read those.
  22. Replies
    3
    Views
    3,706

    I also don't see a declaration for TAnimal.

    I also don't see a declaration for TAnimal.
  23. Use the -H option to compile your code in g++:...

    Use the -H option to compile your code in g++:
    Preprocessor Options - Using the GNU Compiler Collection (GCC)
  24. Replies
    9
    Views
    4,348

    Unless they added Sleep() in C++0x (which I...

    Unless they added Sleep() in C++0x (which I doubt), it's a Windows API function.
  25. Thread: String equality

    by cpjust
    Replies
    11
    Views
    3,352

    I don't think both variables need to be...

    I don't think both variables need to be std::string for == to work. This should work just as well:


    double myfunc(const char* z) {
    const std::string mystr = "Test";
    double retVal =...
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4