Re: [Jprogramming] J for android (Pixel 8) & other platforms

2023-12-04 Thread J. Patrick Harrington
Quick followup. I realized you don't have to mess with (somewhat awkward) AV File Manager to see files in Android/data. I finally looked at J documentation at wiki/Plot/Commands/Output commands and saw pdf [file w h]! Never knew you could direct the plot to any desired folder. So I just

Re: [Jprogramming] J for android (Pixel 8) & other platforms

2023-11-26 Thread J. Patrick Harrington
igure out the correct locations of the data files and scripts I want to use ... Best regards, Patrick On 11/8/23 11:50 AM, 'Kenneth Lettow' via Programming wrote: The apk for android is available here: https://www.jsoftware.com/download/j9.5/install/ . On Wed, Nov 8, 2023 at 11:37 AM J. Patrick Harri

Re: [Jprogramming] J for android (Pixel 8) & other platforms

2023-11-08 Thread J. Patrick Harrington
... Best regards,  Patrick On 11/8/23 11:50 AM, 'Kenneth Lettow' via Programming wrote: The apk for android is available here: https://www.jsoftware.com/download/j9.5/install/ . On Wed, Nov 8, 2023 at 11:37 AM J. Patrick Harrington wrote: Hello all, While I've not posted for a while, I've been

[Jprogramming] J for android (Pixel 8) & other platforms

2023-11-08 Thread J. Patrick Harrington
Hello all, While I've not posted for a while, I've been a J user for many decades. At present I'm running j9.4 and j9.5 on a mac mini and my Dell xps 13 under Ubuntu 22.04. I generally use jqt. All this is good. What I'm seeking help with is J for android. Back in Jan 2022, I acquired a

Re: [Jprogramming] J Desktop icons

2023-04-12 Thread J. Patrick Harrington
wrote: Your 9.4 file looks fine. I'm guessing your desktop manager does not like the name with the extra dot. What Desktop manager are you running? Try renaming the Desktop/jqt9.4.desktop to replace the . with dot. On Wed, Apr 12, 2023 at 1:23 PM J. Patrick Harrington wrote: Yes, I ran

Re: [Jprogramming] J Desktop icons

2023-04-12 Thread J. Patrick Harrington
not work, but could give hints to the problem. load'pacman' shortcut_jpacman_'jc' NB. 'jhs' and 'jqt' On Wed, Apr 12, 2023 at 12:48 PM J. Patrick Harrington wrote: I have just reinstalled j9.4 on my Dell XPS13 laptop running linux - Ubuntu 20.04.6 LTS. The install seemed normal. I can start

[Jprogramming] J Desktop icons

2023-04-12 Thread J. Patrick Harrington
I have just reinstalled j9.4 on my Dell XPS13 laptop running linux - Ubuntu 20.04.6 LTS. The install seemed normal. I can start and run J with a "j9.4/bin/jqt &" command. But the J icons never appeared on the desktop as they have in the past. Any pointers on what went wrong and how to fix it?

Re: [Jprogramming] Atn2 verb

