waitforbuttonpress patch install

View: New views
11 Messages — Rating Filter:   Alert me  

waitforbuttonpress patch install

by Nose Nada () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello there! I was trying to use the function 'waitforbuttonpress' in Octave 3.0 (running on Fedora 8) but the function is not implemented yet in this distribution. However, I found a recent thread (http://www.cae.wisc.edu/pipermail/bug-octave/2008-March/005684.html) where a patch for this function has been developed (https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080331/f0ffbe59/attachment-0001.ksh) . How can I install this patch in order to use waitforbuttonpress in my code? I look forward to hear from you. Thanks in advance. Omar

Re: waitforbuttonpress patch install

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Apr 6, 2008, at 7:55 PM, Nose Nada wrote:
> Hello there! I was trying to use the function 'waitforbuttonpress'  
> in Octave 3.0 (running on Fedora 8) but the function is not  
> implemented yet in this distribution. However, I found a recent  
> thread (http://www.cae.wisc.edu/pipermail/bug-octave/2008-March/005684.html 
> ) where a patch for this function has been developed (https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080331/f0ffbe59/attachment-0001.ksh 
> ) . How can I install this patch in order to use waitforbuttonpress  
> in my code? I look forward to hear from you. Thanks in advance. Omar
> View this message in context: waitforbuttonpress patch install
> Sent from the Octave - General mailing list archive at Nabble.com.

If you up to building octave from its sources, you can do that.  
Instructions are at the link below.

        http://www.gnu.org/software/octave/download.html

If you're using Debian, you may be able to put together a local  
package that uses the development sources.

I'm not a Linux user, but have done the same for Mac OSX using Fink's  
package management system (which descends from Debian).

Ben

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by dbateman3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Abbott wrote:

> On Apr 6, 2008, at 7:55 PM, Nose Nada wrote:
>> Hello there! I was trying to use the function 'waitforbuttonpress'  
>> in Octave 3.0 (running on Fedora 8) but the function is not  
>> implemented yet in this distribution. However, I found a recent  
>> thread (http://www.cae.wisc.edu/pipermail/bug-octave/2008-March/005684.html 
>> ) where a patch for this function has been developed (https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080331/f0ffbe59/attachment-0001.ksh 
>> ) . How can I install this patch in order to use waitforbuttonpress  
>> in my code? I look forward to hear from you. Thanks in advance. Omar
>> View this message in context: waitforbuttonpress patch install
>> Sent from the Octave - General mailing list archive at Nabble.com.
>
> If you up to building octave from its sources, you can do that.  
> Instructions are at the link below.
>
> http://www.gnu.org/software/octave/download.html
>
> If you're using Debian, you may be able to put together a local  
> package that uses the development sources.
>
> I'm not a Linux user, but have done the same for Mac OSX using Fink's  
> package management system (which descends from Debian).
>
> Ben


Its only in the 3.1.x tree in the octave repository. Get it instead
(together with ginput.m and maybe gtext.m) from the ocatve-forge SVN
whether the versions are compatible with Octave 3.0.0. Note this
currently doesn't work on the wxt terminal on Windows due to a bug in
that terminal in gnuplot. It also doesn't work with the aqua terminal of
MacOS as that terminal doesn't yet support mousing at all.

D.

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Apr 6, 2008, at 8:49 PM, David Bateman wrote:

> Ben Abbott wrote:
>> On Apr 6, 2008, at 7:55 PM, Nose Nada wrote:
>>> Hello there! I was trying to use the function 'waitforbuttonpress'
>>> in Octave 3.0 (running on Fedora 8) but the function is not
>>> implemented yet in this distribution. However, I found a recent
>>> thread (http://www.cae.wisc.edu/pipermail/bug-octave/2008-March/005684.html
>>> ) where a patch for this function has been developed (https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080331/f0ffbe59/attachment-0001.ksh
>>> ) . How can I install this patch in order to use waitforbuttonpress
>>> in my code? I look forward to hear from you. Thanks in advance. Omar
>>> View this message in context: waitforbuttonpress patch install
>>> Sent from the Octave - General mailing list archive at Nabble.com.
>>
>> If you up to building octave from its sources, you can do that.
>> Instructions are at the link below.
>>
>> http://www.gnu.org/software/octave/download.html
>>
>> If you're using Debian, you may be able to put together a local
>> package that uses the development sources.
>>
>> I'm not a Linux user, but have done the same for Mac OSX using Fink's
>> package management system (which descends from Debian).
>>
>> Ben
>
>
> Its only in the 3.1.x tree in the octave repository. Get it instead
> (together with ginput.m and maybe gtext.m) from the ocatve-forge SVN
> whether the versions are compatible with Octave 3.0.0. Note this
> currently doesn't work on the wxt terminal on Windows due to a bug in
> that terminal in gnuplot. It also doesn't work with the aqua  
> terminal of
> MacOS as that terminal doesn't yet support mousing at all.
>
> D.

Regarding "the 3.1x tree", this the same as the "default" mercurial  
branch, correct?

Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by Nose Nada :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Ben and David. I have several question about your suggestions:
- Once I get the code from the octave-forge SVN repository do I need to compile Octave from source or can I paste the code from the SVN repository into a given subdirectory of my current Octave installation. Given the file extension of these files, .m, I would say that no recompilation is required.
- If I were required to compile Octave from source where do I place the code from the SVN repository?
- I have scan the octave-forge CVS repository but with little success to locate the code for waitforbuttonpress.m (together with ginput.m and maybe gtext.m). Would you give me a hint?
David, I'm working on Fedora 8, thus I suppose that your concerns about Windows and Mac do not apply. Do they?
I apologize for making several questions, with a likely high level incoherence, but I'm new to this Linux/Octave world.
I look forward to hear from you.
Best regards,
Omar

Re: waitforbuttonpress patch install

by David Bateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Abbott wrote:
>
> Regarding "the 3.1x tree", this the same as the "default" mercurial
> branch, correct?
>
Yes..

D.


--
David Bateman                                David.Bateman@...
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax)

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by David Bateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nose Nada wrote:
> Thanks Ben and David. I have several question about your suggestions:
> - Once I get the code from the octave-forge SVN repository do I need to
> compile Octave from source or can I paste the code from the SVN repository
> into a given subdirectory of my current Octave installation. Given the file
> extension of these files, .m, I would say that no recompilation is required.
>  
Correct. These are m-files, no recompile should be needed.

