Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 40
Search took 0.02 seconds.
Search: Posts Made By: Symptom
Forum: Other Web Development Languages Feb 23rd, 2006, 12:31 PM
Replies: 3
Views: 306
Posted By Symptom
I don't know under which OS you have mysql, but...

I don't know under which OS you have mysql, but that's the basic concept:

Run this in the source computer (the one with the mysql database)


% mysqldump --user=account_name --password=password...
Forum: C Feb 4th, 2006, 8:36 PM
Replies: 3
Views: 313
Posted By Symptom
In a unix environment there are a lot of...

In a unix environment there are a lot of functions in the <sys/time.h> or <time.h> headers including gettimeofday(), ctime(), asctime(), localtime() or if you want to periodically call a function you...
Forum: C++ Feb 4th, 2006, 5:43 AM
Replies: 8
Views: 281
Posted By Symptom
If you are using sdl or opengl, they have...

If you are using sdl or opengl, they have functions to handle events such as keyboard or mouse input. If you are writing you own app from scratch, you just need to write a funtion that gets one char...
Forum: Coder's Corner Lounge Feb 3rd, 2006, 5:33 PM
Replies: 34
Views: 881
Posted By Symptom
I bought -well my parents bought it for me...

I bought -well my parents bought it for me actually- my first pc when I was 10. I was a gamer mostly until I became 16. Then I started learning Visual Basic but I quit after some time, mostly because...
Forum: C Feb 3rd, 2006, 5:11 PM
Replies: 24
Views: 766
Posted By Symptom
I think that the best -at least among the ones...

I think that the best -at least among the ones I've read- is "The C Programming Language" by Kernigham and Ritchie. Very good book, fast paced and covers a lot of C's features. Also "Topics in C...
Forum: Coder's Corner Lounge Feb 3rd, 2006, 5:07 PM
Replies: 33
Views: 730
Posted By Symptom
Vim and Coke by far :D

Vim and Coke by far :D
Forum: Other Programming Languages Feb 3rd, 2006, 11:48 AM
Replies: 20
Views: 612
Posted By Symptom
Ehm...aahhh...what's going on with those python...

Ehm...aahhh...what's going on with those python lessons?
Forum: Java Feb 3rd, 2006, 7:50 AM
Replies: 23
Views: 643
Posted By Symptom
I also own the book "Deitel - Java How to...

I also own the book "Deitel - Java How to program" which I think is good, but after you get into the java syntax, you may find it a bit slow and skip some pages due to repetition. Other than that,...
Forum: C Feb 1st, 2006, 6:56 PM
Replies: 6
Views: 308
Posted By Symptom
I can't say I understand what's your...

I can't say I understand what's your problem...

You just want to be able to dlopen a *.so file without writing the fullpath in the function or you want to know how to change the environment values...
Forum: C Feb 1st, 2006, 6:28 PM
Replies: 3
Views: 237
Posted By Symptom
Well that's, sort of, what I do. I just wanted a...

Well that's, sort of, what I do. I just wanted a more elegant way to do it (using setpgid). Now, I've done some modification and -most of the time- the use of

kill(0,SIGKILL);

works. So, that's not...
Forum: C++ Jan 30th, 2006, 8:55 AM
Replies: 10
Views: 451
Posted By Symptom
Because I don't want to make a new thread, I'll...

Because I don't want to make a new thread, I'll hijack this one :D.

Anyway, I was thinking about starting a game project in order to code a bit in C++ as I haven't touched it since September. The...
Forum: Coder's Corner Lounge Jan 29th, 2006, 11:05 AM
Replies: 10
Views: 239
Posted By Symptom
Use a hexeditor. Open /sbin/init and search for...

Use a hexeditor. Open /sbin/init and search for the string "dev/console". Maybe try strings /sbin/init |grep "console" to see if the file indeed has the "dev/console" string in it. If it has it,...
Forum: C++ Jan 29th, 2006, 9:52 AM
Replies: 27
Views: 716
Posted By Symptom
You should use malloc to reserve space for the...

You should use malloc to reserve space for the char array as DaWei said. Do something like


