Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread henryhrich
1. Separate labs would be great - let the content come pouring in and we'll arrange it in the best way. I'd like to see 100 chapters and a dozen labs. 2. I will add an option to Debug to remove the KeepOnTop, and engage that from the lab. I will have to see how to turn that on for other uses

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread Raul Miller
On Wed, Jul 8, 2015 at 12:45 PM, wrote: > Suppose I just delete the first 2 boxes, which are the '\' and the > '\disk' levels, and use my original program on the remaining > directories. Would that be reliable on Mac? Probably not. I don't know why 2!:0 doesn't work for top level directories,

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread henryhrich
I wasn't trying to be skeptical, just ignorant. :) If 1!:0 works reliably except at top-level directories, I could use 1!:5^:(*@#) (#~ [: *./\. 0 = #@(1!:0)"0) <@}:@;\ (<;.2~e.&'/\') ofn which is what you wrote, changed to suit my tastes. But wait, I have another problem. One of the lab ch

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread Don Guinn
An excellent tool! A real opportunity to extend the lab concept. I question the "expert code" examples being all tacit. Nowhere in the lab is tacit explained. And the "J by Point and Click" Wiki page specifically recommends that tacit code should not be used as it could overwhelm the beginner. All

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread Raul Miller
I suggested to Henry that that line should be changed to 1!:5(#~ [:*/\.0=#@(1!:0)@>)}:&.>,&.>/\(<;.2~e.&'/\')ofn The underlying problems are two: [1] J does not have a foreign which tests if a directory exists or not. (Closest we have to that is 1!:44) [2] For some reason getting a listing o

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread robert therriault
Henry, Thanks for all the work on the point and click approach to J. I recently read this blog post by Dan Meyer, a math teacher, who uses the analogy of teaching a skill before there is a need to giving the students aspirin before they have a headache. It is worth a read for anyone looking to

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread henryhrich
That's what I was trying to say. Make the topic a problem the user cares about solving, so they'll pay attention to the solution. I would guess that a good rule of thumb would be that YOU want to see a solution. You didn't start by saying, "What's something I can do easily in J", but with "Wh

Re: [Jprogramming] New visual teaching lab for J - contributors needed

2015-07-08 Thread Devon McCormick
I agree with Jon. A lot of NYCJUG's "Beginner's Regatta" modules are geared toward very basic things like reading file and turning it into a useful array. On Wed, Jul 8, 2015 at 1:56 AM, Jon Hough wrote: > I am interested in contributing, but am unsure what, if anything, I can > contribute. I'd

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Strale
Thank you very much all the information were super I got some problem on the difference between atom variable and list of single element that is clear now Paolo On Wed, Jul 8, 2015 at 1:19 PM, 'Bo Jacoby' via Programming < programm...@jsoftware.com> wrote: > I wonder who takes away the linefeeds

Re: [Jprogramming] Question on E. command

2015-07-08 Thread 'Bo Jacoby' via Programming
I wonder who takes away the linefeeds from my emails to programming forum. They are incomprehensible anyway so further destruction is not needed. :) Den 13:00 onsdag den 8. juli 2015 skrev Joe Bogner : Good question! That has tripped up many people (including myself) Elaborating

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Joe Bogner
Good question! That has tripped up many people (including myself) Elaborating on both fine answers: If you aren't sure why you need enclose the atom in a list, this might help: Question: What are the shapes of each of the items in the list? $ each ;: 'cc dd f h gg zz' ┌─┬─┬─┬─┬─┬─┐ │2│2│1│1│2│

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Strale
Thank you I will read again the chapter on indexing On Wed, Jul 8, 2015 at 12:04 PM, Brian Schott wrote: > Elaborating on Bo's fine answer and (hopefully) adding line feeds. > >(<'h') E. each a > ┌───┬───┬─┬─┬───┬───┐ > │0 0│0 0│0│1│0 0│0 0│ > └───┴───┴─┴─┴───┴───┘ >(<,'h') E. a > 0 0

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Linda Alvord
Here's a "step at a time" method: ]a=. ;: 'cc dd f h gg zz' ┌──┬──┬─┬─┬──┬──┐ │cc│dd│f│h│gg│zz│ └──┴──┴─┴─┴──┴──┘ 'h'=>a 0 0 0 0 0 0 1 0 0 0 0 0 +./'h'=>a 1 0 +./"1 'h'=>a 0 0 0 1 0 0 Linda -Original Message- From: programming-boun...@forums.jsof

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Brian Schott
Elaborating on Bo's fine answer and (hopefully) adding line feeds. (<'h') E. each a ┌───┬───┬─┬─┬───┬───┐ │0 0│0 0│0│1│0 0│0 0│ └───┴───┴─┴─┴───┴───┘ (<,'h') E. a 0 0 0 1 0 0 (<,'dd') E. a 0 1 0 0 0 0 -- (B=) --

Re: [Jprogramming] Question on E. command

2015-07-08 Thread 'Bo Jacoby' via Programming
    (<,'h') E.  a0 0 0 1 0 0    (<,'dd') E.  a0 1 0 0 0 0 Den 11:49 onsdag den 8. juli 2015 skrev Strale : Hello I am trying to learn J and trying to make a function to tokenise strings I have tried the E. command but I cannot have it working to search 1 char token ex:   [a=. ;:

[Jprogramming] Making "crayons" and mixing colors

2015-07-08 Thread Linda Alvord
JTECH Grade 4 begins in a blaze of color. Using green, red and blue you can make 8 colors (binary counting). Use a GRB palette and the colors are arranged from light to dark. Mix the colors and get 28 new colors. Take a look... In JHS it develops as a "story". load 'viewmat' RGB=:|.255*#:i.8 NRG

[Jprogramming] Question on E. command

2015-07-08 Thread Strale
Hello I am trying to learn J and trying to make a function to tokenise strings I have tried the E. command but I cannot have it working to search 1 char token ex: [a=. ;: 'cc dd f h gg zz' ┌──┬──┬─┬─┬──┬──┐ │cc│dd│f│h│gg│zz│ └──┴──┴─┴─┴──┴──┘ (<'h') E. a 0 0 0 0 0 0 but w