> - If I were required to compile Octave from source where do I place the code
> from the SVN repository?
>  
Where you want with the "--prefix" flag.

> - I have scan the octave-forge CVS repository but with little success to
> locate the code for waitforbuttonpress.m (together with ginput.m and maybe
> gtext.m). Would you give me a hint?
>  
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/plot/inst/

> David, I'm working on Fedora 8, thus I suppose that your concerns about
> Windows and Mac do not apply. Do they?
>  
Should work fine with the X11 terminal.

> I apologize for making several questions, with a likely high level
> incoherence, but I'm new to this Linux/Octave world.
> I look forward to hear from you.
> Best regards,
> Omar
>
>  


D.


--
David Bateman                                David.Bateman@...
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax)

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by Nose Nada :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks David! I have waitforbuttonpress alive and running! I got to read a bit about path and so on but it was very clear in the online manual albeit not straightforward to find because the manual is not browsable. The only thing I need to settle now is making the path to the new directory where I pasted the .m stable because at this point I need to load that path every time I open a new Octave session. I just hope to find it in the manual, it seems something rather simple.
Thanks!
Omar

Re: waitforbuttonpress patch install

by Carlo de Falco-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 07/apr/08, at 20:01, Nose Nada wrote:
> not straightforward to find because the manual is not browsable.

What do you mean by "is not browsable" have you ever tried typing  
"doc" at the octave prompt?
c.

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: waitforbuttonpress patch install

by dbateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Nose Nada wrote:
Thanks David! I have waitforbuttonpress alive and running! I got to read a bit about path and so on but it was very clear in the online manual albeit not straightforward to find because the manual is not browsable. The only thing I need to settle now is making the path to the new directory where I pasted the .m stable because at this point I need to load that path every time I open a new Octave session. I just hope to find it in the manual, it seems something rather simple.
Thanks!
Omar

In the file .octaverc in your home directory add the line

addpath("/path/to/waitforbutton/")

or wherever the path to the file is..

D.

Re: waitforbuttonpress patch install

by Nose Nada :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Done! Thanks David.
Regards,
Omar