Re: OT Maybe Programming question

2002-11-03 Thread kwall
On Sat, Oct 26, 2002 at 11:25:22PM -0500, Richard R. Sivernell wrote:
> Kurt
> 
>Thanks for info & got exactly what I needed. 
> Te 2 ques stuff, my design was amid an altimers 
> moment, fixed that to. Yoyr book is one of several that
> I recommend is incoming freshmen stdents at the Un.
> I have been hire to to tutor c++ to them  in a lab. It is
> scary to see these people try to do this, then I rememger 
> I was there to. It is really rewarding when you can help them
> and they come back say thanks, I got the best grade ever
> after you helped me.

Glad I could help. Remember me in your will or something. ;-)

Kurt
-- 
It is illegal to drive more than two thousand sheep down Hollywood
Boulevard at one time.
___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users



Re: OT Maybe Programming question

2002-10-27 Thread Richard R. Sivernell
Kurt

   Thanks for info & got exactly what I needed. 
Te 2 ques stuff, my design was amid an altimers 
moment, fixed that to. Yoyr book is one of several that
I recommend is incoming freshmen stdents at the Un.
I have been hire to to tutor c++ to them  in a lab. It is
scary to see these people try to do this, then I rememger 
I was there to. It is really rewarding when you can help them
and they come back say thanks, I got the best grade ever
after you helped me.

cheers

-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
[EMAIL PROTECTED]
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!
___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users



Re: OT Maybe Programming question

2002-10-27 Thread kwall
On Sat, Oct 26, 2002 at 03:58:55AM -0500, Richard R. Sivernell wrote:
> List C++ programmers or Kurt or David B.
> 
> - Writing a small program for a college course and almost there. Using
> c++, I am using a an object called Agent, & it must travel a torus, that a 
> gride of x by y. When you get to an end, you jump to the other end. Its
> a math thingy, All is working well except I need to write to a log file every
> 60 seconds the number of moves the object has performed. I have created 
> a timer object, but executing 2 ques at once in Linux I do not know. My

I don't understand what you mean. Executing 2 whats?

> question is an alarm the really only way to do this and it call a callback
> function or is there a better way. At this time I do not want to put this 
> in a thread unless that is the only way.  Any suggestions are welcomed here.

No, you don't have to use an alarm, or rather, the alarm() system call.
You can use setitimer(), set it to go off every 60 seconds, at which
point it generates a signal (SIGALRM, SIGVTALR, or SIGPROF). Set up a
signal handler for this signal and have the handler scribble in the log
file. You'll need a way to communicate the number of moves to the handler,
but, becuase this is for a course, I'll leave this as an assignment for
the reader. ;-)

>   Kurt you Linux Programming book has been nothing short of real blessing 
> since I bought it, thanks. I have put the Message Que into a class and it works 
> great, using the info from your book. The other Linux Programming book by 
> Stones and Matthew is OK, justnot the quality of your.

Thanks, Rick. I'm glad you found it useful.

Kurt
-- 
Politicians are the same all over.  They promise to build a bridge even
where there is no river.
-- Nikita Khrushchev
___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users



OT Maybe Programming question

2002-10-26 Thread Richard R. Sivernell
List C++ programmers or Kurt or David B.

- Writing a small program for a college course and almost there. Using
c++, I am using a an object called Agent, & it must travel a torus, that a 
gride of x by y. When you get to an end, you jump to the other end. Its
a math thingy, All is working well except I need to write to a log file every
60 seconds the number of moves the object has performed. I have created 
a timer object, but executing 2 ques at once in Linux I do not know. My
question is an alarm the really only way to do this and it call a callback
function or is there a better way. At this time I do not want to put this 
in a thread unless that is the only way.  Any suggestions are welcomed here.

  Kurt you Linux Programming book has been nothing short of real blessing 
since I bought it, thanks. I have put the Message Que into a class and it works 
great, using the info from your book. The other Linux Programming book by 
Stones and Matthew is OK, justnot the quality of your.

cheers

- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
[EMAIL PROTECTED]
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!
___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users



Re: OT maybe?

2002-03-24 Thread Rick Sivernell

On Sun, 24 Mar 2002 09:07:02 -0500
"David A. Bandel" <[EMAIL PROTECTED]> wrote:

> On Sun, 24 Mar 2002 07:08:42 -0600
> begin  Rick Sivernell <[EMAIL PROTECTED]> spewed forth:
> 
> [snip]
> >Windows and Unix/Linux equally. My question is how do I turn on java
> >scripting in Netscape.  
> 
> Edit -> Preferences -> Advanced:
>   check the boxes you need
> 
> You say "java scripting".  There's Java and there's Javascript.  Two
> different animals.  If you're not sure, turn them both on.  In general,
> Java is fairly benign, while Javascript can be very evil.
> 
> Ciao,
> 
> David A. Bandel
> -- 
David

   Had both turned on, I am using javascript. Not that I really like it, I do not,
but I have used it more and at this point prpabily faster to complete task at
this point. Acutally not very crazy about any scripting language except may
python.

  My problem is that the user has to make a selection from a drop down list, after
the selection is made, I need to display a short description about the selection,
Javascript allows me to do this, but netscape 4.79 does not display my data. Just
down loaded 6.22 and installing now. Will try it and see if that helps. I can send
the html screen, if someone wants to w it & see if I have made a mistake. Kongy &
oper work fine.

cheers   of course Thanks David & Lee
-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
[EMAIL PROTECTED]
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!
___
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



Re: OT maybe?

2002-03-24 Thread Lee

Rick Sivernell wrote:
> 
> List
> 
>I have a question here, one of the usual guru's will know very quickly here.
> I am writing html screens for a college course I am taking and I need to add
> java scripting for some functionality. Kongy opera & ( cringeingly windows )
> displays displays the java out put just right. But netscape does not not. My
> stuff must work in both Windows and Unix/Linux equally. My question is
> how do I turn on java scripting in Netscape.
> 
> Snip

>> pull Netscape up on your screen. Click on edit on the tool bar, select preferencs 
>from the menu (bottom) then select advanced from the menu that pops up. Select enable 
>Java Script or java from the pushbutton menu.  A far as html editors are concerned I 
>can't help you there.

Lee
___
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



Re: OT maybe?

2002-03-24 Thread David A. Bandel

On Sun, 24 Mar 2002 07:08:42 -0600
begin  Rick Sivernell <[EMAIL PROTECTED]> spewed forth:

[snip]
>Windows and Unix/Linux equally. My question is how do I turn on java
>scripting in Netscape.  

Edit -> Preferences -> Advanced:
check the boxes you need

You say "java scripting".  There's Java and there's Javascript.  Two
different animals.  If you're not sure, turn them both on.  In general,
Java is fairly benign, while Javascript can be very evil.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
-- Nemesis Racing Team motto
___
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.



OT maybe?

2002-03-24 Thread Rick Sivernell

List

   I have a question here, one of the usual guru's will know very quickly here.
I am writing html screens for a college course I am taking and I need to add 
java scripting for some functionality. Kongy opera & ( cringeingly windows )
displays displays the java out put just right. But netscape does not not. My 
stuff must work in both Windows and Unix/Linux equally. My question is 
how do I turn on java scripting in Netscape.  

  A second question is on html editors, using quanta+ so far, but is there a 
free one that has the ability to debug the code during run time.

Thanks in advance, any advice is appreciated here. Not in extrem hurry
either.  

-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
[EMAIL PROTECTED]
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!
___
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.