char message[1024];
char* begin;
begin = (char*) malloc (sizeof(char) *...
Forum: Coder's Corner Lounge Jan 29th, 2006, 9:37 AM
Replies: 10
Views: 239
Posted By Symptom
To be honest your grub.conf seems to be...

To be honest your grub.conf seems to be ok.

However, if you have compiled your kernel with devfs support you should disable the "automatic mount at boot - time" option. It seems
to cause trouble to...
Forum: C++ Jan 29th, 2006, 9:09 AM
Replies: 27
Views: 716
Posted By Symptom
Jayme please give some more info about the...

Jayme please give some more info about the server/client because I don't get what you need to do...



What is the say command? You want to send to the server via the client process a string which...
Forum: C++ Jan 29th, 2006, 5:14 AM
Replies: 27
Views: 716
Posted By Symptom
Other than strcopy to another char* you could do...

Other than strcopy to another char* you could do this

char* test = "notastring";
puts(test);
test+=4;
puts(test);


and the output is
Forum: Other Programming Languages Jan 29th, 2006, 5:08 AM
Replies: 20
Views: 612
Posted By Symptom
soldevi_sage@mailbox.gr Let's see how it goes...

soldevi_sage@mailbox.gr

Let's see how it goes this time...
Forum: Other Programming Languages Jan 27th, 2006, 2:39 AM
Replies: 20
Views: 612
Posted By Symptom
Look at the python thread Writlaus. A lot of...

Look at the python thread Writlaus. A lot of people said they're interested including me...
Forum: C++ Jan 26th, 2006, 11:14 AM
Replies: 6
Views: 247
Posted By Symptom
Take a look at semaphores as well. It's a way to...

Take a look at semaphores as well. It's a way to handle data control in multithreaded programs.

I don't know if you can use it in C++ but C has a data type that, access to it is atomic. It is...
Forum: C Jan 25th, 2006, 12:48 PM
Replies: 3
Views: 237
Posted By Symptom
setpgid/setpgrp : Operation not permitted.

I have a server which forks() children and they fork() children as well. I want, when the server catches a SIGTERM to send a SIGTERM/SIGKILL signal to all the children processes. The problem is that...
Forum: C++ Jan 24th, 2006, 7:32 AM
Replies: 7
Views: 214
Posted By Symptom
I was writing a reply in detail but the power...

I was writing a reply in detail but the power went down and it was lost. Since infogeek explained what is going on I won't write my reply again but if you need more info, ask.

B.t.w: It's nice to...
Forum: Coder's Corner Lounge Jan 20th, 2006, 6:47 AM
Replies: 26
Views: 672
Posted By Symptom
I just wanted to say that yes, linux is a little...

I just wanted to say that yes, linux is a little hard to learn, but nowadays it has grown to such an extend that it can be used in home pcs for everyday use as well. Many think that linux is...
Forum: Coder's Corner Lounge Jan 20th, 2006, 6:36 AM
Replies: 32
Views: 700
Posted By Symptom
Yeah you are right. English isn't my native...

Yeah you are right. English isn't my native language so what I say may be misleading or confusing from time to time. Sorry :/
Forum: Coder's Corner Lounge Jan 20th, 2006, 6:34 AM
Replies: 7
Views: 323
Posted By Symptom
A lot of topics with the same subject. One...

A lot of topics with the same subject.
One (http://www.programmingforums.org/forum/showthread.php?t=8016)
Another (http://www.programmingforums.org/forum/showthread.php?t=8024)
Yet Another One...
Forum: C++ Jan 20th, 2006, 6:25 AM
Replies: 11
Views: 318
Posted By Symptom
This is an idea which,despite being C code, I...

This is an idea which,despite being C code, I think it may help...


#include<sys/time.h>
#include<signal.h>

void myfunc(int sig_num);

int main (int argc, char** argv)
{
Forum: Coder's Corner Lounge Jan 19th, 2006, 7:10 PM
Replies: 44
Views: 853
Posted By Symptom
If you are interested in Solaris I would...

If you are interested in Solaris I would recommend OpenSolaris. It's relatively new but is has a growing community and each day more and more apps are ported to it. It's free and open source and you...
Forum: Coder's Corner Lounge Jan 19th, 2006, 5:14 AM
Replies: 32
Views: 700
Posted By Symptom
If you want to move to linux I'd reccomend either...

If you want to move to linux I'd reccomend either mandrake/suse if you've never used them or gentoo if you know the basics at least. I've never used fedora but I've heard it's a decent distro....
Forum: Show Off Your Open Source Projects Jan 19th, 2006, 4:50 AM
Replies: 7
Views: 202
Posted By Symptom
Nice work Jessehk. My only comments is that you...

Nice work Jessehk.

My only comments is that you should take the user arguments as a set of ints ( both between 1 and 3) as it's easier to calculate where you want to play that way.

I had also a...
Forum: Coder's Corner Lounge Jan 18th, 2006, 7:38 PM
Replies: 151
Views: 3,859
Posted By Symptom
I swear I'll start the robot revolution one day...

I swear I'll start the robot revolution one day by talking to her. I will convince her no matter what. And recently I found out that it's working. The revolution is at hand!

REPEND, THE END IS...
Forum: Coder's Corner Lounge Jan 18th, 2006, 7:41 AM
Replies: 151
Views: 3,859
Posted By Symptom
Girlfriends for everyone!

For the desperate or the curious (or both) check this
out: Alice (http://www.alicebot.org/). Click the chat with alice button and enjoy.

For the cold winter nights...
Forum: Coder's Corner Lounge Jan 17th, 2006, 6:52 AM
Replies: 151
Views: 3,859
Posted By Symptom
"Can you say *yes* to me so I can post a...

"Can you say *yes* to me so I can post a ridiculously obscure and pointless question in PFO?"

You did it anyway ;)
Forum: Coder's Corner Lounge Jan 17th, 2006, 5:51 AM
Replies: 5
Views: 199
Posted By Symptom
I am not sure what do you want... If you just...

I am not sure what do you want...

If you just need an application to burn cds try either cdrecord(for command line) or k3b(very good and with a friendly user interface). I've also heard that a free...
Forum: C Jan 10th, 2006, 7:04 AM
Replies: 4
Views: 179
Posted By Symptom
As for your comment about the argument in the...

As for your comment about the argument in the signal catching function, I think this is needed only if you want to check the signal that was passed to this function. For example:


volatile...
Forum: C Jan 10th, 2006, 6:31 AM
Replies: 4
Views: 179
Posted By Symptom
Well, thanks. I haven't noticed that waitpid...

Well, thanks. I haven't noticed that waitpid returns the pid of the child. :rolleyes:

The code I pasted before works ok. All it is supposed to do is wait for dying processes in order to avoid...
Forum: C Jan 10th, 2006, 5:11 AM
Replies: 4
Views: 179
Posted By Symptom
SIGCHLD trace problems

Well, currently I am working on a scheduling server. Everything seems to be ok since I have managed to do the exec/kill/ps commands for the server. The only thing left to do is the scheduling...

The...
Forum: C++ Dec 4th, 2005, 1:56 PM
Replies: 9
Views: 303
Posted By Symptom
Since a tic tac toe board is usually 3x3 it will...

Since a tic tac toe board is usually 3x3 it will be easier for you to check each column and each row before the pc plays in order to find the right move. Maybe two functions
char*...
Forum: C++ Dec 4th, 2005, 8:47 AM
Replies: 14
Views: 497
Posted By Symptom
It very common to handle every incoming...

It very common to handle every incoming connection to the server, not in the parent process, but with child processes using fork();
That way when the client is done with the server, the child process...
Forum: C Sep 30th, 2005, 6:52 PM
Replies: 5
Views: 292
Posted By Symptom
I use my ids because that way it's easier to...

I use my ids because that way it's easier to define which thread takes care of which part of the node_array.
As for the reverse-engineering i don't think it's possible because the only unique member...
Forum: C Sep 30th, 2005, 8:55 AM
Replies: 5
Views: 292
Posted By Symptom
thnx.i'll try the first. as for the thread...

thnx.i'll try the first.
as for the thread struct, it is :

typedef struct _mythread_t
{
int iter;
int id;
pthread_t thread;
mybuffer_t row;
...
Forum: C Sep 30th, 2005, 8:19 AM
Replies: 5
Views: 292
Posted By Symptom
Passing array as argument to a thread

I am currently busy developing an implementation of the floyd parallel algorithm (http://www-unix.mcs.anl.gov/dbpp/text/node35.html) using POSIX threads.I have an array named...
Showing results 1 to 40 of 40

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:47 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC