Re: [Jprogramming] Running script from jconsole

2015-03-03 Thread Raul Miller
That reminds me: on OS X, I sometimes use a shell script like this: #!/bin/sh exec /Applications/j64-803/bin/jconsole "$@" This particular example offers no advantage over a symbolic link, but if you want variations on a theme, scripts start being nice. Thanks, -- Raul On Tue, Mar 3, 2015 at

Re: [Jprogramming] Running script from jconsole

2015-03-03 Thread Joey K Tuttle
Very nice! I did run into a little frustration in OS X Terminal - where jconsole is by default a tarpit of java stuff. So either the path to jconsole in the J bundle, or an alias (I do a symbolic link of ja to be jconsole) removes my angst. Examples (in reverse order): $ ja -js 'echo %. i.2

Re: [Jprogramming] Running script from jconsole

2015-03-03 Thread Raul Miller
Actually, it occurs to me that there's a simpler approach, which might sometimes be wiser - arrange for standard input to be something other than the keyboard. For example, under unix: :|jconsole -js 'echo 1+1' You'll get a prompt before the exit, but you can avoid that with an explicit exit stat

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Tikkanz
Thanks Bill, Yes that works too. I think I prefer the PDF for my general use because it enables me to resize the plot afterwards. However the cairo option will be useful to me for some usecases. On Wed, Mar 4, 2015 at 12:14 PM, bill lam wrote: > Ric, > > Please try set > CONSOLEOUTPUT_z_=: 'cair

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread bill lam
Ric, Please try set CONSOLEOUTPUT_z_=: 'cairo' before loading plot. alternatively, set the output option as left argument for the verb plot. On Mar 4, 2015 3:15 AM, "Tikkanz" wrote: > > On my Linux system when I plot from jconsole, evince pops up with a PDF > rendering of my plot. > >load '

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread bill lam
the pd show cmds familt show have an option for every output, please see http://www.jsoftware.com/jwiki/Plot/Commands or please provide a simple script to reproduce the failure. btw even lower level gl2 commands work for cairo, see test scripts in cairo addon. On Mar 4, 2015 3:29 AM, "Devon McCo

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Linda Alvord
I finally finished J TECH Grade 3. You should look at: J TECH Grade 3 Summary.docx J TECH Grade 3 Summary code.ijs Lots and lots of boxes! https://www.dropbox.com/sh/cdxkvp920xwzb9g/AAC4-hFHK6nhiuao5ZVswRFda?dl=0 Maybe this will be helpful. Linda -Original Message- From: programming

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Linda Alvord
Here's what I use a lot. Run the code in jhs. Cut and paste into word. Select default as the way to paste in the code. Then select it all again and change to Courier New as the font. Oncd there you can cut and paste it into boxes. You can even include png's in the document. Linda -Original

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
Come to think of it, "plot" works fine - it's the lower-level "pd" commands I'm having trouble with. On Tue, Mar 3, 2015 at 2:15 PM, Tikkanz wrote: > On my Linux system when I plot from jconsole, evince pops up with a PDF > rendering of my plot. > >load 'plot' >plot i. 4 7 > > There is a

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread 'Pascal Jasmin' via Programming
What is basically the same approach but using smaller utilities strbracketF =: 0&{::@:[ , ] , 1&{::@:[ strbracket =: (0&({)@:[ , ] , 1&({)@:[) ('';'') (strbracketF >) ('';'')strbracket"1 (<'';'') strbracketF each ": each <"0 i.3 4 makes a lot of extra whitespace in result, but layout is reada

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Tikkanz
On my Linux system when I plot from jconsole, evince pops up with a PDF rendering of my plot. load 'plot' plot i. 4 7 There is an evince error message (** (evince:28856): CRITICAL **: ev_bookmarks_get_bookmarks: assertion 'EV_IS_BOOKMARKS (bookmarks)' failed) but it doesn't seem to affect d

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Joe Bogner
Good suggestion, thank you for adding On Tue, Mar 3, 2015 at 1:37 PM, Devon McCormick wrote: > I like Raul's and Joe's approaches better than the one I proposed. However > I might modify, say Joe's version, to add some formatting like this: > > buildTable =: 3 : 0 >cols =. ,"2 (''&,@]@,&'')

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Devon McCormick
I like Raul's and Joe's approaches better than the one I proposed. However I might modify, say Joe's version, to add some formatting like this: buildTable =: 3 : 0 cols =. ,"2 (''&,@]@,&'') every y rows =. , TAB,"1 LF,~"1(''&,@]@,&'')"1 cols table =. '',LF,rows,'' ) So (this probably

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Joe Bogner
How about something like this? NB. some data that is slightly offset data=. 3 4 $ ;: 'abc ab xyz' buildTable =: 3 : 0 cols =. (''&,@]@,&'') every y rows =. , (''&,@]@,&'')"2 cols table =. '',rows,'' ) buildTable data On Tue, Mar 3, 2015 at 9:40 AM, Chernin, Nadav wrote: > Hi, > I need in my

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Raul Miller
Here's how I might approach something like this: td=: '',":,''"_ tr=: '',([:;td each),''"_ table=: '',([:;<@tr"1),''"_ Example use: table i.3 3 That results in a very long line, so let's change: tr=: '',([:;td each),('',LF)"_ table i.3 3 012 345 678 Note that boxed data gets

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Brian Schott
Oleg Obchenko created a handy utility for this, but it is slightly dated. http://olegykj.sourceforge.net/scripts/okhtml2.zip The following paragraph explains the feature that remains in Olegs utlity, that requires change. There is another utility which automates the change and I will attempt to c

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
Thanks - I believe I've already used this under J7. I'll take a look at integrating it into the plot demos. On Tue, Mar 3, 2015 at 9:47 AM, bill lam wrote: > j803 plot has a "cairo" output which generate png file directly, just like > the viewmat. You need to install the cairo addon and read it

Re: [Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Devon McCormick
I've done this sort of thing using a template-based approach where I start with a character vector containing the formatting I want to use with place-holders for the data items. tmplt=. '{c1}{c2}{c3}' In this case, items in column one are represented by '{c1}' and so on for the other columns.

Re: [Jprogramming] Plot under jconsole

2015-03-03 Thread bill lam
j803 plot has a "cairo" output which generate png file directly, just like the viewmat. You need to install the cairo addon and read its readme first. This is independent of Qt. Please see jwiki plot output options. On Mar 3, 2015 10:34 PM, "Devon McCormick" wrote: > Has anyone succeeded in usin

[Jprogramming] Transform boxed data to html representation

2015-03-03 Thread Chernin, Nadav
Hi, I need in my project to represent boxed data in html report I try to find some code that can help me to do that Thanks Nadav Chernin -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Plot under jconsole

2015-03-03 Thread Devon McCormick
Has anyone succeeded in using plot under jconsole? Is such a thing possible? I'm happy with the way "viewmat" has evolved in J8: under jconsole (under Windows), it spins off an independent .png file that appears in a separate view window and returns control to the session. However, when I try to

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

2015-03-03 Thread Björn Helgason
This is great!! I put a fairly complicated sentence with a hook into dissect and the display is nice and then the explanation on pointing at elemnents quite inomative andgood Have not had time to go through the labs yet but intending to shortly. Look forward testing/using this and finally gettin