Re: [Jprogramming] The Accessible Dictionary released

2014-01-22 Thread robert therriault
First off, Ian you've have done fantastic work on this. Road building is vital to development - and your roads are safe, well marked and take us to the places we want to discover. Well done. Second, I agree with Paul about hiding things until people are interested. When I have decided that I

Re: [Jprogramming] The Accessible Dictionary released

2014-01-23 Thread robert therriault
they entail, and the fact not everyone can see them, one has to wonder about return-on-effort. (Just my opinion... I don't see the big picture, figuratively speaking) IanClark On Wed, Jan 22, 2014 at 5:57 PM, robert therriault bobtherria...@mac.comwrote: First off, Ian you've have done

Re: [Jprogramming] The Accessible Dictionary released

2014-01-24 Thread robert therriault
Thanks for that Murray, I had not seen the Mathematica flash animations before. Also, your example of physically representing the array functions is close to the core of my understanding of J programming. Not that I need physical manifestations but that I think of the arrays and vectors as

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread robert therriault
As a bit of a response to the whole question of what we see and what we get, I put together some html and css that allows a view of J results on JHS that gives type information implicitly in the display. I think the blog post and demo video gives the flavour of the journey.

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread robert therriault
Raul, One of the challenges I have found is in shapes with more than one zero value, because that second layer of nothingness is difficult to distinguish. I think by enclosing the shapes appropriately, this can be done, but not by text alone. It reminds me of the last verse of The Snow Man by

Re: [Jprogramming] problem matching boxed string

2014-02-04 Thread robert therriault
On Feb 4, 2014, at 5:29 AM, Raul Miller rauldmil...@gmail.com wrote: Of course you will also get an error if you try to combine one of those with another array of the wrong shape. Error conditions are one of the cases where I like getting the shapes of arrays. Sometimes the zeros can

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
such as 0 1 $ 1 and 1 0 $ 1. Blog post is here: http://bobtherriault.wordpress.com/2014/02/11/using-css-and-html-to-display-the-shapes-of-arrays-on-the-jhs-platform/?relatedposts_exclude=513 Cheers, bob On Feb 4, 2014, at 8:25 AM, robert therriault bobtherria...@mac.com wrote: On Feb 4, 2014, at 5

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
it is up. Probably later this afternoon. Cheers, bob On Feb 11, 2014, at 7:57 AM, Joe Bogner joebog...@gmail.com wrote: On Tue, Feb 11, 2014 at 10:21 AM, robert therriault bobtherria...@mac.comwrote: Just an update on the visualization of J results. I have done a second video/blog post

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
beginners, and maybe that is something we can do something about, over the next few weeks and months. Thanks, -- Raul On Tue, Feb 11, 2014 at 10:21 AM, robert therriault bobtherria...@mac.comwrote: Just an update on the visualization of J results. I have done a second video

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
a bit. I have run it on the Chrome and the Safari browsers. Let me know if there are issues and especially let me know if there is a better way to post a script on the wiki. Cheers, bob On Feb 11, 2014, at 9:05 AM, robert therriault bobtherria...@mac.com wrote: Thanks Joe, Even though

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
. For instance assuming that }. and {: produce identical results with 2 elements. So, if there was a way to only box-decorate items when there is a leading 1 or 0 dimension, I think it would be very helpful without being as noisy. - Original Message - From: robert therriault bobtherria

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
to only box-decorate items when there is a leading 1 or 0 dimension, I think it would be very helpful without being as noisy. - Original Message - From: robert therriault bobtherria...@mac.com To: Programming forum programm...@jsoftware.com Cc: Sent: Tuesday, February 11, 2014 12:14

Re: [Jprogramming] problem matching boxed string

2014-02-12 Thread robert therriault
=AttachFiledo=viewtarget=vlitejwiki.ijs Cheers, bob On Feb 12, 2014, at 4:44 PM, Joe Bogner joebog...@gmail.com wrote: bob, thanks again for sharing. It works really well and is also a nice JHS example. On Tue, Feb 11, 2014 at 9:08 PM, robert therriault bobtherria...@mac.comwrote

Re: [Jprogramming] J in 5 minutes

2014-02-14 Thread robert therriault
:_Walk_Directory_Tree , and others. On Fri, Feb 14, 2014 at 7:16 PM, robert therriault bobtherria...@mac.comwrote: Great idea Henry, I would be willing to pitch in on this. I do have some production skills and have posted on Youtube on a semi-regular basis. I think that the biggest

Re: [Jprogramming] problem matching boxed string

2014-02-14 Thread robert therriault
Just to finish the job, here is a link to a video screencast of the display style for the skinnier look. http://wp.me/p1rSg-8x Cheers, bob On Feb 12, 2014, at 6:04 PM, robert therriault bobtherria...@mac.com wrote: Well, I am not sure I would call it a nice example, but I am glad to hear

Re: [Jprogramming] J in 5 minutes

2014-02-14 Thread robert therriault
Thanks Murray for providing the links. I agree Don, but I wonder if the goal of J in 5 minutes is not to teach someone J, but to make them want to learn J. Not unlike a movie trailer, which has the job of making you want to go see the movie, without giving away the story. Cheers bob On Feb

Re: [Jprogramming] J in 5 minutes

2014-02-15 Thread robert therriault
Hi Henry and Raul, I think that the audience being young programmers is a good start towards the issues that Raul raises. As an additional challenge, I think that we would want to use an example that is user friendly once their interest has been attracted. There are some areas of J that have

Re: [Jprogramming] J in 5 minutes

2014-02-15 Thread robert therriault
Well reducing your audience by a few orders of magnitude is still reducing your audience, even it does remain largish. :) And as a balance to Sturgeon's Law (which is discouragingly true), I present this quote from Ira Glass that applies to all those (even programmers!) that dare to make

