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...
Type: Posts; User: cpjust
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...
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...
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...
Can you explain why something like this is bad?
// psudo-code
proc = Process( "some_test.exe" );
while ( proc.IsRunning() )
{
Sleep( 100 );
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 :...
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 :...
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...
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.
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...
Have you read this yet? Amazon.com: Operating System Concepts (Windows Xp Update) (9780471250609): Abraham Silberschatz, Greg Gagne, Peter Baer Galvin: Books
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.
Use the localtime() function.
There's an example on that page.
‘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...
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...
And also about doing regular backups. :)
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 &...
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...
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.
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...
Why not add public setX()/getX() functions?
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.
I also don't see a declaration for TAnimal.
Use the -H option to compile your code in g++:
Preprocessor Options - Using the GNU Compiler Collection (GCC)
Unless they added Sleep() in C++0x (which I doubt), it's a Windows API function.
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 =...