the problem is with this code at line 81 in your client:
if ((numbytes = recv(sockfd, buf, MAXDATASIZE-1, 0)) == -1) {
perror("recv");
exit(1);
}
when you connect to...
Type: Posts; User: ziekfiguur; Keyword(s):
the problem is with this code at line 81 in your client:
if ((numbytes = recv(sockfd, buf, MAXDATASIZE-1, 0)) == -1) {
perror("recv");
exit(1);
}
when you connect to...
Please post your code between CODE tags, that way the indentation stays right.
I don't see anything that checks for '!urban' in your code, you could do that the same way you check for '!hello',...
My guess would be that you should remove the last yes from this line
expect "Are you sure you want to continue connecting (yes/no)? yes"
But it would probably be a better idea to fix your keys so...
I am able to ping or ssh to other devices on my home network. I thought I was unable to ping outside that, but apparently I used a wrong IP adress as I can get a response from 173.194.66.103...
Hallo everyone.
This morning my laptop suffered a gpu crash while I was logged in to a vpn. It didn't respond to anything anymore so I turned off the laptop by holding the power button. Now, since...
The beep program uses the ioctl function, so it's a little less direct than what you're trying to do.
Here is a little program i made that's based on the beep program. It reads tekst and converts it...
How are you creating that variable?
If you are allocating it on the stack, your program is going to fail. IIRC swap memory is never used for extra stack space.
If you did this, you could try...
Thank you.
Here is the latest version of the script, including crdlb's solution for special characters and now also removing trailing underscores at the end of the filename, before the extension.
...
According to the documentation using the subsystem module is the preferred way.
See here for information and examples of how to use it.
I've never done anything like this, but you could try compiling with -m32 to make a 32bits version of the library.
I think the best thing you can do is look at the code of existing roguelikes for examples you can use.
there are plenty of open-source roguelikes with souces freely available.
Dungeon Crawl: Stone...
Like nvteighen said, os.system opens a shell for you, so any line you can put in a shell script would work when passed to os.system. The only difference would be that you can't get the output back...
Why are you using an hard kill, why don't you try SIGTERM first?
I can't be sure about the answer to your question, but do you open the socket before you fork the program? if so, do you close it...
Don't use stdlib.h, stdio.h or any kind of jump in C++, in C++ use cstdlib, iostream for I/O and exceptions for error catching.
The code you have is C, you should remove the line with `using...
The problem with special characters is that there are a LOT of them, and i couldn't (and still can't) be bothered to make all of them work.
But, as per your request, here is a slightly improved...
For every other external library yes. But not for most things in the C standard library.
Actually I'm not really sure why the math functions are in a separate library in C, with C++ you wouldn't...
try to compile with -lm that will include the math library
Lol, I hadn't even thought of that way :P Maybe I should start coding less and thinking more.
He said mtpaint, not mspaint.
The sleep is just there to make it go slow enough for you to see the effect, you don't have to use it in your own program.
Here is some code I used a while ago to do somethign similar, it creates a...
EDIT: nevermind, didn't read the last post good enough
First of all, sorry for the delay.
As the winner of this challence i have chosen red_Marvin for his gforth variant
which i found to be surprisingly easy to read (even though I don't really know...
Well, it seems like there aren't going to be a lot more entries. I'm going to give it one more week, and then i'll judge the solutions.
I think you have to use separate arguments for command-line parameters you want to pass to the command. the first one should just be the filename of the program, nothing more.
Edit, a quick google...
i'm not familiar with C# but i think process.start doesn't create a subshell, but executes the file directly. So shell syntax like | to pipe cannot be used, you just have to give it one filename and...