Re: [Jprogramming] J in 5 minutes

2014-02-15 Thread robert therriault
What if we leveraged the 'calculator on steroids' aspect of J? There are lots of students who would benefit from an experimental approach to math that comes with using J. You show them an IDE, do a few calculations, tease them with the way you can combine functions, and point them towards

Re: [Jprogramming] J in 5 minutes

2014-02-16 Thread robert therriault
Thanks R.E. Boss, You raise a really good point and one that I actually have given a fair amount of thought. I guess it is obvious by the things that I have and will work on that I came to a different conclusion than you did, but that does not mean that I think that your concerns are

Re: [Jprogramming] problem matching boxed string

2014-02-16 Thread robert therriault
to Brian Schott for pointing the bug out and for his suggestions. I also made the display a little smaller. It is easy to adjust this by changing the CSS #text { ... font-size: 1.5em ... } to whichever size you prefer. Cheers, bob On Feb 15, 2014, at 5:47 PM, robert therriault bobtherria

Re: [Jprogramming] J in 5 minutes

2014-02-17 Thread robert therriault
I took the liberty of contacting Catherine outside of the forum and this was her advice: --- My advice for you guys would be to go back to basics and remember that the most effective teaching is where the teacher lets the student see how to approach a problem. Henry is the

Re: [Jprogramming] J in 5 minutes

2014-02-17 Thread robert therriault
Wow Joe, Having done a few videos, I really appreciate the work that goes into producing these; this is an excellent start. I have a few ideas, email if you would like me to do a critique/deconstruction/analysis - either one to one or on the forum, your choice. If you do decide to do it on a

Re: [Jprogramming] J in 5 minutes

2014-02-21 Thread robert therriault
Hi Brian, I think that tangents are not a bad thing if it allows us to get the message across in a more precise way. With the jwiki entry, I am wondering if it may be a good idea to play a little more with the tool that you have built. It seems to me that if I am a viewer who is really

Re: [Jprogramming] J in 5 minutes

2014-02-21 Thread robert therriault
might require a new adverb based on upd; something like vupd =. adverb : '(m*bal)-pmt' 1.05 vupd/\.p,1 Yes? On Fri, Feb 21, 2014 at 11:52 AM, robert therriault bobtherria...@mac.comwrote: Hi Brian, I think that tangents are not a bad thing if it allows us to get the message

Re: [Jprogramming] J in 5 minutes

2014-03-07 Thread robert therriault
Well done Martin, Really high production values. I do think that you could afford to enlarge the workspace window to allow the text to appear larger as the background is not so necessary. You did a great job of setting up your context and letting the viewer know what you were going to cover.

Re: [Jprogramming] J in 5 minutes

2014-03-13 Thread robert therriault
Well, tacit and explicit could be thought of as dialects, couldn't they? Cheers, bob On Mar 13, 2014, at 7:57 PM, Don Kelly d...@shaw.ca wrote: At least J doesn't have dialects. Don -- For information about J forums see

