Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Thanks for bearing with me; will do that. Now I'm able to pick up the loose ends from two years ago ... I simply like working inside JConsole. Martin At 2014-04-02 00:01, you wrote: you can define your own version of viewpdf_j_ in ~config/startup.ijs 02.04.2014, в 1:27, Martin Kreuzer наÐ

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-01 Thread Don Kelly
On 01/04/2014 9:59 AM, Roger Hui wrote: There is a somewhat related anecdote. Two trains are 100 miles apart on a straight track, facing each other and travel at 25 miles per hour toward the other. At the same time, a fly flies at 100 miles an hour from one train to the other and, when it reac

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
you can define your own version of viewpdf_j_ in ~config/startup.ijs 02.04.2014, в 1:27, Martin Kreuzer написал(а): > Thanks Bill - > > Changed line (in "else" section) to > - >r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp ParamRES, dquote > cmd);NULL;SW_SHOWNORMAL > - >

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Thanks Bill - Changed line (in "else" section) to - r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp ParamRES, dquote cmd);NULL;SW_SHOWNORMAL - which did the job. I'm not that familiar with ShellExecuteW as I haven't done any Win API programming at all. Q: What would be t

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-01 Thread Raul Miller
On Tue, Apr 1, 2014 at 12:40 PM, Jose Mario Quintana wrote: > (Offline) Or not... > Zeno then rests smiling mischievously while sipping some wine knowing full > well that there is plenty more coming his way and his reputation will > remain intact (he could not even be accused of any wrong doing)

Re: [Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-01 Thread Roger Hui
There is a somewhat related anecdote. Two trains are 100 miles apart on a straight track, facing each other and travel at 25 miles per hour toward the other. At the same time, a fly flies at 100 miles an hour from one train to the other and, when it reaches the other train, turns around instantan

Re: [Jprogramming] Item amend ~: index error.

2014-04-01 Thread Jose Mario Quintana
:D We are even now! http://www.jsoftware.com/pipermail/programming/2009-December/017145.html On Mon, Mar 31, 2014 at 12:47 PM, wrote: > [Offline] > > I may be reading too much into this, but just wanted to clarify that when I > said "partially a product of my own twisted experiments" below,

[Jprogramming] Zeno and the superimposing clock hands puzzle

2014-04-01 Thread Jose Mario Quintana
(Offline) The hour hand and the minute hand of a clock are superimposed at 0:0 (12:00). When is the next time they will be superimposed again? One can approach the solution time as follows: one hour later the minute hand is where the hour hand was an hour ago; however, the hour hand has moved to

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
untested but you may try something like this. change in line (1) may not be needed. dquote in (2) should be kept. (1) cmd=. '\' (I. cmd='/') } cmd if. -.fexist cmd do. EMPTY return. end. if. 0 = #PDFReader do. NB. checking for empty string r=. ShellExecute 0;(uucp 'open');(uucp cmd

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
This is how far I got: Found "viewpdf "definition in stdlib.ijs alright. Relevant section is short of line 1900. Managed to get in local var ParamRES=. ' -e ' . Changed this line - r=. ShellExecute 0;(uucp 'open');(uucp PDFReader);(uucp dquote cmd);NULL;SW_SHOWNORMAL - to - r=.

Re: [Jprogramming] J source code

2014-04-01 Thread Thomas Costigliola
>From the J701b source package: F1(jtversq){ASSERTMTV(w); R cstr("j701/2011-02-23/15:25");} >From the latest install of J8 downloaded from the website today: 9!:14'' j701/2011-01-10/11:25 Looks like the source package is ahead of the current binary by over a month :) On Tue, Apr 1, 2014 at

Re: [Jprogramming] Tweak to complex floor model

2014-04-01 Thread Henry Rich
Right now I'm documenting <., so everything matters to me. Tolerance has mattered in the past to me when using /. to collect statistics on identical values of x, and having the results come out different depending on the ordering of data. Henry Rich On 4/1/2014 10:07 AM, Raul Miller wrote:

Re: [Jprogramming] J source code

2014-04-01 Thread Marc Simpson
On Tue, Apr 1, 2014 at 2:31 PM, Blake McBride wrote: > My interest in J will be highly related to how much source they release. While we should move this thread off programming@, I'll note in passing that the engine, addons and two most recent IDEs are all open source. I'm not sure what else you'

Re: [Jprogramming] Tweak to complex floor model

2014-04-01 Thread Raul Miller
It's perhaps worth noting that tolerant equality is something of a pain to reason about. I doubt such reasoning can ever be completely consistent with itself. This leads to questions of the form "why does this matter"? (Personally, I'm stalled on a project because J crashes when I run the code. I

[Jprogramming] Tweak to complex floor model

