Re: [Jprogramming] Replace one item of a list

2014-09-09 Thread Ian Clark
Roger's confidence that (a=: 100 (2}) a) is the best way is due to his knowledge that J has special support for this construct, provided the same name (viz. a) is used on both sides of the copula. Then it actually does in-place updating (even though, at face value, J syntax does not permit such a t

Re: [Jprogramming] Replace one item of a list

2014-09-10 Thread Ian Clark
>> Then it actually does in-place updating (even though, at face value, J syntax does not permit such a thing). > Please explain why this is not permitted by J syntax. My use of the word "permit" was misleading -- "suggest' might have been better. Roger is right to challenge me on that point. Wh

Re: [Jprogramming] Replace one item of a list

2014-09-10 Thread Ian Clark
will > be overkill, and we'll show you other ways to express yourself. > > -Dan > > - Original Message --- > > Subject: Re: [Jprogramming] Replace one item of a list >From: Ian Clark >Date: Wed, 10 Sep 2014 16:18:34 +0100 > To: programm..

Re: [Jprogramming] cut with multiple subarrays

2014-12-09 Thread Ian Clark
Joe Bogner wrote: I don't know if cut ;.3 would help. I don't really understand the nuvoc entry or dictionary for it ( http://www.jsoftware.com/jwiki/Vocabulary/semidot3#dyadic or http://www.jsoftware.com/help/dictionary/d331.htm) Hahaha! ...Nor do I, now I come to look at it with fresh eyes. I'

Re: [Jprogramming] nth digit of pi

2015-01-06 Thread Ian Clark
Vital reading is chapter 17 of "At Play With J", by Eugene McDonnell http://www.jsoftware.com/jwiki/At%20Play%20With%20J Here's my resultant page of notes made back in 2010. Touches on the points in this thread: See: Contact, by Carl Sagan, for a novel pivoting heavily on finding patterns in pi.

Re: [Jprogramming] nth digit of pi

2015-01-07 Thread Ian Clark
gt; 1. The variable for storing 1000 digits is named g1000 whereas others are > named q30, q100, q1000, and q3000. > 2. You mention the consecutive digits formula correctly in the mail but > it's wrong on the page. There's no d1000 defined on the page. > > Sorry fo

[Jprogramming] Refreshing a browser window in J

2015-01-28 Thread Ian Clark
I note that in JQt the following will run the file: index.htm in the default browser window/tab (e.g.Firefox): launch 'file:///Users/ianclark/Desktop/index.htm' NB. Mac file naming conventions Now suppose I write out an updated copy of index.htm from my J app. How can I now refresh the brows

Re: [Jprogramming] Bit Shifting

2015-01-31 Thread Ian Clark
Convert to binary array and back (or any other base) by using #. and #: as you say. Then use dyad: Shift (x |.!.f y) to shift the entries of y by the number of positions x. Operand f is the "fill atom" you want to use, f=0 if you want to fill vacated positions with 0s. See Nuvoc: Rotate/Shift: htt

[Jprogramming] Tea-tasting for non-statisticians

2015-02-24 Thread Ian Clark
Addon 'stats/base/distribution' defines the verb: binomialprob. Am I using it correctly? Please cast a beady eye over my train of thought, as I've set it out below... I've written an app in J to administer a double-blind test which reruns the classic experiment described by David Salsburg in "The

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-25 Thread Ian Clark
@Henry -- thanks for your comments. Great! IMO this is just the sort of discussion I would like to see aired in public. Though maybe do the more philosophical stuff in Chat? Ideally I would like a summary of the J community's findings documented on a Jwiki page for wider consumption. Further comm

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-25 Thread Ian Clark
t; Cc: >> Sent: Wednesday, February 25, 2015 1:36 AM >> Subject: Re: [Jprogramming] Tea-tasting for non-statisticians >> >> binomialprob returns the probability that the number of successes will be >> >: given amount. >> >> This is not quite the same as confidence

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-25 Thread Ian Clark
; > Please see http://www.jsoftware.com/jwiki/Guides/J8%20Standalone > > On 25 February 2015 at 06:09, Ian Clark wrote: > >> @Henry -- thanks for your comments. Great! >> >> IMO this is just the sort of discussion I would like to see aired in >> public. Though mayb

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-25 Thread Ian Clark
nd he is > correct every time. > > 3) A drunken friend claims to be able to predict the result of a coin > toss. You test him ten times and he is correct every time. > > Since the empirical evidence in all three cases is identical, why would we > not believe all three hypothes