Re: [Jprogramming] J in 5 minutes

2014-04-06 Thread robert therriault
Hi Martin, I like the narration. The content and voice are really good, but there seems to be a bit of distortion on the higher frequencies. You usually hear this on S's and Ch's when those sounds are pronounced. You can equalize the sound by reducing the audio above 2k Hz using an audio

Re: [Jprogramming] Euler Project Problem 1

2014-04-08 Thread robert therriault
Hi Jon, Have you had a chance to watch the J in 10 minutes video that Martin Saurer produced a few days ago (link below). About a minute in, Project Euler #1 is used as an example to explain a J approach to the problem.

Re: [Jprogramming] Matrix inverse query

2014-04-23 Thread robert therriault
Hey Alex, You may want to take a look at NuVoc, the jwiki section that I think that Ian Clark organized just for the reason that you are describing. :) http://www.jsoftware.com/jwiki/NuVoc Cheers, bob On Apr 23, 2014, at 10:52 AM, alexgian alexg...@blueyonder.co.uk wrote: The information

Re: [Jprogramming] J in 5 minutes

2014-04-25 Thread robert therriault
Nice work Martin, I really like Devon's understated approach and the well written description. When the audio got a little out of sync with the screen, you stopped and started off again together. Hopefully this is not too hard to do because I think it is a good solution to what can be a big

Re: [Jprogramming] Keeping a variable while running through a loop

2014-04-27 Thread robert therriault
Hi Jon, Have you looked at control structures in the Vocabulary? http://www.jsoftware.com/help/dictionary/ctrl.htm Specifically, the for. control structure? http://www.jsoftware.com/help/dictionary/cfor.htm I think that is what you may be looking for, although I think that many would use a

Re: [Jprogramming] Simple tacit verbs problem

2014-04-30 Thread robert therriault
Good ideas Raul, I like the purpose driven approach of using J in a practical environment. I also think that the current labs provide a much more powerful and interactive way to allow learners to explore new concepts. As I think of areas to explore in the process of communicating J, I am

Re: [Jprogramming] Simple tacit verbs problem

2014-05-03 Thread robert therriault
Hi everyone, In a previous chat forum thread [1] I had talked about the different domains of the J learning ecology [2] (or any learning ecology for that matter) and I think that this is a great example of the strength of J's emergent domain. The emergent domain is the part of the learning

Re: [Jprogramming] Simple tacit verbs problem

2014-05-03 Thread robert therriault
Hey Raul, I thought that he had defined it, but perhaps I was confused about what the line below meant. Cheers, bob On May 3, 2014, at 4:43 PM, Raul Miller rauldmil...@gmail.com wrote: 'X Y'=. 'X' ; 'Y' -- For information

Re: [Jprogramming] Base/antibase question

2014-05-09 Thread robert therriault
Hi Roger, If you continued this analogy would you also have adverbs take on the appearance of hooks, the way that conjunctions are taking on the appearance of forks? I am not saying that one is preferred over the other, but consistency would probably minimize other issues if adverbs displayed

Re: [Jprogramming] Tropic of Cancer

2014-05-11 Thread robert therriault
I think that is probably right Ian, 5j0 produces an integer result of 5 whereas 5j000.1 is a complex result. You can force the whole array to revert to complex by appending a complex number so: _2j.1,(_2+0.001*i.500)j.0 would produce a vector of complex. As I just discovered as i played

Re: [Jprogramming] Understandable J

2014-05-16 Thread robert therriault
I am a terrible programmer, but I have found that including comments that have examples of what the entity should do, are usually enough for me to figure out what is going on. Without that ... I usually start from scratch, as that is faster and less frustrating. I really am terrible at

Re: [Jprogramming] Understandable J

2014-05-16 Thread robert therriault
not knock starting from scratch as a bad thing. Arthur Whitney has been known to do that, for example. I think it matters more what you are accomplishing and your ability to make that useful for other people. Thanks, -- Raul On Fri, May 16, 2014 at 2:07 AM, robert therriault

Re: [Jprogramming] Project Euler Question 4

