[Jprogramming] Blocked html messages Re: Unboxing problem

2021-03-10 Thread Tom Arneson
I sent this to programming earlier. It never came back to me, and I don't see 
that it ever got to programming. 


> On 03/10/2021 8:13 AM Tom Arneson  wrote:
> 
> 
> ]a=.1 3 8;6 9;2 4;5;0;7
> 
> ┌─┬───┬───┬─┬─┬─┐
> 
> │1 3 8│6 9│2 4│5│0│7│
> 
> └─┴───┴───┴─┴─┴─┘
> 
> ;a
> 
> 1 3 8 6 9 2 4 5 0 7
> 
> 
> 
> > On 03/09/2021 10:51 PM Lippu Esa  wrote:
> > 
> > 
> > Hello everybody
> > 
> > Every now and then even after all these years I stumble into something that 
> > should be simple but I just don't get it. It must be due to my still so 
> > sadly shallow knowledge of J. Please excuse me. I don't post my current 
> > solution here - it has kludge written all over it.
> > 
> > So, I need a verb f that does the following:
> > 
> > ]a=.1 3 8;6 9;2 4;5;0;7
> > ┌─┬───┬───┬─┬─┬─┐
> > │1 3 8│6 9│2 4│5│0│7│
> > └─┴───┴───┴─┴─┴─┘
> > f a
> > 1 3 8 6 9 2 4 5 0 7
> > 
> > Any help will be greatly appreciated.
> > 
> > Esa
> > 
> > Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain 
> > sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, 
> > pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan 
> > asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, 
> > kopioiminen tai muu käyttö on kielletty.
> > 
> > The contents of this message and any attachments are confidential and meant 
> > solely for the intended recipient. If you are not the intended recipient, 
> > we kindly ask that you delete the message and its attachments, and 
> > immediately notify the sender of the email. Disclosing, copying or using 
> > the contents of the message is strictly prohibited.
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Upgrade laptop

2020-08-14 Thread Tom Arneson
Henry is correct. I forgot that my keyboard shortcut was still running 9.01 on 
the laptop. I'll fix that in the morning.

p> On August 14, 2020 at 9:00 PM Henry Rich  wrote:
> 
> (off list)
> I don't understand the process & am only responding in case my guess isright.
> Don't upgrades only apply within a release?  Thus, you are upgrading9.01.  To 
> get 9.02, you would need to download the full 9.02 beta oncebefore you can 
> upgrade.
> hhr
> --This email has been checked for viruses by AVG.https://www.avg.com
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] J902-beta-e available

2020-08-14 Thread Tom Arneson
I upgraded my desktop and now I'm trying the same on my laptop and getting the 
following: =
2020-08-14 19:38
Machine: acer-tablet-2018
Engine: j901/j64avx2/windows
Release-f: commercial/2020-06-11T15:31:28
Library: 9.01.24
Qt IDE: 1.8.5/5.12.6
Platform: Win 64
Installer: J901 install
InstallPath: c:/users/tom/j901
Contact: www.jsoftware.com
=
load 'pacman'
'upgrade' jpkg'jengine'
upgrade not required - already current
> 
> J902-beta-e available for windows/macos/linux.
> This beta prints a warning message to your session if it encounters codethat 
> will not work in future releases.
> The warning is: Old-style definition encountered. It will be 
> invalid afterthe beta period.It has x/y without u/v/m/n **
> The base library and addons have already been updated with the requiredcoding 
> change.
> If you have already installed 902-beta, then it is easy to 
> upgrade:load'pacman''upgrade'jpkg'jengine'
> If there is an error in the upgrade, then you will need to update your 
> baselibrary and try again.
> If you have not started with the 902 beta cycle, now is the 
> time:https://code.jsoftware.com/wiki/System/Installation/J902
> Questions, problems, etc should be addressed to the beta 
> forum.--For
>  information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Fwd: problem with math/uu

2020-06-28 Thread Tom Arneson
Why?
1e6=*:1000
1

> On June 27, 2020 at 7:31 AM Mario C  wrote:
> 
> There is an other problem.uu '1 /mm^2'1.0E-6 /m^2 is wrong.
> 2.1.26 j901 Windows and 
> AndroidMario--For
>  information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Jandroid upgrade problem

2020-06-13 Thread Tom Arneson
I upgraded my 2 android devices to 9.01 f yesterday. Today I ran a program and 
found that the upgrade caused it to fail. I tracked the cause to the inew 
install overwrote file: 
../j901-user/config/folders.cfg

I feel that users of Jandroid need to be aware of this and save the config 
folders before doing an update.
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Fwd: problem with math/uu

2020-05-04 Thread Tom Arneson
I see the same problem in both Windows and Android j901/j64/android 


> -- Original Message --From: Mario C To: 
> programming@jsoftware.comDate: May 4, 2020 at 4:49 PMSubject: [Jprogramming] 
> problem with math/uu
> load 'math/uu' NB. math/uu 2.1.24
> There is a difference between
> 'kN' uu '10990 bar cm cm'109.9 kN
> and
> 'kN' uu '10990 bar cm^2'10990 kN
> Only the first solution is correct.
> Engine: j901/j64avx/windowsRelease-e: commercial/2020-01-29Library: 9.01.23
> But both work fine with Android (math/uu 2.1.24):Engine: 
> j901/j32/androidRelease-e: commercial/2020-02-09T15:23:16Library: 9.01.22
> Mario--For
>  information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Fwd: Re: jandroid update

2020-02-10 Thread Tom Arneson
My emails don't get through unless they are plain text (not HTML). 

> On: ASUS tablet, running Android 7.0, after a restart of android. run J from 
> icon, use menu >> Script >> Run clipboard:  Displays message box "Jandroid 
> has stopped" 
> On: Google Pixel 2XL, running Android 10, after a restart of android. Run J 
> from icon, use: menu >> Script >> Run clipboard: J closes with no message
> On both devices, if the clipboard contains a j sentence, it works as 
> advertised.example: use droidedit app to type i. 10, and then copy to 
> clipboard. Switch to j and use menu >> Script >> Run clipboard, displays:
> i. 100 1 2 3 4 5 6 7 8 9
> 
> > On February 9, 2020 at 8:11 PM bill lam < bbill@gmail.com> wrote:
> > 
> > Can you give procedure to reproduce that?
> > Sun, 09 Feb 2020, Tom Arneson написал(а):> Jandroid stops when 
> > menu/script/run clipboard is used with an empty clipboard.
> > > > On February 9, 2020 at 1:37 AM bill lam < bbill@gmail.com> wrote:
> > > > A minor update for jandroid is available.A new "Run clipboard" in 
> > > > menu/script to executetext in clipboard directly.If clipboard contains 
> > > > more than 1 line, it runs as a scriptwith empty result, otherwise it 
> > > > runs the J sentence and outputthe result of execution if any.Also 
> > > > wd'qscreen' should now give valid information aboutscreen 
> > > > resolution.Please test and report any 
> > > > problems.--regards,GPG
> > > >  key 1024D/4434BAB3 2008-08-24gpg --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
> > --regards,GPG key 
> > 1024D/4434BAB3 2008-08-24gpg --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


Re: [Jprogramming] jandroid update

2020-02-09 Thread Tom Arneson
Jandroid stops when menu/script/run clipboard is used with an empty clipboard.

> On February 9, 2020 at 1:37 AM bill lam  wrote:
> 
> A minor update for jandroid is available.
> A new "Run clipboard" in menu/script to executetext in clipboard directly.
> If clipboard contains more than 1 line, it runs as a scriptwith empty result, 
> otherwise it runs the J sentence and outputthe result of execution if any.
> Also wd'qscreen' should now give valid information aboutscreen resolution.
> Please test and report any problems.
> --regards,GPG key 
> 1024D/4434BAB3 2008-08-24gpg --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


[Jprogramming] accessing android sensors

2019-04-29 Thread Tom Arneson
I'd like to access the GNSS (GPS) sensor in my android devices. Has anyone done 
this, or accessed any other of the android sensors with J?
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] J807 released

2018-10-09 Thread Tom Arneson
Thanks David. I made the fix, but the folks at Jsoftware should fix it rather 
than us users.

-Original Message-
From: Programming  On Behalf Of David 
Mitchell
Sent: Tuesday, October 9, 2018 12:57
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] J807 released

I ran into this last month and reported this fix:

while. 0{:: 'c h d nd'=. (libz,' gzread ',cv,' i x *c i') cd h;d;#d do.

David Mitchell

On 10/9/2018 09:20, Tom Arneson wrote:
> I installed J807 on my Google Pixel 2 XL running Android Version 9
> 
> Engine: j807/j64/android
> Release: commercial/2018-10-06T21:39:39
> Library: 8.07.18
> J Android: 1.2.01/28
> Platform: Android 64 (arm64-v8a)
> Installer: unknown
> InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files
> Contact: www.jsoftware.com
> 
> When I ran Package Manager I got the following error message
> 
> |open quote
> |   while. 0{:: 'c h d nd'=. (libz,' gzread cv,' i x *c i') cd h;d;#d do.
> |^
> |   gzip=:3 :0
> |[-256] 
> /storage/emulated/0/Android/data/com.jsoftware.j.android/files/system/util/tar.ijs
> 
> -Original Message-
> From: Programming  On Behalf Of 
> Eric Iverson
> Sent: Monday, October 8, 2018 14:47
> To: Programming forum 
> Subject: [Jprogramming] J807 released
> 
> We are pleased to announce the J807 release.
> 
> Web site and wiki pages have been updated. You may have to refresh (F5) web 
> pages to see new versions.
> 
> This is a solid step forward and we encourage you to move to 807 as soon as 
> convenient.
> 
> Henry has started on the next beta and we look forward to the next beta cycle.
> --
> 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

Re: [Jprogramming] J807 released

2018-10-09 Thread Tom Arneson
I installed J807 on my Google Pixel 2 XL running Android Version 9

Engine: j807/j64/android
Release: commercial/2018-10-06T21:39:39
Library: 8.07.18
J Android: 1.2.01/28
Platform: Android 64 (arm64-v8a)
Installer: unknown
InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files
Contact: www.jsoftware.com

When I ran Package Manager I got the following error message

   |open quote
|   while. 0{:: 'c h d nd'=. (libz,' gzread cv,' i x *c i') cd h;d;#d do.
|^
|   gzip=:3 :0
|[-256] 
/storage/emulated/0/Android/data/com.jsoftware.j.android/files/system/util/tar.ijs

-Original Message-
From: Programming  On Behalf Of Eric 
Iverson
Sent: Monday, October 8, 2018 14:47
To: Programming forum 
Subject: [Jprogramming] J807 released

We are pleased to announce the J807 release.

Web site and wiki pages have been updated. You may have to refresh (F5) web 
pages to see new versions.

This is a solid step forward and we encourage you to move to 807 as soon as 
convenient.

Henry has started on the next beta and we look forward to the next beta cycle.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] converting date number to iso 8601

2018-04-04 Thread Tom Arneson
This puts leading zeros with 8!:2

'q<->5.0,q<->r<0>3.0,r<0>2.0' 8!:2[1942 9 2

1942-09-02

-Original Message-
From: Programming  On Behalf Of Joe 
Bogner
Sent: Wednesday, April 4, 2018 16:56
To: programm...@jsoftware.com
Subject: [Jprogramming] converting date number to iso 8601

I'm curious if there is a speedier way to convert a date stored as a number 
like 20180101 or 20170228 to the ISO 8601 equivalent:

This does OK

   datenumToISO =: 3 : 0
(4&{. , '-' , 2&{.@(4&}.) , '-' , _2&{.)"1 ": y
)

datenumToISO 20180101
2018-01-01
   datenumToISO 20180228
2018-02-28


But is slower than I'd like ... no big deal but just curious

6!:2 'datenumToISO (5e6 1 $ 20180102)'
4.29083

sprintf is slow

dateNumToISO2 =: 3 : 0
'%d-%02d-%02d' sprintf ,:(0 100 100 #: y)
)

   (6!:2) 'dateNumToISO2 (1e5 # 20180102)'
2.34002
   (6!:2) 'dateNumToISO2 (1e6 # 20180102)'
25.4977


8!:2 shows promise but I can't figure out the formatting string to add a 
leading zero if it's possible

(6!:2) '8!:2 (0 100 100 #: (5e6 # 20180102))'
1.4853

'q<->,q<->,d' 8!:2 (0 100 100 #: (1 # 20180102))
2018-1-2
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Separating sentences

2018-04-04 Thread Tom Arneson
SOLAR BONES by Mike McCormack has no periods "."

-Original Message-
From: Programming  On Behalf Of Jose 
Mario Quintana
Sent: Wednesday, April 4, 2018 12:09
To: Programming forum 
Subject: Re: [Jprogramming] Separating sentences

>  text of Finnegan's Wake.

The actual name of the book by James Joyce is "Finnegans Wake" and one could 
argue that it is not written in English  ;)

On Wed, Apr 4, 2018 at 12:30 PM, Raul Miller  wrote:

> There are some unmentioned issues that may trip you up eventually with 
> this approach, for example, if you try to apply these routines to the 
> text of Finnegan's Wake.
>
> To hint at those issues, here's an approach that takes you directly to 
> the final result:
>
>ex1=: <'This is Skip''s test. Testing one, two, three. Count 3, 2, 1.'
>
> DELIM=:'.?!'
> toss=:a.#~1-(a.e.DELIM,":i.10)+.(tolower~:toupper) a.
> separateclean=:3 :0
>   a:-.~(e. <@deb;._2 tolower) '.',~(;y) -. toss
> )
>
>separateclean ex1
> ┌──┬─┬───┐
> │this is skips test│testing one two three│count 3 2 1│ 
> └──┴─┴───┘
>
>
> And here's a longer approach which takes you there in two steps where 
> the result of the first step will be the same length as the result of 
> the second step:
>
> separatedirty=:3 :0
>   (;:'.')-.~(e. <@deb;.2 ]) '.',~;y
> )
> clean=: tolower@-.&(toss,DELIM) L:0
>
>separatedirty ex1
> ┌┬┬──┐
> │This is Skip's test.│Testing one, two, three.│Count 3, 2, 1.│ 
> └┴┴──┘
>clean separatedirty ex1
> ┌──┬─┬───┐
> │this is skips test│testing one two three│count 3 2 1│ 
> └──┴─┴───┘
>
>
> But with ill conditioned text (Finnegan's Wake being an example of 
> that), I expect cases where separateclean gives a different result 
> from clean@separatedirty
>
> But that's what makes text fun...
>
> --
> Raul
>
>
> On Wed, Apr 4, 2018 at 12:02 PM, Skip Cave 
> wrote:
> > I have the following boxed data:
> >
> > ex1=. <'This is Skip''s test. Testing one, two, three. Count 3, 2, 1.'
> >
> >
> > ex1
> >
> > ┌┐
> >
> > │This is Skip's test. Testing one, two, three. Count 3, 2, 1.│
> >
> > └┘
> >
> > I want to build a verb that will separate this boxed text data into 
> > sentences.
> >
> >
> > ex2=. (<'This is Skip''s test.'),(<'Testing one, two, 
> > three.'),(<'Count
> 3,
> > 2, 1.')
> >
> > ex2
> >
> > ┌┬┬──┐
> >
> > │This is Skip's test.│Testing one, two, three.│Count 3, 2, 1.│
> >
> > └┴┴──┘
> >
> > I also want to get rid of all punctuation and caps:
> >
> > ex3=. (<'this is skips test'),(<'testing one two three'),(<'count 3 
> > 2 1')
> >
> > ex3
> >
> > ┌──┬─┬───┐
> >
> > │this is skips test│testing one two three│count 3 2 1│
> >
> > └──┴─┴───┘
> >
> > What is a reasonable J verb to do this separation and cleanup?
> >
> > Skip
> >
> > Cave Consulting LLC
> > 
> > -- 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

Re: [Jprogramming] Fractional parts

2017-08-09 Thread Tom Arneson
No space saving for 64 bit integers.


-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Skip Cave
Sent: Tuesday, August 8, 2017 23:48
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Fractional parts

Don,

You're right. Your approach achieves the same result when re-combining the 
fractional and integer part:

]v=:2%(3r19-%1 2 3 245 246 247 248)

   ]'i f'=:|:0 1#:v

_3 _6 _12 13 13 13 12

0.625 0.153846 0.6 0.0027933 0.00139082 0 0.998621

i

_3 _6 _12 13 13 13 12

f

0.625 0.153846 0.6 0.0027933 0.00139082 0 0.998621

v = i+f

1 1 1 1 1 1 1


However,


   datatype f

floating

   datatype i

floating


Where as the original fp/ip verbs give:


datatype fpv

floating

   datatype ipv

integer


So either approach will work, but ip returns integers, while your approach 
returns floats in both i & f cases. The fact that I originally called the verb 
the "integer part" probably led to the initial integer solution from the group.


I'm not sure what advantages either approach would have, other than a space 
savings for pure integers.


Skip

Skip Cave
Cave Consulting LLC

On Tue, Aug 8, 2017 at 8:04 PM, Don Guinn  wrote:

> ​There are many ways to handle the fractional part of a number, 
> depending on the problem at hand. The real difficulty seems to be 
> handling negative numbers. I like this, which rounds down negative 
> numbers. But others might want a different way.
>
>]'i f'=:|:0 1#:1.2 3.7 _2.1
>   1   3  _3
> 0.2 0.7 0.9
>i
> 1 3 _3
>
>f
> 0.2 0.7 0.9
>i+f
> 1.2 3.7 _2.1​
>
> On Tue, Aug 8, 2017 at 3:56 PM, Skip Cave  wrote:
>
> > The purpose of the "negative fractional part" is to satisfy the 
> > identity condition when the two parts are added back together:
> >
> >]v=:2%(3r19-%1 2 3 245 246 247 248)  NB. Create some long 
> > fractional parts.
> >
> > _2.375 _5.84615 _11.4 13.0028 13.0014 13 12.9986
> >
> >
> > fp=. * * 1|| NB. The fractional part verb
> >
> > ip=: * * <.@|   NB. The integer part verb
> >
> >
> > ]fpv =: fp v NB. Save the fractional part
> >
> > _0.375 _0.846154 _0.4 0.0027933 0.00139082 0 0.998621
> >
> >
> > ]ipv =: ip v NB. Save the integer part
> >
> > _2 _5 _11 13 13 13 12
> >
> >
> >
> > ]sm =: ipv + fpv   NB. Add the two parts back together
> >
> > _2.375 _5.84615 _11.4 13.0028 13.0014 13 12.9986
> >
> >
> >  NB. The result of adding the two parts should be identical to the
> original
> > vector.
> >
> >
> > sm = v
> >
> > 1 1 1 1 1 1 1
> >
> > Skip Cave
> > Cave Consulting LLC
> >
> > On Tue, Aug 8, 2017 at 2:14 PM, 'Bo Jacoby' via Programming < 
> > programm...@jsoftware.com> wrote:
> >
> > > The integer part  a  and the fractional part  b  of a number  x  
> > > is
> such
> > > that x=a+b and  a  is an integer and   0<:b  and  b<1 . I do know of no
> > use
> > > of a "negative fractional part".
> > >
> > > Den 20:39 tirsdag den 8. august 2017 skrev Raul Miller <
> > > rauldmil...@gmail.com>:
> > >
> > >
> > >  I think we've mostly been using the wiki for live documents. (I'm 
> > > not sure what all would be involved in changing the phrase book.)
> > >
> > > Thanks,
> > >
> > > --
> > > Raul
> > >
> > >
> > > On Tue, Aug 8, 2017 at 2:35 PM, Skip Cave 
> > > 
> > wrote:
> > > > It looks like we have a reliable solution to find a fractional 
> > > > part
> of
> > a
> > > > floating point number, while maintaining the sign:
> > > >
> > > >v
> > > >
> > > > _2.375 _5.84615 _11.4 13.0028 13.0014 13 12.9986
> > > >
> > > >fp=. * * 1||NB. Thanks to Martin
> > > >
> > > >fp v
> > > >
> > > > _0.375 _0.846154 _0.4 0.0027933 0.00139082 0 0.998621
> > > >
> > > >
> > > > Credit should also go to the people who suggested the building
> blocks,
> > > e.g.
> > > >
> > > > (1|y) Raul  --  (1||y) Pascal  --  (*y) Raul
> > > >
> > > > It is also nice to have the companion verb - integer part:
> > > >
> > > >ip=: * * <.@|  NB. Thanks to Louis
> > > >
> > > >ip v
> > > >
> > > > _2 _5 _11 13 13 13 12
> > > >
> > > >
> > > > I have needed these functions more than once in my enginering 
> > > > work. I believe that these two verbs need to be inserted 
> > > > somewhere in the
> > > "Numbers"
> > > > section of the J Phrases doc. Maybe under "8A-Numbers & 
> > > > Counting", or 8C-Representations", or "8D-Arithmetic".
> > > >
> > > >
> > > > How do we get them in the document? What section do they fit the 
> > > > best
> > in?
> > > > Can I edit the Phrases doc?
> > > >
> > > > Skip Cave
> > > > Cave Consulting LLC
> > > >
> > > >
> > > >
> > > >>
> > > >>
> > > > 
> --
> > > > For information about J forums see http://www.jsoftware.com/
> forums.htm
> > > --
> > >  For information about J forums see 
> > > http://www.jsoftware.com/forums.htm
> > >
> 

Re: [Jprogramming] Jig - an augmented display for jqt in j805 and j806

2017-07-28 Thread Tom Arneson
Bob, When I tried jig, I got the following error.

   load'debug/jig'
not found: C:/users/bobtherriault/j64-806-user/projects/enhanced/run.ijs
|file name error: script
|   0!:0 y[4!:55<'y'

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of robert therriault
Sent: Friday, July 28, 2017 15:15
To: Programming forum 
Subject: [Jprogramming] Jig - an augmented display for jqt in j805 and j806

Greetings everyone,

I have just completed uploading a new addon that I have named Jig. It takes the 
standard J text display and upgrades it to an interactive SVG display that 
allows quick access to type and shape and a host of other information about the 
results of J sentences. 

I have posted a short video (1 minute) demo here: https://youtu.be/dK1y_V07214

Once you have updated using Package Manager you should be able to run it.

There is also a lab in the 'debug' category that will check that your system is 
running the full version of the QT ide required for web displays like Jig.

I find it most useful when I have assigned a function key to it as described in 
the second last chapter of the lab. Just make sure that assigning the function 
key does not put you in conflict with any start up scripts that you may be 
running. 

This is my first addon so I hope that I have not made too big a mess of things 
and I look forward to your feedback.

Cheers, bob
 


--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] reset colours in plot

2017-07-17 Thread Tom Arneson
STDCLR_jzplot_
0 0 255
255 0 0
0 128 0
128 0 128
255 0 255
128 128 0
0 128 128
255 255 0
210 180 140
0 255 255
165 42 42
128 128 128

To get just 4 colors, redefine STDCLR

STDCLR_jzplot_=: 4{. STDCLR_jzplot_


Sent from Mail for Windows 10

From: Rudolf Sykora
Sent: Monday, July 17, 2017 09:33
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] reset colours in plot

> Do you have an example where colors are not reused?

I mean reuse = restart, i.e. not necessarily cycle (though possibly also).
Example:

-
load 'plot'
pd 'reset'
pd 'type line'

pd i.3
NB. 
pd 3+i.3

pd 'show'
-

The question is: what should I write at the  place, so that
the second plot has the *same* colour as the first plot.

This is an artificial example; the need comes when the 1st plot
is more complicated. I simply want to say: now use the same
chain of colours again.

Thanks
Ruda
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Empty lists?

2017-06-07 Thread Tom Arneson
empty=: ''


-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Michael Rice
Sent: Wednesday, June 7, 2017 09:59
To: programming 
Subject: [Jprogramming] Empty lists?

Is there a special "noun" for an empty list?

Creating one seems enigmatic.

   empty =: 1 2
   empty
1 2
   empty =: }. empty
   empty
2
   empty =: }. empty
   empty

   empty1 =:
|syntax error
|   empty1=:
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Tom Arneson
Ian, I used your simple fix and it seems to work for me. Thanks.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Ian Clark
Sent: Monday, May 29, 2017 13:55
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Save/load content of locale

@Tom, immx (immex) has a history and is platform-dependent.

I've checked my default startup, and I see I'm defining it like this (which is 
somewhat "heritage")…

immxJ6=: 3 : 0

NB. for downward compatibility

IMMX_z_=: utf8 y

9!:27 '0!:101 IMMX_z_'

9!:29 [ 1

)


immxQT=: 3 : 0

smoutput ' ',dlb y NB. because immexj doesn't echo (y)

empty immexj_z_ y

)


3 : 0'' NB. EXECUTE ON LOADING...

if. IFQT do.

immx=: immxQT

else.

immx=: immxJ6

end.

i.0 0

)


But the fix could be as simple as:


   immx_z_ =: immexj


where immexj is defined in the script: '~addons/ide/qt/qt.ijs'

I've just tried it and it seems to work with LoBrow, but I haven't properly 
tested it.


Needless to say, LoBrow doesn't work with jconsole, because it needs "wd".


Let me know if you find any other missing system utilities.

On Mon, May 29, 2017 at 3:27 PM, Tom Arneson <t...@tomarneson.com> wrote:

> Ian
>
> I just tried LoBrow, but it doesn't find immx_z_
>
>load 'c:/users/tom arneson/skydrive/j64-805-user/lowbrow/lobrow.ijs'
> |value error: immx_z_
> |   immx msg=.'cocurrent ',(q1 LOC),LF
>
> -Original Message-
> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On 
> Behalf Of Ian Clark
> Sent: Monday, May 29, 2017 03:12
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Save/load content of locale
>
> You might also find LoBrow handy. It's not released as an addon but 
> you can download the script (lobrow.ijs) here:
>
> http://code.jsoftware.com/wiki/User:Ian_Clark/LoBrow
>
> I use LoBrow a lot. But it's a personal tool and lacks documentation.
> However it's easy to dump a given locale as a J script…
>
> ++ Select the locale (top left panel), e.g. "z" or "base"
> ++ click the bottom-right button: "Script > temp /> ME".
> ---The resulting script is: ~temp/10.ijs …sorry, "10" is hard-coded: 
> to change it you'll need to edit lobrow.ijs itself.
>
> LoBrow is powerful enough to develop code (LoBow itself is maintained 
> that way). But heed Chris's warning -- and don't. It's really a tool 
> for quickly exploring and hacking other people's code.
>
>
>
> On Mon, May 29, 2017 at 7:09 AM, John Baker <bakerj...@gmail.com> wrote:
>
> > You can also check out the JOD addon. It can save and restore entire 
> > locales. Install the joddocument addon and read JOD.PDF for details.
> >
> > Cheers
> >
> > Sent from my iPhone
> >
> > > On May 28, 2017, at 8:36 PM, Herbert Weissenbaeck // Privat <
> > h...@herbertweissenbaeck.com> wrote:
> > >
> > > Thank you, Henry.
> > > All clear now.
> > >
> > >> On 29 May 2017, at 04:26, Henry Rich <henryhr...@gmail.com> wrote:
> > >>
> > >> When you execute nl to get a list of names, nl removes x and y 
> > >> from the
> > list, because those names are defined in the nl script itself.  If 
> > you need them you will have to add them by hand.
> > >>
> > >> Unsolicited opinion: it is Very Bad Form to use the names 
> > >> x,y,u,v,m,n
> > as public names.
> > >>
> > >> Henry Rich
> > >>
> > >>> On 5/28/2017 10:19 PM, Herbert Weissenbaeck // Privat wrote:
> > >>> Thank you. Is there any specific reason, why symbols called 'x' 
> > >>> or
> 'y'
> > are not saved by wssave?
> > >>>
> > >>>
> > >>>> On 28 May 2017, at 15:20, Brian Schott <schott.br...@gmail.com>
> > wrote:
> > >>>>
> > >>>> Also,
> > >>>>
> > >>>> http://code.jsoftware.com/wiki/Scripts/File_J_Variables
> > >>>>
> > >>>>> On Sun, May 28, 2017 at 9:06 AM, chris burke 
> > >>>>> <cbu...@jsoftware.com>
> > wrote:
> > >>>>>
> > >>>>> The system does not come with a built-in function to save a 
> > >>>>> locale
> > to file.
> > >>>>>
> > >>>>> There is a script to do this at code.jsoftware.com/wiki/
> > Scripts/WS_Files,
> > >>>>> and there are utilities to read/write data to file in various
> > formats.
> > >>>>>
> > >>>>> However

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Tom Arneson
Ian

I just tried LoBrow, but it doesn't find immx_z_

   load 'c:/users/tom arneson/skydrive/j64-805-user/lowbrow/lobrow.ijs'
|value error: immx_z_
|   immx msg=.'cocurrent ',(q1 LOC),LF

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Ian Clark
Sent: Monday, May 29, 2017 03:12
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Save/load content of locale

You might also find LoBrow handy. It's not released as an addon but you can 
download the script (lobrow.ijs) here:

http://code.jsoftware.com/wiki/User:Ian_Clark/LoBrow

I use LoBrow a lot. But it's a personal tool and lacks documentation.
However it's easy to dump a given locale as a J script…

++ Select the locale (top left panel), e.g. "z" or "base"
++ click the bottom-right button: "Script > temp /> ME".
---The resulting script is: ~temp/10.ijs …sorry, "10" is hard-coded: to change 
it you'll need to edit lobrow.ijs itself.

LoBrow is powerful enough to develop code (LoBow itself is maintained that 
way). But heed Chris's warning -- and don't. It's really a tool for quickly 
exploring and hacking other people's code.



On Mon, May 29, 2017 at 7:09 AM, John Baker <bakerj...@gmail.com> wrote:

> You can also check out the JOD addon. It can save and restore entire 
> locales. Install the joddocument addon and read JOD.PDF for details.
>
> Cheers
>
> Sent from my iPhone
>
> > On May 28, 2017, at 8:36 PM, Herbert Weissenbaeck // Privat <
> h...@herbertweissenbaeck.com> wrote:
> >
> > Thank you, Henry.
> > All clear now.
> >
> >> On 29 May 2017, at 04:26, Henry Rich <henryhr...@gmail.com> wrote:
> >>
> >> When you execute nl to get a list of names, nl removes x and y from 
> >> the
> list, because those names are defined in the nl script itself.  If you 
> need them you will have to add them by hand.
> >>
> >> Unsolicited opinion: it is Very Bad Form to use the names 
> >> x,y,u,v,m,n
> as public names.
> >>
> >> Henry Rich
> >>
> >>> On 5/28/2017 10:19 PM, Herbert Weissenbaeck // Privat wrote:
> >>> Thank you. Is there any specific reason, why symbols called 'x' or 'y'
> are not saved by wssave?
> >>>
> >>>
> >>>> On 28 May 2017, at 15:20, Brian Schott <schott.br...@gmail.com>
> wrote:
> >>>>
> >>>> Also,
> >>>>
> >>>> http://code.jsoftware.com/wiki/Scripts/File_J_Variables
> >>>>
> >>>>> On Sun, May 28, 2017 at 9:06 AM, chris burke 
> >>>>> <cbu...@jsoftware.com>
> wrote:
> >>>>>
> >>>>> The system does not come with a built-in function to save a 
> >>>>> locale
> to file.
> >>>>>
> >>>>> There is a script to do this at code.jsoftware.com/wiki/
> Scripts/WS_Files,
> >>>>> and there are utilities to read/write data to file in various
> formats.
> >>>>>
> >>>>> However, scripts are the preferred way, rather than workspaces.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> 
> --
> >>>> For information about J forums see http://www.jsoftware.com/
> forums.htm
> >>> --
> >>>  For information about J forums see 
> >>> http://www.jsoftware.com/forums.htm
> >>
> >>
> >> ---
> >> This email has been checked for viruses by AVG.
> >> http://www.avg.com
> >>
> >> ---
> >> --- 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

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] sqlite addon

2017-03-21 Thread Tom Arneson
I have a sqlite database with a table of gas purchase information

 

NB. sqlhead works as expected when selecting a field using sql 'from'

 

1 sqlhead__db 'date from gaspur where car = 1'

+--+

¦date ¦

+--¦

¦2015-12-02¦

+--+

 

1 sqltail__db 'date from gaspur where car = 1'

NB. returns nothing

 

NB. sqltail used without 'from' i.e. getting all fields works as expected

 

1 sqltail__db 'gaspur where car = 1'

+---+

¦date ¦gallon¦cost ¦car¦mileage¦

+--+--+-+---+---¦

¦2017-02-17¦13.579¦29.05¦1 ¦203281 ¦

+---+

 

I can extract the date from the return value shown above but 

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] math/tabula missing definition of a2f

2017-03-10 Thread Tom Arneson
Thanks, Bill. A user of an addon should not have to track down definitions. 
Maybe the creator of tabula should fix it, or else it should be dropped from 
addons.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Friday, March 10, 2017 20:02
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] math/tabula missing definition of a2f

I grep a2f= and found it here

> format/zulu/zuany.ijs:a2f=: 3 : '". :: LL ''2f y'',~zutype y'

Пт, 10 мар 2017, Tom Arneson написал(а):
> I tried to run tabula today, and got this error message:
> 
>  
> 
> load'math/tabula'
> 
> |value error: a2f
> 
> | z=. a2f tabengine nb'UCOM';L0
> 
>  
> 
> JVERSION
> 
> Engine: j805/j64/windows
> 
> Release: commercial/2016-12-11T08:02:16
> 
> Library: 8.05.14
> 
> Qt IDE: 1.5.3s/5.6.2
> 
> Platform: Win 64
> 
> Installer: J805 install
> 
> InstallPath: c:/program files/j64-805
> 
> Contact: www.jsoftware.com
> 
>  
> 
> I searched for a2f in ~addons/math/tabula/tabula.ijs and only found 
> the call which produced the error message above
> 
> --
> 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

Re: [Jprogramming] JHS update

2017-03-10 Thread Tom Arneson
Linda's problem may be that popup are blocked by her browser. Mine were when I 
used Chrome, I just switched to Edge which also blocked, but asked about 
overriding the block.
Now I can see the submenus under the ide menu.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Linda A Alvord
Sent: Friday, March 10, 2017 09:45
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] JHS update

Pascal,  In jqt you open new temp and then save.

In JHS, how do you get to a place where you can define a script and save it?

Linda

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of 'Pascal Jasmin' via Programming
Sent: Friday, March 10, 2017 9:20 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] JHS update

seems like you want to save an ijs (script) file?  You need to open one first.  
The ijx file is like the console in jqt.


Eric has mentioned a few times now that "file" menu is different than "files" 
menu.




- Original Message -
From: Linda A Alvord 
To: programm...@jsoftware.com
Sent: Friday, March 10, 2017 8:41 AM
Subject: Re: [Jprogramming] JHS update

Also, it seems that there were more choices before. There ar:

Ide   debug   tools  help

Weren't there  'action' which included 'save' ?

Linda

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Eric Iverson
Sent: Thursday, March 9, 2017 9:28 PM
To: Programming forum
Subject: Re: [Jprogramming] JHS update

I don't understand your problem report. There has been no change in JHS other 
than were they appear in the menu.

ide>files (note the s) is a list of files you have used recently.

ide>file (no s) is a file browser. You can navigate over your folders 
ide>and
see all your files.

Please confirm that menu ide>file is working properly.

Also, please report the result of the expression in JHS:
   jpath'~temp'

And then run the same expression in jqt and report that.

It sounds like perhaps you multiple installations of J and that is the source 
of the confusion.




On Thu, Mar 9, 2017 at 9:07 PM, Linda A Alvord 
wrote:

> In the past, I could access all ijs files in temp when I was connected 
> to jhs in my browser.  All worked with no problem.  How can I do that 
> now as '"file" has a new meaning.  Otherwise  all older files must be 
> retyped befo before they can be used and modified.  Also once they 
> were modivied in jhs they would be corrected when accessed in jqt.
>
> Linda
>
> -Original Message-
> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On 
> Behalf Of Eric Iverson
> Sent: Thursday, March 9, 2017 2:46 PM
> To: Programming forum
> Subject: [Jprogramming] JHS update
>
> JHS update available. JHS now automatically browses to the jijx page. 
> This is probably more convenient than the current behavior for most 
> people most of the time.
> --
> 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
--
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

[Jprogramming] math/tabula missing definition of a2f

2017-03-10 Thread Tom Arneson
I tried to run tabula today, and got this error message:

 

load'math/tabula'

|value error: a2f

| z=. a2f tabengine nb'UCOM';L0

 

JVERSION

Engine: j805/j64/windows

Release: commercial/2016-12-11T08:02:16

Library: 8.05.14

Qt IDE: 1.5.3s/5.6.2

Platform: Win 64

Installer: J805 install

InstallPath: c:/program files/j64-805

Contact: www.jsoftware.com

 

I searched for a2f in ~addons/math/tabula/tabula.ijs and only found the call
which produced the error message above

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] sqlite addon

2017-03-09 Thread Tom Arneson
Will the sqlite binary for android be released in the future?

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Wednesday, March 8, 2017 17:09
To: Programming forum <programm...@jsoftware.com>
Subject: Re: [Jprogramming] sqlite addon

binary is not available for android.

On 9 Mar, 2017 6:04 am, "Tom Arneson" <t...@tomarneson.com> wrote:

> I tried the sqlite addon with the following results:
>
>
>
> NB. PC running Windows10
>
> load'data/sqlite'
>
> getbin_psqlite_''
>
> getbin_psqlite_''
>
> Sqlite binary installed.
>
> db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'
>
> |domain error: cd
>
> | SQLITE_OK~: sqlite3_open_v2 file;handle;flags;<<0
>
>
>
> NB. Android devices:
>
>   getbin_psqlite_''
>
> Connection failed: Unexpected error
>
> --
> 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

Re: [Jprogramming] FW: sqlite addon

2017-03-08 Thread Tom Arneson
OK! It works now. Thank you, Chris.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of chris burke
Sent: Wednesday, March 8, 2017 21:04
To: Programming forum <programm...@jsoftware.com>
Subject: Re: [Jprogramming] FW: sqlite addon

> and also, has a space in the path name.

Of course, the library name needs to be quoted. This should be fixed now.
Please update the addon and try again, thanks.


On Wed, Mar 8, 2017 at 6:44 PM, Tom Arneson <t...@tomarneson.com> wrote:

>
>
>
>
> From: Tom Arneson [mailto:t...@tomarneson.com]
> Sent: Wednesday, March 8, 2017 20:41
> To: 'chris burke' <cbu...@jsoftware.com>
> Subject: RE: [Jprogramming] sqlite addon
>
>
>
> The lib matches.
>
>
>
> The problem may be due to that on my machine the ~install folder is a 
> protected folder:
>
> jpath '~install'
>
> c:/program files/j64-805
>
> and also, has a space in the path name.
>
>
>
> In order to run pacman, I have to open as an administrator
>
>
>
> dir '~addons/data/sqlite/lib'
>
> libjsqlite3.dll 3282303 08-Mar-17 20:13:55
>
> readme.txt 49 26-Feb-17 10:08:10
>
>
>
>
>
> From: cdbu...@gmail.com <mailto:cdbu...@gmail.com>  [mailto:
> cdbu...@gmail.com] On Behalf Of chris burke
> Sent: Wednesday, March 8, 2017 20:06
> To: tom arneson <t...@tomarneson.com <mailto:t...@tomarneson.com> >
> Subject: Fwd: [Jprogramming] sqlite addon
>
>
>
> Thanks. I am quite baffled by this. Could you confirm that your binary is:
>
>
>
>dir '~addons/data/sqlite/lib'
>
> libjsqlite3.dll 3282303 08-Mar-17 17:54:58
>
> readme.txt   49 26-Feb-17 08:08:10   YES
>
>
>
> and that the failing function is:
>
>
>
>sqlite3_open_v2_psqlite_
>
> 'c:/users/chris/j8/addons/data/sqlite/lib/libjsqlite3.dll 
> sqlite3_open_v2
> > + i *c *x i *c'
>
>
>
>
>
> -- Forwarded message --
>
> From: Tom Arneson <t...@tomarneson.com <mailto:t...@tomarneson.com> >
> Date: Wed, Mar 8, 2017 at 5:27 PM
> Subject: Re: [Jprogramming] sqlite addon
> To: programm...@jsoftware.com <mailto:programm...@jsoftware.com>
>
>
> Chris,
>
> My answers are inserted in your questions below:
>
> -Original Message-
> From: Programming [mailto:programming-boun...@forums.jsoftware.com
> <mailto:programming-boun...@forums.jsoftware.com> ] On Behalf Of chris 
> burke
> Sent: Wednesday, March 8, 2017 17:20
> To: Programming forum <programm...@jsoftware.com  programm...@jsoftware.com> >
> Subject: Re: [Jprogramming] sqlite addon
>
> I cannot duplicate this, and it works for me on Win10. Can you 
> experiment a bit and give more info?
>
> What is your J version?
>
>JVERSION
> Engine: j805/j64/windows
> Release: commercial/2016-12-11T08:02:16
> Library: 8.05.14
> Qt IDE: 1.5.3s/5.6.2
> Platform: Win 64
> Installer: J805 install
> InstallPath: c:/program files/j64-805
> Contact: www.jsoftware.com <http://www.jsoftware.com>
>
> What is cder'' after the error?
>
>db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'
> |domain error: cd
> |   SQLITE_OK~:sqlite3_open_v2 file;handle;flags;<<0
>cder''
> 5 0
>
>
> Do you get the error after restarting J? YES
>
>
>
> On Wed, Mar 8, 2017 at 2:04 PM, Tom Arneson <t...@tomarneson.com  t...@tomarneson.com> > wrote:
>
> > I tried the sqlite addon with the following results:
> >
> >
> >
> > NB. PC running Windows10
> >
> > load'data/sqlite'
> >
> > getbin_psqlite_''
> >
> > getbin_psqlite_''
> >
> > Sqlite binary installed.
> >
> > db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'
> >
> > |domain error: cd
> >
> > | SQLITE_OK~: sqlite3_open_v2 file;handle;flags;<<0
> >
> >
> >
> > NB. Android devices:
> >
> >   getbin_psqlite_''
> >
> > Connection failed: Unexpected error
> >
> > 
> > -- 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
>
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] FW: sqlite addon

2017-03-08 Thread Tom Arneson
 

 

From: Tom Arneson [mailto:t...@tomarneson.com] 
Sent: Wednesday, March 8, 2017 20:41
To: 'chris burke' <cbu...@jsoftware.com>
Subject: RE: [Jprogramming] sqlite addon

 

The lib matches. 

 

The problem may be due to that on my machine the ~install folder is a protected 
folder:

jpath '~install'

c:/program files/j64-805

and also, has a space in the path name.

 

In order to run pacman, I have to open as an administrator 

 

dir '~addons/data/sqlite/lib'

libjsqlite3.dll 3282303 08-Mar-17 20:13:55

readme.txt 49 26-Feb-17 10:08:10

 

 

From: cdbu...@gmail.com <mailto:cdbu...@gmail.com>  [mailto:cdbu...@gmail.com] 
On Behalf Of chris burke
Sent: Wednesday, March 8, 2017 20:06
To: tom arneson <t...@tomarneson.com <mailto:t...@tomarneson.com> >
Subject: Fwd: [Jprogramming] sqlite addon

 

Thanks. I am quite baffled by this. Could you confirm that your binary is:

 

   dir '~addons/data/sqlite/lib'

libjsqlite3.dll 3282303 08-Mar-17 17:54:58

readme.txt   49 26-Feb-17 08:08:10   YES

 

and that the failing function is:

 

   sqlite3_open_v2_psqlite_

'c:/users/chris/j8/addons/data/sqlite/lib/libjsqlite3.dll sqlite3_open_v2 > + i 
*c *x i *c'

 

 

-- Forwarded message --

From: Tom Arneson <t...@tomarneson.com <mailto:t...@tomarneson.com> >
Date: Wed, Mar 8, 2017 at 5:27 PM
Subject: Re: [Jprogramming] sqlite addon
To: programm...@jsoftware.com <mailto:programm...@jsoftware.com> 


Chris,

My answers are inserted in your questions below:

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com 
<mailto:programming-boun...@forums.jsoftware.com> ] On Behalf Of chris burke
Sent: Wednesday, March 8, 2017 17:20
To: Programming forum <programm...@jsoftware.com 
<mailto:programm...@jsoftware.com> >
Subject: Re: [Jprogramming] sqlite addon

I cannot duplicate this, and it works for me on Win10. Can you experiment a bit 
and give more info?

What is your J version?

   JVERSION
Engine: j805/j64/windows
Release: commercial/2016-12-11T08:02:16
Library: 8.05.14
Qt IDE: 1.5.3s/5.6.2
Platform: Win 64
Installer: J805 install
InstallPath: c:/program files/j64-805
Contact: www.jsoftware.com <http://www.jsoftware.com> 

What is cder'' after the error?

   db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'
|domain error: cd
|   SQLITE_OK~:sqlite3_open_v2 file;handle;flags;<<0
   cder''
5 0


Do you get the error after restarting J? YES



On Wed, Mar 8, 2017 at 2:04 PM, Tom Arneson <t...@tomarneson.com 
<mailto:t...@tomarneson.com> > wrote:

> I tried the sqlite addon with the following results:
>
>
>
> NB. PC running Windows10
>
> load'data/sqlite'
>
> getbin_psqlite_''
>
> getbin_psqlite_''
>
> Sqlite binary installed.
>
> db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'
>
> |domain error: cd
>
> | SQLITE_OK~: sqlite3_open_v2 file;handle;flags;<<0
>
>
>
> NB. Android devices:
>
>   getbin_psqlite_''
>
> Connection failed: Unexpected error
>
> --
> 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

[Jprogramming] sqlite addon

2017-03-08 Thread Tom Arneson
I tried the sqlite addon with the following results:

 

NB. PC running Windows10

load'data/sqlite'

getbin_psqlite_''

getbin_psqlite_''

Sqlite binary installed.

db=: sqlopen_psqlite_ '~addons/data/sqlite/db/sandp.db'

|domain error: cd

| SQLITE_OK~: sqlite3_open_v2 file;handle;flags;<<0

 

NB. Android devices:

  getbin_psqlite_''

Connection failed: Unexpected error

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Android - broken package manager on fresh install

2017-03-06 Thread Tom Arneson
Try this from Android desktop

Settings
Apps
J Android
Permissions 
Storage turn on, if off

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Michael Dykman
Sent: Monday, March 6, 2017 08:08
To: J Programming 
Subject: [Jprogramming] Android - broken package manager on fresh install

I installed the latest Android version from the website on my Moto G 2nd 
generation phone running Android 6.0

The app identifies itself under 'About J' thus:

Library version: 8.05.11
Android version: 1.0.25/23

Having not yet run the package manager, I am not surprised that plot doesn't 
load.

 load'plot'
not found:
/storage/emulated/0/Android/data/com.jsoftware.j.android/files/addons/graphics/plot/plot.ijs
|file name error: script
|   0!:0 y[4!:55<'y'

So I selected the package manager from the tools menu which gave me this.

   |file name error
|   ((p2+{.p1)}.pp)1!:2http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Android 6 problems

2017-02-18 Thread Tom Arneson
I have a new tablet running android 6.0  It is an ASUS ZenPad 8.0

 

J did not read or write: ~user which is   /storage/emulated/0/ until I
turned on app permissions for J

 

See this url for more information: 

 

https://www.howtogeek.com/230683/how-to-manage-app-permissions-on-android-6.
0/

 

 

 

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Boxed tables in j component files

2017-02-07 Thread Tom Arneson
I got it. The boxed arrays needed to be boxed before the jappend and unboxed 
after the jread.

 The modified script follows:

NB.%scorecard2.ijs - saves & recalls globals FLAG and OWNED
NB. the globals are currently boxed shape 350 5 and each contains
NB. literal data
NB. Created 2017-02-07
NB. =

require 'jfiles'

NB.*savethem v Converts to binary and save in a J component file
savethem=: verb define
  f=. CPATH,'flag-owned.ijf'
  jcreate f
  (< FLAG) jappend f
  (< OWNED) jappend f
  jsize f
)

NB.*recallthem v Reads from component file
recallthem=: verb define
  f=. CPATH,'flag-owned.ijf'
  FLAG0=: > jread f;0
  OWNED0=: > jread f;1
  0
)

NB. =
NB. test run follows:

savethem''
recallthem''
   FLAG0-:FLAG
1
   OWNED0-:OWNED
1



-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Tom Arneson
Sent: Tuesday, February 7, 2017 21:21
To: programming@forums.jsoftware.com
Cc: programm...@jsoftware.com
Subject: [Jprogramming] Boxed tables in j component files

I'm trying to save 2 boxed tables of literal data in a component file, and then 
read them back into J.

 

I've tried converting the tables to binary with 3!:1  and then creating a 
component file with jcreate

and using jappend  to write to the jfile. This process seems to work OK.
When I try to read the data, I get the error shown below in my sample run.

 

 

My script file follows

 

NB.%scorecard2.ijs - saves & recalls globals FLAG and OWNED

NB. the globals are currently boxed shape 350 5 and each contains

NB. literal data

NB. Created 2017-02-07

NB. =

 

require 'jfiles'

 

NB.*savethem v Converts to binary and save in a J component file

savethem=: verb define

f=. CPATH,'flag-owned.jf'

jcreate f

(3!:1 FLAG) jappend f

(3!:1 OWNED) jappend f

jsize f

)

 

NB.*recallthem v Reads from component file

recallthem=: verb define

f=. CPATH,'flag-owned.jf'

FLAG0=: 3!:2 jread f;0

OWNED0=: 3!:2 jread f;1

)

 

NB. =

NB. Sample run follows:

Note''

 

JVERSION

Engine: j805/j64/windows

Release: commercial/2016-12-11T08:02:16

Library: 8.05.11

Qt IDE: 1.5.3s/5.6.2

Platform: Win 64

Installer: J805 install

InstallPath: c:/program files/j64-805

Contact: www.jsoftware.com

 

savethem''

0 2 263936 0

recallthem''

|domain error: recallthem

| FLAG0=: 3!:2 jread f;0

 

)

--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Boxed tables in j component files

2017-02-07 Thread Tom Arneson
I'm trying to save 2 boxed tables of literal data in a component file, and
then read them back into J.

 

I've tried converting the tables to binary with 3!:1  and then creating a
component file with jcreate

and using jappend  to write to the jfile. This process seems to work OK.
When I try to read the data, I get the error shown below in my sample run.

 

 

My script file follows

 

NB.%scorecard2.ijs - saves & recalls globals FLAG and OWNED

NB. the globals are currently boxed shape 350 5 and each contains

NB. literal data

NB. Created 2017-02-07

NB. =

 

require 'jfiles'

 

NB.*savethem v Converts to binary and save in a J component file

savethem=: verb define

f=. CPATH,'flag-owned.jf'

jcreate f

(3!:1 FLAG) jappend f

(3!:1 OWNED) jappend f

jsize f

)

 

NB.*recallthem v Reads from component file

recallthem=: verb define

f=. CPATH,'flag-owned.jf'

FLAG0=: 3!:2 jread f;0

OWNED0=: 3!:2 jread f;1

)

 

NB. =

NB. Sample run follows:

Note''

 

JVERSION

Engine: j805/j64/windows

Release: commercial/2016-12-11T08:02:16

Library: 8.05.11

Qt IDE: 1.5.3s/5.6.2

Platform: Win 64

Installer: J805 install

InstallPath: c:/program files/j64-805

Contact: www.jsoftware.com

 

savethem''

0 2 263936 0

recallthem''

|domain error: recallthem

| FLAG0=: 3!:2 jread f;0

 

)

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Error trying to amend a list of symbols

2017-01-23 Thread Tom Arneson
JVERSION

Engine: j805/j64/windows

Release: commercial/2016-12-11T08:02:16

Library: 8.05.11

Qt IDE: 1.5.3s/5.6.2

Platform: Win 64

Installer: J805 install

InstallPath: c:/program files/j64-805

Contact: www.jsoftware.com

 

 

[a=. 10#s:' 1'

`1 `1 `1 `1 `1 `1 `1 `1 `1 `1

(s:' -1') 2 5}a

|length error

| (s:' -1') 2 5}a

 

[a=. 10# s:' 1'

`1 `1 `1 `1 `1 `1 `1 `1 `1 `1

[b=. s:' tom'

`tom

[a=. (b) 5}a

|rank error

| [a=:(b) 5}a

 

[a=. (b) 1 5}a

|length error

| [a=:(b) 1 5}a

 

NB. try similar using numeric data works as expected

[a=. 10#1

1 1 1 1 1 1 1 1 1 1

(3) 1 3 4}a

1 3 1 3 3 1 1 1 1 1

[a=.(3) 1 3 4}a

1 3 1 3 3 1 1 1 1 1

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] How can I echo characters to JQT terminal window each time through a loop?

2016-12-17 Thread Tom Arneson
Echo and smoutput look much alike to me.
 
   echo
0 0&$@(1!:2&2)
   smoutput
0 0 $ 1!:2&2

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Louis de Forcrand
Sent: Saturday, December 17, 2016 16:19
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] How can I echo characters to JQT terminal window 
each time through a loop?

I believe echo is slightly different from smoutput: smoutput outputs to the J 
session, while echo outputs to stdout. This doesn't make a difference when 
*you*'re using JQt or Jconsole, but if Jconsole is started silently (which is 
possible right?) I think echo will output text while smoutput won't.

Louis

> On 17 Dec 2016, at 06:07, bill lam  wrote:
> 
> Doevents is mainly intended for single-thread applications.
> For multi-threading application, it is less important.
> 
> In single thread event driven applications, msgs/doevents can jump to 
> process any events. Eg, msgs inside a tight loop can interrupt and 
> abort if users press the close button.
> 
> That said, msgs is useful since J is single threaded and so it is 
> implemented in J wd.
> 
> Пт, 16 дек 2016, Raul Miller написал(а):
>> Why do you claim wd'msgs' is bad practice in J?
>> 
>> The only reasoning I can find would imply that use of J is bad 
>> practice, and I refuse to agree with that kind of thinking.
>> 
>> (More specifically, the criticisms of "doevents" which I find seem to 
>> be aimed at using fine grained multi-threading and flow of control.
>> But that makes it sound using wd'msgs' would be *good practice* in 
>> the context of J. Still, perhaps I have overlooked something?)
>> 
>> Thanks,
>> 
>> --
>> Raul
>> 
>> 
>>> On Fri, Dec 16, 2016 at 8:12 PM, bill lam  wrote:
>>> wd'msgs' is the equivalent of doevents() in visual basic and dotnet 
>>> winform. It is a bad practice and can cause unpredictable behaviors.
>>> Android does not support it. Try other alternatives first.
>>> 
>>> That said, using it in Michael's context should be ok. Writing to 
>>> file as suggested by Eric is a more general solution.
>>> 
>>> 
>>> On 17 Dec, 2016 6:07 am, "'Pascal Jasmin' via Programming" < 
>>> programm...@jsoftware.com> wrote:
>>> 
>>> a slightly different version of echo (that returns argument instead 
>>> of i.0
>>> 0)
>>> 
>>> pD =: (1!:2&2)`(wd bind 'msgs' ] 1!:2&2)@.IFQT echo =: (0 0 
>>> $1!:2&2)`(wd bind 'msgs' ] 0 0 $ 1!:2&2)@.IFQT
>>> 
>>> works "universally"
>>> 
>>> 3 : 'i =. 0 while. i < y do. if. 0 = 100 | i do. pD i end. i =. 
>>> i+1 end.' 1000
>>> 
>>> 
>>> - Original Message -
>>> From: Eric Iverson 
>>> To: Programming forum 
>>> Sent: Friday, December 16, 2016 4:40 PM
>>> Subject: Re: [Jprogramming] How can I echo characters to JQT 
>>> terminal window each time through a loop?
>>> 
>>> This is a perennial problem. Jconsole and JHS will show echo output 
>>> before execution completes, but Jqt won't. There may be Jqt 
>>> mechanisms, such as other windows, and special wd commands that 
>>> would work. In my experience the best general solution to this 
>>> problem is to have the loop where you currently have the echo, do an 
>>> fwrite or fappend of status information to a file. Then, while the 
>>> big update is running, a completely separate task can inspect the 
>>> file contents. This is easy to do, works on all front ends, works on 
>>> all platforms, and supports logging info that wouldn't easily fit 
>>> into echo. In your case just replace the echos with an appropriate fwrite 
>>> of formated data.
>>> 
 On Fri, Dec 16, 2016 at 3:22 PM, Michael Berry  wrote:
 
 I am looping through a large database table 1,000 rows at a time 
 and I would like to show some reassuring output.  I tried echo and 
 smoutput (are these different?) but both sat there until the whole 
 explicit definition ended and then printed out the progress notes 
 all at once.  Do I need some sort of flush output command?
 
 Here is the loop I tried:
 
 while. 0 = _1 -: d=. ddfch sh, 1000 NB. ddfet fails unpredictably 
 so use ddfch instead
 
 do.
 
 data=. make_cells d NB. put into ddfet format as expected by 
 run_tests
 
 scores=. run_tests data
 
 r=. make_cols data,. <"1 scores
 
 assert. 0 = ch2 ddins~ ('select * from ',y,'_scored where 0=1');r
 
 echo written=. written + 1{. $data
 
 end.
 ---
 --- 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 

Re: [Jprogramming] new 805 full releases available

2016-11-25 Thread Tom Arneson
Will the AIO installed be updated? it is still listed as: 2016-11-09 17:47   
10M  j805 windows 64-bit AIO installer (j805+jqt+Qt runtime)

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Eric Iverson
Sent: Thursday, November 24, 2016 09:48
To: Programming forum 
Subject: [Jprogramming] new 805 full releases available

New 805 beta full release for win32/64, linux32/64, and mac64 is available.
These install packages include the J Engine at level beta-16.

See information about the release at:
code.jsoftware.com/wiki/System/ReleaseNotes/J805

You are encouraged to move to this release as soon as convenient.

The final release will be in a week or so.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] jandroid on my old tablet

2016-10-01 Thread Tom Arneson
After installing beta-12:

|interface error: boot
|   IFWOW64=:'64'-:_2{.(2!:0'uname -m')-.10{a.
dver''
|value error: dver


-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Friday, September 30, 2016 21:38
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] j805-beta-12 release candidates

jandroid also updated to beta-12. Use tools check new version to download, run 
dver'' after installation and exit to finish. 
Check about J to confirm it is beta-12.

If there are any problems, please report to the beta forum.
 
Пт, 30 сен 2016, Eric Iverson написал(а):
> New tested builds for windows 32/64, linux 64, and mac 64.
> 
>  Support for linux-intel 32 and mac 32 has been dropped..
> 
> This release has significant performance improvements courtesy Henry Rich.
> 
> This release also has changes from Bill Lam, Marshall Lochbaum, and 
> Xiao-Yong Jin.
> 
> See http://www.jsoftware.com/download/jengine for more details,
> 
> If interested please install and play with these builds. Problems are 
> much better found now than later.
> --
> 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

Re: [Jprogramming] Please try the new beta

2016-10-01 Thread Tom Arneson

,~/ i. 100  NB. takes about 0.3 seconds on my android phone in bata-12

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Henry Rich
Sent: Friday, September 30, 2016 17:54
To: Programming forum 
Subject: [Jprogramming] Please try the new beta

The new beta (see http://www.jsoftware.com/download/jengine)
contains the first steps towards general support for operations-in-place.  Verb 
executions that can reuse an argument block do so. Previously operations in 
place were supported only for sentences matching a small number of restrictive 
templates.

An example is the phrase

,~/ i. 100

which used to take 10 seconds but now takes about 0.01 seconds.

I have tested this as much as I can, but I would be very grateful if J users 
would take the time to try it on their favorite code and report any problems.

The next release will see inplace execution supported for many more verbs.

Henry Rich
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] beta-12 jandroid error

2016-10-01 Thread Tom Arneson
Installed beta-12. 

Running tools->Package Manager reports:

|file name error: jsystemdefs
| 0!:0 New tested builds for windows 32/64, linux 64, and mac 64.
> 
>  Support for linux-intel 32 and mac 32 has been dropped..
> 
> This release has significant performance improvements courtesy Henry Rich.
> 
> This release also has changes from Bill Lam, Marshall Lochbaum, and 
> Xiao-Yong Jin.
> 
> See http://www.jsoftware.com/download/jengine for more details,
> 
> If interested please install and play with these builds. Problems are 
> much better found now than later.
> --
> 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

Re: [Jprogramming] 805 beta available

2016-07-13 Thread Tom Arneson
It does work after re-installing addons. Thanks.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of chris burke
Sent: Tuesday, July 12, 2016 20:58
To: Programming forum <programm...@jsoftware.com>
Subject: Re: [Jprogramming] 805 beta available

Some misc files were not copied to the 805 addons, but this should be fixed 
now. Please download the 805 addons again.

On 12 July 2016 at 18:30, Tom Arneson <t...@tomarneson.com> wrote:

> Where did clippaste.ijs go?
>
> not found: c:/users/tom 
> arneson/j64-805/addons/general/misc/clippaste.ijs
> |file name error: script
> |   0!:0 y[4!:55<'y'
>JVERSION
> Engine: j805/j64/windows
> Beta-9: commercial/2016-07-05T15:45:22
> Library: 8.05.02
> Qt IDE: 1.4.10/5.4.2
> Platform: Win 64
> Installer: J805 install
> InstallPath: c:/users/tom arneson/j64-805
> Contact: www.jsoftware.com
>
>
> -Original Message-
> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On 
> Behalf Of Eric Iverson
> Sent: Monday, July 11, 2016 15:17
> To: Programming forum <programm...@jsoftware.com>
> Subject: [Jprogramming] 805 beta available
>
> The first 805 beta full release for all platforms is available. These 
> install packages include the J Engine at level beta-9.
>
> See:
> www.jsoftware.com download page.
>
> For some details on J Engine changes see:
> www.jsoftware.com/download/jengine
>
> You are encouraged to move to this beta release as soon as convenient.
> But, as always, be cautious with production systems.
>
> Feedback and discussion in the beta forum.
> --
> 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

Re: [Jprogramming] 805 beta available

2016-07-12 Thread Tom Arneson
Where did clippaste.ijs go?

not found: c:/users/tom arneson/j64-805/addons/general/misc/clippaste.ijs
|file name error: script
|   0!:0 y[4!:55<'y'
   JVERSION
Engine: j805/j64/windows
Beta-9: commercial/2016-07-05T15:45:22
Library: 8.05.02
Qt IDE: 1.4.10/5.4.2
Platform: Win 64
Installer: J805 install
InstallPath: c:/users/tom arneson/j64-805
Contact: www.jsoftware.com
   

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Eric Iverson
Sent: Monday, July 11, 2016 15:17
To: Programming forum <programm...@jsoftware.com>
Subject: [Jprogramming] 805 beta available

The first 805 beta full release for all platforms is available. These install 
packages include the J Engine at level beta-9.

See:
www.jsoftware.com download page.

For some details on J Engine changes see:
www.jsoftware.com/download/jengine

You are encouraged to move to this beta release as soon as convenient. But, as 
always, be cautious with production systems.

Feedback and discussion in the beta forum.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] jandroid updated

2016-04-11 Thread Tom Arneson
I have a terminal emulator, but abd doesn't work om my tablet. I uninstalled J 
and then tried reinstalling. I still get message "Unfortunately, J Android has 
stopped." The previous version worked fine on my tablet.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Monday, April 11, 2016 10:14
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] jandroid updated

Either the binaries do not match the cpu or some J script errors. You can 
examine the log using adb command,
adb logcat *:s jandroid   (msg from jandroid)
or
adb logcat *:E   (all errors)

I tested it can run on Android 2.3 (arm) and kitkat (atom).

Пн, 11 апр 2016, Tom Arneson написал(а):
> Installed on my phone, Motorola Droid 2 with Android 5.1.1. J seems to work 
> OK.
> 
> on my ASUS tablet Android version 4.2.2, an enter causes an error message 
> "Unfortunately, J Android has stopped."
> 
> -Original Message-
> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On 
> Behalf Of bill lam
> Sent: Monday, April 11, 2016 04:21
> To: jprogramming <programm...@jsoftware.com>
> Subject: [Jprogramming] jandroid updated
> 
> An updated version of jandroid is now available.
> main changes:
> 6!:1 fixed
> libjpcre fixed
>   try: 'abc' rxmatches 'abcabc'
> jconsole included
>   see: dirtree '~bin/../libexec'
>   nopie version for pre-5.0 (Lollipop)
> 
> PS.
> read from keyboard and suspense is not working, probably never will.  Use 
> jconsole if debug is wanted.
> 
> --
> 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

--
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

Re: [Jprogramming] jandroid updated

2016-04-11 Thread Tom Arneson
Installed on my phone, Motorola Droid 2 with Android 5.1.1. J seems to work OK.

on my ASUS tablet Android version 4.2.2, an enter causes an error message 
"Unfortunately, J Android has stopped."

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Monday, April 11, 2016 04:21
To: jprogramming 
Subject: [Jprogramming] jandroid updated

An updated version of jandroid is now available.
main changes:
6!:1 fixed
libjpcre fixed
  try: 'abc' rxmatches 'abcabc'
jconsole included
  see: dirtree '~bin/../libexec'
  nopie version for pre-5.0 (Lollipop)

PS.
read from keyboard and suspense is not working, probably never will.  Use 
jconsole if debug is wanted.

--
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

Re: [Jprogramming] jandroid updated

2016-04-11 Thread Tom Arneson
Labs Advance is at the top of the menu popped up via the menu activated by the 
2 vertical dots at the upper right of the display.


-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of Björn Helgason
Sent: Monday, April 11, 2016 08:00
To: Programming forum 
Subject: Re: [Jprogramming] jandroid updated

To advance the lab, select menu Help|Studio|Advance or the corresponding 
shortcut.

advance not showing

studio not shown
On 11 Apr 2016 09:21, "bill lam"  wrote:

> An updated version of jandroid is now available.
> main changes:
> 6!:1 fixed
> libjpcre fixed
>   try: 'abc' rxmatches 'abcabc'
> jconsole included
>   see: dirtree '~bin/../libexec'
>   nopie version for pre-5.0 (Lollipop)
>
> PS.
> read from keyboard and suspense is not working, probably never will.  
> Use jconsole if debug is wanted.
>
> --
> 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

Re: [Jprogramming] jandroid.apk

2016-03-14 Thread Tom Arneson
I've been running J804 on both an Android phone and tablet for several months 
without any problems.

-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf 
Of bill lam
Sent: Monday, March 14, 2016 07:50
To: Programming forum 
Subject: Re: [Jprogramming] jandroid.apk

the word should be just an artefact from the j804 beta cycle. The apk itself 
should be ok.
On Mar 14, 2016 6:30 PM, "Kip Murray"  wrote:

> What does the word "test" mean below?  When can I expect a "safe" J 
> for my Android cell phone?  Apologies if this is the incorrect forum 
> for my question.  --Kip Murray
>
> [image: [   ]] jandroid.apk
> 
>   2015-12-22 09:45  3.1M  j804 jandroid (test)
>
>
>
> --
> Sent from Gmail Mobile
> --
> 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

[Jprogramming] Project Manager

2014-12-21 Thread tom arneson
I'm looking for information on using project manager.  Can someone point me
to that?

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Project Manager

2014-12-21 Thread tom arneson
J8 projects. Thanks, Chris.  I'm making progress now.

The path on the wiki menu is confusing: wiki guidestechnologiesfolders
and projects  

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Sunday, December 21, 2014 21:41
To: Programming forum
Subject: Re: [Jprogramming] Project Manager

Are you asking about the J6 Project Manager or J8 projects?

The J6 Project Manager is not in J8. Project definitions are much simpler
than before and directly supported by the Qt IDE. See
http://www.jsoftware.com/jwiki/Guides/Folders%20and%20Projects.

On Sun, Dec 21, 2014 at 6:02 PM, tom arneson t...@tomarneson.com wrote:

 I'm looking for information on using project manager.  Can someone 
 point me to that?

 --
 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


Re: [Jprogramming] jqt for android

2014-12-13 Thread tom arneson
I downloaded the new apk.

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Björn
Helgason
Sent: Saturday, December 13, 2014 14:30
To: Programming forum
Subject: Re: [Jprogramming] jqt for android

This looks great!

Do I need to do reinstall or is enough to do package manager update?
 On 13 Dec 2014 15:54, bill lam bbill@gmail.com wrote:

 jqt for android have been updated to Qt 5.4.

 In Term, tap F2 mark the cursor position for copy/cut.
 Then tap on another position and press menu edit copy/cut.

 QuickView may not work. armv7 version not tested.

 PS. J iOS can run j803 base library and addons (j engine unchanged)

 --
 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


Re: [Jprogramming] Get unique results each time you use deal and roll

2014-11-28 Thread tom arneson
Here's another way. From addons/stats/base/random.ijs

NB. =
NB.*randomize v sets a random value into random link
randomize=: 3 : 0
 try.
   require 'guid'
   tmp=. _2 (3!:4) , guids 1
 catch. NB. general/misc/guid.ijs not available
   tmp=. :.0.8*0 60 60 24 31#.0 0 0 0 _1+|..}.6!:0 ''
 end.
 ([ 9!:1) {.^:(2~:9!:42'') tmpNB. set random initial random seed
)

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Friday, November 28, 2014 21:03
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Get unique results each time you use deal and
roll

This agrees with {Pascal's answer.  I thought you could take some number of
seconds in the time and find the last digits or something and then roll that
number and then begin your code.  Maybe I isn't possible.

Linda

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of tom arneson
Sent: Friday, November 28, 2014 9:16 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Get unique results each time you use deal and
roll

Try this, from:   http://www.jsoftware.com/jwiki/JPhrases/RandomNumbers

m3=: 9!:1@.@(+/ .^2@(6!:0@]))   NB.Randomizing random number seed

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Friday, November 28, 2014 19:01
To: programm...@jsoftware.com
Subject: [Jprogramming] Get unique results each time you use deal and roll

7?7

1 4 5 0 6 2 3

10?10

5 1 3 2 4 0 7 8 6 9

 

Now run the code again after closing J and you get the same results.  How
can you get different results each time. I vaguely rember using some date or
other number with roll to insure different results.

 

Linda

--
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


Re: [Jprogramming] Where is scriptdoc / scripdoc?

2014-11-22 Thread tom arneson
Murray,

Try this: 

0   Install PanDoc.
1   Reboot so that PanDoc is added to PATH.
2   Run the example at the bottom of the joxegen wiki page to make sure
it all works.
3   modify makedoc.ijs so FILES contains your script filenames (see my
makedocs.ijs below).


NB.%makedocs.ijs - Make documentation files for Vexilla scripts
NB. Modified: 2014-10-17

require 'docs/joxygen'

NB. source directory (used to find source files,
NB. but not used in the html docs)
Source=: '~Projects/vexilla'
NB. target directory
Target=: Source,'/Docs'

NB. source files under the source directory
NB. (may be more than one level down)
Files=: cutopen 0 : 0
downloadvx.ijs
primesupdown.ijs
scorecard.ijs
scorecardreports.ijs
processnew.ijs
statsoncsv.ijs
report.ijs
run.ijs
)


NB. header for main page index.htm
IndexHdr=: 0 : 0
Documentation files for Vexilla scripts.
)

NB. ensure the Target directory is created
mkdir_j_ Target

NB. copy the css file to the Target directory
(Target,'/joxygen.css') fcopynew '~addons/docs/joxygen/joxygen.css'

NB. make the docs
makedocs''

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Murray
Eisenberg
Sent: Saturday, November 22, 2014 10:15
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Where is scriptdoc / scripdoc?

I read the fired documentation page for joxygen, but I still don't have a
clue from it how to run oxygen to get documentation on any given script.

What package does one load? What is the syntax of the verb to run?

On 21 Nov 2014 08:39:43 -0600, tom arneson t...@tomarneson.com wrote:

 
 See: http://www.jsoftware.com/jwiki/Addons/docs/joxygen
 
 I've made some use of this for my scripts. Note that you must install 
 PanDoc
 (See: http://johnmacfarlane.net/pandoc/)
 
 -Original Message-
 From: programming-boun...@forums.jsoftware.com
 [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Murray 
 Eisenberg
 Sent: Friday, November 21, 2014 08:32
 To: programm...@jsoftware.com
 Subject: [Jprogramming] Where is scriptdoc / scripdoc?
 
 I seem to recall a verb named either scriptdoc or scripdoc, in some 
 distributed script, for displaying documentation in the script one 
 provides as its argument.
 
 Where is that verb now, in J802 (or J803)? 
 
 I tried to use Find in Files (in jqt), but alas that didn't give me a 
 choice to search in the system or add ons directories -- just Demos, 
 Projects, or User.

---
Murray Eisenbergmurrayeisenb...@gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667Mobile (413)-427-5334





--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Where is scriptdoc / scripdoc?

2014-11-21 Thread tom arneson
Murray,

See: http://www.jsoftware.com/jwiki/Addons/docs/joxygen

I've made some use of this for my scripts. Note that you must install PanDoc
(See: http://johnmacfarlane.net/pandoc/)

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Murray
Eisenberg
Sent: Friday, November 21, 2014 08:32
To: programm...@jsoftware.com
Subject: [Jprogramming] Where is scriptdoc / scripdoc?

I seem to recall a verb named either scriptdoc or scripdoc, in some
distributed script, for displaying documentation in the script one provides
as its argument.

Where is that verb now, in J802 (or J803)? 

I tried to use Find in Files (in jqt), but alas that didn't give me a choice
to search in the system or add ons directories -- just Demos, Projects, or
User. 

--
Murray Eisenberg mur...@math.umass.edu
Mathematics  Statistics Dept.   
Lederle Graduate Research Tower  phone 240 246-7240 (H)
University of Massachusetts
710 North Pleasant Street 
Amherst, MA 01003-9305






--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Run Mutiple Lines

2014-11-13 Thread tom arneson
Select the lines and use run from selection (Ctl-E) or from the menu.

  a =: 100
   a =: a + a
   a
200
   

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Sebastian
Sent: Thursday, November 13, 2014 05:34
To: programm...@jsoftware.com
Subject: [Jprogramming] Run Mutiple Lines

Hi,

I am trying to run mutiple lines of j code with one call, but always, does
not matter how I try it, I get a spelling error. Here is an
example:

a =: 100
a =: a + a
|spelling error

| a =: 100
a =: a + a


I know I could use the terminal tools like run from clipboard or the
template editor, but I oberserve the same behaviour at the InteropServer.Do
- method and I would like to init several verbs with mutiple lines from the
C# side.

Is there are a possibility?
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] datetime addin not working

2014-10-26 Thread tom arneson
That noun is in a locale: rgsdatetime

   MS0Date_rgsdatetime_
36522

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Kyle M.
Rudden
Sent: Sunday, October 26, 2014 06:46
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] datetime addin not working

Script is loading, without error message, but cannot access content:

   load 'types/datetime'
   MS0date
|value error: MS0date
   load 'types/datetime/test/test_datetime'
test_datetime passed
   load 'c:/users/krudden/j64-802/addons/types/datetime/datetime.ijs'
   MS0date
|value error: MS0date

Kyle Rudden

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Tikkanz
Sent: Sunday, October 26, 2014 1:03 AM
To: Programming JForum
Subject: Re: [Jprogramming] datetime addin not working

Agreed.
I was able to load and run the test script successfully in both j64 8.02 and
8.03.
load 'types/datetime'

load 'types/datetime/test/test_datetime'

test_datetime passed

We will need more information to help.





On Sun, Oct 26, 2014 at 3:53 PM, chris burke cbu...@jsoftware.com wrote:

 I don't see any obvious problem with datetime.

 What did you try, and with what result?

 On Sat, Oct 25, 2014 at 8:30 AM, Kyle M. Rudden  
 kyle.rud...@kr-consulting.com wrote:

  I wanted to convert some Excel dates to J, and some other 
  functionality found in the datetime addin, but can't seem to get the
addin to work.
  It lists as installed, and I have also installed the numeric addin 
  it called for .
  No problems with other standard addins.
  I took the MS0Date value I wanted from the datetime.ijs file, so I 
  have a work around, but still not sure why the addin would not work.
  Not critical for what I am doing right now, but just wanted to 
  mention
 it.
  Running 8.02 on Windows 7 64.
 
  Regards
  Kyle Rudden
 
  
  -- 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

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] wd commands to destroy a control

2014-09-16 Thread tom arneson
Untested, but try setting the visible property off.

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of 'Pascal
Jasmin' via Programming
Sent: Tuesday, September 16, 2014 11:29
To: Programming forum
Subject: [Jprogramming] wd commands to destroy a control

in Jqt, is there a way to either destroy a control by id, or clear the whole
form and add all controls again? (I guess the latter can be done by
destroying the form and recreating it)  maybe one of the grids can host and
delete controls?

Some example uses would be:  Options that turn off some features.  Or say
radio buttons that get created/changed based on other selections/data
highlighted.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] joxygen not working for me

2014-09-09 Thread tom arneson
Chris:

I think I have my problem narrowed down to Pandoc not handling the space in
my user name, even when I use double quotes around it

**The paste below is from the command prompt window:**

C:\Users\Tom Arnesonpandoc c:/users/tom
arneson/j64-802-user/temp/joxygen.md
-c joxygen.css -f markdown-auto_identifiers -o c:/users/tom
arneson/j64-802-us
er/temp/joxygen.htm
pandoc: arneson/j64-802-user/temp/joxygen.htm: openFile: does not exist (No
such
 file or directory)

** pastes below are from the J Terminal and were done before I used the
command prompt **

NB. run test:
   load 'c:/users/tom arneson/j64-802/addons/docs/joxygen/test.ijs'
compare.ijs
dir.ijs
text.ijs

NB. check for files 
   Target
c:/users/tom arneson/j64-802-user/temp/joxygen
   dir Target
joxygen.css 715 08-Sep-14 20:18:16
   
   dir 'c:/users/tom arneson/j64-802-user/temp'
joxygendir 08-Sep-14 20:18:16
joxygen.md  1046 09-Sep-14 09:20:44
pound-cannon.ijs  56 08-Sep-14 16:20:46
tangetplot.ijs   265 21-Aug-14 18:56:42

NB. make sure pandoc will run:
   shell 'pandoc --version'
pandoc 1.13.0.1
Compiled with texmath 0.8, highlighting-kate 0.5.8.5.
Syntax highlighting is supported for the following languages:
actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c,
changelog,
clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
fortran, fsharp, gcc, gnuassembler, go, haskell, haxe, html, ini,
isocpp,
java, javadoc, javascript, json, jsp, julia, latex, lex, literatecurry,
literatehaskell, lua, makefile, mandoc, markdown, matlab, maxima,
metafont,
mips, modelines, modula2, modula3, monobasic, nasm, noweb, objectivec,
objectivecpp, ocaml, octave, pascal, perl, php, pike, postscript,
prolog,
pure, python, r, relaxngcompact, restructuredtext, rhtml, roff, ruby,
rust,
scala, scheme, sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl,
texinfo,
verilog, vhdl, xml, xorg, xslt, xul, yacc, yaml
Default user data directory: C:\Users\Tom Arneson\AppData\Roaming\pandoc
Copyright (C) 2006-2014 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

NB. 
 m=. jpath '~temp/joxygen.md'
 h=. jpath '~temp/joxygen.htm'
   m
c:/users/tom arneson/j64-802-user/temp/joxygen.md
   h
c:/users/tom arneson/j64-802-user/temp/joxygen.htm
 shell 'pandoc ',m,' -c joxygen.css -f markdown-auto_identifiers -o
',h
pandoc: c:/users/tom: openFile: does not exist (No such file or directory)

   m
c:/users/tom arneson/j64-802-user/temp/joxygen.md


-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Monday, September 08, 2014 17:36
To: Programming forum
Subject: Re: [Jprogramming] joxygen not working for me

When I tested this on Windows, installing Pandoc put it on the path, so that
no change was needed to the shell call in makescript.

Can you experiment to find out why this is not working on your machine? You
should be able to call pandoc from the command prompt with the same
expression.

On Mon, Sep 8, 2014 at 3:21 PM, tom arneson t...@tomarneson.com wrote:

 Chris,

 After posting I looked at joxygen.ijs and saw that it used Pandoc. I 
 downloaded  installed it. The installer put it in: C:\Users\Tom 
 Arneson\AppData\Local\Pandoc

 I modified the shell line in makescript to:

 shell 'C:\Users\Tom Arneson\AppData\Local\Pandoc\pandoc ',m,' -c 
 joxygen.css -f markdown-auto_identifiers -o ',h

 I still don't get the html files.



 -Original Message-
 From: programming-boun...@forums.jsoftware.com
 [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris 
 burke
 Sent: Monday, September 08, 2014 15:47
 To: Programming forum
 Subject: Re: [Jprogramming] joxygen not working for me

 It works for me. Perhaps you don't have Pandoc installed? The docs 
 need to make it clear that this is needed to build the output.

 On Mon, Sep 8, 2014 at 12:23 PM, tom arneson t...@tomarneson.com wrote:

  I'm trying to use Joxygen and the example in the wiki doesn't work 
  for
 me:
 
 
 
  The script ~addons/docs/joxygen/test.ijs builds docs from source in 
  the ~addons/docs/joxygen/testscripts directory, with output to
 ~temp/joxygen.
  The output should match the example output in
 ~addons/docs/joxygen/testdocs.
 
 
 
  When I run ~addons/docs/joxygen/test.ijs   all that I see in
C:\Users\Tom
  Arneson\j64-802-user\temp\joxygen is joxygen.css
 
 
 
 JVERSION
 
  Engine: j701/2011-01-10/11:25
 
  Library: 8.02.12
 
  Qt IDE: 1.1.5/5.3.1
 
  Platform: Win 64
 
  Installer: J802 install
 
  InstallPath: c:/users/tom arneson/j64-802
 
  
  -- For information

Re: [Jprogramming] joxygen not working for me

2014-09-09 Thread tom arneson
Chris,

I now have it working. I changed from:

  m=. jpath '~temp/joxygen.md'
  h=. jpath '~temp/joxygen.htm'

To:

  m=. 'c:\junk\joxygen.md'
  h=. 'c:\junk\joxygen.htm'

Which avoids the space in path problem.


-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Monday, September 08, 2014 17:36
To: Programming forum
Subject: Re: [Jprogramming] joxygen not working for me

When I tested this on Windows, installing Pandoc put it on the path, so that
no change was needed to the shell call in makescript.

Can you experiment to find out why this is not working on your machine? You
should be able to call pandoc from the command prompt with the same
expression.

On Mon, Sep 8, 2014 at 3:21 PM, tom arneson t...@tomarneson.com wrote:

 Chris,

 After posting I looked at joxygen.ijs and saw that it used Pandoc. I 
 downloaded  installed it. The installer put it in: C:\Users\Tom 
 Arneson\AppData\Local\Pandoc

 I modified the shell line in makescript to:

 shell 'C:\Users\Tom Arneson\AppData\Local\Pandoc\pandoc ',m,' -c 
 joxygen.css -f markdown-auto_identifiers -o ',h

 I still don't get the html files.



 -Original Message-
 From: programming-boun...@forums.jsoftware.com
 [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris 
 burke
 Sent: Monday, September 08, 2014 15:47
 To: Programming forum
 Subject: Re: [Jprogramming] joxygen not working for me

 It works for me. Perhaps you don't have Pandoc installed? The docs 
 need to make it clear that this is needed to build the output.

 On Mon, Sep 8, 2014 at 12:23 PM, tom arneson t...@tomarneson.com wrote:

  I'm trying to use Joxygen and the example in the wiki doesn't work 
  for
 me:
 
 
 
  The script ~addons/docs/joxygen/test.ijs builds docs from source in 
  the ~addons/docs/joxygen/testscripts directory, with output to
 ~temp/joxygen.
  The output should match the example output in
 ~addons/docs/joxygen/testdocs.
 
 
 
  When I run ~addons/docs/joxygen/test.ijs   all that I see in
C:\Users\Tom
  Arneson\j64-802-user\temp\joxygen is joxygen.css
 
 
 
 JVERSION
 
  Engine: j701/2011-01-10/11:25
 
  Library: 8.02.12
 
  Qt IDE: 1.1.5/5.3.1
 
  Platform: Win 64
 
  Installer: J802 install
 
  InstallPath: c:/users/tom arneson/j64-802
 
  
  -- 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

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] joxygen not working for me

2014-09-09 Thread tom arneson
Chris: I got Joxygen to work on one of my scripts, but it chokes on another
with the following displayed in Terminal:

   load 'c:/users/tom
arneson/j64-802-user/projects/vexilla-2013/docs/makedocs.ijs'
processnew.ijs
downloadvx.ijs
|index error: pick
|   y=.(3{.y),('desc';upper1 termstop(2 1)pick y),3}.y

The error occurs in verb: adddesc  which is called from verb: makescript
when processing the following script:

NB. =
NB.%downloadvx.ijs - download VX points
NB. Purpose:download VX points
NB. Update: 2013-09-21
NB. =

require '~addons/format/printf/printf.ijs'
require '~addons/web/gethttp/gethttp.ijs'
require '~addons/tables/csv/csv.ijs'

NB. -
NB.*setdownload v
NB. y must be boxed list of literals
setdownload=: verb define
 
'http://geovexilla.gpsgames.org/cgi-bin/vx.pl?download=1mapcenterlat=%smap
centerlon=%sdownloadformat=%sdownloadradius=%splayer=Tom+Arneson' sprintf
y
)

NB. -
NB.*downloadvx v downloads from Geovexilla website
downloadvx=: verb define
  PATH=. '~Projects/data/geovex/'
  LAT=. '45' [ LON=. '-93' [ RAD=. '500'
  
  data=.  chopcsv each ;. _2 gethttp setdownload LAT;LON;'CSV';RAD
  head=. 0{data
  data=. 1}.data
  
  NB. sort by VX name and write to csv
  data=. (/: 1{1 data){data
  (head,data) writecsv PATH,'geovexilla.csv'
  ld=. 10{.0{_1{data   NB. last date
  f=. (ld)=10{. each 0{1 data
  
  NB. update dailycount.csv
  ('%s,%d,%d'sprintf ld;(+/f);#data) fappends PATH,'dailycount.csv'
  
  NB.save gpx in file: new.gpx
  gpx=. gethttp setdownload LAT;LON;'GPX';RAD
  gpx fwrite PATH,'new.gpx'
  
  NB. return literal new VX count
  'Last date: %s\nNew count: %d\nGeoVexilla count: %d' sprintf
ld;(+/f);#data
)

NB. -

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Joxygen

2014-09-09 Thread tom arneson
I'm learning to use Joxygen which is documented at:

 

http://www.jsoftware.com/jwiki/Addons/docs/joxygen

 

I've had a few problems, about which I posted here, but I think when those
are solved Joxygen will be a great tool for documenting use of J scripts.

 

Joxygen reads scripts from a specified folder and creates good looking HMTL
with hyperlinks. The scripts need a few comments or NB. lines with some
simple formatting commands added.

 

See web pages built with Joxygen at:

 

http://jsoftware.com/docs/help802/user/library.htm

 

Pandoc http://johnmacfarlane.net/pandoc/ is required. After installing
Pandoc, re-start your computer so the path to Pandoc is added to the path
system variable.

 

On my computer, my install path: c:/users/tom arneson/j64-802 has an
included space, which Pandoc wouldn't handle. I had to modify joxygen.ijs to
specify a path without a space for the shell lines.

 

 

 

 

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] joxygen not working for me

2014-09-08 Thread tom arneson
I'm trying to use Joxygen and the example in the wiki doesn't work for me:

 

The script ~addons/docs/joxygen/test.ijs builds docs from source in the 
~addons/docs/joxygen/testscripts directory, with output to ~temp/joxygen. The 
output should match the example output in ~addons/docs/joxygen/testdocs.

 

When I run ~addons/docs/joxygen/test.ijs   all that I see in C:\Users\Tom 
Arneson\j64-802-user\temp\joxygen is joxygen.css

 

   JVERSION

Engine: j701/2011-01-10/11:25

Library: 8.02.12

Qt IDE: 1.1.5/5.3.1

Platform: Win 64

Installer: J802 install

InstallPath: c:/users/tom arneson/j64-802

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] joxygen not working for me

2014-09-08 Thread tom arneson
Chris,

After posting I looked at joxygen.ijs and saw that it used Pandoc. I
downloaded  installed it. The installer put it in: C:\Users\Tom
Arneson\AppData\Local\Pandoc 

I modified the shell line in makescript to:

shell 'C:\Users\Tom Arneson\AppData\Local\Pandoc\pandoc ',m,' -c
joxygen.css -f markdown-auto_identifiers -o ',h

I still don't get the html files.



-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Monday, September 08, 2014 15:47
To: Programming forum
Subject: Re: [Jprogramming] joxygen not working for me

It works for me. Perhaps you don't have Pandoc installed? The docs need to
make it clear that this is needed to build the output.

On Mon, Sep 8, 2014 at 12:23 PM, tom arneson t...@tomarneson.com wrote:

 I'm trying to use Joxygen and the example in the wiki doesn't work for me:



 The script ~addons/docs/joxygen/test.ijs builds docs from source in 
 the ~addons/docs/joxygen/testscripts directory, with output to
~temp/joxygen.
 The output should match the example output in
~addons/docs/joxygen/testdocs.



 When I run ~addons/docs/joxygen/test.ijs   all that I see in C:\Users\Tom
 Arneson\j64-802-user\temp\joxygen is joxygen.css



JVERSION

 Engine: j701/2011-01-10/11:25

 Library: 8.02.12

 Qt IDE: 1.1.5/5.3.1

 Platform: Win 64

 Installer: J802 install

 InstallPath: c:/users/tom arneson/j64-802

 --
 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


Re: [Jprogramming] Help for SAX addon

2014-08-11 Thread Tom Arneson
I discovered that an '' in a tagged field also messes up the SAX paser.

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Tom Arneson
Sent: Sunday, August 10, 2014 21:02
To: programm...@jsoftware.com
Subject: [Jprogramming] Help for SAX addon

I have a need to parse XML data. So I'm trying the SAX addon. It is not in
the 802 addon, so I got it from the JAL/801 addon.

Part of the XML data
==
wpt lat=41.08439000 lon=-93.50432000
time2014-08-10T11:28:59.289Z/time
name75PIJU/name
desc420 f w:2:05-06:Bahamas
/desc
link href=http://geovexilla.gpsgames.org/cgi-bin/vx.pl?wp=VX75-PIJU;
textVX75-PIJU/text
typetext/html/type
/link
symCity (Medium)/sym
type3/type
extensions
time
xmlns=http://www.topografix.com/GPX/gpx_modified/0/1;2014-08-10T11:52:16.6
80Z/time
label xmlns=http://www.topografix.com/GPX/gpx_overlay/0/3;
label_text75PIJU/label_text
text xmlns=http://www.topografix.com/GPX/gpx_style/0/2;
font
family generic=sans-serif
faceArial/face
/family
/font
/text
/label
/extensions
/wpt


Note that there is a CRLF at the end of the string between the  desc
/desc tags

When this is parsed I get:
__
│420 f w:2:05-06:Bahamas│ │
   ^boxed LF the CRLF
causes 10{a to be appended to the result list.

NB. My script to parse (modified from sax_test4.ijs) NB.
=
NB. return a boxed list of the field with tag TAG NB.
=


require 'xml/sax'

saxclass 'psaxtag'

TAG=: 'desc'

startDocument=: 3 : 'PATH=: R=: $0'
endDocument=:   3 : 'R'
startElement=:  4 : 'PATH=: PATH,y'
endElement=:3 : 'PATH=: }:PATH'
characters=:3 : 'if. TAG -: @{: PATH do. R=: R,y end.'


NB. =
cocurrent 'base'

desc=: process_psaxtag_ z

TAG_psaxtag_ =: 'label_text'

name=: process_psaxtag_ z

--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Help for SAX addon

2014-08-11 Thread Tom Arneson
I did get rid of the '', but still have the problem with  CRLF. The part of 
the XML wich I want to process shouls have the same number of:

desc  /desc
label_text ... /label_text

I've decided to, at least for now, abandon SAX and use J to extract the data 
which I want.  

-Original Message-
From: programming-boun...@forums.jsoftware.com 
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Devon McCormick
Sent: Monday, August 11, 2014 13:44
To: J-programming forum
Subject: Re: [Jprogramming] Help for SAX addon

Tom - if you pre-process your file to ensure all s are amp;, does SAX 
still get messed up?


On Mon, Aug 11, 2014 at 12:53 PM, bill lam bbill@gmail.com wrote:

 I guess  should be escaped as amp; so that your xml data is 
 malformed.

 linefeed should be regarded as whitespace, not sure whether it is a 
 bug in sax addon or a feature of sax dll.

 Пн, 11 авг 2014, Tom Arneson написал(а):
  I discovered that an '' in a tagged field also messes up the SAX paser.
 
  -Original Message-
  From: programming-boun...@forums.jsoftware.com
  [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Tom
 Arneson
  Sent: Sunday, August 10, 2014 21:02
  To: programm...@jsoftware.com
  Subject: [Jprogramming] Help for SAX addon
 
  I have a need to parse XML data. So I'm trying the SAX addon. It is 
  not
 in
  the 802 addon, so I got it from the JAL/801 addon.
 
  Part of the XML data
  ==
  wpt lat=41.08439000 lon=-93.50432000 
  time2014-08-10T11:28:59.289Z/time
  name75PIJU/name
  desc420 f w:2:05-06:Bahamas
  /desc
  link 
  href=http://geovexilla.gpsgames.org/cgi-bin/vx.pl?wp=VX75-PIJU;
  textVX75-PIJU/text
  typetext/html/type
  /link
  symCity (Medium)/sym
  type3/type
  extensions
  time
  xmlns=http://www.topografix.com/GPX/gpx_modified/0/1
 2014-08-10T11:52:16.6
  80Z/time
  label xmlns=http://www.topografix.com/GPX/gpx_overlay/0/3;
  label_text75PIJU/label_text
  text xmlns=http://www.topografix.com/GPX/gpx_style/0/2;
  font
  family generic=sans-serif
  faceArial/face
  /family
  /font
  /text
  /label
  /extensions
  /wpt
  
 
  Note that there is a CRLF at the end of the string between the  
  desc /desc tags
 
  When this is parsed I get:
  __
  │420 f w:2:05-06:Bahamas│ │
 ^boxed LF the 
  CRLF causes 10{a to be appended to the result list.
 
  NB. My script to parse (modified from sax_test4.ijs) NB.
  =
  NB. return a boxed list of the field with tag TAG NB.
  =
 
 
  require 'xml/sax'
 
  saxclass 'psaxtag'
 
  TAG=: 'desc'
 
  startDocument=: 3 : 'PATH=: R=: $0'
  endDocument=:   3 : 'R'
  startElement=:  4 : 'PATH=: PATH,y'
  endElement=:3 : 'PATH=: }:PATH'
  characters=:3 : 'if. TAG -: @{: PATH do. R=: R,y end.'
 
 
  NB. =
  cocurrent 'base'
 
  desc=: process_psaxtag_ z
 
  TAG_psaxtag_ =: 'label_text'
 
  name=: process_psaxtag_ z
 
  
  -- For information about J forums see 
  http://www.jsoftware.com/forums.htm
 
  
  -- 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




--
Devon McCormick, CFA
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Help for SAX addon

2014-08-10 Thread Tom Arneson
I have a need to parse XML data. So I'm trying the SAX addon. It is not in
the 802 addon, so I got it from the JAL/801 addon.

Part of the XML data
==
wpt lat=41.08439000 lon=-93.50432000
time2014-08-10T11:28:59.289Z/time
name75PIJU/name
desc420 f w:2:05-06:Bahamas
/desc
link href=http://geovexilla.gpsgames.org/cgi-bin/vx.pl?wp=VX75-PIJU;
textVX75-PIJU/text
typetext/html/type
/link
symCity (Medium)/sym
type3/type
extensions
time
xmlns=http://www.topografix.com/GPX/gpx_modified/0/1;2014-08-10T11:52:16.6
80Z/time
label xmlns=http://www.topografix.com/GPX/gpx_overlay/0/3;
label_text75PIJU/label_text
text xmlns=http://www.topografix.com/GPX/gpx_style/0/2;
font
family generic=sans-serif
faceArial/face
/family
/font
/text
/label
/extensions
/wpt


Note that there is a CRLF at the end of the string
between the  desc /desc tags

When this is parsed I get:
__
│420 f w:2:05-06:Bahamas│ │
   ^boxed LF
the CRLF causes 10{a to be appended to the result list.

NB. My script to parse (modified from sax_test4.ijs)
NB. =
NB. return a boxed list of the field with tag TAG
NB. =


require 'xml/sax'

saxclass 'psaxtag'

TAG=: 'desc'

startDocument=: 3 : 'PATH=: R=: $0'
endDocument=:   3 : 'R'
startElement=:  4 : 'PATH=: PATH,y'
endElement=:3 : 'PATH=: }:PATH'
characters=:3 : 'if. TAG -: @{: PATH do. R=: R,y end.'


NB. =
cocurrent 'base'

desc=: process_psaxtag_ z

TAG_psaxtag_ =: 'label_text'

name=: process_psaxtag_ z

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Announcement: Graphical sentence debugger for J

2014-08-06 Thread Tom Arneson
It works for me. I loaded it by:

load 'addons/debug/dissect/dissect.ijs'

and ran it by:

dissect '+/i. 5'


-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Fraser
Jackson
Sent: Wednesday, August 06, 2014 18:02
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Announcement: Graphical sentence debugger for J

I have just reloaded from the package manager server.

It is reporting the version as 2.0.16.

When loaded the name dissect is not defined in the z locale.

Fraser
- Original Message - 
From: Henry Rich henryhr...@nc.rr.com
To: programm...@jsoftware.com
Sent: Thursday, August 07, 2014 9:57 AM
Subject: Re: [Jprogramming] Announcement: Graphical sentence debugger for J


I just loaded into a new session and it worked.  Make sure you have got 
 the latest version, at least 3.0.4, from Package Manager.
 
 The name 'dissect' is defined in z locale.
 
 
 I jumped the gun a bit with the 'control key' business.  That's how I 
 have it set up on my machine, and I hope that it will make its way into 
 the standard interface, but until that happens you'd need to add 
 control-key definitions on your own.
 
 Henry Rich

--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] demos mbox in J802

2014-06-12 Thread Tom Arneson
I was testing several message box items in J802 and found the following:

NB. mb (message box) demo
NB.
NB. the message box syntax is:
NB.   wd 'mb type buttons title message'
NB.
NB. type specifies the icon and default behaviour:
NB.  info  (default OK button)
NB.  warn  (default OK button)
NB.  critical  (default OK button)
NB.  query (requires two or three buttons, default is first given)
NB. note - display order is platform-dependent
NB.
NB. if 1 buttons, there is no result,
NB. otherwise the result is the button numeric value  --- NOT TRUE IN
J802. The button label is returned
NB.
NB. buttons (with numeric values) are from the set:
NB.  0 mb_ok
NB.  1 mb_cancel
NB.  2 mb_yes
NB.  3 mb_no
NB.  4 mb_save
NB.  5 mb_discard

   [b=. wd'mb query mb_yes mb_no mb_cancel mb_discard mb_ok mb_save title
1 Do you want to quit'
discard
   [b=. wd'mb query mb_yes mb_no mb_cancel mb_discard mb_ok mb_save This is
the title! Do you want to quit'
cancel
   [b=. wd'mb query mb_yes mb_no mb_cancel mb_discard mb_ok mb_save This is
the title! Do you want to quit'
save
   

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Project Manager in J801

2014-04-03 Thread Tom Arneson
I want to start using Project Manager in J801, but only find a wiki page
dated 2008. Is there documentation on the new Project Manager?

Thanks

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] fview not working

2014-03-23 Thread Tom Arneson
It seems that something changed to break fview.

 fview jpath PATH_gvscore_,'/selftrades.csv'
|textview : command not found: wd
|   (wd ::(''_)'qer')(13!:8)3
   



--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] Launch Pad error

2014-03-21 Thread Tom Arneson
New problem after running a Project Manager update yesterday:

I used Project Manager to check for updates yesterday. Many addons, I think
including base library were updated. This morning when I tried to run some
scripts, which I run daily,  from Launch Pad, I got the error shown below.
My scripts worked fine, this way for months.


not found: C:/Users/Tom Arneson/j64-801/wdclass
|file name error: script
|   0!:0 y[4!:55'y'


   JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.01.026
Qt IDE: 1.0.25/4.8.5
Platform: Win 64
Installer: j801 install
InstallPath: c:/users/tom arneson/j64-801


--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Launch Pad error

2014-03-21 Thread Tom Arneson
It looks like a bad path snuck into the update because I find wdclass.ijs
here:

C:\Users\Tom Arneson\j64-801\addons\gui\wdclass

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Tom Arneson
Sent: Friday, March 21, 2014 05:11
To: programm...@jsoftware.com
Subject: [Jprogramming] Launch Pad error

New problem after running a Project Manager update yesterday:

I used Project Manager to check for updates yesterday. Many addons, I think
including base library were updated. This morning when I tried to run some
scripts, which I run daily,  from Launch Pad, I got the error shown below.
My scripts worked fine, this way for months.


not found: C:/Users/Tom Arneson/j64-801/wdclass
|file name error: script
|   0!:0 y[4!:55'y'


   JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.01.026
Qt IDE: 1.0.25/4.8.5
Platform: Win 64
Installer: j801 install
InstallPath: c:/users/tom arneson/j64-801


--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] atan2 ?

2014-03-12 Thread Tom Arneson
For land surveying calculations, I usually need both distance and angle (or
direction), so I use something like:

NB. 
  'd a'=. *. 147.23j523.78 
NB. real part is delta north and imaginary part is delta east
NB. then  2p1|a is azimuth (clockwise angle from north) in radians
   d
544.079
   a
1.29678
NB. 

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Don Kelly
Sent: Wednesday, March 12, 2014 20:17
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] atan2 ?

My typo   -correction 120. not 13o.
I agree with Bill Lam as typically one isn't making a table but finding an
angle from a given complex number (or array)
  120. @j./~ makes a table

Don

Using  13o. as Tom suggested:

at=:13o.
at  j./~i:100

gives the same result with both viewmat and plot as

atan20/~ i:100

Don

On 11/03/2014 4:59 PM, Raul Miller wrote:
 This might be what you are looking for?
 atan2trivial=: _3 o. %~
 atan2=: 0 { [: +. [: r.^:_1 j.

 For the principal domain, atan2trivial matches atan2
 1 (atan2trivial -: atan2) 2
 1

 However, atan2 can distinguish direction when x=0
 0 atan2 1
 1.5708
 0 atan2 _1
 _1.5708

 I'd like more test cases, though. I've not been doing much trig 
 recently, and it's possible I made a mistake.

 Maybe someone who has been working with this kind of math can judge 
 from what viewmat displays?

 require 'viewmat'
 viewmat atan20/~ i:100

 Thanks,


--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] atan2 ?

2014-03-11 Thread Tom Arneson
The circle verb o. with 12 as the left argument

   NB. radian to degree
   r2d=: 180p_1*[
   
   atan2=: 12o.
   
   [r=. atan2 0j0 1j1 0j1 _1j1 _1j0 _1j_1 0j_1 1j_1 1j0
0 0.785398 1.5708 2.35619 3.14159 _2.35619 _1.5708 _0.785398 0
   
   r2d r
0 45 90 135 180 _135 _90 _45 0
   
   360|r2d r
0 45 90 135 180 225 270 315 0

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Tuesday, March 11, 2014 19:00
To: Programming forum
Subject: Re: [Jprogramming] atan2 ?

This might be what you are looking for?
   atan2trivial=: _3 o. %~
   atan2=: 0 { [: +. [: r.^:_1 j.

For the principal domain, atan2trivial matches atan2
   1 (atan2trivial -: atan2) 2
1

However, atan2 can distinguish direction when x=0
   0 atan2 1
1.5708
   0 atan2 _1
_1.5708

I'd like more test cases, though. I've not been doing much trig recently,
and it's possible I made a mistake.

Maybe someone who has been working with this kind of math can judge from
what viewmat displays?

   require 'viewmat'
   viewmat atan20/~ i:100

Thanks,

--
Raul




On Tue, Mar 11, 2014 at 7:05 PM, EelVex eel...@gmail.com wrote:

 Is there an atan2 anywhere in some library?

 If not maybe we could add it?

 A simple start could be:
 atan2 =: +:@(_3o.)@([ %~ ] -~ +/.:*:)
 --
 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


Re: [Jprogramming] J in 5 minutes

2014-03-08 Thread Tom Arneson
I, too like the music.

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Saturday, March 08, 2014 14:44
To: Programming forum
Subject: Re: [Jprogramming] J in 5 minutes

Am I the only one that liked the music?

Maybe my tastes are just strange...

Thanks,

-- 
Raul



On Sat, Mar 8, 2014 at 3:34 PM, Dan Abell dab...@txcorp.com wrote:

 First of all, bravo to Martin for putting in the time
 and effort to make that video. I think it does a very
 good job of showing a newbie why it might be worth
 learning J. So please---please---take the following
 criticism as constructive.

 Concerning the music: I felt the music's emotional
 content varied, and that detracted from the video.
 A somewhat harsher view---add salt to taste---is that
 music adds nothing to the information content of the
 video. In that sense, one might view it as the video
 equivalent of what Edward Tufte calls chart junk.
   http://en.wikipedia.org/wiki/Chartjunk

 How about rounding out the video's claimed 15 minutes
 (you have 38 seconds left) to, however briefly, near
 the  beginning, say something about J's unusual syntax?
 I.e., address the Culture Shock Henry Rich refers to
 in his book.

 In the last example, it would look better if the adjusted
 date range was persistent (meaning no need to press 'Go'
 after each change of the stock view).

 Cheers,
 -Dan

 On 7 Mar 2014, at 20:57, Yike Lu wrote:

  I think that having music is better than no music. But I also feel that
 the
  music chosen is uhh... too upbeat. Usually music for coding videos is
 more
  ambient.

 --
 Dan T. Abell :: dabell at txcorp dot com :: 303.444.2452
 Tech-X Corp., 5621 Arapahoe Ave, Ste A, Boulder CO 80303
 http://www.txcorp.com :: 303.748.6894/c  303.448.7756/fx

 --
 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


Re: [Jprogramming] J in 5 minutes

2014-03-07 Thread Tom Arneson
Very nice, Martin!

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Martin Saurer
Sent: Friday, March 07, 2014 07:12
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] J in 5 minutes

Hello all Jers,

 

My two cents (or 15 minutes) to show what J can do.

 

Feedback is welcome.

 

 https://www.youtube.com/watch?v=VSJpJt3c11c
https://www.youtube.com/watch?v=VSJpJt3c11c

 

 

--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] iso time format with 8!:2

2014-03-02 Thread Tom Arneson
If you want to format the current time, that's built in to 6!:0

   6!:0 '-MM-DDThh:mm:ss'
2014-03-02T09:12:48

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Joe Bogner
Sent: Sunday, March 02, 2014 04:52
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] iso time format with 8!:2

I know you mentioned 8!:2. Personally, I would probably skip that and use
sprintf coming from a C background...

load 'format/printf'

'%d-%02d-%02dT%02d:%02d:%02d' sprintf 6!:0''
2014-03-02T05:47:14

It's convenient that the indexes line up, otherwise it'd be a handful of
selections

This took less than 2 minutes, which is more than what I spent reading the
8!:2 page. When would 8!:2 be used over sprintf? Presumably 8!:2 is faster

On Sun, Mar 2, 2014 at 4:04 AM, Raul Miller rauldmil...@gmail.com wrote:
 Given
6!:0''
 2014 3 2 3 30 46.034

 I'd like to generate the string
 2014-03-02T03:30:46

 And, to make things just a bit strange, I'd like to use 8!:2 instead 
 of the obvious.

 Just to be clear, though, here's my idea of obvious:

}:;(1,5#3)@}._1'--T:: ',.~:,.1+.6!:0''

 By obvious, I do not mean that I instantly thought of that expression, 
 I had to think a few minutes, and I had a few errors to fix in my 
 initial concept. But by obvious I mean that I am using the basic J
vocabulary.

 Picking up the vocabulary isn't instant, though, and I'm using 14 
 different words from the vocabulary (plus some nouns and a pair of 
 parenthesis). So if we expect a person to pick up five words from the 
 vocabulary a week, that's at least three weeks of training before a 
 person could be reasonably comfortable composing a sentence like that.

 Now... the 8!:0, 8!:1 and 8!:2 verbs do have their own tiny vocabulary 
 as represented by their format strings. But these are examples of 
 extremely specialized words - not very powerful at all, which means 
 they require less study than J as a whole, and (within their limited 
 capabilities) will tend to be faster that a more general approach.

 Formatting is not likely a speed bottleneck for iso date formatting - 
 it's more when you have a big sheet of numbers and a weak computer 
 that you might care about formatting time. But it's still an interesting
exercise.
 (Or a boring one, if you are not interested in formatting text.):

 So... here's how I approached this exercise:

.2014 3 2 3 30 46.034
 2014 3 2 3 30 46

 Let's just ignore the decimal part, for now.

'4' 8!:2 .2014 3 2 3 30 46.034
 2014.3.2.3.30.46.

 Looks like a number by itself is decimal places after the decimal point.

'4.' 8!:2 .2014 3 2 3 30 46.034
 2014   3   2   3  30  46

 But a decimal point in the format specifier fixes that.
'4.,2.,2.,2.,2.,2.' 8!:2 .2014 3 2 3 30 46.034
 2014 3 2 33046

 I need commas to separate the format specifiers for independent columns.

'4.,r02.,2.,2.,2.,2.' 8!:2 .2014 3 2 3 30 46.034
 201403 2 33046

 The r option gives fill or, in this context leading zeros, but 
 each format needs this spec.

'4.,r02.,r02.,r02.,r02.,r02.' 8!:2 .2014 3 2 3 30 46.034
 20140302033046

 Getting bulky, but now all my two digit numbers can have leading 
 zeros. I could get fancy here, and use J to build the format 
 specifier, but that's premature, watch:

'4.,p-r02.,p-r02.,pTr02.,p:r02.,p:r02.' 8!:2 
 .2014
 3 2 3 30 46.034
 2014-3-2T3

 Here, I've added a prefix for each number, to get the various separators.
 Unfortunately, I forgot to widen each column to make things fit.

'4.,p-r03.,p-r03.,pTr03.,p:r03.,p:r03.' 8!:2 
 .2014
 3 2 3 30 46.034
 20140-30-20T3:30:46

 That's... better ,but now we can see that the concept of fill 
 interacts badly with the concept of using a prefix, so let's try using 
 a suffix
 instead:
's-4.,s-r03.,sTr03.,s:r03.,s:r03.,r03.' 8!:2 
 .2014
 3 2 3 30 46.034
 |domain error

 Oops, suffix is a q, not an s.

  8!:2.2014 3 2 3 30 46.034
'q-4.,q-r03.,qTr03.,q:r03.,q:r03.,r03.' 8!:2 
 .2014
 3 2 3 30 46.034
 03-02T03:30:046

 Almost done but I need to adjust my column widths again.

'q-5.,q-r03.,qTr03.,q:r03.,q:r03.,r02.' 8!:2 
 .2014
 3 2 3 30 46.034
 2014-03-02T03:30:46

 Done.

 And, that's not actually a whole lot more verbose than the other
expression.

 It's tempting to think about making 8!:2 more powerful, but it's not 
 really about power - it's a specialized tool for a specialized task. 
 If you want the full generality of J, it's available.

 Of course, if you really want an iso formatted timestamp, you could 
 always find another way to get that. Learning exercises necessarily 
 restrict themselves in various ways.

 Also... http://en.wikipedia.org/wiki/ISO_8601 points out that the 
 standard really covers a lot of ground. And one thing we do not 
 currently have in J is a way of getting at what the operating system 
 thinks is the time zone of the user. That can matter if you are on a 

Re: [Jprogramming] jqt.exe won't start after latest update

2014-02-25 Thread Tom Arneson
I tried: install'all' from jconsole and didn't get the update, so I used the
installer.

Now jqt  JVERSION is:

Engine: j701/2011-01-10/11:25
Library: 8.01.021
Qt IDE: 1.0.24/4.8.5
Platform: Win 64
Installer: j801 install
InstallPath: c:/users/tom arneson/j64-801

 

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Pascal Jasmin
Sent: Tuesday, February 25, 2014 10:51
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] jqt.exe won't start after latest update

I can confirm that I cannot start a 2nd copy of jqt 8, after running install
'all' in the first instance's terminal window.

windows 8.0 64 bit.


- Original Message -
From: Amit Roy shredder...@hotmail.com
To: programm...@jsoftware.com programm...@jsoftware.com
Cc: 
Sent: Tuesday, February 25, 2014 11:35:06 AM
Subject: [Jprogramming] jqt.exe won't start after latest update

Hello,
This morning I noticed that there was an update available for the jqt IDE. 
I applied it (as I had done so many times in the past), but now, jqt won't
start up.  I'm using Windows 8.1 64-bit, and I have all the latest updates
for Windows.
Any idea on how I might go back to a working version?
Thanks in advance.
Amit Roy

                          
--
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


Re: [Jprogramming] apl character support

2014-02-25 Thread Tom Arneson
I would rather see JSoftware's resources devoted to other areas than adding APL 
character support. One of these areas is documentation on using projects in 
J801, another is improving documentation on JQT.

J is not APL!
 

-Original Message-
From: programming-boun...@forums.jsoftware.com 
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill lam
Sent: Monday, February 24, 2014 23:12
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] apl character support

This seems simpler. The first thing to do is build a prototype implementaton, 
and then we can see what are other problems out there.

Пн, 24 фев 2014, Don Guinn писал(а):
 A middle ground might be to allow for some Unicode (UTF-8​​) to be 
 considered letters like a-z,A-Z. Then one could name APL iota to 
 something like i. . In addition, it would allow non-English languages 
 not be restricted to ASCII characters for names. Greek letters in 
 mathematics could be used as names making statements look a little 
 more like traditional mathematics. It would be simpler to allow all 
 Unicode characters be considered letters, but that might lend to other 
 problems.
 --
 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

Re: [Jprogramming] J801 released!

2014-02-11 Thread Tom Arneson
Good guess, Bill. Shutting off the firewall worked.

-Original Message-
From: programming-boun...@forums.jsoftware.com 
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill lam
Sent: Tuesday, February 11, 2014 08:58
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] J801 released!

Just a guess, proxy or firewall problem?

asuming in terminal console, does wget (or curl for mac) work to get files from 
jsoftware website? 

Вт, 11 фев 2014, Tom Arneson писал(а):
 Package Manager Fail!
 
 Connecting to www.jsoftware.com|23.21.67.48|:80 ... failed
 
 -Original Message-
 From: programming-boun...@forums.jsoftware.com
 [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Eric 
 Iverson
 Sent: Monday, February 10, 2014 18:39
 To: Programming forum
 Subject: [Jprogramming] J801 released!
 
 J801 has been released, and can be downloaded from 
 http://www.jsoftware.com/download/j801.
 
 (browser page refresh may be required to see new page rather than old 
 page from the cache)
 
 The main change is in the desktop IDE. This has been rewritten in Qt 
 instead of GTK, and includes a replacement for the J6 window driver, wd.
 
 For those not making essential use of either J7 GTK or J6 wd, the new 
 system should be a straightforward upgrade. In particular, the J 
 engine, J console and JHS are the same in both J7 and J8.
 
 Going forward, we will focus development efforts only on J8, and not 
 try to keep J6 or J7 up to date.
 
 A great deal of community effort went into this release, and we would 
 like to thank everyone who contributed both in development and 
 testing. Especial thanks are due to the core Qt development group:
 
 Norman Drinkwater
 Bill Lam
 David Mitchell
 Ric Sherlock
 --
 For information about J forums see http://www.jsoftware.com/forums.htm
 
 --
 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

Re: [Jprogramming] Where has clipread gone in J801

2013-11-17 Thread Tom Arneson
Here's what I use in J801


require '~addons\general\misc\clippaste.ijs'
NB. -
NB. use: Copy ExpertGPS waypoint decsription to the clipboard
NB. dist fd 'type'
NB. then paste into ExpertGPS description field
NB. may use as modadic:  fd 'type' when distance is unknown
fd=: verb define
  0 fd y
  :
  a=. getcliptext''  NB. Returns text from clipboard in J801
  k=. WPN i. s:2}.9{. a
  if. 0=x do. x=. '' end.
  b=. (:x),' ',y,':',(:k{PTS),':',(k{EXD),':',(11}.a)
  setcliptext b NB. Places text in clipboard in J801
  smoutput b
)

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Piet de Jong
Sent: Sunday, November 17, 2013 15:44
To: Programming forum
Subject: [Jprogramming] Where has clipread gone in J801

I use it for copy/paste data from Excel.
Works great in J7
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Plot xrange question

2013-07-01 Thread Tom Arneson
I did some experimentation and found that xrange  will show a suprange of
the plotted data. 

NB.
require'plot'

f=: 70}.i:100   NB. _30..100
c=: 9%~5*f-32   NB. convert to °c
pd'reset'
pd f;c
pd'xrange -30 20' NB. shows a subrange
pd'show'
NB.
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of David
Vincent-Jones
Sent: Monday, July 01, 2013 13:11
To: programm...@jsoftware.com
Subject: [Jprogramming] Plot xrange question

I am having problems setting the origin of my xrange at anything other than
'0'. ... I am trying to set the x range to the days (31) of the current
month and do not understand why the following is failing.
pd 'xrange 1 ',(: $ days)
I am looking for the scale to be set from 1 to 31 and above gives 0 to 30.

David
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] Obtaining the file path of an ijs file

2013-04-04 Thread Tom Arneson
Is this what you want?

   (4!:4 'fread'){4!:3'' NB. find where fread is defined
C:\Users\Tom Arneson\j801a_win64\j64-801\system\main\stdlib.ijs

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Neill Robson
Sent: Thursday, April 04, 2013 17:40
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Obtaining the file path of an ijs file

BINPATH_Z is similar to what I want (it's closer, since it's a noun rather
than a verb), but it only shows the file path of the main J bin folder. I'm
looking for something similar to Greg's code, but rather than outputting
where an object in particular is defined, I would just like to know where
the current ijs file is located. For example, if an ijs is on a folder named
examples on my desktop (on Windows 7), than I want a verb in my ijs that
can output C:\Users\Neill\Desktop\examples. However, I want the verb (or
noun like BINPATH, if there exists one) to be flexible, finding a different
file path if the ijs is moved elsewhere. Thank you for the quick responses!


On Thu, Apr 4, 2013 at 6:20 PM, Greg Borota bor...@gmail.com wrote:

 Say you want to execute stdlib.ijs per as Devon mentioned, this works 
 too from what I can see:
 0!:0 BINPATH_Z_,'/../system/main/stdlib.ijs'

 (Here's my own J exercise for today)


 On Thu, Apr 4, 2013 at 4:54 PM, Devon McCormick devon...@gmail.com
 wrote:

  Perhaps not exactly what you're asking for as it's more granular 
  than the file level, but I've often found this verb useful (thanks,
Dan!):
 
 whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3),''Source of 
  definition not found for '',''.'',~y'
 
  It returns the path of the file in which a J object was defined.  
  For
  example:
 
 whereDefined 'boxopen_z_'
  c:\Program Files (x86)\j64-701\system\main\stdlib.ijs
 
  With this caveat
 
 myfoo=: 'Defined only locally'
 whereDefined 'myfoo'
  Source of definition not found for myfoo.
 
 
 
 
 
  On Thu, Apr 4, 2013 at 5:41 PM, Greg Borota bor...@gmail.com wrote:
 
   I am newbie too, but would BINPATH_Z_ work for you?
  
  
   On Thu, Apr 4, 2013 at 4:35 PM, Neill Robson 
   neillrobson...@gmail.com
   wrote:
  
This may seem like a rather simple question compared to the 
others
  being
brought up, however I cannot seem to be able to find a way to 
call up
  an
ijs file's path for use as a noun. I would like to somehow use 
it
  like
one would use the jpath command when accessing something 
within
 the J
program files folder, so that one does not have to type out the
   C:/Program
Files path name every time. I'm probably missing something 
obvious,
 but
   I'm
still very much a newbie at J programming. Thank you!
   
 --
For information about J forums see
 http://www.jsoftware.com/forums.htm
   
   --
    For information about J forums see 
   http://www.jsoftware.com/forums.htm
  
 
 
 
  --
  Devon McCormick, CFA
  ^me^ at acm.
  org is my
  preferred e-mail
  
  -- For information about J forums see 
  http://www.jsoftware.com/forums.htm
 
 --
 For information about J forums see http://www.jsoftware.com/forums.htm




--
-Neill
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] extacting the main diagonal of a square matrix

2013-03-05 Thread Tom Arneson
I want to create a list containing the main diagonal elements of a square
matrix. Any suggestions?

Thanks.

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] j801 beta

2013-02-12 Thread Tom Arneson
After installing, I get the following message box:

Title bar: jqt.exe - System Error
Message: The program can't start because QtCore4.dll is missing from your
computer. Try reinstalling the program to fix this problem.

This is after I ran: 'qtide' from the J Console.


-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Tuesday, February 12, 2013 05:28
To: Programming forum
Subject: [Jprogramming] j801 beta

A J801 beta is available for all platforms.

The main reason for the beta is to simplify development of the Qt desktop.
This replaces the earlier J7 GTK desktop, which will not be supported in J8.
At the same time, the desktop wd interface is updated to match Qt layouts.

For those not making essential use of either J6 wd or J7 GTK, the new beta
will be a straightforward upgrade. In particular, the J engine, J console
and JHS are the same in both J7 and J8.

This beta also brings a new development focus. J7 was such a major change
from J6 that we expected many users would stay with J6, and we supported
both versions in updates to the base system and addons. In future, we will
focus development efforts only on J8, and not try to keep J6 or J7 up to
date.

For more information, see http://www.jsoftware.com/jwiki/System/Beta.
Please send feedback to the beta forum, thanks.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] JHS update available

2013-01-21 Thread Tom Arneson
Terrific!

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Eric Iverson
Sent: Monday, January 21, 2013 16:21
To: Programming forum
Subject: [Jprogramming] JHS update available

A significant update is available for JHS.

JHS was first released before HTML5 was generally available.

JHS now has DOCTYPE for HTML5. Previously it had DOCTYPE for HTML4
transitional. This probably has no effect for modern browsers, may break
some old browsers, but is the right choice for the future and possibly
avoids browser compatibility bugs.

Before HTML5, the use of target=_blank in either HTML or JAVASCRIPT to
open a page in a new tab was strongly deprecated and JHS conformed to this
unfortunate advice. This meant that to open a link, such as an ijs editor,
in a new page you had to click the link while holding down
ctrl+shift.

HTML5 dedeprecates (?) _blank and with ubiquitous tab support is used in JHS
to provide a more desktop application like experience. New tabs are opened
as 'expected' and it is easy to adjust your tabs and to drag a tab away from
the browser frame to create new windows as desired.
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] my messages not reaching the forum

2013-01-13 Thread Tom Arneson
I sent a message several hours ago. It doesn't show up in the forum.

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] FW: Problem with SystemFolders_j_ and UserFolders_j_

2013-01-13 Thread Tom Arneson
Here's my third try to get this message to the forum.

 

From: Tom Arneson [mailto:t...@tomarneson.com] 
Sent: Sunday, January 13, 2013 11:11
To: 'programming@forums.jsoftware.com'
Subject: Problem with SystemFolders_j_ and UserFolders_j_ 

 

My J701 became unresponsive several weeks ago, and I reinstalled. Since the
reinstall I have some problems due to having folder conflicts.

See : SystemFolders_j_ and UserFolders_j_ below:

 

   SystemFolders_j_

T-┐

│addons │c:/users/tom arneson/j64-701/addons  │

+---+-+

│bin│c:/users/tom arneson/j64-701/bin │

+---+-+

│break  │c:/users/tom arneson/j64-701-user_temp/break │

+---+-+

│config │c:/users/tom arneson/j64-701-user_temp/config│

+---+-+

│home   │c:/users/tom arneson │

+---+-+

│install│c:/users/tom arneson/j64-701 │

+---+-+

│snap   │c:/users/tom arneson/j64-701-user_temp/snap  │

+---+-+

│system │c:/users/tom arneson/j64-701/system  │

+---+-+

│tools  │c:/users/tom arneson/j64-701/tools   │

+---+-+

│temp   │c:/users/tom arneson/j64-701-user_temp/temp  │

+---+-+

│user   │c:/users/tom arneson/j64-701-user│

L---+--

   

   UserFolders_j_

-T--┐

│Demos   │c:/users/tom arneson/j64-701/addons/demos │

++--+

│Projects│c:/users/tom arneson/j64-701-user/projects│

++--+

│User│c:/users/tom arneson/j64-701-user │

L+---

 

What I want to do is get all J folder names which include the path:
'c:/users/tom arneson/j64-701-user_temp/' to use the  path: ' c:/users/tom
arneson/j64-701-user/' 

 

Thanks,

 

--
For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] FW: Problem with SystemFolders_j_ and UserFolders_j_

2013-01-13 Thread Tom Arneson
Raul, 

Thanks for the reply. It would, but I don't want to have 'c:/users/tom
arneson/j64-701-user_temp/' in any of the entries of SystemFolders_j_ or
UserFolders_j_. In other words I want to know what I can change, so whatever
J file is pointing at 'C:\Users\Tom Arneson\j64-701-user_temp\', instead
points to 'C:\Users\Tom Arneson\j64-701-user'

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Sunday, January 13, 2013 11:32
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] FW: Problem with SystemFolders_j_ and
UserFolders_j_

When I have reinstalled J701 and I wanted to have it retain use of the
default user directory, I have moved my user directory (or maybe
directories) elsewhere and then moved their contents into place in the new
install (first checking the newly installed content to see if anything was a
big deal).

Does that sound like something that would work for you?

--
Raul
--
For information about J forums see http://www.jsoftware.com/forums.htm

--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jprogramming] my messages not reaching the forum

2013-01-13 Thread Tom Arneson
Chris,

I see the email problem. Messages sent directly to
programming@forums.jsoftware.com will be ignored. My first messages went to
the ignored address.

-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of chris burke
Sent: Sunday, January 13, 2013 17:23
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] my messages not reaching the forum

No earlier message was received.

It may have been removed by google's spam filter, see
http://www.jsoftware.com/jwiki/System/Forums#Mail_Routing

Chris

On Mon, Jan 14, 2013 at 1:27 AM, Tom Arneson t...@tomarneson.com wrote:

 I sent a message several hours ago. It doesn't show up in the forum.

--
For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] GTK problems

2012-12-17 Thread Tom Arneson
Something happened to GTK last night. I tried to fix it by re-installing
J64-701, but cannot get the gtkide working again ( used it all day Sunday).

 

The following is some of my tries, copied from the console

 

 

C:\Users\Tom Arneson\j64-701C:\Users\Tom Arneson\j64-701\bin\jconsole
gtkide

 

 

jgtk front end is not installed.

 

The install downloads required files.

 

Windows install (gtk binaries) can take several minutes.

 

To install jgtk, run sentence:

 

   install'gtkide'

 

After install, run jgtk with:

Windows: jgtk icon

Linux: command (J folder)/bin/jgtk

Mac: jgtk icon or command (J folder)/bin/jgtk.command

All: jconsole run sentence   load'gtkide'

 

  install'gtkide'

Updating server catalog...

Installing 1 package

Downloading base library...

Installing base library...

Done.

All available packages are installed and up to date.

   load'gtkide'

 

jgtk front end is not installed.

 

The install downloads required files.

 

Windows install (gtk binaries) can take several minutes.

 

To install jgtk, run sentence:

 

   install'gtkide'

 

After install, run jgtk with:

Windows: jgtk icon

Linux: command (J folder)/bin/jgtk

Mac: jgtk icon or command (J folder)/bin/jgtk.command

All: jconsole run sentence   load'gtkide'

 

--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jprogramming] J7 Project Manager

2012-12-16 Thread Tom Arneson
I'm trying to use Project Manager in J7. I find a Wiki page with this
notice: this page is obsolete, and replaced by: Folders and Projects
http://www.jsoftware.com/jwiki/System/Beta/Folders%20and%20Projects 

 

When I use the link, I get: This page does not exist yet. You can create a
new empty page, or use one of the page templates.

 

Does anyone have any suggestions on use of the PM or have sample .proj file?

 

Thanks, Tom

--
For information about J forums see http://www.jsoftware.com/forums.htm