2023-03-22 Thread J. Patrick Harrington
I've found a two argument arctan indispensable and have always had these in my startup:  atan2=: 13 : '2p1|((0>1{"1 y)*1p1)+2p1+_3 %/"1 y'    NB. arrays OK, 0{:"1 y)*(*{."1 y)'  NB. _1p1 For example: (180%1p1)* atan2 1 1 45 (180%1p1)* atan2 _1 _1 225 (180%1p1)* atan3 1 1 45

Re: [Jprogramming] media/wav

2022-04-03 Thread J. Patrick Harrington
a .wav reader/writer here: https://github.com/mlochbaum/JSound/blob/master/wav.ijs It only works on fairly basic files, and I'm not maintaining it any more, but it could be worth a try. Marshall On Sun, Apr 03, 2022 at 02:19:48PM -0400, J. Patrick Harrington wrote: I have been investigating some dat

Re: [Jprogramming] media/wav

2022-04-03 Thread J. Patrick Harrington
And still further, load 'media/wav/view' wavview 'name.wav' works under Ubuntu Linux for the test1.wav file (opens viewing window, etc.) but fails for my file -- maybe a size issue. Yes, because it does work for my "black-2x,wav' file. Which has a size of 1222011. And 2 wavfile loads the

Re: [Jprogramming] media/wav

2022-04-03 Thread J. Patrick Harrington
.  It's possible there are nonstandard chunks in the file which are messing the parser up.  Try running e.g. 'ffmpeg -i x.wav y.wav', if your file is x.wav, and see if you have better luck processing y.wav.  -E On Sun, 3 Apr 2022, J. Patrick Harrington wrote: I have been investigating some data

Re: [Jprogramming] media/wav

2022-04-03 Thread J. Patrick Harrington
.  It's possible there are nonstandard chunks in the file which are messing the parser up.  Try running e.g. 'ffmpeg -i x.wav y.wav', if your file is x.wav, and see if you have better luck processing y.wav.  -E On Sun, 3 Apr 2022, J. Patrick Harrington wrote: I have been investigating some

[Jprogramming] media/wav

2022-04-03 Thread J. Patrick Harrington
I have been investigating some data in the form of .wav files taken with a compact digital audio recorder. In the addons I found the tools by Oleg K under media/wav. One limitation is that they seem to work only under windows. I normally work under Ubuntu linux or even Mac OS. I do have a PC

Re: [Jprogramming] J903 - linux glibc version

2021-05-16 Thread J. Patrick Harrington
Thanks for the explanation & the rationale behind the change. I have been running Ubuntu 16.04 for longer than I realized. Installing a new Ubuntu always comes with some broken features which take time to fix. But I did install Ubuntu 20.04 a few days ago. First, all the icons on the desktop

Re: [Jprogramming] J903-beta-i

2021-05-08 Thread J. Patrick Harrington
I just did the upgrade from j903-beta-h (or whatever the previous beta was) and while it seemed to upgrade OK, now j903 fails: jph@jph-XPS-13-9300:~$ cd j903/bin/ jph@jph-XPS-13-9300:~/j903/bin$ ./jqt Load library /home/jph/j903/bin/libj.so failed: jph@jph-XPS-13-9300:~/j903/bin$ ./jconsole

[Jprogramming] Fwd: Fwd: read failure on Mac j903 beta-h

2021-04-09 Thread J. Patrick Harrington
I sent this message from an account which I think is unknown to the j forum.  Hope it doesn't appear twice. Forwarded Message Subject:Fwd: read failure on Mac j903 beta-h Date: Fri, 9 Apr 2021 14:14:33 -0400 From: JAMES PATRICK HARRINGTON To:

[Jprogramming] cube roots of negative numbers

2021-02-03 Thread J. Patrick Harrington
I was wondering about the rational for the choice of the cube root returned for a negative number. I expected the real root to be returned, e.g., (_8)^(%3) --> _2  but J gives 1j1.73205. This is the case in other languages as well, so no doubt there is a mathematical justification for this. In

Re: [Jprogramming] problem setting text font in plots

2020-08-05 Thread J. Patrick Harrington
Thanks Chris, All is good now. Glad to help squash a bug. Patrick On 8/5/20 10:47 AM, chris burke wrote: 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

[Jprogramming] problem setting text font in plots

2020-08-04 Thread J. Patrick Harrington
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 of the code: xc=. }: 1p1*int01 2000 sx=. 0.85*sin xc cx=. 0.85*cos xc pd 'reset' pd options pd

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
which is 66 times slower. Both give same results. Patrick On Sat, 8 Feb 2020, J. Patrick Harrington wrote: And a little more noise: u=. 1e6 3$rand 3e6 v=. 1e6 3$rand 3e6 ts'z1=. u cross"(1 1) v' 0.88737 3.35571e7 ts'z2=. u cp"(1 1) v' 2.12978 3.3558e7 ind=. 3e5+ i. 4 i

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
_0.294769 0.605469 _0.617259 ind{z2 _0.0415101 0.458711 _0.371054 _0.0240905 _0.0474326 0.0622632 0.108878 _0.558303 0.207895 _0.294769 0.605469 _0.617259 So u cross"(1 1) v is faster. But u cross v is broken. Will look into that :-( On Sat, 8 Feb 2020, J. Patrick Harrington wrote

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
Oh-oh. I've screwed something up. We can get correct results for arrays thus u cp"(1 1) v which agrees with u cross"(1 1) v but seems *not* to agree with my u cross v I'll need to look into this! And into timings. Sorry for the noise... Patrick On Sat, 8 Feb 2020, J. Patrick

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
of vectors as part of Monte Carlo scattering computations, so it must be fast. Patrick On Sat, 8 Feb 2020, R.E. Boss wrote: https://code.jsoftware.com/wiki/Phrases/Matrices#Vector_cross_product R.E. Boss -Oorspronkelijk bericht- Van: Programming Namens J. Patrick Harrington Verzonden

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
Note that the Complete Tensor formula gives a left-handed result, i.e., x-axis cross y-axis = negative z-axis CT =: C.!.2 @ (#:i.) @ $~ ip=: +/ .* crossCT=: [ ip CT@#@[ ip ] 1 0 0 crossCT 0 1 0 0 0 _1 while cross=: ((1: |.[)*(_1: |. ]))-((_1: |.[)*(1:|.])) 1 0 0 cross 0 1

Re: [Jprogramming] cross product of two vectors

2020-02-08 Thread J. Patrick Harrington
Something I've used on big arrays is this: cross=: ((1: |.[)*(_1: |. ]))-((_1: |.[)*(1:|.])) E.g. v=. 2 1 7 u=. _3 4 _1 u cross v 29 19 _11 rand=: ?@# 0: u=. 1e6 3$rand 3e6 v=. 1e6 3$rand 3e6 ts'z=. u cross v'NB. time & space 0.054138 1.00665e8 $z 100 3 Give it

Re: [Jprogramming] 901-beta-s

2019-12-03 Thread J. Patrick Harrington
I assumed it should have been 'upgrade' jpkg 'jengine' and that worked for me. Patrick On Tue, 3 Dec 2019, 'Mike Day' via Programming wrote: I hadn't noticed the new method,  and used the old one,  same as you - but now you mention it,  Eric's advice looks strange in Thunderbird,  with only

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-13 Thread J. Patrick Harrington
Bill, Thank you for an impressive display of detective work! -Patrick -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-13 Thread J. Patrick Harrington
a CID font such as pd 'captionfont MSung-Light 15' Then plot will encode the text as 16-bit ucs unicode which is the encoding expected by acrobat and output is ok. Thu, 13 Jun 2019, J. Patrick Harrington написал(а): I generated a pdf file of the plot using j807 in Ubuntu and find it also produces a plot

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-12 Thread J. Patrick Harrington
I generated a pdf file of the plot using j807 in Ubuntu and find it also produces a plot with the 1/4 character -- and again pd 'show' displays the figure with μ correctly. At this point, I haven't a clue ... On Thu, 13 Jun 2019, J. Patrick Harrington wrote: Bill, Ubuntu does use evince

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-12 Thread J. Patrick Harrington
support. On Ubuntu it may use evince as pdf reader, you can try another pdf reader to open the ~/temp/plot.pdf to see if it works. On Wed, Jun 12, 2019, 11:49 PM J. Patrick Harrington wrote: I would like to put a Greek \mu (μ) in the y-axis label of a plot. If I just cut & paste the sy

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-12 Thread J. Patrick Harrington
On Wed, 12 Jun 2019, Brian Schott wrote: I find that does produce the μ for pd 'show', but I still get that 1/4 character in the pdf file generated by pd 'pdf'. When I entered the result of the following line (shown) into vim, it produced µ . 'ycaption Polarization (-Q/I) for ',(5 u: 'µ'),'

Re: [Jprogramming] Greek letters in plot titles, axis labels

2019-06-12 Thread J. Patrick Harrington
dcopy to print it, the result shows an upside down ? in the pdf preview where the µ was. But if I copy that line in vim and use vim's r for replace and enter µ, the copied line prints correctly while the original has inverted ?. Mac OS. On Wed, Jun 12, 2019 at 11:49 AM J. Patrick Harrington wr

[Jprogramming] Greek letters in plot titles, axis labels

2019-06-12 Thread J. Patrick Harrington
I would like to put a Greek \mu (μ) in the y-axis label of a plot. If I just cut & paste the symbol it looks OK in the pd command pd 'ycaption Polarization (-Q/I) for μ = 0.1' and when I do pd'show' or pd'jpg' the result is fine, but pd'pdf' gives a 1/4 character instead of μ. Any

Re: [Jprogramming] splines

2019-03-17 Thread J. Patrick Harrington
I use splines all the time for various puposes. You can find a bunch of variations on my web page at http://www.astro.umd.edu/~jph/splines.ijs There is also a least squares spline routine on my page (http://www.astro.umd.edu/~jph/J_page.html) down at the bottom. I've not compared these with the

Re: [Jprogramming] Jupyter Versions of J Labs

2019-01-30 Thread J. Patrick Harrington
Just a note on my experience with Jupyter. My main computer is a Dell XPS-13 running Ubuntu 18.04.1 (upgraded from the 16.04 that was factory installed). Python is version 3.6.3. I had installed Jupyter over a year ago for an "astropy" workshop, so all I needed to do was put "jkernel" in

Re: [Jprogramming] 807 release-b bug fix

2019-01-22 Thread J. Patrick Harrington
Hey! I have had this plot problem with 807 on my mac mini (novax). Never had time to run it down, thought it was my code. But this fixed it! Thanks indeed! Patrick On Tue, 22 Jan 2019, Joey K Tuttle wrote: After update, nonavx and avx versions produce expected plot results - thanks for the

Re: [Jprogramming] J807 beta-g available

2018-07-04 Thread J. Patrick Harrington
Just installed beta-g JVERSION Engine: j807/j64/linux Beta-g: commercial/2018-07-02T12:43:58 Library: 8.07.16 Qt IDE: 1.7.1/5.5.1 Platform: Linux 64 Installer: J807 install Most things I've tried seem OK. But the Fast Fourier Transform lab still crashes as before. Does anyone know how to

Re: [Jprogramming] 807 beta-e zip install packages for windows/linux/macos

2018-05-30 Thread J. Patrick Harrington
to correct the cd usage. One possibility is to step through 807 side-by-side with 806 and see where things go bad. On Wed, May 30, 2018 at 11:53 AM, J. Patrick Harrington wrote: My last message about my linux (Ubuntu) laptop with missing labs was my error -- I had somehow started the j805

Re: [Jprogramming] 807 beta-e zip install packages for windows/linux/macos

2018-05-30 Thread J. Patrick Harrington
take a few seconds to run. )" and then crashing. FYI, Mike On 29/05/2018 21:57, J. Patrick Harrington wrote: > > Just installed j64-807 (nonavx) on an old windows machine. > Trying some things, I ran the Fast Fourier Transform lab. As soon as it > got to the part where

Re: [Jprogramming] 807 beta-e zip install packages for windows/linux/macos

2018-05-29 Thread J. Patrick Harrington
did not try on windows. Ср, 30 мая 2018, bill lam написал(а): sorry, this had been reported previously but no time to look then. I'll take a look . On Wed, May 30, 2018, 4:57 AM J. Patrick Harrington wrote: > Just installed j64-807 (nonavx) on an old windows machine. > Trying some things,

Re: [Jprogramming] 807 beta-e zip install packages for windows/linux/macos

2018-05-29 Thread J. Patrick Harrington
Just installed j64-807 (nonavx) on an old windows machine. Trying some things, I ran the Fast Fourier Transform lab. As soon as it got to the part where it should compute a complex transform, it crashes. That lab runs fine in under j64-806 (nonavx). On Sat, 26 May 2018, Eric Iverson wrote: The

Re: [Jprogramming] 807 beta-e zip install packages for windows/linux/macos

2018-05-27 Thread J. Patrick Harrington
Just installed 807 e on my Ubuntu-running laptop & my old mac-mini. This was the smoothest install ever. No issues yet. Great work guys! On Sat, 26 May 2018, Eric Iverson wrote: The 807 beta-e zip install packages for windows/linux/macos are available. Henry has done a lot more work to

Re: [Jprogramming] Astronomical FITS Image viewer

2018-04-23 Thread J. Patrick Harrington
Thomas, Just wanted to say that I find this very interesting. As an astronomer, I have lots of .fits data from HST observations. I've not worked with them for a while -- when I did I used IDL routines written by Space Telescope staff. If I were to go back to them now, I probably would use

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-27 Thread J. Patrick Harrington
rver.  There is no "arch"   It seems that the old Greeks had it right- as ships went off into the distance, they didn't just shrink and remain whole but would also disappear gradually from the  bottom up. What Patrick Harrington said is at the core of what is actually observed. Don Kelly On 20

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-26 Thread J. Patrick Harrington
The way to avoid loss of accuracy is to expand in a binomial series: D = R - √(R²-L²) = R[ 1 - (1 - (L/R)^2)^(1/2)] = R[ 1 - (1 -(1/2)(L/R)^2 + ...)] = (1/2) L*L/R and thus ]D=. -:L*L%R 1.76384e_9 On Tue, 27 Feb 2018, Ian Clark wrote: In "The Curious Incident of the Dog in the

Re: [Jprogramming] How accurate is (o.) for arguments close to 0 or 1?

2018-02-26 Thread J. Patrick Harrington
Indeed. The (ideal) distance to the horizon (the point where your line of sight is tangent to the spherical ocean surface) depends upon your height above the surface of the ocean. That would have to enter into your formula. The curvature would be easy to see from the space station... Patrick

Re: [Jprogramming] python

2018-02-17 Thread J. Patrick Harrington
Eric, I'm interested in this. Python is the fastest growing language with astronomers -- the astropy package has really useful routines. I don't really understand much about this, but I put j.py and j_config.py into my python3 directory & edited the paths in j_config.py. Starting python3,

Re: [Jprogramming] Strange behavior of 0x1

2017-12-16 Thread J. Patrick Harrington
0x1 2.71828 9!:14'' j806/j64/linux/release/commercial/www.jsoftware.com/2017-11-06T09:54:01 and same result on the nonavx version of 806 on my mac. On Sat, 16 Dec 2017, Henry Rich wrote: When I try it (on a couple of different J versions) I get    0x1 0    0x0 0 etc. If your error

Re: [Jprogramming] Question about foreign 2!:0

2017-11-26 Thread J. Patrick Harrington
nded to all those years ago. - joey On 2017Nov 25, at 12:14, chris burke <cbu...@jsoftware.com> wrote: hostcmd_j_ is Joey's cover for 2!:0, e.g. see www.jsoftware.com/pipermail/programming/2017-April/047204.html On Sat, Nov 25, 2017 at 12:06 PM, J. Patrick Harrington <j...@astro.u

Re: [Jprogramming] Question about foreign 2!:0

2017-11-25 Thread J. Patrick Harrington
Sorry, I meant "returning with no screen output' I am now running the full program with hostcmd_j_ for 2!:0. It's chugging away, hasn't failed yet. :-) On Sat, 25 Nov 2017, J. Patrick Harrington wrote: Chris, That test works. I just tried hostcmd_j_ '../synmod.exe < fort.5

Re: [Jprogramming] Question about foreign 2!:0

2017-11-25 Thread J. Patrick Harrington
writes~ y H fwrites~ '' hostcmd_j_ F,' < ',G,' > ', H smoutput freads H ) foo 'hello' On Sat, Nov 25, 2017 at 10:22 AM, J. Patrick Harrington <j...@astro.umd.edu> wrote: Chris, I have finally got back to my mac to test this. I have installed the latest j806 to make su

Re: [Jprogramming] Question about foreign 2!:0

2017-11-25 Thread J. Patrick Harrington
sion is left in the /home/tages/tlusty205/synspec/jph directory. Patrick On Thu, 23 Nov 2017, bill lam wrote: You can try executing the cmd in bash shell to verify whether it actually work on the other machine. Also check the cwd in J session to see it is correct. On Nov 23, 2017 12:54 A

Re: [Jprogramming] Question about foreign 2!:0

2017-11-23 Thread J. Patrick Harrington
/t1.sh' F fwrites~ '#!/bin/bash',LF,'sleep 2',LF,'echo "done"' fmakex F foo=: 3 : 0 echo 2!:0 F echo 2+3 ) foo'' On Wed, Nov 22, 2017 at 7:28 PM, J. Patrick Harrington <j...@astro.umd.edu> wrote: Bill, I've tried that. ../synmod.exe < fort.5 > fort.6 in a terinal wi

Re: [Jprogramming] Question about foreign 2!:0

2017-11-22 Thread J. Patrick Harrington
, bill lam wrote: You can try executing the cmd in bash shell to verify whether it actually work on the other machine. Also check the cwd in J session to see it is correct. On Nov 23, 2017 12:54 AM, "J. Patrick Harrington" <j...@astro.umd.edu> wrote: A>>A problem has surf

[Jprogramming] Question about foreign 2!:0

2017-11-22 Thread J. Patrick Harrington
A problem has surfaced which has me puzzled. I have written a program which needs the results of another program, synmod.exe, which reads in a file, executes for a few seconds, and writes the results to the file fort.6 (synmod.exe is my modification of a 10,000 line fortran program). The

Re: [Jprogramming] Natural Language Processing

2017-11-08 Thread J. Patrick Harrington
Hi Skip, ML (Machine Learning) is a really hot topic and we all need to know something about it since it will more and more affect our lives. I've been sitting in on a course here at U of Maryland called "Machine Learning for Physicists". I can't follow it at depth, but it is an

Re: [Jprogramming] [Jbeta] request a new forum for number representation issue???

2017-10-10 Thread J. Patrick Harrington
Not "real world", more "out ot this world". I use J for most of my exploratory calculations in astrophysics. E.g., http://www.astro.umd.edu/~jph/J_page.html Cheers, Patrick On Tue, 10 Oct 2017, Rob B wrote: My many trips around the J home website have given me the impression that J is very

Re: [Jprogramming] J for iOS

2017-08-09 Thread J. Patrick Harrington
Eric, I get the same results as Joey. In addition, names_jj_ 0 PASS SERVER TAR URL posttemplate and PASS has the password I entered and SERVER has 192.168.0.19:65001 Patrick On Wed, 9 Aug 2017, Joey K Tuttle wrote: VERSION_j_ 701.1 2 jj |value error: jj

Re: [Jprogramming] J iOS at Apple App Store

2017-07-09 Thread J. Patrick Harrington
? On Wed, Jul 5, 2017 at 2:59 PM, J. Patrick Harrington <j...@astro.umd.edu> wrote: Thank you Eric! I've just tried j701 on my iPhone 6+. The new keyboard is a *vast* improvement making the entry of the most common characters much more convenient. My phone was jailbroken for years, whic

Re: [Jprogramming] J iOS

2017-07-05 Thread J. Patrick Harrington
Sorry, I didn't see the lower part of the ? notes. Thanks. On Wed, 5 Jul 2017, Eric Iverson wrote: scroll to near the end of the blue ? page and you will see a section 'customize J at start up'. Short answer. enter: je'startup' On Wed, Jul 5, 2017 at 4:38 PM, J. Patrick Harrington &l

[Jprogramming] J iOS

2017-07-05 Thread J. Patrick Harrington
Eric, Is there a file which j701 reads on startup, or is there another way to avoid having to type load 'my_profile' every time? Patrick -- For information about J forums see

Re: [Jprogramming] J iOS at Apple App Store

2017-07-05 Thread J. Patrick Harrington
Thank you Eric! I've just tried j701 on my iPhone 6+. The new keyboard is a *vast* improvement making the entry of the most common characters much more convenient. My phone was jailbroken for years, which made it easy to move files onto the J app, but eventually I was forced to upgrade to

Re: [Jprogramming] Jqtide on Ubuntu - keyboard shortcuts bug

2017-05-24 Thread J. Patrick Harrington
export UBUNTU_MENUPROXY= QT_QPA_PLATFORMTHEME=appmenu-qt5 inside your ~/.profile it may need to log out and then log in again to take effect. Ср, 24 май 2017, J. Patrick Harrington написал(а): Bill, I just put the new lines in jqt.sh with the following results: Starting jqt from the icon

Re: [Jprogramming] Jqtide on Ubuntu - keyboard shortcuts bug

2017-05-24 Thread J. Patrick Harrington
Ср, 24 май 2017, J. Patrick Harrington написал(а): I second this question. I run J on my laptop under Ubuntu 16.04. I have never found a way to enter Ctrl+J to advance labs. I have to click on Help -> Studio -> Advance. Not at all easy to go through the labs. JVERSION Engine: j806/j64

Re: [Jprogramming] Jqtide on Ubuntu - keyboard shortcuts bug

2017-05-24 Thread J. Patrick Harrington
I second this question. I run J on my laptop under Ubuntu 16.04. I have never found a way to enter Ctrl+J to advance labs. I have to click on Help -> Studio -> Advance. Not at all easy to go through the labs. JVERSION Engine: j806/j64avx/linux Beta-1: commercial/2017-03-09T10:14:43 Library:

Re: [Jprogramming] J805 -- advance shortcut

2017-01-08 Thread J. Patrick Harrington
jqt. Perhaps this is related Qt Library or desktop. Вс, 08 янв 2017, J. Patrick Harrington написал(а): I'm running jqt under Ubuntu 16.04 on a Dell XPS laptop. I'd like to work through the labs, but the shortcut which is supposed to be Ctrl-J has no effect on this machine. I've tried other

[Jprogramming] J805 -- advance shortcut

2017-01-08 Thread J. Patrick Harrington
I'm running jqt under Ubuntu 16.04 on a Dell XPS laptop. I'd like to work through the labs, but the shortcut which is supposed to be Ctrl-J has no effect on this machine. I've tried other key combinations, but nothing seems to work. I can use the Help>Studio>Advance menu, but that's rather

Re: [Jprogramming] J805 - install it! - for macOS Sierra, must edit sierra-fix.command

2016-12-20 Thread J. Patrick Harrington
if everything is OK. Regards, Patrick On Wed, 21 Dec 2016, bill lam wrote: try install the required package from distro, e.g. sudo aptitude install libqt5websockets5 On 21 Dec, 2016 1:03 am, "J. Patrick Harrin

Re: [Jprogramming] J805 - install it! - for macOS Sierra, must edit sierra-fix.command

2016-12-20 Thread J. Patrick Harrington
Oh! that's what's going on. I have a mac-mini running the latest OS (10.12.2) and I got the same junk from sierra-fix command. I ended up defining executable files with contents like: /Applications/j64-805/bin/jqt.command & /Applications/j64-805/bin/jconsole

Re: [Jprogramming] installing 805 -j805 beta 2016-11-23: app icon i ssues

2016-11-30 Thread J. Patrick Harrington
So how do I create a J icon for jqt? I get the jc805 and jhs805 icons, but the only way I can start qt is to click on the jqt.command file in j64-805/bin/ The green jqt.app icon in j64-805 does nothing and the "jqt" file in j64-805/bin/ throws up a window that says: Js-Mac-mini:~ jph$

[Jprogramming] j805 problem with linux

2016-07-22 Thread J. Patrick Harrington
I've just tried installing j64-805 on my linux box and have run into a problem. The linux distribution we are running in the department here is "Red Hat Enterprise Linux Server release 7.2 (Maipo)" When I start jconsole I get: Juno: ./jconsole.sh |noun result was required | 0=1!:4

Re: [Jprogramming] making rotation matrices

2016-07-13 Thread J. Patrick Harrington
-- Raul On Wed, Jul 13, 2016 at 12:42 AM, J. Patrick Harrington <j...@astro.umd.edu> wrote: That was even worse. All the LF's or CR's being removed. I have been loading a file -- here's one last try, typed by hand :-( - qRot=: dy

Re: [Jprogramming] making rotation matrices

2016-07-12 Thread J. Patrick Harrington
That was even worse. All the LF's or CR's being removed. I have been loading a file -- here's one last try, typed by hand :-( - qRot=: dyad define 'u w'=. y u=. u*sin-:w t=. +: u cross x x+ (t*cos-:w)+ u cross t ) L=: +/"1 &. (*:"_)

Re: [Jprogramming] making rotation matrices

2016-07-12 Thread J. Patrick Harrington
Rats! The code I posted was mangled by the mailer. This time I'll leave out the comments. -- qRot=: dyad define 'u w'=. y u=. u*sin-:w t=. +: u cross x x+ (t*cos-:w)+ u cross t ) L=: +/"1 &. (*:"_) norm=: ] % L cross=: (([:

Re: [Jprogramming] making rotation matrices

2016-07-12 Thread J. Patrick Harrington
I don't know what I was thinking when I posted yesterday about quaternion based rotations, but that was an old routine that I've replaced by this one, which is simpler. Sorry to continue a somewhat off-topic post. -- NB. Rotate n

Re: [Jprogramming] making rotation matrices

2016-07-11 Thread J. Patrick Harrington
I do a lot of rotations, and usually use quaternions. Experts say they do not suffer from "gimbal lock" which can occur with Euler angles. I know this is not the form you asked about, but just to throw this out there, here's what I use:

Re: [Jprogramming] ic/ 3!:4 on osX

2015-08-25 Thread J. Patrick Harrington
Same result on OS 10.10.5 2ic 1633837924 101 dcbae JVERSION Engine: j803/2014-10-19-11:11:11 Library: 8.04.11 Qt IDE: 1.4.5/5.4.2 Platform: Darwin 64 Installer: J804 install InstallPath: /users/jph/j64-804 On Tue, 25 Aug 2015, 'Pascal Jasmin' via Programming wrote: Does this result also

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
I've no idea how I would do that. It's been years since I've done anything but run verbs that I developed on my laptop and then copied over to the iPhone. On Sat, 11 Jul 2015, bill lam wrote: Can the new iPhone run pacman? --

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
But 1000 ts '%. a 0.00203444 239040 Hmmm... On Fri, 10 Jul 2015, J. Patrick Harrington wrote: a=. 50 50$ rand 2500 10 ts '%. a' 0.0049867 239040 (ts=: 6!:2 , 7!:2@]) -- For information about J forums see

[Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
I've just upgraded my old iPhone 4S to a new 6 Plus. It's still small enough to fit in my pocket, and the extra screen real estate makes running J nicer. Of course the new phone comes with the current version of iOS: 8.4. Thinking it would be the easiest way to move files in and out of J, I

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
/JKT_Benchmark On Fri, Jul 10, 2015 at 1:22 PM, J. Patrick Harrington j...@astro.umd.edu wrote: I've just upgraded my old iPhone 4S to a new 6 Plus. It's still small enough to fit in my pocket, and the extra screen real estate makes running J nicer. Of course the new phone comes with the current

Re: [Jprogramming] Solving Differential Eqns with J

2015-03-13 Thread J. Patrick Harrington
Jon, If you are looking for a standard numerical solution, here are is the standard Runge-Kutta approach, translated to J from Fortran: http://www.astro.umd.edu/~jph/runge_kutta.ijs and for stiff diff-eq's: http://www.astro.umd.edu/~jph/stiff.ijs As applied to the classic astrophysics

[Jprogramming] Plots: font size of captions

2014-11-18 Thread J. Patrick Harrington
(I apologize in advance for not digging into the available documentation.) I'm trying to make some plots for a scientific poster without going outside J. Using the wd commands I can do almost all I want, and with wd 'pdf', generate a portable figure to drag into my poster. But ... The numbers

Re: [Jprogramming] Plots: font size of captions

2014-11-18 Thread J. Patrick Harrington
Brian, Thanks so much: titlefont, labelfont captionfont are exactly what I needed. I still have to figure out the geek characters, but I can always spell them out :-( Patrick On Tue, 18 Nov 2014, Brian Schott wrote: Patrick, If you search on the

Re: [Jprogramming] Plots: font size of captions

2014-11-18 Thread J. Patrick Harrington
. Patrick On Tue, 18 Nov 2014, J. Patrick Harrington wrote: When I do a. i. 'mu' (can't type the mu on this limux box), I get 194 181 This is true on my Macbook Pro for both J602 J802. On Tue, 18 Nov 2014, Marshall Lochbaum wrote: To clarify, I'm working

Re: [Jprogramming] Plots: font size of captions

2014-11-18 Thread J. Patrick Harrington
:00PM -0500, J. Patrick Harrington wrote: When I do a. i. 'mu' (can't type the mu on this limux box), I get 194 181 This is true on my Macbook Pro for both J602 J802. On Tue, 18 Nov 2014, Marshall Lochbaum wrote: To clarify, I'm working on Linux. Marshall On Tue, Nov 18, 2014 at 03:09:36PM

Re: [Jprogramming] New JQt binaries

2014-08-02 Thread J. Patrick Harrington
Chris, I saw this email and just plunged ahead to install the update on my MacBook Pro running OS 10.6.8. Steps 1 2 went fine, though it tool a rather long time for the download of the Qt binaries. But, when I tried to start jqt, I get: [Uni:~/j64-802/bin] jph% jqt dyld: Library not

Re: [Jprogramming] Tacit J and indexed replacement

2014-07-06 Thread J. Patrick Harrington
/Vocabulary/quotem) On Sun, Jul 6, 2014 at 3:51 PM, J. Patrick Harrington j...@astro.umd.edu wrote: Too bad that only works for the few constant functions: _9: _8: ... 0: 1: ... 9: so am=: 13 : 'x 8:`[`]}y' 3 am i. 11 0 1 2 8 4 5 6 7 8 9 10 but you can't use a general value: am=: 13 : 'x

Re: [Jprogramming] sort times

2014-07-05 Thread J. Patrick Harrington
On my MacBook Pro, 2.4 GHz Intel Core 2 Duo: JVERSION Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29 Library: 8.02.10 Qt IDE: 1.1.3/5.3.0 Platform: Darwin 64 Installer: J802 install InstallPath: /users/jph/j64-802 x=: 1e6 $ ' ' y=: a. {~ ? 1e6 $ 256 %/ 100 (6!:2) '/:~x' ;

[Jprogramming] Multiple assignments

2014-05-25 Thread J. Patrick Harrington
I've always liked this economy of assignment: 'e f g'=. s=. 1 2;3 4;5 6 f 3 4 e 1 2 -- but I wondered if it were possible to extend this where the left hand side is not explicit: abc=. 'a';'bb';'ccc' ┌─┬──┬───┐ │a│bb│ccc│ └─┴──┴───┘ I found I could make a single assignment: (1{abc)=.

Re: [Jprogramming] Multiple assignments

2014-05-25 Thread J. Patrick Harrington
/2014 12:58 PM, J. Patrick Harrington wrote: I've always liked this economy of assignment: 'e f g'=. s=. 1 2;3 4;5 6 f 3 4 e 1 2 -- but I wondered if it were possible to extend this where the left hand side is not explicit: abc=. 'a';'bb';'ccc' ┌─┬──┬───┐ │a│bb│ccc│ └─┴──┴───┘ I found I

Re: [Jprogramming] Rkf45

2014-05-07 Thread J. Patrick Harrington
Sorry, forgot the link! http://www.astro.umd.edu/~jph/runge_kutta.ijs On Wed, 7 May 2014, J. Patrick Harrington wrote: Here is a Runge Kutta integrator (using the Cash-Karp 5th order method) that I know works. But it is very un-J-like: I just transcribed the Fortran from Numerical Recipes

Re: [Jprogramming] apl character support

2014-02-28 Thread J. Patrick Harrington
The idea of J with APL (or APL-like) characters is a perennial topic. Many of us (myself included) feel that there is a beauty in those symbols. But I don't think the Jsoftware group should devote *any* time to such a project. (And I don't think there is any danger of that.) There are other

Re: [Jprogramming] create matrix from diagonal

2014-02-26 Thread J. Patrick Harrington
even shorter: diag4=: *=@\: diag4 9 7 5 3 9 0 0 0 0 7 0 0 0 0 5 0 0 0 0 3 Patrick On Wed, 26 Feb 2014, km wrote: (*0 1 =@i.@#) 1 2 3 1 0 0 0 2 0 0 0 3 --Kip Murray Sent from my iPad On Feb 26, 2014, at 9:35 PM, Roger Hui rogerhui.can...@gmail.com wrote: diag=: 3 :

Re: [Jprogramming] fifth heart curve

2014-02-14 Thread J. Patrick Harrington
and a thicker line: 'pensize 4; color red' plot ... On Fri, 14 Feb 2014, Joe Bogner wrote: Thanks! That did it On Fri, Feb 14, 2014 at 11:34 AM, Jan-Pieter Jacobs janpieter.jac...@gmail.com wrote: Same thought here! try 'color red' plot Jan-Pieter 2014-02-14 17:32 GMT+01:00 Joe

Re: [Jprogramming] Lapack on 64-bit Macs

2013-08-22 Thread J. Patrick Harrington
Great! Lapack now runs on my MacBook Pro under j64-801 qtide. So I can start using j801 for everything. The only problem I see is that the menu displaying the list of routines fails: docs_jlapack_ shows a window with a list of the lap files. ) labs_run_jqtide_ 0 ── (10 of 22) LAPACK (ctd)

[Jprogramming] Tie entry on J iOS ?

2013-06-26 Thread J. Patrick Harrington
How do you enter ` (tie) to make a gerund on an iPhone? It doesn't seem to be on the keyboard. Patrick -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Tie entry on J iOS ?

2013-06-26 Thread J. Patrick Harrington
with the iPad. For now you'll have to cut/paste or define a name and use the name. Eventually I guess we could kludge the use of one of the monetary symbols on the keyboard. Are there other missing keys? Does a google search show anything? On Wed, Jun 26, 2013 at 11:37 AM, J. Patrick Harrington j

[Jprogramming] Limits of J iOS - not!

2013-06-14 Thread J. Patrick Harrington
I continue to be surprised by the ability of J on the iPhone to run rather substantial programs. I have a J version of a program to compute photoionization models of planetary nebulae. It has a main section of 500 lines or so and calls about 30 other verbs and data sets. One of these (2D grids

Re: [Jprogramming] J iOS content transfe

2013-06-11 Thread J. Patrick Harrington
Eric, I just tried this method with the corrected isox.ijs, and it does work for me, running j701 on the laptop. Nice. Patrick On Tue, 11 Jun 2013, Eric Iverson wrote: There was a serious typo in the last message for updating J iOS. The

  1   2   >