2014-06-08 Thread robert therriault
Using Roger's method of replacing 100 + i. 900 with 900 + i. 100 I see even better results and because of the nature to the algorithm even better in chunks of 50 (especially space). timespacex ' ./ (#~ (-: |.)@:0) , */~ 100+i. 900' 0.48508 9.46483e6 timespacex '(-: |.)@: break1 \:~ ~. ,

Re: [Jprogramming] A Beginner's Observation on Learning the J Language

2014-06-10 Thread robert therriault
Thanks for your insight with fresh eyes Jon. I agree that the pictures can be worth a thousand words, the trick is to select them so they trigger the most useful thousand words for the learner. I recently looked at this paper with an empirical approach to language interface design and this

Re: [Jprogramming] A Beginner's Observation on Learning the J Language

2014-06-10 Thread robert therriault
Apparently you need to access the paper via the author's website. http://web.cs.unlv.edu/stefika/Papers.php Cheers, bob On Jun 9, 2014, at 11:09 PM, robert therriault bobtherria...@mac.com wrote: Thanks for your insight with fresh eyes Jon. I agree that the pictures can be worth a thousand

Re: [Jprogramming] Log base 10

2014-06-10 Thread robert therriault
Hi Alex, I think that timespacex may be the verb you are looking for to evaluate your program timespacex '( 10 %^.~ ]) ? 1000 $ 900' 0.0011087 18240 timespacex '(10^inv) ? 1000 $ 900' 0.000245056 26304 timespacex 6!:2 , 7!:2@] time foreign conjunctions -

Re: [Jprogramming] Finger tapping

2014-06-26 Thread robert therriault
Hi Kip, I came up with 6 4 $ 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3 2 Are you looking for a deeper pattern? Cheers, bob On Jun 26, 2014, at 10:18 PM, Kip Murray thekipmur...@gmail.com wrote: Hold up your right hand with its back toward you and number the forefinger

Re: [Jprogramming] sort times

2014-07-05 Thread robert therriault
NB. on a 2011 MacBook Pro 2.4 GHz Intel Core 2 Duo running JHS on Safari JVERSION Engine: j701/2011-01-10/11:25 Library: 8.01.028 Platform: Darwin 32 Installer: j801 install InstallPath: /users/bobtherriault/j801 x=: 1e6 $ ' ' y=: a. {~ ? 1e6 $ 256 %/ 100 (6!:2) '/:~x' ; '/:~y'

Re: [Jprogramming] speaking of amend...

2014-07-12 Thread robert therriault
Hi LInda, Well they look the same, but the contents of the boxes formed by (;.) are vectors of shape 1 and the contents of the boxes of formed by (0) are scalars, $.(; . ) i. 2 3 2 ┌─┬─┐ │1│1│ ├─┼─┤ │1│1│ ├─┼─┤ │1│1│ └─┴─┘ ┌─┬─┐ │1│1│ ├─┼─┤ │1│1│ ├─┼─┤ │1│1│ └─┴─┘ $.(0) i. 2 3 2 ┌┬┐

Re: [Jprogramming] Design goals readability and writeability?

2014-07-15 Thread robert therriault
Hi Erling, I agree with your assessment for what I think of as production code that will be used by third party users. In the case of Raul's reference, I think of it more as proof of concept coding. The goal in this case is to create a work that can act as a prototype. If it is useful, then

Re: [Jprogramming] High Speed Train Challenge

2014-07-19 Thread robert therriault
Hi Pascal, Not arguing against the idea but they are only functionally the same for monadic. 4 *: 4 |domain error | 4*:4 4 +: 4 |domain error | 4+:4 5 *: 4 |domain error | 5*:4 5 *~ 4 20 5 +: 4 |domain error | 5+:4 5 +~ 4 9 Cheers, bob On Jul 19,

Re: [Jprogramming] finding matching sets

2014-07-26 Thread robert therriault
To quote Joey Tuttle from the Jconference...benchmarks. :-) There are a lot of things that go into the decision to use symbols and in the end you test and decide if it provides the performance you want. Cheers, bob On Jul 26, 2014, at 1:21 PM, R.E. Boss r.e.b...@outlook.com wrote: What

Re: [Jprogramming] J conference 2014

2014-07-29 Thread robert therriault
Hi Eric, Thanks again for all the work that you and Liz put into delivering a top notch event. I think that these conferences are really important, not only for the presentations (which were diverse in content and well delivered), but for the conversations that occur in the breaks between the

Re: [Jprogramming] J and APL

2014-07-31 Thread robert therriault
Hi Jon, I dunno, you sound pretty troll-like to me. :-) I have cross posted this to the chat forum, as I agree with Raul that the wider discussion fits chat better than programming. I think that the legacy of APL and the corporations that use it makes that language a 'safer' alternative for

Re: [Jprogramming] FW: zero is an integer

2014-07-31 Thread robert therriault
Hi Linda, You could also use the Format foreign conjunction 8!:2 with an appropriate modifying string for x http://www.jsoftware.com/help/dictionary/dx008.htm 'b0 9.5' 8!:2 at2 /~ i:3 -2.35619 -2.55359 -2.81984 3.14159 2.81984 2.55359 2.35619 -2.15880 -2.35619 -2.67795 3.14159

Re: [Jprogramming] August preparation for J Teche

2014-08-03 Thread robert therriault
Hi Linda, This is a very exciting initiative and I have a housekeeping suggestion that may help with communication. Much of the process of setting up JTECH seems like it fits the chat forum better than the programming forum, although there will undoubtedly be areas that are programming

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

2014-08-08 Thread robert therriault
Hi Henry, You have done great work with dissect. Now you are in beta world and this is where you can really shine. With regard to colour; I think that it is really good to use colour as a secondary characteristic for those that can discern colours, but I have found that using shade or

Re: [Jprogramming] fit conjunction

2014-08-28 Thread robert therriault
Hi Pascal, I love how you are pushing the envelope on this. I guess that I would usually try something like this, (,'*')`(,'d')@.('c'={.)1 ] 3 2 $ 'abc' ab* cad bc* which feels like it is a step removed from the metal compared to allowing fills to be part of defined verbs Cheers, bob On

Re: [Jprogramming] locating indices of string in list of strings

2014-08-30 Thread robert therriault
Hi Don, I think that copy (#) combined with increment (:) may be able to do the trick. 1 1 0 0 1#i.5 NB.index 0 0 1 4 1 1 0 0 1:@#i.5 NB.index 1 1 2 5 Although reading through your journey to get to this point I wonder if Nub (~.) would do the trick. arr ab cd yyy jcd ab cd

Re: [Jprogramming] locating indices of string in list of strings

2014-08-30 Thread robert therriault
.#arr) * +./1 'cd' E.1 arr 1 3 5 7 9 Cheers, bob On Aug 30, 2014, at 4:50 PM, robert therriault bobtherria...@mac.com wrote: Hi Don, I think that copy (#) combined with increment (:) may be able to do the trick. 1 1 0 0 1#i.5 NB.index 0 0 1 4 1 1 0 0 1:@#i.5 NB.index 1 1 2 5

Re: [Jprogramming] J Kernel

2014-09-02 Thread robert therriault
Nice work Devon, I think that I would go with your instincts and leave } out, since it is considerably more complicated than the other parts of speech that you have included. It would complete the pair in a typographic sense, but I don't think that is a strong argument to include it. It also

Re: [Jprogramming] repeated applications of a verb

2014-09-05 Thread robert therriault
Hi Linda, Alessandro defined at the beginning of the thread. SumOfFact=: 3 : 0 +/!.0@: y ) Cheers, bob On Sep 5, 2014, at 7:52 AM, Linda Alvord lindaalv...@verizon.net wrote: Where is SumOfFact these days? Linda -Original Message- From:

Re: [Jprogramming] OOJ and calling a verb from another locale

2014-09-15 Thread robert therriault
Hi Jon, On the chance that you have not yet gone through the labs on Locales and Object Oriented Programming, you may find clarity in some of the examples that they provide. The Locales lab would be the first one to explore as it provides a good foundation for the content of the Object

Re: [Jprogramming] OOJ and calling a verb from another locale

2014-09-17 Thread robert therriault
Raul, (and Linda) I thought it was you (but it may also have been Ric Sherlock or Oleg Kobchenko) that showed me the trick of putting coerase 'localename' NB. erases the entire locale (18!:55) at the top of my script and then following with cocurrent 'localename' NB. coclass also works

Re: [Jprogramming] LZ77

2014-09-18 Thread robert therriault
Hi Bill Nice joke in your last two sentences. You wouldn't want to do this on the chance that J ends up with revenue and could become a target (especially if your joke were produced as evidence). Legal action ends up being very expensive to defend in time as well as money. Also, things tend

Re: [Jprogramming] LZ77

2014-09-18 Thread robert therriault
The best form of self defence in a bar fight is to have left the bar 10 minutes before the fight starts. I learned that in Tai Chi and I think software patent law is a lot like a bar fight. ;-) cheers, bob On Sep 18, 2014, at 8:11 AM, Raul Miller rauldmil...@gmail.com wrote: It's unlikely

Re: [Jprogramming] LZ77

2014-09-18 Thread robert therriault
? http://www.americanbar.org/aba.html Thanks, -- Raul On Thu, Sep 18, 2014 at 11:22 AM, robert therriault bobtherria...@mac.com wrote: The best form of self defence in a bar fight is to have left the bar 10 minutes before the fight starts. I learned that in Tai Chi and I think

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-20 Thread robert therriault
Hi Linda, If you are looking for a way to get learners to be interested in the problem, why not use the very model of learning that we are using here? You put a problem out to your class (forum) and see how the responses go. You as the teacher (moderator) are free to choose the rules, knowing

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-20 Thread robert therriault
would not be a leader but a follower. Possibly I am dreaming Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Saturday, September 20, 2014 1:20 PM To: programm

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-21 Thread robert therriault
...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Sunday, September 21, 2014 1:54 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2 Hi Linda, I share your dream and sometimes the statement 'I have a dream' can change the world

Re: [Jprogramming] JHS on a local network

2014-09-21 Thread robert therriault
Hi Brian, I may be missing something obvious, but you are running your browser on the ipad and using your your mac as a server for J on your local network, right? Or I suppose you could be using some other server that provides J. I don't believe the ipads themselves can function as their own

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-21 Thread robert therriault
Hi Raul, I had the same problem until I started thinking of the month in 'nominal' terms. So if the groundhog was born on 2012 2 2 then until 2012 3 2 it would not be month old. This is where the length of the different months comes in, but each time you go by the 2nd of the month the month

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-22 Thread robert therriault
years (Fine tuning of the leap year calculation ). Don Kelly On 20/09/2014 10:53 PM, robert therriault wrote: Hi Linda, I share your dream and sometimes the statement 'I have a dream' can change the world. :-) On to the weekend puzzle... The first thing I need to figure out

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-22 Thread robert therriault
{WHO)|.M' age=: 13 :'(x yr y),(x ms y), .x ds y' TD age BD 12 7 18 Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Monday, September 22, 2014 11:35 PM

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-23 Thread robert therriault
this year. I was wondering if I had forgotten how old I was On Tue, Sep 23, 2014 at 1:09 PM, robert therriault bobtherria...@mac.com wrote: Hi Joe, Turns out it was a quick fix and that I that my test results for 1900 2 1 age 1899 3 1 and 2000 2 1 age 1999 3 1 were faulty and should

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-24 Thread robert therriault
Hi LInda, Seems okay to me, since (2001 3 1) diff 2001 2 28 NB. non leap year 1 (2000 3 1) diff 2000 2 28 NB. leap year 2 diff=: 13 :'(todayno x)-todayno y' (2005 3 1) diff 2004 2 28 367 (2004 3 1) diff 2003 2 28 367 NB. both these intervals contain 2004 2 29 because of a

Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2

2014-09-24 Thread robert therriault
...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Wednesday, September 24, 2014 10:49 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Weekend Puzzle - Age of Groundhog born 2002 2 2 Hi LInda, Seems okay to me, since (2001 3 1) diff 2001 2 28 NB. non leap year 1

Re: [Jprogramming] Predicting the shape of the result

2014-09-25 Thread robert therriault
Hi Chris, Well there is information on the vocabulary page for Table http://www.jsoftware.com/help/dictionary/d420.htm also Nuvoc has good information on this verb http://www.jsoftware.com/jwiki/Vocabulary/slash#dyadic The actual shape of a box is empty since the box is an atom. In the case

Re: [Jprogramming] Predicting the shape of the result

2014-09-25 Thread robert therriault
prepare this helpful message? Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Thursday, September 25, 2014 2:01 AM To: programm...@jsoftware.com Subject: Re

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread robert therriault
Hi Jon, I am a bit confused about what you would like as well, but without boxing you could do this (3{. , 4{.)1 arr 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 but I am suspicious of the term 4

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread robert therriault
Hi Jon, It's ugly, as in 'I can make this fit with a hammer' ugly, but this works 3 4 ((({.@[){.]) , ({:@[){.])1 arr 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 Cheers, bob On Sep 26, 2014, at

Re: [Jprogramming] JHS on a local network

2014-09-26 Thread robert therriault
had not really thought about a Lab for tgsjhs. I could use some ideas on that. On Fri, Sep 26, 2014 at 12:16 PM, robert therriault bobtherria...@mac.com wrote: Hi Brian, Slightly different approach, but you can do things behind the scenes by using the PREPARE keyword in a lab. You still

Re: [Jprogramming] JHS on a local network

2014-09-29 Thread robert therriault
Hi Brian, The 30,000 foot view (and I apologize that I don't have time to dive deeper at the moment) make me wonder if the turtles are defined in a separate locale than the background? It strikes me that it is like the times when I have used photoshop and find that what I can see I cannot

Re: [Jprogramming] JHS on a local network

2014-09-29 Thread robert therriault
how that could be the cause of the problem. Do you? On Mon, Sep 29, 2014 at 11:59 AM, robert therriault bobtherria...@mac.com wrote: Hi Brian, The 30,000 foot view (and I apologize that I don't have time to dive deeper at the moment) make me wonder if the turtles are defined

Re: [Jprogramming] JHS on a local network

2014-09-30 Thread robert therriault
Hi Brian, My son told me a joke the other day about a software engineer who started to work on solving the 70 bugs that were in their program and after solving the first one, had only 90 left to fix. It's not as funny when it happens to you, I told my son, don't quit your day job. Possible

Re: [Jprogramming] How can I I box items in an array

2014-10-03 Thread robert therriault
Hi Linda, With an extra level of boxing you could do this ]A=:'h' ┌─┐ │┌───┐│ ││┌─┐││ │││h│││ ││└─┘││ │└───┘│ └─┘ ]B=:each 'i';'j' ┌─┐ │┌───┬───┐│ ││┌─┐│┌─┐││ │││i│││j│││ ││└─┘│└─┘││ │└───┴───┘│ └─┘ A,:B ┌─┐ │┌───┐│ ││┌─┐││ │││h│││ ││└─┘││

Re: [Jprogramming] Splitting vector

2014-10-09 Thread robert therriault
Hi Andrey, My first idea is infix, the dyadic mode of \ feeding into monadic transpose |: t=. |: @: (_2 ]\ ]) t 0 1 2 3 4 5 6 7 0 2 4 6 1 3 5 7 Others will have more informed feelings about the best way, but this would work. Cheers, bob On Oct 9, 2014, at 3:00 PM, Andrey Paramonov

Re: [Jprogramming] This surprised me.

2014-11-03 Thread robert therriault
Devon They both look fine to me on Apple Mail (once I had changed the font for message content to fixed width) cheers, bob On Nov 3, 2014, at 4:38 PM, Lippu Esa esa.li...@varma.fi wrote: Hi Devon! Both look fine for me. Using our corporate Outlook client (Office Professional Plus 2010).

Re: [Jprogramming] This surprised me.

2014-11-03 Thread robert therriault
On the Apple Mail app the spacing is messed up and there seems to be an extra carriage return between each line. cheers, bob On Nov 3, 2014, at 5:23 PM, Devon McCormick devon...@gmail.com wrote: Not for me on Gmail - I see the box characters but the spacing is messed up. On Mon, Nov 3,

Re: [Jprogramming] Calling Command line tools from J

2014-12-13 Thread robert therriault
Hi Jon, The path to the script that defines launch, fork and spawn is jpath '~system/main/task.ijs' If you give that script a read you might find what you need. Hope this helps. Cheers, bob On Dec 13, 2014, at 11:11 PM, Jon Hough jgho...@outlook.com wrote: Thanks. I am currently

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread robert therriault
They work for me on j803 jhs with courier as the font. u: 9857 ⚁ Cheers, bob On Dec 31, 2014, at 12:51 PM, Björn Helgason gos...@gmail.com wrote: I use plain jqt on Android On 31 Dec 2014 20:12, Skip Cave s...@caveconsulting.com wrote: The unicode characters 9856-9861 (hex 2680-2685)

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread robert therriault
Hi Linda, I don't know of a way to do it on the standard menus since jhs does not have a config option, but since it is controlled by CSS in HTML you could use jhtml_jhs_ 'style type=text/css*{font-family:courier new,courier,monospace;}/style' with the appropriate values for the font-family

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread robert therriault
...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Friday, January 2, 2015 9:26 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Repeated rolling dice Hi Linda, I don't know of a way to do it on the standard menus since jhs

Re: [Jprogramming] Here is what I want - But a better way would be great

2015-01-24 Thread robert therriault
Hi Linda, Maybe try k=: 13 :'@{:@,@y' instead of k=: 13 ::'@{:@,@y' When each character carries so much information, typos become a big issue. Hope this helps. Cheers, bob On Jan 24, 2015, at 10:10 AM, Linda Alvord lindaalv...@verizon.net wrote: k=: 13 ::'@{:@,@y'

Re: [Jprogramming] During lulls in the games can you simplify this code?

2015-01-04 Thread robert therriault
Linda, What are these games you speak of? (just kidding, Go 'Hawks - oh yeah that's next week) After a long and circuitous route that I won't go into, and with the benefit of Raul and Pascal's responses, I came up with this: postable=:1 : (':'; '(((#~LF-.@e.])5!:5''u'');,.y),.({.;}.)(#~

Re: [Jprogramming] During lulls in the games can you simplify this code?

2015-01-04 Thread robert therriault
. -- Raul On Sun, Jan 4, 2015 at 2:54 PM, robert therriault bobtherria...@mac.com wrote: Linda, What are these games you speak of? (just kidding, Go 'Hawks - oh yeah that's next week) After a long and circuitous route that I won't go into, and with the benefit of Raul and Pascal's

Re: [Jprogramming] During lulls in the games can you simplify this code?

2015-01-05 Thread robert therriault
be fussier about some of the spacing possibilities. Thanks, -- Raul On Sun, Jan 4, 2015 at 9:33 PM, robert therriault bobtherria...@mac.com wrote: No, I was thinking something more positive than that :) Something that would take an array with negatives 3 6 4 12 _2 10 _3 0 _4

Re: [Jprogramming] Rail Fence Cipher

2015-01-08 Thread robert therriault
Hi Linda, The way I remember this effect is to imagine that when you define a verb tacitly the last step is to parenthesize it in your mind. So, enc =: ;@:(/.~ 0 1 2 1 $~ #) becomes enc =: (;@:(/.~ 0 1 2 1 $~ #)) and stays the same, while ;(/.~ (0 1 2 1 $~ #))A works as expected

Re: [Jprogramming] Labs was Re: Plotting a 3D Ellipse

2015-03-19 Thread robert therriault
Raul, Labs can be created just using a text editor, but if you really want to use Author, I have created labs in 602 with Author and just moved the lab file created over to the lab folder in j802. Cheers, bob On Mar 19, 2015, at 9:09 PM, Brian Schott schott.br...@gmail.com wrote: It looks

Re: [Jprogramming] Recalling and editing lines in jqt

2015-01-25 Thread robert therriault
Hi Brian Ctrl-D and Cmd-D have no effect, but Ctrl-Shift-Up is pretty much muscle memory for me and works as advertised in JHS. Cmd-Shift-Up selects the screen above the cursor. JVERSION Engine: j803/2014-10-19-11:11:11 Library: 8.03.10 Platform: Darwin 32 Installer: J803 install

Re: [Jprogramming] Random distribution

2015-05-08 Thread robert therriault
A quick idea on my way out the door. create a vector of N 1's N#1 add a random vector of N 0's and a single 1 (i.=?)N Sum the new vector V' and exit if +/V' is equal to Q (probably a converging power conjunction) Cheers, bob On May 8, 2015, at 9:47 AM, Dan Bron j...@bron.us wrote: I

Re: [Jprogramming] Verb to string and Verb array

2015-04-15 Thread robert therriault
Not really a silly idea and in fact as you have described it, it sounds like the idea behind tie and agenda v1`v2`v3 @. v where v1, v2,v3 are the different verbs and v is the verb that returns the index into the list of gerunds. Cheers, bob On Apr 15, 2015, at 1:26 AM, Jon Hough

[Jprogramming] Results of 1/:1

2015-04-11 Thread robert therriault
Just spotted a question on stack overflow from Zhe Hu about the behaviour of 1/:1 http://stackoverflow.com/questions/29580291/j-sort-function-1-1-returns-0 2/:2 NB. expected result 2 1/:1 NB. expected 1 as the result 0 Also, #$ 2 /: 2 NB. result is list as expected 1 #$ 1

  1   2   3   4   5   6   7   8   >