Yes.
({.~ i:&'/');(4!:4 <'is_unum') { 4!:3''
gives the directory where unum's utils.ijs was loaded from. (And this
can even be done in that same script, after is_unum has been defined.)
That said, for the long run, it would probably be better to stuff this
in a variable and use it where needed, instead of changing the
directory for the entire session. Changing the directory should be
reserved for code that is supposed to take over the session (or, ok,
labs which are intended to teach the user about changing directory).
Thanks,
--
Raul
On Wed, Aug 17, 2016 at 8:21 AM, Skip Cave <[email protected]> wrote:
> Is there a way for the unum lab to discover where it was started from, and
> then set the working directory to that location, rather than having the
> user have to set the directory?
>
> Skip
>
> Skip Cave
> Cave Consulting LLC
>
> On Wed, Aug 17, 2016 at 6:47 AM, roger stokes <[email protected]>
> wrote:
>
>> Dear All,
>>
>> Please accept my apologies for wasting your time, and my thanks
>> for your patience, persistence and help.
>>
>> Skip, Raul, Vijay, you are quite right about 1 !: 44 .
>> Instead of cd .... I should have said
>>
>> 1 !: 44 'yourdirectory' NB. full pathname is recommended
>>
>>
>> Vijay, I made a correction following your mention of general/misc/fndef .
>> This file should not be needed.
>>
>>
>> Bob, thanks for the suggestion - it's a good way to get the lab started
>> but there is still the need to find the other scripts. I will ponder this
>> and see if there is a better way than as it is.
>>
>> Bill, thanks for the information about jconsole - I didn't know this
>> and am very glad you mentioned it.
>>
>> I have now uploaded a corrected version to www.learningj.com/unumslab.zip.
>> However, I hope, I believe, that the VERSION YOU ALREADY HAVE should run
>> OK by doing this:
>>
>> 1 !: 44 'yourdirectory'
>>
>> first =: {. NB. workaround for Vijay's issues
>> snd =: 1 & {
>>
>> load 'labs/labs'
>>
>> lab_jlab_ 'unums.ijt'
>>
>>
>> Thanks again, everyone
>>
>> On Wed, Aug 17, 2016 at 4:12 AM, bill lam <[email protected]> wrote:
>>
>> > In the readme, it said
>> > ... jconsole doesn't support labs
>> >
>> > This is incorrect. One can run labs on jconsole
>> > and type labrun_jlab_ '' (and up arrow to recall)
>> > to advance.
>> >
>> > Вт, 16 авг 2016, roger stokes написал(а):
>> > > Dear All,
>> > >
>> > > I've heard it said that you don't understand a subject
>> > > unless you can explain it to a computer. With that in mind
>> > > I've attempted a software implementation of Gustafson's Unums 2.0
>> > >
>> > > ( http://www.johngustafson.net/presentations/Unums2.0.pdf ).
>> > >
>> > > If anyone is interested, there is a demo available in the
>> > > form of a J lab. To run the lab
>> > >
>> > > Download www.learningj.com/unumslab.zip
>> > >
>> > > Unzip into any convenient directory
>> > >
>> > > Follow directions in the readme file
>> > >
>> > > Comments and criticisms appreciated.
>> > >
>> > > Regards
>> > > ----------------------------------------------------------------------
>> > > For information about J forums see http://www.jsoftware.com/forums.htm
>> >
>> > --
>> > regards,
>> > ====================================================
>> > GPG key 1024D/4434BAB3 2008-08-24
>> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> >
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm