Re: [Jprogramming] J forums migrate to Google Groups on Jan 1

2023-12-31 Thread chris burke
://code.jsoftware.com/wiki/System/Forum Please message me privately with any problems. On Wed, Dec 27, 2023 at 11:33 AM chris burke wrote: > > Just a reminder that we will move the forums to a single Google Group > fo...@jsoftware.com over the New Year. > > We plan to shut d

Re: [Jprogramming] J forums migrate to Google Groups on Jan 1

2023-12-27 Thread chris burke
Just a reminder that we will move the forums to a single Google Group fo...@jsoftware.com over the New Year. We plan to shut down the current Mailman forums at midnight UTC Dec 31 and then try to enroll subscribers to the new forum. I think most emails should work, but there are likely to be some

Re: [Jprogramming] testing for J version or later

2023-12-24 Thread chris burke
Since stdlib is not updated for older versions of J, addons that depend on the J version will have to use their own test like your original jversion function. Alternatively, set the addon manifest RELEASE for 9.4 or later and just support the new version number. The 9!:14 result is then parsed in

Re: [Jprogramming] wd peculiarity: isigraph issue (addendum to the addendum)

2023-09-21 Thread chris burke
I don't see this problem on macOS Monterey. What happens if you define a paint handler for the isigraph? Try vizform_vocContext_paint=: {{ glfill_jgl2_ 255 0 0 255 }} On Thu, Sep 21, 2023 at 5:04 AM Ed Gottsman wrote: > > Raul, > > That’s two mistakes. Wrong list and I shipped the commented ver

[Jprogramming] Forum Migration

2023-08-22 Thread chris burke
(This message is cross posted to programming and general. Please reply to general, thanks.) Dear All We plan to migrate the forums from Mailman to Google Groups, which has similar features. After the migration, the user experience of the forums should be essentially the same. A new feature is a b

Re: [Jprogramming] Anagram Operator (A.) and Generalized Datatype declaration in function assignments.

2023-08-11 Thread chris burke
The x: converts its argument to extended. You are giving it a floating point argument, not an integer, i.e. 180548043269214561950911457875657 1.80548e32 datatype 180548043269214561950911457875657 floating To use this value as an extended integer you need the 'x' suffix. 1805480432692145

Re: [Jprogramming] Window Driver Mouse Events

2023-05-02 Thread chris burke
The Qt IDE is updated for both j9.4 and j9.5. This should fix reported problems. To update, in jconsole, run install'qtide' On Wed, Apr 26, 2023 at 12:27 PM 'robert therriault' via Programming wrote: > > Bill, > > Do we have an estimate when the next release of the Qt IDE will be in J9.4 or >

Re: [Jprogramming] Cannot save plot to format other than PDF

2023-04-23 Thread chris burke
Please send bug reports to general, and respond there, thanks. This worked for me as below. What is your environment and what commands were used? load'plot' plot 2 3 7 5 pd 'save png tiles.png' JVERSION Engine: j9.4.1/j64avx2/linux Build: commercial/2023-02-27T15:24:41/clang-11-0-0/S

Re: [Jprogramming] startup.ijs under Linux ...

2023-04-05 Thread chris burke
What do you get when loading that script? Try loadd '/home/math/j9.4-user/config/startup.ijs' On Wed, Apr 5, 2023 at 10:45 AM Martin Kreuzer wrote: > > Dear all - > > My Linux machine broke down. > > New J setup (v9.4.1) on different hardware seems to work, except that > my startup.ijs isn't

Re: [Jprogramming] Modular arithmetic support

2023-04-03 Thread chris burke
Cliff There are some mod functions in the math/misc addon, e.g. this gives Mike Day's table load 'math/misc/primutil' f=: (17 timesmod) (17&inversep) 2 3 4 f"0 table >:i.8 +---+-+ |f"0|1 2 3 4 5 6 7 8| +---+-+ |2 |2 1 12 9 14 6 10 13| |3

Re: [Jprogramming] distance makes the heart grow fonder

2023-04-01 Thread chris burke
If you want multiple sentences that execute from left to right, why not write a multiline definition? I occasionally write a single line definition with two or even three sentences, for which [ works fine as a separator. But for more than these a multiline definition would be better. On Sat, Apr

Re: [Jprogramming] distance makes the heart grow fonder

2023-04-01 Thread chris burke
For multiline comments, the simplest way is to write the comments in your script, select them and either press Ctrl+/ to comment with NB. or Ctrl+Shift+/ to make them into a Note. This is in Jqt, and could be supported in JHS. On Sat, Apr 1, 2023 at 8:29 AM Eric Iverson wrote: > > I am in favor o

Re: [Jprogramming] distance makes the heart grow fonder

2023-04-01 Thread chris burke
I don't see any real need for these changes. When developing functions in a script, isn't it simpler to make comments in comment lines? For Jan-Pieter's example, I would write NB. sum divideby count avg=: +/ % # For Elijah's multiline definitions, of course these can include comments, either as

Re: [Jprogramming] stdlib read text into boxes

2023-03-27 Thread chris burke
You can use 'b' fread to read the text file into boxes, then remove unwanted lines, e.g. read and remove empties: a: -.~ 'b' fread '~bin/profile.ijs' On Sun, Mar 26, 2023 at 11:48 PM Raul Miller wrote: > > I think boxing each line and discarding the unwanted lines is a good > approach here. >

[Jprogramming] Bug Reports

2023-03-18 Thread chris burke
Dear All A reminder that the Programming forum should not be used for bug reports. For the appropriate forum, see www.jsoftware.com/jwiki/System/BugReports . Thanks. Chris -- For information about J forums see http://www.jsoftwa

Re: [Jprogramming] wd parameter delimiters

2023-03-08 Thread chris burke
Use * to indicate the rest of the command is a single string: wd 'set browser html *' See the Parsing section of https://code.jsoftware.com/wiki/Guides/Window_Driver/Command_Syntax On Wed, Mar 8, 2023 at 3:11 PM Ed Gottsman wrote: > > Greetings. I’m having trouble with the Window Driver's we

Re: [Jprogramming] j9.4.1 release is available

2023-03-02 Thread chris burke
Thanks, I just used the following, which is in several of our scripts: cd "$(dirname "$0")" On Thu, Mar 2, 2023 at 2:34 AM 'Viktor Grigorov' via Programming wrote: > > Minor quip: the shell script in the general linux zip 'bin/install-usr.sh' > should include this line near the top > > cd "$(

Re: [Jprogramming] Nano-seconds?

2022-11-09 Thread chris burke
A few examples: [T=: 6!:14 [ 20220314102540 7005687400 6!:15 T 2022 3 14 10 25 40 0 6!:16 T 2022-03-14T10:25:40 ' d' 6!:16 T 2022-03-14 ' 0' 6!:16 T 2022-03-14T10:25:40 ' 3' 6!:16 T 2022-03-14T10:25:40 000 T -: 6!:17 [ 6!:16 T 1 On Wed, Nov 9, 2022 at 4:21 PM Dev

Re: [Jprogramming] density plot tick marks misaligned

2022-11-04 Thread chris burke
> That said, currently I do not know which github repository contains > jzplot.ijs. https://github.com/jsoftware/graphics_plot On Fri, Nov 4, 2022 at 4:32 PM Raul Miller wrote: > > Well, that's certainly doable. But, a few hours ago, I did not know > enough about how plot was implemented to sug

Re: [Jprogramming] Old trace function

2022-10-25 Thread chris burke
I think this is Simon Garland's fgh script, which used to be distributed in system/packages/misc/fgh.ijs. For example: load '~temp/fgh.ijs' 0 f g h 1 0 _f_ (g_ (h_ 1)) 0 (f g h) 1 (0 _f_ 1) _g_ (0 _h_ 1) The script is below. Perhaps someone could check it, and then we put it in the ad

Re: [Jprogramming] [Jgeneral] Report on the J wiki Meeting of 2022-08-18

2022-08-27 Thread chris burke
age. I tried to do that originally without success, and it would require some php expertise. Chris On Wed, Aug 24, 2022 at 11:48 PM 'robert therriault' via General wrote: > > Present: Art Anger, Chris Burke, Raul Miller, Bob Therriault > > 1) Bob talked about the vide

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread chris burke
Note that the error occurred in hilbert. So the OP had run that line correctly. It was not that he had pasted the multiple lines and pressed Enter expecting them all to run. On Sun, Jul 31, 2022 at 8:50 AM Henry Rich wrote: > > I agree with you. That would be a change and might discommode some >

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread chris burke
That is the error you get if "iter" is not defined, so you probably didn't run the first line. On Sun, Jul 31, 2022 at 4:24 AM Razetime wrote: > > On this rosetta code page for the Hilbert Curve > , I tried running the code, > but I get an error: > >

Re: [Jprogramming] Print every digit in jconsole.sh?

2022-07-24 Thread chris burke
Additional suggestions: 1. load'general/misc/format' xfmt */ 1 + i.450x 2. (in jqt) textview */ 1 + i.450x On Sat, Jul 23, 2022 at 10:12 PM Gilles Kirouac wrote: > > To see the full list of digits, use the standard utility foldpara. > > $a=: ": */ 1 + i.450x > 1001 > 100 foldpara

Re: [Jprogramming] wiki maintenance

2022-06-06 Thread chris burke
earlier versions of mediawiki that we have used since 2015. This is fixed now. On Sun, Jun 5, 2022 at 5:06 PM chris burke wrote: > It looks like the wiki move did not complete correctly! > > The page titles are all there, but some pages have no content, e.g. > https://code.jsoftware.com

Re: [Jprogramming] wiki maintenance

2022-06-06 Thread chris burke
st never noticed it. > > > >I am going to try to rebuild the new wiki now, so it will be unavailable > >for a few minutes. > > > > > >On Sun, Jun 5, 2022 at 8:01 AM chris burke wrote: > > > > > The wiki move is finished and you can edit the wik

Re: [Jprogramming] wiki maintenance

2022-06-05 Thread chris burke
going to try to rebuild the new wiki now, so it will be unavailable for a few minutes. On Sun, Jun 5, 2022 at 8:01 AM chris burke wrote: > The wiki move is finished and you can edit the wiki again. It is on a new > IP address so you may need to refresh your browser. > > The old

Re: [Jprogramming] wiki maintenance

2022-06-05 Thread chris burke
gt; Cheers, bob > > > On Jun 5, 2022, at 08:01, chris burke wrote: > > > > The wiki move is finished and you can edit the wiki again. It is on a new > > IP address so you may need to refresh your browser. > > > > The old wiki will be made available at ol

Re: [Jprogramming] wiki maintenance

2022-06-05 Thread chris burke
chris burke wrote: > The wiki move is being done now. The old wiki is read only and the J logo > is red. > > On Sat, Jun 4, 2022 at 10:24 AM chris burke wrote: > >> The wiki will be moved to a new server tomorrow (Sunday), around 2pm UTC >> (10am EDT). It will have the l

Re: [Jprogramming] wiki maintenance

2022-06-05 Thread chris burke
The wiki move is being done now. The old wiki is read only and the J logo is red. On Sat, Jun 4, 2022 at 10:24 AM chris burke wrote: > The wiki will be moved to a new server tomorrow (Sunday), around 2pm UTC > (10am EDT). It will have the latest mediawiki LTS version 1.35.5. > > The

Re: [Jprogramming] J Playground neural network demo

2022-06-04 Thread chris burke
> The plot quality is not great yet, Plot is rather long in the tooth. We would get much nicer graphics in the playground using a package like chartjs, https://www.chartjs.org . On Sat, Jun 4, 2022 at 1:42 PM Jan-Pieter Jacobs wrote: > I had some fun putting J Playground through its paces and

[Jprogramming] wiki maintenance

2022-06-04 Thread chris burke
The wiki will be moved to a new server tomorrow (Sunday), around 2pm UTC (10am EDT). It will have the latest mediawiki LTS version 1.35.5. The move should take less than an hour, during which the old wiki will be read only. I'll email the forum just before the move. ---

Re: [Jprogramming] J Playground

2022-06-01 Thread chris burke
Bill I had a first go at this. There are some scripts in repo https://github.com/cdburke/simple. For example, to load the raw content in the playground, paste the following into the Term window: openscript ' https://raw.githubusercontent.com/cdburke/simple/master/structural.ijs' This writes

Re: [Jprogramming] J Playground

2022-06-01 Thread chris burke
The current lab system includes sp.ijs functions, and so will run scripts as a lab. It should be straightforward to add this to the playground. I am not sure exactly how to do this, but perhaps the Edit window could be run as a lab. The lab advance key would then work by default on the current Edi

Re: [Jprogramming] J path syntax for the current file's folder

2022-05-30 Thread chris burke
A .jproj file is needed to define a project directory, but it is not needed for folder names. A folder name is just a shortcut for a directory. If you define a folder name for a directory, then after moving the code to another directory, you only need to update the folder name. On Mon, May 30, 20

Re: [Jprogramming] J path syntax for the current file's folder

2022-05-30 Thread chris burke
Right, but it depends on what you are doing. If writing an addon, then you could define: path=: jpath '~addons/zerowords/tgsjo' Otherwise, define a foldername and use that. On Mon, May 30, 2022 at 11:33 AM Raul Miller wrote: > On Mon, May 30, 2022 at 2:00 PM chris burke wrot

Re: [Jprogramming] J path syntax for the current file's folder

2022-05-30 Thread chris burke
> Yeah, it'd work to add my own folder to UserFolders for a specific path. > But I'd like to have a general solution that can be used in any files. > > Raul's solution seems to solve the problem. > > Thanks! > Jinwoo > > > On Mon, May 30, 2022 at 9:48 AM ch

Re: [Jprogramming] J path syntax for the current file's folder

2022-05-30 Thread chris burke
Perhaps I misunderstand, but it looks like ~filefolder is that described in https://code.jsoftware.com/wiki/Guides/Folders_and_Projects . Note that folders can be defined on the fly, e.g. you could run UserFolders_j_=: UserFolders_j_,'filefolder';'/my/path' and then: jpath'~filefolder' /m

Re: [Jprogramming] NuVoc page for debug

2022-04-05 Thread chris burke
erb. I attach the resulting doctored webpage as a .webarchive, hoping > it > >>> won't get stripped off. > >>> > >>> If it does, then PM me for a copy. > >>> > >>> On Sun, 3 Apr 2022 at 16:04, Raul Miller > wrote: > >

Re: [Jprogramming] NuVoc page for debug

2022-04-03 Thread chris burke
> I haven't found a replacement for https://www.jsoftware.com/docs/help602/user/debug_verbs.htm yet. This should be a new child page of https://code.jsoftware.com/wiki/Debug . On Sun, Apr 3, 2022 at 12:00 AM Raul Miller wrote: > https://code.jsoftware.com/mediawiki/index.php/Guides/Covering_a

Re: [Jprogramming] RFC: unicode

2022-03-18 Thread chris burke
I think the correct view is that J text strings are in utf8 and the programmer should handle it. This does mean that some sequences of bytes that are not uft8 look odd in the terminal. Perhaps the documentation should be improved? On Sat, Mar 19, 2022 at 8:48 AM Elijah Stone wrote: > An easy c

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-03-14 Thread chris burke
Right, it is the hyphen in pascal-j. On Tue, Mar 15, 2022 at 10:35 AM bill lam wrote: > the verb getscripts_j_ is used to resolve file in load/require. Maybe it is > the hyphen in "pascal-j" . > > On Tue, Mar 15, 2022 at 10:25 AM Raul Miller > wrote: > > > And... it looks like the answer to "da

Re: [Jprogramming] wiki

2022-03-13 Thread chris burke
I restored a backup from last night. It looks like everything is working. Please let me know of any further problems. On Mon, Mar 14, 2022 at 11:45 AM chris burke wrote: > Dear All > > Sorry, there is a problem with the wiki right now. Am working on a fix.

[Jprogramming] wiki

2022-03-13 Thread chris burke
Dear All Sorry, there is a problem with the wiki right now. Am working on a fix. Chris -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] HMAC and PBKDF2

2022-02-02 Thread chris burke
> I didn't even know there was a standard library The standard library docs are linked from System on the wiki left menu: https://code.jsoftware.com/wiki/Standard_Library/Overview On Thu, Feb 3, 2022 at 3:32 AM 'Viktor Grigorov' via Programming < programm...@jsoftware.com> wrote: > Thank you fo

Re: [Jprogramming] Sierpinski triangle

2022-02-01 Thread chris burke
I know this question is about understanding some J code, but perhaps it is worth noting that the Jqt Studio|Showcase|isigraph demo has other examples, including Cliff Reiter's elegant: load 'viewmat' viewmat (,,.~)^:8 ,1 -- Fo

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-02-01 Thread chris burke
Ric For the dataframes equivalent, are you thinking of the more recent tibble structure in tidyverse? This is easier to understand than the original dataframes. If so, this is a worthwhile addon for J. I worked on something similar recently. If you or anyone else is interested, we could collabora

[Jprogramming] Message Threads

2021-12-21 Thread chris burke
Dear All Just a reminder that there is no need to include an entire thread in forum messages. For example, the messages in the Modifier train tutorial thread are now around 1200 lines and exceed the forum size limit of 100KB. By all means include messages that are being directly replied to, but o

Re: [Jprogramming] Finding consecutive indices

2021-11-17 Thread chris burke
See https://code.jsoftware.com/wiki/Essays/Progressive_Index-Of This is in misc/miscutils/utils as progressiveindex, e.g. load'misc/miscutils/utils' 0 0 2 0 2 0 3 3 progressiveindex 2 2 2 3 4 2 4 8 6 8 On Wed, Nov 17, 2021 at 5:33 AM Pablo Landherr wrote: > I cannot figure out how to make

Re: [Jprogramming] J Wiki Coordinator

2021-11-11 Thread chris burke
wiki naturally emerge on the forums and so the time seems ripe to > > approach this challenge in a coordinated fashion. This is not a task > that I > > can take on alone and I have to acknowledge the amazing contributions > that > > have already been made to the wiki by C

Re: [Jprogramming] segregation boxing on bitvectors

2021-10-21 Thread chris burke
There are partition functions in general/misc/parts.ijs. For example: load'parts' partition 4 5 5 3 3 3 6 8 6 6 9 2 2 2 1 1 0 1 0 0 1 1 1 0 1 1 0 0 (partition <;.1 ]) 4 5 5 3 3 3 6 8 6 6 9 2 2 2 ┌─┬───┬─┬─┬─┬───┬─┬─┐ │4│5 5│3 3 3│6│8│6 6│9│2 2 2│ └─┴───┴─┴─┴─┴───┴─┴─┘ O

Re: [Jprogramming] Syntax error

2021-09-22 Thread chris burke
Raul's latest html changes are now on the website. On Wed, Sep 22, 2021 at 10:15 AM chris burke wrote: > This looks good, thanks. > > The html help source is in repo https://github.com/jsoftware/docs_help . > > Originally we planned to continue the html help into j901, b

Re: [Jprogramming] Syntax error

2021-09-22 Thread chris burke
This looks good, thanks. The html help source is in repo https://github.com/jsoftware/docs_help . Originally we planned to continue the html help into j901, but then decided to freeze it at j807. As a result there were some unused j901 changes in the repo. I reverted the repo back to j807, and a

Re: [Jprogramming] Syntax error

2021-09-21 Thread chris burke
The html pages were frozen in favor of the wiki a couple of years ago, see https://code.jsoftware.com/wiki/Community_Wiki_vs_HTML_Publications. Discussions about unsupported syntax should be in the wiki. I don't think we have a relevant page but perhaps someone might create one. > Just a thought.

Re: [Jprogramming] Multiline comments WAS: break from loading a script with 'load'

2021-09-01 Thread chris burke
function on the current edit window. On Wed, Sep 1, 2021 at 12:34 PM chris burke wrote: > The code for the Note toggle is in the Jqt source and is hardwired to > Ctrl+Shift+/ by associating it with the "Edit|Selection|Toggle Note" menu > item. > > Right now, we don'

Re: [Jprogramming] Multiline comments WAS: break from loading a script with 'load'

2021-09-01 Thread chris burke
The code for the Note toggle is in the Jqt source and is hardwired to Ctrl+Shift+/ by associating it with the "Edit|Selection|Toggle Note" menu item. Right now, we don't have a way to set different menu shortcuts on startup, though this should be possible. So for now there is no obvious workaround

Re: [Jprogramming] break from loading a script with 'load'

2021-08-31 Thread chris burke
> .. if you're JQt, it's easy to select all the unwanted lines and switch on comments with ctrl-/ . You can later uncomment all those lines with another ctrl-/ on the same selection. Another way is to use ctrl-shift-/ which toggles on a Note. I often prefer this as the lines remain uncommented a

Re: [Jprogramming] Experiment with (+/ .*)

2021-05-31 Thread chris burke
> At least on Windows 10, JQt has the default cursor a thin flashing |, which does not get any thicker with making the font bigger. In the current Jqt there is an option for CursorWidth, e.g. try CursorWidth=10 On Mon, May 31, 2021 at 7:54 AM Imre Patyi wrote: > Dear Programming in J, > > Than

Re: [Jprogramming] A new podcast on the Array Programming Languages

2021-05-18 Thread chris burke
The programming forum is also intended for announcements, such as this podcast. There is a lot of interest in this, so please continue to announce on the programming forum, thanks. On Tue, May 18, 2021 at 10:02 AM 'robert therriault' via Programming < programm...@jsoftware.com> wrote: > Hi ever

Re: [Jprogramming] Mass amend

2021-05-17 Thread chris burke
> I'm at a point where I would like to learn how to write GUIs in J and how to write visually oriented J programs (such as stock market charting programs). I think it may be challenging because, from my initial investigating, there seems to be *extremely* little information (including coding sampl

[Jprogramming] convert/numpy

2021-03-27 Thread chris burke
This new addon reads and writes numpy npy and npz files. See code.jsoftware.com/wiki/Addons/convert/numpy . -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Fwd: GNU Scientific bindings?

2021-02-26 Thread chris burke
> I noticed for example that the sqlite package does this. The author forked > the library, modified it so that its easier to integrate, and then bound J to > it leaving code on both sides to maintain. Right, though we didn't modify the sqlite code itself, just extended it to allow J to read and

Re: [Jprogramming] Fwd: GNU Scientific bindings?

2021-02-26 Thread chris burke
I think a gsl addon would be worthwhile, and looked at this some time ago. gsl can be called directly, e.g. gsl_rng_env_setup=: ('libgsl.so gsl_rng_env_setup > x')&cd gsl_rng_alloc=: ('libgsl.so gsl_rng_alloc > x x')&cd gsl_ran_gaussian=: ('libgsl.so gsl_ran_gaussian > d x d')&cd gsl_

Re: [Jprogramming] Bug in Calculus

2021-02-07 Thread chris burke
Thanks, the addon is updated now. On Sun, Feb 7, 2021 at 6:13 AM 'Jon Hough' via Programming wrote: > > Mike, thanks. I noticed I missed that out too. > > I have added fexp and merged. > > Thanks, > Jon > On Sunday, February 7, 2021, 09:19:56 PM GMT+9, 'Michael Day' via > Programming wrot

Re: [Jprogramming] Bug in Calculus

2021-02-06 Thread chris burke
Thanks. Chris On Sat, Feb 6, 2021 at 5:26 AM 'Jon Hough' via Programming wrote: > > Thanks for the reply. > > I am still not entirely sure how to get authorized to edit the github > repository for calculus. Perhaps I should just request access from Chris > Burke

Re: [Jprogramming] Error in addons/math/misc/fermat.ijs

2021-02-04 Thread chris burke
Thanks, fixed now. The code dates from the time when x. was the left argument. On Thu, Feb 4, 2021 at 4:00 PM 'Michael Day' via Programming wrote: > > Having a look at the scripts in ~addons/math/misc, I've just noticed a > slip in > fermat.ijs - I doubt if it's used much, though, which is pr

Re: [Jprogramming] J903-beta-c

2021-01-30 Thread chris burke
FYI, you can have a common user directory. The location is defined in profile.js and can be changed. See also profilex_template.ijs. On Sat, Jan 30, 2021 at 7:28 AM Raul Miller wrote: > > Personally, I have j807, j901, j902 and j903 installed on this > machine. It's a minor inconvenience to have

Re: [Jprogramming] Chudnovsky algo for π (Pi) using extended arithmetic

2020-12-22 Thread chris burke
See also Roger's essay: https://code.jsoftware.com/wiki/Essays/Chudnovsky_Algorithm On Tue, Dec 22, 2020 at 3:22 PM Hauke Rehr wrote: > > a worthy read, thanks > > I think I fell in love with J in part > due to its notationally pleasant guise > There are so many debates in notation. > I personal

Re: [Jprogramming] All combinations from multiple different-length lists

2020-12-20 Thread chris burke
>,{1 3 5;2;3 4 1 2 3 1 2 4 3 2 3 3 2 4 5 2 3 5 2 4 On Sun, Dec 20, 2020 at 10:48 AM Skip Cave wrote: > > I have three lists stored in x: > > ]x=.1 3 5;2;3 4 > > ┌─┬─┬───┐ > > │1 3 5│2│3 4│ > > └─┴─┴───┘ > > I want to find all possible combinations of the elements of these lists > (taki

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread chris burke
Use dbstopme to stop at a specific line, see the example below. A non-empty argument is a test, so stop if true. Caution: if using 902 beta, get the latest beta and qt addon, as there have been recent updates to debug. foo=: 4 : 0 a=. 2 + y dbstopme'' b=. a * 5 x + b ) dbg 1 2 foo 3 On Thu, Nov

Re: [Jprogramming] Interface error (joxygen)

2020-09-29 Thread chris burke
>|interface error: spawn | shell'pandoc "',src,'" -c "joxygen.css" -s -t html5 -V lang=en Is pandoc on the path? On Mon, Sep 28, 2020 at 11:44 AM Thomas Bulka wrote: > > Am 27.09.2020 15:45 schrieb chris burke: > > The joxygen addon us

Re: [Jprogramming] Interface error (joxygen)

2020-09-27 Thread chris burke
The joxygen addon uses pandoc, but had not been updated for changes in pandoc, I think in v2. It is now done. I tested with the latest pandoc, 2.10.1. After updating the addon, and assuming you have a recent pandoc installed, try: load'docs/joxygen/test' reading: compare.ijs reading: dir.ijs

Re: [Jprogramming] List of Plot color names (preferably with colors)

2020-08-17 Thread chris burke
Plot uses the graphics/color addon. The names are in github.com/jsoftware/graphics_color/blob/master/colortab.ijs . Plot uses uppercase names, like other Plot globals. For example: load'plot' ALICEBLUE_jzplot_ 240 248 255 On Mon, Aug 17, 2020 at 6:02 PM HH PackRat wrote: > > The J program

[Jprogramming] 902 beta messages

2020-08-17 Thread chris burke
Dear All Please use the beta forum for any new messages on the 902 beta. Thanks. Just a reminder - the programming forum is used for announcements, and otherwise posts should be directed to the appropriate forum. Eric announced the latest 902 beta to the programming forum, but as his email stat

Re: [Jprogramming] Table of contents on J wiki

2020-08-11 Thread chris burke
You can force a TOC if needed, see www.mediawiki.org/wiki/Manual%3aTable_of_contents#Adding_the_TOC On Tue, Aug 11, 2020 at 12:37 PM Devon McCormick wrote: > > Yes - it looks like about three sections is the magic number. > > On Tue, Aug 11, 2020 at 3:06 PM Roger Hui wrote: > > > I believe that

Re: [Jprogramming] Ancillary pages disappeared??

2020-08-06 Thread chris burke
Thanks. It looks like they fell off in the last update. I will restore them. As regards the forum, please see code.jsoftware.com/wiki/System/Forums#Which_forum_to_use . In this case, the general forum would be correct. On Thu, Aug 6, 2020 at 12:32 AM HH PackRat wrote: > > I didn't know which of

Re: [Jprogramming] problem setting text font in plots

2020-08-05 Thread chris burke
Thanks, this should be fixed now. On Tue, Aug 4, 2020 at 9:02 PM J. Patrick Harrington wrote: > > I have little routine to plot a compass circle and a line showing the > heading to a radio source. I want to plot the letters N, E, S, W and a > legend giving the distance to the source. Here's a bit

Re: [Jprogramming] coordinates in plot axis on mouse events

2020-05-22 Thread chris burke
They would be in jwplot, e.g. load'plot' plot 1 2 3 Gxywh_jwplot_ 37 34 423 301 On Fri, May 22, 2020 at 7:59 AM Pierre-Edouard PORTIER wrote: > > The wiki hase a code snippet to access coordinates in plot axis on mouse > events. > https://code.jsoftware.com/wiki/User:Andrew_Nikitin/plot

Re: [Jprogramming] How to execute joxygen?

2020-05-02 Thread chris burke
The example at ~addons/docs/joxygen/test.ijs should at least run, so you could use this as a starting point. However, pandoc has changed since the addon was written, and the addon needs to be updated. For example, the html files built no longer have the tag. I noticed changes in my own use of pa

Re: [Jprogramming] J counterpart to R's View()?

2020-05-01 Thread chris burke
There is textview, e.g. textview <&> i. 20 20 It doesn't have any smarts, e.g. the ability to limit cell size or zoom into cells. On Fri, May 1, 2020 at 9:29 AM Bill Harris wrote: > > n R, there's a View() function that pops up a new, scrollable window with > the contents of the matrix or matr

Re: [Jprogramming] using clear'' and cancel

2020-04-25 Thread chris burke
The right argument to clear is the locale, default base. It looks like you are in the z locale, so clear'' NB. clear in base (4!:55) (4!:1) 0 1NB. clear in z On Sat, Apr 25, 2020 at 7:14 AM Brian Schott wrote: > > Am I using clear'' wrong? > I does not seem to work, but when I manually

Re: [Jprogramming] Mac question

2020-04-23 Thread chris burke
n config/startup.ijs and write it into PID_z_. It's several > > years since I routinely ran second copies of J, so I'll have to ferret out > > the details if your client is keen to know. > > > > I haven't tried doing it with j901 under Catalina. I'

Re: [Jprogramming] Mac question

2020-04-22 Thread chris burke
In macos, clicking a desktop icon for an app that is already running just gives it focus. However, you can load multiple copies of J from the command line, i.e. something like ~/j901/bin/jqt.command Equivalently, browse to the J bin folder in Finder and double click jqt.command. On Wed, Apr 2

Re: [Jprogramming] Trouble running JQT on Linux

2020-04-19 Thread chris burke
Looks like you need to install webengine, i.e. sudo apt-get install libqt5webengine5 See also https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install#Ubuntu.2FLinux_Mint for other required libraries. On Sun, Apr 19, 2020 at 2:15 PM Phil Hanna wrote: > > I have installed J901 on my Linux Ubuntu 1

Re: [Jprogramming] generate integers from a to be with a step

2020-04-04 Thread chris burke
numeric has both: steps 5 13 4 5 7 9 11 13 range 5 13 2 5 7 9 11 13 On Sat, Apr 4, 2020 at 2:26 PM Don Kelly wrote: > > However, as Hauke Rehr has indicated, the step size is given in the > original problem while the method you suggest is given the number of > steps in the range. There is

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread chris burke
> I couldn't get the R addon to work with my J installation Could you report this on the general forum, please? Let us know what you tried and with what results. I just tested the Rserver interface and it worked fine, see https://code.jsoftware.com/wiki/Interfaces/R/Rserver/Overview On Sat, Mar

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread chris burke
ath: c:/d/j901 > Contact: www.jsoftware.com > > Complete reinstall needed? > > Thanks, > > Mike > > > On 28/02/2020 15:27, 'Michael Day' via Programming wrote: > > Oh, I'd forgotten that possibility. > > > > Thanks to you & BIll, >

Re: [Jprogramming] error with Graphviz and/or webview in j901 under Windows 10

2020-02-28 Thread chris burke
This entry in your J version Qt IDE: 1.8.5s/5.12.6 indicates that you have the slim qtide, and need the full version for webview. See https://code.jsoftware.com/wiki/Guides/Qt_IDE/Install. On Fri, Feb 28, 2020 at 6:40 AM 'Michael Day' via Programming wrote: > > Wishing to visualise a set of pa

Re: [Jprogramming] Android hang

2020-02-23 Thread chris burke
Please respond to this message on general, thanks. Chris On Sun, Feb 23, 2020 at 3:29 PM David Lambert wrote: > >NB. Pixel 3, no response >NB. I'll try to keep my code tacit. > > >JVERSION > Engine: j901/j64/android > Release-e: commercial/2020-02-09T15:24:15 > Library: 9.01.21 > J A

Re: [Jprogramming] "fcopy" command?

2020-02-12 Thread chris burke
There is an fcopynew instead of fcopy. https://code.jsoftware.com/wiki/Standard_Library/files#fcopynew On Wed, Feb 12, 2020 at 2:50 PM Devon McCormick wrote: > > Is there, or did there used to be, a file copy command called "fcopy"? I > see it in some old code but cannot find its definition. >

Re: [Jprogramming] What is the best stack for Linux J programming?

2020-01-31 Thread chris burke
> It would be nice to have the jqt editor recognize when a file has been modified from another program and suggest to update the contents as soon as the user is back... The jqt editor does do that. Does it not work for you? What version are you using? On Fri, Jan 31, 2020 at 8:58 AM wrote: > M

[Jprogramming] forum posts

2020-01-01 Thread chris burke
Dear All Many recent messages to the programming forum were better suited to other forums. See http://www.jsoftware.com/jwiki/System/Forums for an overview. In particular, the main programming forum is for messages that are in some way related to programming in J, as well as for announcements. Th

Re: [Jprogramming] infinite error loops in wd

2019-12-22 Thread chris burke
Right, but you can add a try/catch while developing. In production, you should make sure your painting works. The wd paint handler is called when Qt requests a paint instruction, and that needs to be given, i.e. the paint handler needs to return. If the paint handler hangs, then so does Qt. One t

Re: [Jprogramming] infinite error loops in wd

2019-12-22 Thread chris burke
Would it help to use try/catch in the paint handler? For example, in the below, try resizing the window. Each time the paint handler is called the error is written to the session and the image painted a new color: wd 'reset' wd 'pc win0 closeok; pn "debug me"' wd 'cc img isigraph' wd 'pshow' win0_

Re: [Jprogramming] addon/joxygen - pandoc

2019-12-19 Thread chris burke
Bill Thanks. What is the problem you see? I notice that the test below works fine on Linux, but on Windows the box-drawing characters in text.htm were not rendered correctly. This may be a browser issue. I tested with pandoc 2.9 and the latest J windows AIO. Chris load 'docs/joxygen/test' re

Re: [Jprogramming] JHS - D3

2019-12-16 Thread chris burke
When installing addons you need write access to the addons directories. Most likely you need to install your addons as root. On Mon, Dec 16, 2019 at 11:13 AM 'Jim Russell' via Programming < programm...@jsoftware.com> wrote: > FWIW: Noticied a hidden error message, when I reloaded jijx: > get fil

Re: [Jprogramming] J901 release available

2019-12-16 Thread chris burke
The github jsource repo is always up to date, i.e. the mirror is automatically updated whenever the source repo is updated. However, I see a problem that likely prompted your message - many times we had set tags in the source repo that were not being mirrored to github. I think we understand why,

Re: [Jprogramming] J901

2019-12-16 Thread chris burke
regex was changed to PCRE2 in j807. jregcomp is from earlier versions of regex, i.e. prior to J807. On Mon, Dec 16, 2019 at 8:02 AM bill lam wrote: > jregex script is inside stdlib which is the same for all platforms. But I > am reluctant to uninstall j901 and then install j807 to try. > > On

Re: [Jprogramming] 901-beta-s

2019-12-04 Thread chris burke
The distribution has clipwrite as a pointer to clipwrite_jqtide_ . wdclipwrite is an old definition that is still in some addon scripts. I'll take a look and update them with clipwrite. On Wed, Dec 4, 2019 at 12:37 PM 'Mike Day' via Programming < programm...@jsoftware.com> wrote: > Actually this

Re: [Jprogramming] wrong link in NUVOC?

2019-12-02 Thread chris burke
The wiki style guide https://code.jsoftware.com/wiki/Style_Guide recommends using for J code and names in ordinary text. This usually works fine, though Pascal's page is focused on dot, which isn't going to show well anyway. You could use "." but for other expressions there is confusion when the

  1   2   3   4   5   >