Re: [Jprogramming] Tea-tasting for non-statisticians

2015-02-27 Thread Ian Clark
gt; >> | (wd ::(''"_)'qer') (13!:8)3 >> > >> >> > >> However, if I type wd on my ide session I get >> > >>wd >> > >> 3 : 0"1 >> > >> smoutput^:(1> > >> 

Re: [Jprogramming] New dissect, with built-in help and debugger support

2015-03-06 Thread Ian Clark
Henry, you must be congratulated on a slick, 24-carat tool. Having seen earlier versions of dissect, I applaud the emergence of "dissect" labs. There's scope to fine-tune them, but they already deliver. I'm a believer in labs. You only ever run them once, and then you forget how helpful they've b

Re: [Jprogramming] New dissect features, and a change to fill

2015-03-08 Thread Ian Clark
I like the () convention for in-line J code. It has potentially huge advantages for avoiding ambiguities, especially with trailing punctuation. When I get time (when…!) I'll retrofit it to the whole of NuVoc. If the J community's code vigilantes don't get there ahead of me :-) On Mon, Mar 9, 2015

Re: [Jprogramming] New dissect features, and a change to fill

2015-03-10 Thread Ian Clark
57 AM, Henry Rich wrote: > Yes, you put () in a lot of places in NuVoc, and I didn't. You were right. > > Henry Rich > > > On 3/8/2015 9:48 PM, Ian Clark wrote: >> >> I like the () convention for in-line J code. It has potentially huge >> advantages for

Re: [Jprogramming] New dissect features, and a change to fill

2015-03-10 Thread Ian Clark
on for flagging > executable bits. > > Henry Rich > > > On 3/10/2015 1:17 PM, Ian Clark wrote: >> >> Yes I used parens a lot more than you did. But not for the right >> reason – as I see it now. >> >> Back then, I used (redundant) parens to draw the eye to

Re: [Jprogramming] New dissect features, and a change to fill

2015-03-11 Thread Ian Clark
; J, it might be wise to distinguish the two. > > Or, you could parenthesize only the executable sequences. > > Henry Rich > > > On 3/10/2015 7:54 PM, Ian Clark wrote: >> >> I was thinking merely of `(…)` >> >> Nothing to be gained from making it over-complica

[Jprogramming] Opening a Mac window from J8

2015-06-09 Thread Ian Clark
Any Mac power-user out there, please... How do I open a Finder window on a given folder, the path stored in the J noun MYPATH? All I need is the Terminal.app command, and I can use the system verb: shell, like this: shell 'ls ' , MYPATH In other words, what to use instead of 'ls ' ? -

Re: [Jprogramming] Opening a Mac window from J8

2015-06-09 Thread Ian Clark
Thanks, Raul. (So easy when you know.) On Tue, Jun 9, 2015 at 2:07 PM, Raul Miller wrote: > open > > Note that 'open' will perform the default action for the path, and > typically for a directory, that's going to give you finder. > > -- > Raul > > &

Re: [Jprogramming] Opening a Mac window from J8

2015-06-09 Thread Ian Clark
For anyone else who needs this, and didn't grasp what Raul and I were saying: openw=: [: shell 'open ' , ] openw jpath '~addons' NB. ---for example On Tue, Jun 9, 2015 at 10:41 PM, Ian Clark wrote: > Thanks, Raul. (So easy when you know.) > > On Tue, J

Re: [Jprogramming] Quantum algebra with J

2015-07-25 Thread Ian Clark
@Fausto The last time I dipped into the QC literature (in connection with a paper offered to the BAA for review) I found it short on helpful material for the non-specialist, and long on smoke-and-mirrors. So can I reiterate Raul's request for simple worked examples? Not a "detailed doc with all the

Re: [Jprogramming] Quantum algebra with J

2015-07-25 Thread Ian Clark
n adapted by Shor to factorizing a large number into primes. What price the RSA cryptosystem when quantum computers arrive? https://en.wikipedia.org/wiki/RSA_%28cryptosystem%29 And will it stop there? On Sat, Jul 25, 2015 at 11:20 PM, 'Pascal Jasmin' via Programming wrote: >

[Jprogramming] Format a floating number without rounding errors

2015-08-25 Thread Ian Clark
Can anyone tell me how to define a verb: format which returns a numeral string for a noun z of datatype: 'floating' which is formally identical to the original definition of z, viz format 'z' [z=: 5.13 5.13 format 'z' [z=: 5.13e_7 5.13e_7 format 'z' [z=: 5e_7 5e_7 format 'z' [z=: 5e_4 0

Re: [Jprogramming] Format a floating number without rounding errors

2015-08-25 Thread Ian Clark
> ": seems to work with all your examples, and does 6 decimal places > automagically. > > > - Original Message - > From: Ian Clark > To: programm...@jsoftware.com > Cc: > Sent: Tuesday, August 25, 2015 10:41 PM > Subject: [Jprogramming] Format a floating

[Jprogramming] Changing the text of a menu item

2015-09-11 Thread Ian Clark
With jwd in JQt, how do I change the text of a given item in an existing set of menus? E.g. to state precisely what action I'm offering to Undo / Repeat / etc? An allied problem is to add items to an existing menu, e.g. to provide a MRU facility. --

Re: [Jprogramming] Changing the text of a menu item

2015-09-13 Thread Ian Clark
ut this was done in J6, for example with > the Find and Replace dialogs. > > On 11 September 2015 at 15:56, bill lam wrote: > >> I think these functions are not implemented. >> On Sep 12, 2015 4:50 AM, "Ian Clark" wrote: >> >> > With jwd in JQt, how d

Re: [Jprogramming] Changing the text of a menu item

2015-09-13 Thread Ian Clark
I was afraid of that :-) On Sun, Sep 13, 2015 at 2:12 PM, bill lam wrote: > I think the behavior you described is a bug in jqt. > On Sep 13, 2015 8:32 PM, "Ian Clark" wrote: > >> My form takes a noticeable time to repaint. I don't want to do that. >> &g

Re: [Jprogramming] Changing the text of a menu item

2015-09-13 Thread Ian Clark
rms for the same > app. If one of them specifies no menus, it lets you see the menus of the > other form – even when it's got focus! > > How did you do that? > > I suppose we should allow redefining the menubar on the fly. > > > > On 13 September 2015 at 05:32, Ian Cla

Re: [Jprogramming] Changing the text of a menu item

2015-09-13 Thread Ian Clark
on to all windows. Apart from J, all Mac apps I've seen follow this basic model. Qt, being cross-platform, is a law unto itself, it seems. On Mon, Sep 14, 2015 at 12:51 AM, bill lam wrote: > Is this behavior (sharing menu) a feature of osx in general? > On Sep 14, 2015 5:17 AM, "Ian

Re: [Jprogramming] Changing the text of a menu item

2015-09-14 Thread Ian Clark
ould be doing? > > Thanks, > > -- > Raul > > > On Sun, Sep 13, 2015 at 9:28 PM, Ian Clark wrote: >> @Bill >> >>> Is this behavior (sharing menu) a feature of osx in general? >> >> Yes, definitely. >> >> In OS X the menubar

Re: [Jprogramming] Changing the text of a menu item

2015-09-14 Thread Ian Clark
nus, but with > unwanted items disabled. For example, this would mean that Term would get > two top level menu items, Script and Window, that would be completely > disabled. > > > > On 13 September 2015 at 18:28, Ian Clark wrote: > >> @Bill >> >> > Is t

Re: [Jprogramming] Changing the text of a menu item

2015-09-15 Thread Ian Clark
> sense for any interpreted programming environment which allows user > defined menus. > > -- > Raul > > On Mon, Sep 14, 2015 at 8:02 PM, Ian Clark wrote: >> No, @Raul, I was answering Bill's question re OS X features. >> >> The "proper" design for

Re: [Jprogramming] Changing the text of a menu item

2015-09-15 Thread Ian Clark
ey make an extension. > I believe instead that they are something which can be used in either > case. > > Thanks, > > -- > Raul > > On Tue, Sep 15, 2015 at 1:36 PM, Ian Clark wrote: >> @Raul - answer me this first: is a (collection of) "user-defined menus" >&

Re: [Jprogramming] Changing the text of a menu item

2015-09-16 Thread Ian Clark
Dan has a point. Who uses menus nowadays – if there's an effective toolbar? On the Mac, the menubar has become nothing but a clothes-horse to hang hotkeys on. On Windows, there needn't be any rational link between the hotkeys and the menubar at all. (There needn't be any rational link between any

Re: [Jprogramming] Quantum algebra with J

2015-10-16 Thread Ian Clark
For a good introduction to the topic of quantum computing (which serves as a good elementary introduction to quantum mechanics itself) I recommend this series of video lectures by David Deutsch (of Deutsch-Josza fame): Lectures on Quantum Computation, by David Deutsch http://www.quiprocone.org/Pro

[Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-08 Thread Ian Clark
In Mac/Linux, How can I use the command line (in Mac Terminal, say) to send repeated phrases to jconsole, without losing continuity between J sessions? The help page: http://jsoftware.com/help/user/cmdline.htm explains how to call jconsole, offering these examples: Example 1 $ jconsole -js a=.2

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-09 Thread Ian Clark
/tmp/j > > Exiting reveals a couple issues - one is that command line quoting is > similar to j quoting, so you'll have to deal with both. > > Another is that that while loop will need an extra line sent to it > after J exits, to notice that nothing is listening to it any more

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-09 Thread Ian Clark
issue, it appears that the NSTask approach for handling that > conflict involves notifications. > > Are these guesses enough to get you started? > > Thanks, > > -- > Raul > > > On Mon, Nov 9, 2015 at 1:49 PM, Ian Clark wrote: >> @Raul - your example is close, but not

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-09 Thread Ian Clark
; On Mon, Nov 9, 2015 at 3:04 PM, Ian Clark wrote: >> However I don't yet know how to converse via NSTask with a daemon >> through a port. I need to find a tame daemon that will talk to me >> nicely via Mac Terminal, which I can then try to handle via NSTask. >> Then

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-09 Thread Ian Clark
y.) Ian On Mon, Nov 9, 2015 at 9:25 PM, Don Guinn wrote: > You could write out pertinent data to a file before ending the J session to > read back in when you run jconsole again. > > On Mon, Nov 9, 2015 at 1:20 PM, Ian Clark wrote: > >> > You should think of each terminal

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-10 Thread Ian Clark
using > NSTask presumably by invoking jconsole with the jssc client to make calls > to the server > > You mentioned wanting to avoid sockets but didn't elaborate > On Nov 9, 2015 10:22 PM, "Ian Clark" wrote: > >> That's exactly what I'm going to do,

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-10 Thread Ian Clark
> The problem with the daemon approach is making sure the daemon is alive Too right, @Joe. As I said in my (discarded) reply to Raul: …with all the attendant problems for the client of finding out: have you finished yet? -- are you alive? -- are you actually installed? -- and package it all up f

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-10 Thread Ian Clark
wrote: > Another way is to keep a running jhs, and send request to it using > wget/curl. It also uses sockets but you need zero knowledge of socket > programming. > On Nov 10, 2015 10:51 PM, "Ian Clark" wrote: > >> > The problem with the daemon approach is making

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-10 Thread Ian Clark
other display. You > can call it a daemon. Of course you need a script that create a locale foo > on jhs. > > or you don't wget/curl at all if your programming environment already has > library support for http request. > On Nov 10, 2015 11:16 PM, "Ian Clark" w

Re: [Jprogramming] How best to preserve continuity between successive calls of jconsole?

2015-11-10 Thread Ian Clark
> url encode/decode the J sentence. Not sure if jhs understand > POST since I'm not too familiar with jhs. > > Ср, 11 ноя 2015, Ian Clark написал(а): >> Thanks @Bill. >> >> I guess you meant: http://localhost:65001/foo?i.6 >> (missing '1'). Even

[Jprogramming] XML addons in j804?

2015-11-27 Thread Ian Clark
Addons support for handling XML data seems to be a little thinner in J804 than it was for j602. In fact on a cursory glance through Package Manager I can't find any. I'd rather not write my own if someone has already done it. This is potentially a very wide-ranging request, so let me focus a bit.

Re: [Jprogramming] XML addons in j804?

2015-11-27 Thread Ian Clark
om other sources if necessary. The addon > assumes the path to osx libexpat is /opt/local/lib/libexpat.dylib > amend the path if needed. Run test0 will give you a general > idea of this addon. test1 includes a more complete example. > > api/expat is a rather low level but should be

Re: [Jprogramming] Fractals, Visualization and J, Fourth edition, Part 1

2016-02-28 Thread Ian Clark
Thanks for bringing this up-to-date, Cliff. Eager for Part 2. This has long been on my bucket-list for serious study, of the sort I last gave to "At Play With J" by J doyen Gene McDonnell. If I had a month to do absolutely nothing in, this is how I'd fill it. Come the day! Seriously though, when

Re: [Jprogramming] Bayesian links

2016-03-28 Thread Ian Clark
27;ve put up some links relating to my recent talk introducing Bayesian > statistics - http://www.sigapl.org/BayesianLinks.php . > > Thanks to Ian Clark for reviving my old APL essay on this ( > http://code.jsoftware.com/wiki/User:Devon_McCormick/DynamicLinearModels/BayesianFinancialDyna

Re: [Jprogramming] J NuVoc typos ...

2016-06-18 Thread Ian Clark
Thanks, Martin -- corrected. On Sat, Jun 18, 2016 at 1:16 PM, Martin Kreuzer wrote: > Came across these (accidentally - not being a nit-picker by birth) while > browsing: > > ** Stardot (*.) > > 1st example for LCM (And) >0 0 1 1 +. 0 1 0 1 > 0 0 0 1 >0 0 1 1 *. 0 1 0 1NB. (*.) instea

Re: [Jprogramming] FVJ4 Part 2

2017-02-08 Thread Ian Clark
-ers who don't know this book: this will be the best impulse-buy you've made all week. Just view the Preview on the Lulu page and read down the Table of Contents. (For your convenience, the code samples exist as downloadable pacman addons.) Ian Clark On Wed, Feb 8, 2017 at 1:52 AM, Cliff

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

2017-03-16 Thread Ian Clark
Sorry, only just noticed this thread… It's not just one stray word, as I first thought. It's the tip of a very soggy iceberg. It affects not just math/tabula but any code which uses the zulu verbs. The addon: format/zulu is paranoid and overcomplicated for what it does. To avoid a dependency on i

[Jprogramming] JHS, Apple and https

2017-04-07 Thread Ian Clark
Can JHS be configured to connect via https instead of http? If the answer's "no", why do I want it? -- I'm writing Apple apps using Xcode + Swift which communicate with JHS used as a local server. I have some working prototypes and I'm about to offer these as betas. Apple have brought in somethi

Re: [Jprogramming] JHS, Apple and https

2017-04-07 Thread Ian Clark
e certificate, or something along > that line. Most people ignore this issue or simply are not aware of > it.) > > Thanks, > > -- > Raul > > > On Fri, Apr 7, 2017 at 6:15 PM, Ian Clark wrote: > > Can JHS be configured to connect via https instead of http? > &

Re: [Jprogramming] JHS, Apple and https

2017-04-08 Thread Ian Clark
e: > Even if jhs can act as a https server, users still need to install a self > hosted ssl certificate by themselves. This is nontrivial for most end > users. > > On 8 Apr, 2017 6:30 am, "Ian Clark" wrote: > > > That's too difficult, for an App Store app t

Re: [Jprogramming] JHS, Apple and https

2017-04-10 Thread Ian Clark
more interesting, and much > better performing alternative for your application. > > Let me know what you find and how what suggestions you have for proceeding. > > This comes up as particular to apple, but is in fact of interest to all. > > Let's move this discussion to b

Re: [Jprogramming] Dictionary with Strings as Keys

2017-04-16 Thread Ian Clark
Raul is right: there's no native concept of a "dictionary" in J. But dictionaries, as you see them used in Python & Swift, are alive and well in J. They are employed by the J system itself for just the same purposes as Apple does. (Xcode users: I'm referring to NSDictionary and Property Lists (.pl

Re: [Jprogramming] APL font for emacs

2017-05-23 Thread Ian Clark
David is right. Adrian Smith's APL385, based on Comic Sans, used to be the reference standard for cross-platform APLs using TrueType fonts. Most up-to-date monospaced fonts should have Lamp: '⍝' --e.g. AndaleMono (what I use on my iMac), Courier, FreeMono or Monaco. If you're running an antique co

Re: [Jprogramming] APL font for emacs

2017-05-23 Thread Ian Clark
ote: > My PC is quite new and has no problem displaying APL characters in > general. It's just that when I look at a piece of APL code I have in an > emacs session, everything but the lamp shows up correctly for a number of > fonts. > > On Tue, May 23, 2017 at 10:48 AM, Ian Clark

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Ian Clark
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… ++

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Ian Clark
m utilities. On Mon, May 29, 2017 at 3:27 PM, Tom Arneson 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 &#

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Ian Clark
y 29, 2017 at 9:29 PM, Tom Arneson wrote: > 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 > T

Re: [Jprogramming] Save/load content of locale

2017-05-29 Thread Ian Clark
7;t grow old! On Tue, May 30, 2017 at 3:59 AM, bill lam wrote: > Does the j602 stype immex also work for lobrow under j805? > jqt immexj was first introduced for workaround event race > conditions, not intended for cleaning up locale. > > Вт, 30 май 2017, Ian Clark написал(а): &

Re: [Jprogramming] Empty lists?

2017-06-07 Thread Ian Clark
NuVoc tries to help the beginner in this topic with these two ancillary pages: http://code.jsoftware.com/wiki/Vocabulary/EmptyArguments http://code.jsoftware.com/wiki/Vocabulary/Idioms If anyone thinks these treatments need improving, this is a wiki and you are allowed to alter it. However

Re: [Jprogramming] Empty lists?

2017-06-08 Thread Ian Clark
Henry, I absolutely agree. Only last night I was thinking NuVoc lacked an in-depth treatment of empty lists (/tables) – and how it was a serious omission. (It does have Vocabulary/EmptyArguments --which overlaps slightly.) Devon's treatment fits the bill. Might also need a reliable test for empt

Re: [Jprogramming] Empty lists?

2017-06-09 Thread Ian Clark
; That said, checking for zero items (or more than zero items) is often > quite convenient. > > Thanks, > > -- > Raul > > > On Fri, Jun 9, 2017 at 7:36 AM, 'Pascal Jasmin' via Programming > wrote: > > the reliable test for emptiness is (0 < #) >

Re: [Jprogramming] Empty lists?

2017-06-10 Thread Ian Clark
Thanks Raul. It's in my in-tray to do. Ian On Sat, Jun 10, 2017 at 11:51 AM, Raul Miller wrote: > I'm totally fine with you writing up NuVoc entries, and using whatever > I've written here to fuel them. > > Thanks, > > -- > Raul > > > On Sa

[Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-07 Thread Ian Clark
have searched http://code.jsoftware.com/wiki/ for the word "snap" but the results cast no light on the matter for me. I can take a shrewd guess at what /snap/ is intended to do. But to guess is not to know. Can anyone help, plea

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-08 Thread Ian Clark
when you think they are no > longer needed. > > You may add a run script in xcode build phases to automatically trash > files inside the snap folder. (untested) > > snap folder may or may not be re-created, this depends on your > profile.ijs or profilex.ijs > > Сб

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-08 Thread Ian Clark
n earlier version. > > The wiki docs for this have been updated, see > code.jsoftware.com/wiki/Guides/Qt_IDE/Snapshots. > > On Fri, Jul 7, 2017 at 7:18 PM, Ian Clark wrote: > > > Inside an Apple Xcode project, I am managing a cut-down J805 installation > > which gets

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-08 Thread Ian Clark
stice system as we know it On Sat, Jul 8, 2017 at 2:31 PM, Raul Miller wrote: > Is this relevant here? > > https://stackoverflow.com/questions/12488462/ios- > directory-structure-whats-snapshots-file > > Thanks, > > -- > Raul > > > On Sat, Jul 8, 2017 at 8:54

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-08 Thread Ian Clark
2!:1 'say -v Milena Только дурак это сделает! &' On Sat, Jul 8, 2017 at 1:54 PM, Ian Clark wrote: > Thanks, Ric and Bill. > > Just so's I know it's working for me and not somebody else. I'd hate to > distribute an app – even a beta – especially a beta

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-09 Thread Ian Clark
; readily > > produce a user interface even on iOS which has it's own (unique) > interface > > generation system with storyboards, etc.? And you foresee individuals > > creating their own iOS JHS apps? (Maybe such an app could access the iPad > > camera, too.) The appeal of

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-09 Thread Ian Clark
a desktop Mac. The watchOS gathers the bio-data from your wrist, the iOS (or macOS) has the oomph! to process it, and output it in exciting ways. My architecture would adapt easily. Though I'm not sure which way round the (~addons/ide/jhs) link would operate. Perversely I guess the watchOS sh

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-10 Thread Ian Clark
o you because JHS has all the html capability to > > readily > > > produce a user interface even on iOS which has it's own (unique) > > interface > > > generation system with storyboards, etc.? And you foresee individuals > > > creating their own iOS JH

Re: [Jprogramming] (no subject)

2017-07-14 Thread Ian Clark
Do you mean: how do I clear the contents of the Session Manager / Term window? Look at: http://code.jsoftware.com/wiki/Guides/Window_Driver/Session_Manager Thus, to empty the Term window: wd 'sm set term text' which is a special case of: wd 'sm set term text *hello fresh new world' , LF

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

2017-07-28 Thread Ian Clark
Great concept, Bob. Just watching your YouTube makes me wonder why we persist in using a tty paradigm from the 1960s for conversational use of J – which we like to think of as an advanced language. Perhaps we just like playing Mastermind with ourselves when we play with J? It shows us how smart we

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

2017-07-28 Thread Ian Clark
> Perhaps also worth wondering why we're using english, from before we were born, to communicate about supposedly advanced topics... Yup, some things are so darn' good there jest ain't no improvin' on them. Whether that goes for the venerable tty, I wonder. It seems only yesterday I got my first

Re: [Jprogramming] Multidimensional Root Finding with Newton Solver

2017-08-10 Thread Ian Clark
> Is it also possible to solve a system of equation like the following one… ? Basically, yes. Because not only can x = (x1,x2) be a vector, but so can y = (y1,y2) in this adaptation of your equations: y1 = a*(1-x1) y2 = b*(x2-x1^2) TABULA is an app (distributed as a JAL "addon") which employs

[Jprogramming] How can I auto-refresh a JHS app page?

2017-09-04 Thread Ian Clark
Suppose I am a JHS coder, working with the J session (the jijx page), and have written an app called "message" (say). This generates a page of data in response to the URL: http://localhost:65001/message which I choose to display in a separate browser window. Let's call it the message window. If

Re: [Jprogramming] How can I auto-refresh a JHS app page?

2017-09-04 Thread Ian Clark
do I write the verb: refresh ? It goes without saying that in practice I want to display something more elaborate than the contents of a single noun residing in the base locale. But the principle will be the same. On Tue, Sep 5, 2017 at 2:59 AM, Ian Clark wrote: > Suppose I am a JHS coder,

Re: [Jprogramming] How can I auto-refresh a JHS app page?

2017-09-05 Thread Ian Clark
Sep 5, 2017 at 2:59 AM, Ian Clark wrote: > Suppose I am a JHS coder, working with the J session (the jijx page), and > have written an app called "message" (say). This generates a page of data > in response to the URL: > > http://localhost:65001/message > > which I cho

Re: [Jprogramming] How can I auto-refresh a JHS app page?

2017-09-05 Thread Ian Clark
Thanks, forum. Plenty of ideas to try here. Plus some good links for further study. Ian Clark On Tue, Sep 5, 2017 at 4:35 PM, Raul Miller wrote: > For server sent events, you'd need to remove the Connection: Close > http header and replace it with a Content-Length: nnn header. >

Re: [Jprogramming] How can I auto-refresh a JHS app page?

2017-09-05 Thread Ian Clark
ntation > before your code would work for me. > > Thanks, > > -- > Raul > > > On Tue, Sep 5, 2017 at 8:27 AM, Ian Clark wrote: > > Currently I'm hacking it by using Keyboard Maestro to execute a timer > which > > reloads the message URL every 3 seconds.

Re: [Jprogramming] How can I auto-refresh a JHS app page?

2017-09-05 Thread Ian Clark
vent in the javascript of > the other page. Is this of interest? > > The existence of javascript shared memory has kept a low profile, but the > resources documneting its use are more that adequate. > > On Mon, Sep 4, 2017 at 10:20 PM, Ian Clark wrote: > > > In case that'

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Ian Clark
Your thread subject says "Clearing a screen in jqt…" but I don't see it mentioned in your post. Do you also want to know how to clear the Term window (or an Edit window)? wd 'sm set term text *hello world;' --empties Term and writes 'hello world' Accordingly: wd 'sm set term text *' or:

Re: [Jprogramming] A normal exit from a deeply embedded function to a terminal prompt, how?

2017-12-31 Thread Ian Clark
What's "normal" and what's an "error"? (Or, for that matter, a "crash"?) When looking for the best solution to a coding problem, we can be prisoners of our emotive use of language. Way back in IBM in the 1980s I recall the end-user of a bespoke app written in APL picking up the phone in fury when

Re: [Jprogramming] overwite?

2018-01-05 Thread Ian Clark
In jqt you can take control of the term window, fetch its current contents, cut them back and rewrite the term window. Likewise other windows in the jqt IDE. This link is a reference to help you do that: http://code.jsoftware.com/wiki/Guides/Window_Driver/Session_Manager As Nick S says, there is

Re: [Jprogramming] overwite?

2018-01-06 Thread Ian Clark
creative with. For a bit of 1970s nostalgia, it can even do character-based animations. On Sat, Jan 6, 2018 at 10:08 AM, roger stokes wrote: > Ian, > Many thanks for that very valuable information > > Regards > > On Sat, Jan 6, 2018 at 6:31 AM, Ian Clark wrote: > > >

Re: [Jprogramming] Haar wavelet

2018-01-09 Thread Ian Clark
NB this light-hearted alphabetical catalogue of wavelet names, heavy with French puns but with some intriguing insights, plus a rough'n'ready literature review (a lot less turgid than the Wikipedia articles) http://www.laurent-duval.eu/siva-wits-where-is-the-starlet.html It's on my list for serious

[Jprogramming] Lists of integers remember their parentage

2018-01-11 Thread Ian Clark
For years I've laboured under the delusion that nouns (i.0) and (0$0) are identical in all respects, and will pass any tests designed to discriminate between them. However 5!:5 can tell the difference: 5!:5 <'z' [z=: i.0 i.0 5!:5 <'z' [z=: 0$0 0$0 Nor, it seems, is there any fooling it

Re: [Jprogramming] Lists of integers remember their parentage

2018-01-12 Thread Ian Clark
type (not just the precision) of a result. Can you find it? > The answer is in NuVoc, but tucked away in a corner! > > Henry Rich > > > On 1/12/2018 12:06 AM, Ian Clark wrote: > >> For years I've laboured under the delusion that nouns (i.0) and (0$0) are >

Re: [Jprogramming] Lists of integers remember their parentage

2018-01-12 Thread Ian Clark
> if. reply = 'yes' I was sorry the moment I sent it. I only offered it as a clear example of an ill thought-out logical proposition. I wasn't inviting corrections. On Fri, Jan 12, 2018 at 7:58 PM, Raul Miller wrote: > You do not want to do reply='yes' because > >'no'='yes' > |length erro

[Jprogramming] How do I format a timestamp from the past?

2018-01-22 Thread Ian Clark
(6!:0 NIL) returns the current date/time as an integer 6-list timestamp. (6!:0 'hh:mm:ss MM/DD/YY') ditto, but in the specified format (y). How can I use the *selfsame* algorithm to format any (valid) timestamp? If the answer is "only by writing my own formatting verb, or by setting the system c

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

2018-02-26 Thread Ian Clark
In "The Curious Incident of the Dog in the Night-Time", Mark Haddon has his young autistic hero verify that the earth is not flat by holding up a steel straight-edge to the horizon. In the course of private research into public gullibility, I tried to replicate Haddon's thought-experiment – and fa

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

2018-02-27 Thread Ian Clark
errain. >> >> This might not seem like much, if you are standing on flat ground (for >> example, pretty much anywhere in Maryland (USA - not the long since >> vanished country in Africa)). However, if you're standing on a >> mountain it can be a significant distance. >

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

2018-02-28 Thread Ian Clark
wever, the solution is wrong in any case. It is the result of using a >>> circle and a line parallel to the tangent line at any point. In other >>> words, looking at the earth from a great distance. >>> >>> The right answer (for a perfect sphere) is 0 as the c

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

2018-02-28 Thread Ian Clark
ision won't do. I want to explore the scope for extended precision, which means collecting techniques for doing geometry and trigonometry which don't contingently revert to 'float' partway through. Thank you for your ideas on this topic, which has likely given me enough to go on. On W

  1   2   3   4   5   6   >