you can load the lab from an ijs, using this boilerplate line.
1!:44 MYDIR =: getpath_j_ '\/' rplc~ > (4!:4<'thisfile'){(4!:3) thisfile=:''
sets working dir to the same as file that opened it.
so you can now just
load 'myfile.ijs'
(without the 1!:44 setter, still pretty easy)
load MYDIR ,'myfile.ijs'
----- Original Message -----
From: Skip Cave <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wednesday, August 17, 2016 8:21 AM
Subject: Re: [Jprogramming] Gustafson's Unums Revisited
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