Re: [Jprogramming] Compressing an array vertically

2012-10-23 Thread Bill Harris
Marshall Lochbaum writes: > I'm confused about how you are handling multiple values for one of the > attributes (like Attribute 1 here). If you give more detail I can give > some hints on that. Of course, if you can do it yourself, that's even > better! Marshall, You handled multiple values as

Re: [Jprogramming] macosx j602

2012-10-23 Thread Joey K Tuttle
I meant to reply to this too - I do run Mountain Lion, but normally only use j in a Terminal window (executing jconsole) - I tried that first and j602 started fine, but then I ran a verb I have defined - version =: 3 : 'JVERSION, (10{a.), (2!:0 ''sw_vers''), 2!:0 ''echo `java -version 2>&1`'

Re: [Jprogramming] Compressing an array vertically

2012-10-23 Thread Marshall Lochbaum
I'm not sure I completely understand the format you're trying to use, but here's the first part of the algorithm, which seems to be the one you don't know how to do. The key is dyadic <;.1 , which you can look up in the dictionary. ] attributes =. (<'Location'),~ 'Attribute '&,&.> ":&.>i.4 ┌──

Re: [Jprogramming] macosx j602

2012-10-23 Thread Ian Clark
Haven't installed Mountain Lion yet. But there's a list of ideas to try here: http://www.jsoftware.com/jwiki/System/Installation/J602/Mac/MacSnowLeopardInstallBug On Tue, Oct 23, 2012 at 12:13 AM, kamakura wrote: > Hi > > I sometimes use J602 version on MacOS Mountain Lion with Java Preferences

Re: [Jprogramming] Compressing an array vertically

2012-10-23 Thread Bill Harris
On Tue, Oct 23, 2012 at 1:52 PM, Raul Miller wrote: > You will need some way of identifying each of these types of data. > > You have said that there's nothing unique about Attribute 0 except > that it appears before Attribute 1, but this does not seem like a > complete description of the rules ab

Re: [Jprogramming] stitching matrices

2012-10-23 Thread Raul Miller
Sometimes. u&v y is u v y when (0 { v b. 0) >: #$y -- Raul On Tue, Oct 23, 2012 at 4:28 PM, Henry Rich wrote: > Just remember that u&v y IS NOT u v y . > > u&:v y IS u v y . > > u&v y is the same as u&:v"v y . > > Henry Rich > > > On 10/23/2012 9:57 AM, Linda Alvord wrote: >> >> I know t

Re: [Jprogramming] Compressing an array vertically

2012-10-23 Thread Raul Miller
You will need some way of identifying each of these types of data. You have said that there's nothing unique about Attribute 0 except that it appears before Attribute 1, but this does not seem like a complete description of the rules about how identify all of these. We can't even think about orga

Re: [Jprogramming] stitching matrices

2012-10-23 Thread Peter B. Kessler
Raul Miller wrote: Also, I was noticing that we do not have any editor support for recognizing or moving between matching parenthesis, and that would be handy when refactoring code like this. It's almost enough to make me want to start using emacs again (but I stopped because of RSI issues

Re: [Jprogramming] stitching matrices

2012-10-23 Thread Henry Rich
Just remember that u&v y IS NOT u v y . u&:v y IS u v y . u&v y is the same as u&:v"v y . Henry Rich On 10/23/2012 9:57 AM, Linda Alvord wrote: I know that your explanation works because the dictionary defines & as u&v y ↔ u v y . What I am trying to do is sort out a sequence for d

[Jprogramming] Compressing an array vertically

2012-10-23 Thread Bill Harris
I get to J little enough these days so I'm a bit rusty when it comes to the interesting stuff, and I'm stuck on a particular problem. I start with a PDF report. I run it through pdftotext and then format/zulu's a2b to get a file that is mostly of the form value attribute value attribute value .

Re: [Jprogramming] J and education (was: stitching matrices)

2012-10-23 Thread Raul Miller
Geometry is an interesting case... I think J could use better api design there. I have some ideas of tools I want to write for myself, that are sort of like geometry api tools, but I'm a long way off from actually writing them. (Photoshop "layers" might be very like a J variable, and that some pa

Re: [Jprogramming] J and education (was: stitching matrices)

2012-10-23 Thread Linda Alvord
I'm working on long script that would be a guideline for an honors geometry and have been able to stay comfortably within "Easy J". I've only used the functions necessary for the geometry concepts I'm teaching. I came upon a hook that is appropriate and I could go as Aai suggested or use & and

[Jprogramming] J and education (was: stitching matrices)

2012-10-23 Thread Raul Miller
On Tue, Oct 23, 2012 at 9:57 AM, Linda Alvord wrote: > What I am trying to do is sort out a sequence for developing concepts in > mathematics education. A starting point is Easy J. Also. I favor explicit > definitions using 13 : as they clearly indicate the placement of arguments. "Mathematics"

[Jprogramming] paren matching (was: stitching matrices)

2012-10-23 Thread Raul Miller
GtkSourceView must have some way of dealing with quoted strings, and given that some languages contain multiple quoting systems there is probably a way of constraining paren matching to the current line. http://developer.gnome.org/gtksourceview/stable/lang-tutorial.html suggests that a wrote: > On

Re: [Jprogramming] stitching matrices

2012-10-23 Thread Linda Alvord
I know that your explanation works because the dictionary defines & as u&v y ↔ u v y . What I am trying to do is sort out a sequence for developing concepts in mathematics education. A starting point is Easy J. Also. I favor explicit definitions using 13 : as they clearly indicate the plac

Re: [Jprogramming] JHS JAL update

2012-10-23 Thread Ric Sherlock
>From the Wiki page http://www.jsoftware.com/jwiki/JAL/Package%20Manager/jpkg jpkg should take list of boxed addon names as right argument so the following should install any packages that aren't installed 'install' jpkg {."1 'shownotinstalled' jpkg '' However jpkg has had a number of improvem

Re: [Jprogramming] stitching matrices

2012-10-23 Thread Ric Sherlock
On Mon, Oct 22, 2012 at 5:50 AM, Raul Miller wrote: > > Also, I was noticing that we do not have any editor support for > recognizing or moving between matching parenthesis, and that would be > handy when refactoring code like this. It's almost enough to make me > want to start using emacs again