I got that fixed. I needed to call main and then have an event handler draw the objects.
Is there a way to force something to draw? I am trying to draw a circle, sleep and then draw another...
Type: Posts; User: Mr.Macdonald; Keyword(s):
I got that fixed. I needed to call main and then have an event handler draw the objects.
Is there a way to force something to draw? I am trying to draw a circle, sleep and then draw another...
This code
#!/usr/bin/python2.7
import pygtk...
I am trying to install the Omnikey Smart Card Reader. I have all the drivers installed, and now I am trying to write a program to read the information off the card.
OMNIKEY 5325 FW5.10
DOCS
...
I found this WFS
When I try to write to dsp, it prints
open of /dev/dsp failed: Device or resource busy
Apparently this is only for the deprecated OSS. Is there an ALSA equivalent?
I want to write a raw bit stream and output it to the audio device.
So I want to run my program and have it generate audio which is streamed to my speakers. Not my PC beeper speaker (controlled by...
Pastebin stuff is still there
I had no clue that I actually did that! Wow
As for the realloc, I have done that before and had no issue with the string termination ('\0'). I tested it with different allocation length (ie len,...
Removing "ret = realloc(ret, len*sizeof(char))" from _add fixed the SEGFAULT
with either split() func
I could of sworn I tested for that
Anyone care to explain whats wrong with this, I did...
There is definitely an issue with split().
struct margs split(char* expr) {
printf("%s\n", expr);
}
struct margs osplit(char* expr) {
struct margs args;
char *cpy, *tmp;
Not that all that other stuff isn't interesting, but can we get back on topic.
I didn't copy this into the code
char* _div(int argc, char** argv) {
int i, len=0, rlen = 4*argc, slen;
...
parc.h
parc.c
test.pc
Something weird is going on. I ran my code in valgrind, and it worked perfectly. None of the above issues existed at all.
I understand the whole memory issue. It is not a const string. It is read from file and modified several times. The issue occurs at a distinct point during one of those times.
The point that it...
I honestly have no clue what or why it is happening, but this is what I see.
If I print a char* before calling a certain function, it prints fine. If I then also print the same char*, but inside...
Wow, that simple
Thanks
First off, yes this is homework. But don't freak out, because I just want a compiler error fixed. I have been programming for 4 years, I avoided Java for the last 3 of those to find that college uses...
I want a macro
#define mac(x)
to do this
mac(add)
--Yields-->
Thank you,
But why don't I?
this isn't the final code, just testing bits and pieces so the final gets put together without confusing errors
EDIT:
Does this only apply if I want to print...
How do I fix it?
First off, this is a theory! I can't prove it. only observe it.
I have this function
void react(struct input_event* ev) {
if (ev->code == KEY_Q)
*end=0;
#define IFEV(k) if (ev->code...
The code doesn't have to do anything to get that error.
No references! At least we got pointers
Why do I get the below error?
Code
My dad has a penguin mail account, it acts like a proxy/router for email. An Email goes to xxxx@penguinmail.com and is routed to specified accounts elsewhere.
I want one, but can't find how to get...
Thank you, I get it. That first video helps a lot
how can a wire (the effective function of the rail gun) carry a current that generates a magnetic field which produces a force on the very thing that is producing it?
Sorry for the long sentence,...