2014-04-01 Thread Henry Rich
The Dictionary models complex floor as floor=: j./@(ip+(c2>c1),c1+:c2) '`c1 c2 fp ip'=:(1:>+/@fp)`(>:/@fp)`(+.-ip)`(<.@+.) but this doesn't match: (<. , floor) 0.5j0.5001 0j1 1 it appears that the comparison to produce c2 is in fact intolerant: '`c1 c2 fp ip'=:(1:>+/@f

Re: [Jprogramming] jhs webgl array_buffer

2014-04-01 Thread Brian Schott
I have revised the JHS turtle graphics app, tgsjhs, and entered a new quicky intro video. Thanks to all who have helped with this effort. My greatest hope is that others find ways to use and adapt this system. http://youtu.be/YeLNbD0BpqA Although it is saved as a .png file, it is really a .zip f

Re: [Jprogramming] J source code

2014-04-01 Thread Blake McBride
Dear Joe, Thank you for your thoughtful response. First, let me say that philosophy is actually one of my specialties, so getting philosophical would be just fine. I fully agree with everything you said regarding JSoftware's challenge and trade-offs regarding trying to run a business. I spent y

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
default to ~temp/plot.pdf should be correct. it calls this viewpdf_j_ jpath '~temp/plot.pdf' typing in jconsole viewpdf_j_ will give its definition and you can see why it failed with a "-e" paramenter because there is no such file with a name " -e" you may modify viewpdf_j_ until it wor

Re: [Jprogramming] J source code

2014-04-01 Thread Joe Bogner
Blake, Welcome to the list. My opinion was similar to yours when I started using J about 9 months ago. I will post a short reply as the full reply is more philosophical and probably belongs on the c...@jsoftware.com forum ( jsoftware.com/forums.htm) I think of J as having several components of th

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Chris, you are right about that; I was able to confirm it using XP's Virtual DOS Console. (Nice time saving option, by the way.) That still leaves the question: Where is the path-to-pdf-file filled in..? For plot isn't following the ~temp path correctly - jpath '~temp' f:/documents and s

Re: [Jprogramming] In olden days ...

2014-04-01 Thread bill lam
image3 addons cannot work on J801 but you may use some replacement available in jqt. eg data=: readimg_jqtide_ 'foo.bmp' data writeimg_jqtide_ 'foo.png' Jqt wd has a child to display bitmap image, you can use that for viewing image, please qt demo. On Tue, Apr 1, 2014 at 4:08 PM, Linda Alvord

[Jprogramming] In olden days ...

2014-04-01 Thread Linda Alvord
In the old days I could write the following and do wonderful things like it. Even make see1.png, too. p2=:(#:i.8){0 255 rep=: 13 :'x#x#"1 y' sb=:10 rep b=:,:4 0 2 0 1 (sb{p2) write_image 'temp\see1.bmp' view_image 'temp\see1.bmp' Here's it now" p2=:(#:i.8){0 255 rep=: 13 :'x#x

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread chris burke
I think -e used to mean "reuse any existing gsview session". On Tue, Apr 1, 2014 at 3:37 PM, Martin Kreuzer wrote: > Bill, you are right on both counts: > [1] double quotes not necessary (single quotes already taking care of the > blanks within path). > [2] "-e" obviously causing the error; plo

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
Bill, you are right on both counts: [1] double quotes not necessary (single quotes already taking care of the blanks within path). [2] "-e" obviously causing the error; plot working like a charm without it. Don't know anything about this parameter; found it there in base.cfg ... Thanks, Martin

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread bill lam
I guess the double quotes are not needed but it may be the "-e" that caused error. What is this "-e"? Can it be omitted? If not, try another app such as acrobat reader. On Tue, Apr 1, 2014 at 3:00 PM, Martin Kreuzer wrote: > When adding a pair of double quotes I get: > > - >] v=. 5 % ~ i:

Re: [Jprogramming] Challenge 14; Colorful Creations

2014-04-01 Thread Linda Alvord
Peter, Usually if one person has a question, someone else may have the same question, so here are some suggestions. copy everything in the code below here (starting with (require 'viewmat'). Now start jqt and under file and new temp, paste all the code in the open window. Chose run and then all

Re: [Jprogramming] jcon: simple plot issue

2014-04-01 Thread Martin Kreuzer
When adding a pair of double quotes I get: - ] v=. 5 % ~ i: 5 _1 _0.8 _0.6 _0.4 _0.2 0 0.2 0.4 0.6 0.8 1 load 'plot' plot v; v view pdf error:"d:/program files/ghostgum/gsview/gsview32.exe" -e f:/documents a nd settings/admin/j701-user/temp/plot.pdf The system cannot find the file