Re: [Jprogramming] blunt verbs (tacit x and y)

2014-01-08 Thread Raul Miller
Michal posted that definition at https://github.com/tangentstorm/tangentlabs/blob/master/j/tacitxy.ijs as he noted in his message. FYI, -- Raul On Wed, Jan 8, 2014 at 10:05 PM, Linda Alvord wrote: > What is your defiiniton of xy ? > >f =: (Y * X + Y)xy >1 2 f 3 4 > |value error: xy >

Re: [Jprogramming] blunt verbs (tacit x and y)

2014-01-08 Thread Linda Alvord
What is your defiiniton of xy ? f =: (Y * X + Y)xy 1 2 f 3 4 |value error: xy Linda -Original] Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Michal Wallace Sent: Tuesday, January 07, 2014 2:15 PM To: program

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Paul Jackson
Thanks for the question, looking at has solved a problem for me. I can use to make test pages work outside my source directory. This not only works for links in the HTML page, but in calls Javascript makes to load pages. I've only tested this in Chrome on Windows, so your results may vary.

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Raul Miller
If you are using the jhs supplied utilities to build your page, it looks like hrtemplate (defined in jhs and in d3 (which inherits from jhs)) provides the template for the head of the page. Does this help? Thanks, -- Raul On Wed, Jan 8, 2014 at 2:45 PM, Brian Schott wrote: > Raul, I get the

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Brian Schott
Devon, I think I see your point and will get back to that if or when I learn to add to the element. Thnx, --- (B=) On Jan 8, 2014, at 3:41 PM, Devon McCormick wrote: > You may have a problem w/your "y" being _1, but I think the value error > you're getting indicates a problem w/the number o

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Devon McCormick
You may have a problem w/your "y" being _1, but I think the value error you're getting indicates a problem w/the number of single quotes, e.g. I get the same error if I enter ;x; but I get a value error for "x" if I use only single quotes instead of pairs of them as you have. On Wed, J

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Brian Schott
As a test, I added the tag to the noun hrtemplate in j64-701/addons/ide/jhs/utilh.ijs as shown below, and JHS created a new browser window. But for no other version of the text could I get JHS to open in my browser. Any ideas? hrtemplate=: toCRLF 0 : 0 HTTP/1.1 200 OK Content-Type: text/html; c

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Brian Schott
Raul, I get the same error with your "~addons..." idea. Paul, I'll have to look at putting into the element. I have not discovered how to put things there. Thanks, On Wed, Jan 8, 2014 at 2:38 PM, Paul Jackson wrote: > I've never used , but per the web: > > Definition and Usage > The tag spe

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Paul Jackson
I've never used , but per the web: Definition and Usage The tag specifies the base URL/target for all relative URLs in a document. There can be at maximum one element in a document, and it must be inside the element Paul On Jan 8, 2014 10:58 AM, "Brian Schott" wrote: > It occurs to me that

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Raul Miller
I would try: Even if that fixes nothing, it's more concise and portable than what you currently have. Thanks, -- Raul On Wed, Jan 8, 2014 at 1:58 PM, Brian Schott wrote: > It occurs to me that a key problem could be my href string in the noun > html. But I don't know how to fix it. That str

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Brian Schott
It occurs to me that a key problem could be my href string in the noun html. But I don't know how to fix it. That string is supposed to be a url, but I am supplying a directory name. html =: 0 : 0 ) On Wed, Jan 8, 2014 at 1:27 PM, Brian Schott wrote: > The d3.ijs examples use J nouns to l

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-08 Thread Brian Schott
The d3.ijs examples use J nouns to locate the directory that houses code for the application, as suggested by the definitions of PATH and HPATH and ~root below. And it works very well. I have been unsuccessfully toying with replacing that approach with an html element/tag for constructing relative

Re: [Jprogramming] Labeling points in a plot?

2014-01-08 Thread Devon McCormick
Yes - this is what I mean - thanks! Just because I've done it doesn't mean I remember it - that's why this e-mail external memory is so helpful. On Wed, Jan 8, 2014 at 8:51 AM, Brian Schott wrote: > http://www.jsoftware.com/jwiki/Plot/Text > > This is the only relevant link I could find and it

Re: [Jprogramming] Closed form of Perrin sequence?

2014-01-08 Thread Aai
If still of any use: 1. A reasonable speed up is obtained by not using st. prec. for matrix mat. because you are calculating modulo. 2. further speed up by 'condensing' your code to: isPPP=: 3 :'0 = y| +/ (<0 1)|: y&|@(+/ .*)/ (|+/ .*~)^:(I.@|.@#:@]`((3 3 $0 1 0 0 0 1 1 1 0)"_))~y'"0 ppp =

Re: [Jprogramming] Labeling points in a plot?

2014-01-08 Thread Brian Schott
http://www.jsoftware.com/jwiki/Plot/Text This is the only relevant link I could find and it does not look like a walk in the park. It looks like you showed how to do this years ago, so maybe this is not what you mean. http://www.jsoftware.com/pipermail/programming/2007-December/009229.html On