Re: [Jprogramming] Faster deb

2012-01-05 Thread Linda Alvord
Joey's fun3 illustrates how the tacit form encourages simplification. Very impressive. Linda -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, January 04, 2012 11:58 PM To: Programming forum S

Re: [Jprogramming] Faster deb

2012-01-05 Thread Björn Helgason
fun4=.-. a fun4 ' ' nowisthetimeforallgoodmentocometotheaidoftheircountry a fun4 'c' now is the time for all good men to ome to the aidof their ountry a -. ' ' nowisthetimeforallgoodmentocometotheaidoftheircountry 2012/1/5 Linda Alvord > Some hints to create a tacit verb: > > >

Re: [Jprogramming] Faster deb

2012-01-05 Thread Linda Alvord
It took me a long time to notice the double space in '' '' dbx x the better angels of our nature dbx #~ -.@(' '&E.) dbx2=: 13 :'(-.'' ''E.y)#y' dbx2 x the better angels of our nature dbx2 ] #~ [: -. ' ' E. ] Linda -Original Message- From: programming-boun...@

Re: [Jprogramming] Faster deb

2012-01-05 Thread Linda Alvord
Also x=: 'the better angels of our nature' dbx2=: 13 :'(-.'' ''E.y)#y' dbx2 ] #~ [: -. ' ' E. ] dbx2 x the better angels of our nature $dbx2 x 31 db2=: 13 :''' '',(dbx y),'' ''' db2 ' ' , ' ' ,~ dbx db2 x the better angels of our nature $db2 x 33 J is so good

[Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
How do I get a timer in j701 jhs (or jconsole)? I've been assuming wd (11!:0) doesn't work at all in j701 (in j602 you'd do: 11!:0 'timer 3' for a callback in 3 secs). BTW J701 help (http://www.jsoftware.com/docs/help701/dictionary/dx011.htm) still refers to 11!:0 but I assume that's just because

[Jprogramming] edgesize in stick plots

2012-01-05 Thread Tracy Harms
I'm creating 3D plots of type 'stick'. I would like the sticks to be drawn with greater width. Applying 'edgesize' has not worked. I've tried between 2 and 50, e.g. pd 'edgesize 50' Does edgesize apply for stick plots? If so, how should I get it to work? If not, is there a way to adjust how thickl

Re: [Jprogramming] timer in j701?

2012-01-05 Thread bill lam
I guess there is no timer in j602/j701 jconsole. Чтв, 05 Янв 2012, Ian Clark писал(а): > How do I get a timer in j701 jhs (or jconsole)? > > I've been assuming wd (11!:0) doesn't work at all in j701 (in j602 > you'd do: 11!:0 'timer 3' for a callback in 3 secs). > > BTW J701 help (http://www.jso

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Björn Helgason
Will this do? 6!:3 y*Delay*. Delay execution for y seconds. For example, 6!:3 (2.5) ff'' 2012 1 5 14 29 37.409 2012 1 5 14 29 37.41 2012 1 5 14 29 52.42 2012 1 5 14 29 52.42 ff 3 : 0 smoutput 6!:0 '' f'' smoutput 6!:0 '' ) f 3 : 0 smoutput 6!:0 '' 6!:3 (15) smoutput 6!:0 '' ) Strangely

Re: [Jprogramming] Challenge 3 - Dole a Mixed Pack

2012-01-05 Thread Linda Alvord
I'm not sure this if this challenge was too hard or too easy. Since no one responded, I'll show you my solution. If I can do the challenge at all, then I pose the question. My hope is that the solutions you provide will teach me better ways of doing things. Actually, I probably enjoy that part o

Re: [Jprogramming] edgesize in stick plots

2012-01-05 Thread Tracy Harms
I notice now that 'edge' options apply to ellipse, pie, poly, and rect. So, they don't apply to stick. As there are no appearances of 'stick' on the plot options page, this apparently does not get to be adjusted as thing stand. --T On Thu, Jan 5, 2012 at 9:06 AM, Tracy Harms wrote: > I'm crea

Re: [Jprogramming] edgesize in stick plots

2012-01-05 Thread Tracy Harms
OK, no sooner did I post that than I determined that pen size applies to sticks. Pen size of 5 looks great. Problem solved. --Tracy On Thu, Jan 5, 2012 at 10:10 AM, Tracy Harms wrote: > I notice now that 'edge' options apply to ellipse, pie, poly, and rect. > So, they don't apply to stick. >

Re: [Jprogramming] Faster deb

2012-01-05 Thread Roger Hui
There is a section from Perlis's *APL is more French than English * from 1978 that is relevant. (You can substitute J for APL.) A second precious property I’ve found, with respect to APL, is the term that I’ve used in that little article that was prin

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
You're right, Bill, there's no timer in j602 jconsole either. But I was only thinking of wd'timer...' --which I have to replace in code I want to port to JHS. If there isn't a timer in J7, and there isn't going to be, I'll write my own. A simple shell script should do it. But I always get caned wh

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Eric Iverson
There is no JHS equivalent of wd'timer'. I think this would best be done in JHS with a javascript asynch timer that does an ajax call. If you get stumped on this, get back to me. On Thu, Jan 5, 2012 at 11:23 AM, Ian Clark wrote: > You're right, Bill, there's no timer in j602 jconsole either. But

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Björn Helgason
looking in google for setTimeout and setInterval The most obvious examples of Javascript functions that are asynchronous are setTimeout and setInterval. These functions start a timer that will execute a specified command at some future time and then immediately return control without waiting for

Re: [Jprogramming] timer in j701?

2012-01-05 Thread David Mitchell
Here is a version that works with J602 and J701 jconsole. It does not work with jhs or jgtk. I have not tested it extensively and it may have side effects or bugs that I haven't found yet. http://www.jsoftware.com/jwiki/Scripts/WindowsTimer On 1/5/2012 8:27, Ian Clark wrote: > How do I get a

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks Eric. I'll take a stab at it. It will be instructive. But I may well be getting back. To make my requirement more precise, I want to trigger some "handler" verb after a given interval, leaving J to carry on working normally, but to do it only once, not repeatedly. That's the only use I make

Re: [Jprogramming] NYCJUG Tuesday, 1/10/2012 at 18:30 at Heartland in Empire State Bldg.

2012-01-05 Thread Devon McCormick
Sorry, no. On Wed, Jan 4, 2012 at 6:31 PM, Don Guinn wrote: > Is teleconference going to be available? > > On Wednesday, January 4, 2012, Devon McCormick wrote: > > Hi all - > > > > we're starting our regular meetings again this coming Tuesday. > > > > Hope to see some of you there! > > > > --

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks, David. But this uses 'dll'. AFAIK there's no comparable way of calling dylibs in Darwin. On Thu, Jan 5, 2012 at 5:44 PM, David Mitchell wrote: > Here is a version that works with J602 and J701 jconsole.  It does not work > with > jhs or jgtk.  I have not tested it extensively and it may

[Jprogramming] Intro to "under"

2012-01-05 Thread Devon McCormick
Have people seen this: http://prog21.dadgum.com/index.html ? -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Challenge 3 - Dole a Mixed Pack

2012-01-05 Thread Raul Miller
On Thu, Jan 5, 2012 at 9:47 AM, Linda Alvord wrote: > I'm not sure this if this challenge was too hard or too > easy. Since no one responded, ... Personally, I find the embargo requirement daunting. I also had some trouble with the way you had phrased the task -- I sent an email about some of th

Re: [Jprogramming] timer in j701?

2012-01-05 Thread David Mitchell
You are welcome, Ian. I am a bit curious about J support for dylibs. I currently do not have any way to try it myself, but the J DLL documentation does say: J can call procedures that are compiled in a shared library file. In Windows these files are called DLLs (dynamic link libraries) and hav

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Eric Iverson
cd (calls to external libraries) works on all platforms and specifically J can use cd to call dylibs on Mac. However, the timer routine you referred to is windows only and I don't know of the mac equivalent. A dylib call is probably not the way to provide timer events for JHS regardless of server p

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Joey K Tuttle
Ian - a good place to study j use of dylib in Darwin would be in ~/addons/data/jmf.ijs Maybe you can find happiness there. Meanwhile, I'm a little unclear on what you are trying to do. I assume you have a continuously available j task that picks up things to do from some queue - but you don't

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Eric Iverson
Here is a very rough start on showing how to do a timer event for JHS. jjs'setTimeout("jdoajax([],\"\",\"a=: 123\");",4000);' Verb jjs executes javascript sentences. The setTimeout javascript sentence runs its first arg (a javascript sentence) when 4 seconds has elapsed. The \" sequence escapes t

Re: [Jprogramming] JHS latest update

2012-01-05 Thread km
I am a new iPad owner. How do I get JHS to work on my iPad? Kip Murray Sent from my iPad On Dec 4, 2011, at 5:24 PM, Eric Iverson wrote: > Tiurns out the iPad support for inline J plots was pretty simple. Please > try the latest JHS on your iPad. > > load'plot' > plotdef'jijx';400100 >

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Eric Iverson
Ian, A bit more complete (but without the blocking problem fixed) follows: jev_timer=: 3 : 'i.5' jjs'setTimeout("jdoajax([],\"\",\"jev_timer[0\");",4000);' Note that the name jev_timer input line is not shown as lines that start with jev_ are assumed to be events and are not logged. Let m

Re: [Jprogramming] JHS latest update

2012-01-05 Thread Eric Iverson
You need to run a JHS server on a machine you can access with your ipad browser. The JHS server needs to be configured to allow remote user access (see jhelp and ~addons/ide/jhs/config/jhs_default.ijs. On Thu, Jan 5, 2012 at 2:29 PM, km wrote: > I am a new iPad owner. How do I get JHS to work

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Eric Iverson
Just realized wd'timer' keeps firing and if that is what you want then you might be able to ignore the block and simply get the next one. Somthing like the following: jjs'intervaltimer=setInterval("if(0==rqstate)jdoajax([],\"\",\"jev_timer[0\");",4000);' The rqstate test avoids the block. The in

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Henry Rich
I'm still on 602 but if I ever moved to J7 I would certainly need the timer to work, with the blocking problem fixed. Henry Rich On 1/5/2012 3:17 PM, Eric Iverson wrote: > Just realized wd'timer' keeps firing and if that is what you want then you > might be able to ignore the block and simply ge

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks, David. When I said "AFAIK there's no comparable way of calling dylibs in Darwin" I guess I meant in the add-on-supported way of 'dll'. I'm busy studying these... http://www.jsoftware.com/jwiki/Interfaces/Xcode http://www.jsoftware.com/jwiki/Interfaces/JTask which don't, as they stand, fi

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Henry, I think you've said it for me. On Thu, Jan 5, 2012 at 8:38 PM, Henry Rich wrote: > I'm still on 602 but if I ever moved to J7 I would certainly need the > timer to work, with the blocking problem fixed. > > Henry Rich > > On 1/5/2012 3:17 PM, Eric Iverson wrote: >> Just realized wd'timer'

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks, Eric. There's lots of ideas here to play with -- and I must now roll up my sleeves and do so. I'll report back soon, probably with sample code in the wiki. On Thu, Jan 5, 2012 at 8:17 PM, Eric Iverson wrote: > Just realized wd'timer' keeps firing and if that is what you want then you > mi

Re: [Jprogramming] JHS latest update

2012-01-05 Thread Brian Schott
http://www.jsoftware.com/pipermail/general/2011-December/034819.html Eric, Can you give me any pointers on getting labs in jijxipad? I am stumped on it. Thanks, On Thu, Jan 5, 2012 at 2:29 PM, km wrote: > I am a new iPad owner.  How do I get JHS to work on my iPad?  Kip Murray > > Sent from my

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
> Ian - a good place to study j use of dylib in Darwin would be in > ~/addons/data/jmf.ijs Maybe you can find happiness there. Now that looks sensible! Searching the code for 'dylib' I learn that cd (15!:0) can access dylibs, here mostly libc.dylib, just like it does in Windows (with of course a

Re: [Jprogramming] Programming Digest, Vol 76, Issue 27

2012-01-05 Thread Murray Eisenberg
Unfortunately, jhs_default.ijs is as clear as mud. It is clear that one has to change the line BIND:= 'localhost' to: BIND:= 'any' But where, exactly, does one specify (i) that a password is needed; and (ii) what that password is? The confusion -- at least on my part -- is several poss

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Björn Helgason
I have found it convenient to combine the task schedulers of the operating system and have them trigger events to run once in a while when there is not heavy traffic to monitor. -- For information about J forums see http://www.jsof

Re: [Jprogramming] Programming Digest, Vol 76, Issue 27

2012-01-05 Thread Björn Helgason
I guess this video might be helpful http://www.youtube.com/watch?v=wXjlDUGDXDw 2012/1/5 Murray Eisenberg > Unfortunately, jhs_default.ijs is as clear as mud. > > It is clear that one has to change the line > > BIND:= 'localhost' > > to: > > BIND:= 'any' > > But where, exactly, does one spe

Re: [Jprogramming] timer in j701?

2012-01-05 Thread bill lam
For jconsole applications that have no UI, the infinite loop can emulate an inaccurate timer, while 1[usleep 2 do. NB. 0.02s dotask1'' dotask2'' ... end. where usleep is (beware of wrapping) NB. = NB. *usleep v sleep for n microseconds

Re: [Jprogramming] Programming Digest, Vol 76, Issue 27

2012-01-05 Thread bill lam
I guess you only need to change the BIND and leave others unchanged for running jhs inside your LAN. There should be no security issue even without a password because your router most likely will not port forward 65001 to your jhs machine without some extra manual settings. eтв, 05 Янв 2012, Murr

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks for this, Eric. The simplest method you suggest: jjs'setTimeout("jdoajax([],\"\",\"a=: 123\");",4000);' seems to work okay, and have the behavior I'm looking for. I haven't hit the blocking problem yet (but there's still time for that). Just one snag. When Ajax triggers the callback:

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
Thanks Bill. usleep is good to know. I have taken note of its technique. Did you say it will become part of the base library? I've tried it out in jhs. I can't see it behaves any differently from, say: 2!:1 'sleep 3' or: (6!:3) 3 -they all freeze the jijx window. In operational use that won

Re: [Jprogramming] timer in j701?

2012-01-05 Thread bill lam
Yes, it will be available in the next update. I previously used wd'timer' in a web server, but later I turned it into a window service and UI was no longer visible, so that I replace j.exe by jconsole.exe , wd'timer' by sleep loop. Perhaps it worked because most bugs had been fixed earlier. Птн,

Re: [Jprogramming] Intro to "under"

2012-01-05 Thread Daniel Lyons
On Jan 5, 2012, at 11:08 AM, Devon McCormick wrote: > Have people seen this: http://prog21.dadgum.com/index.html ? I saw it, and it made me wonder whether this verb (adverb?) is widely used, (and likewise the obverse-defining verb, :.). Are they? — Daniel Lyons

Re: [Jprogramming] Intro to "under"

2012-01-05 Thread Roger Hui
See http://www.jsoftware.com/jwiki/Essays/Under for examples of under. On Thu, Jan 5, 2012 at 10:40 PM, Daniel Lyons wrote: > > On Jan 5, 2012, at 11:08 AM, Devon McCormick wrote: > > > Have people seen this: http://prog21.dadgum.com/index.html ? > > > I saw it, and it made me wonder whether th

Re: [Jprogramming] timer in j701?

2012-01-05 Thread Ian Clark
I guess I ought to just debug my servers through a keyhole like everyone else. On Fri, Jan 6, 2012 at 4:13 AM, bill lam wrote: > Yes, it will be available in the next update. > > I previously used wd'timer' in a web server, but later I turned it into a > window service and UI was no longer visib