Hi Blake,
I think that the use of gerunds might be the solution. Henry Rich gives a
really good description of how Tie, Agenda and gerunds work together.
http://www.jsoftware.com/help/jforc/loopless_code_iv_irregular_o.htm#_Toc191734391
If you haven't looked at Henry's book before, look through i
Hi Edward,
Are using a version of J that is expecting x. and y. instead of x and y?
I tried
a=: 1 : 0
:
x u y
)
in J602 and had no problem, but when I put in x. instead of x (and I am not
using the x. option) I get a spelling error.
Hope this helps, bob
On 2012-02-14, at 11:25 AM, Raul Mill
Since I wasn't running JGTK but J602 on a Mac, I followed Chris' hint and found
it was even simpler to change the Edit | Configure | Shortcuts then select
Studio | Advance, and modify to F6 (all the function keys are available as
shortcuts as well as other combinations). This didn't require a re
Works for me using the pdf reader plug-in for the Chrome browser.
Cheers, bob
On 2012-05-07, at 9:13 AM, Dan T. Abell wrote:
> Works for me.
> -Dan
>
> On 7 May 2012, at 09:51, Devon McCormick wrote:
>
>> Does anyone else have trouble printing the latest "Journal of J" at
>> https://site
Hi Ian,
Clickable maps often use SVG (Scalable Vector Graphics) which conforms with
JavaScript, HTML5 and by extension might be used with JHS in the same way that
HTML is currently used.
Cheers, bob
On 2012-05-11, at 9:41 AM, Ian Clark wrote:
> To save me reinventing the wheel, has anybody wr
Hi Jake,
The 0 is used to indicate that the lines following - up until a single right
parenthesis ')' - will be the definition of an explicit verb. There is an
option of replacing the 0 with a string if the verb can be defined on one line.
Chapter 12 in Roger Stokes gives a good explanation of
Hi Steven,
If we aren't at the outer limits, you can see them from here :)
The different levels of boxing actually have different selection methods. The
best explanation I have seen is Henry Rich's "J for C Programmers - Chapter 17"
http://www.jsoftware.com/help/jforc/more_verbs_for_boxes.htm#_
Hey Justin,
Would writing the file you have created to a specific location on the computer
solve the problem?
'<…..text of file including relative URL to /folder/file/…..>' 1!:2
<'/folder/file.html'
If you save it to the proper location then the URL would be correct, wouldn't
it?
Or have I c
Raul,
I don't think that there is a 1-1 correspondence between combinations and
permutations, since each combination of items can have a number of different
permutations. In the example you give the number of items is the same because
the difference in the two arguments is 1, but this would not
along the lines of Raul's suggestion,
but closer to the original request of Richard's
> f=:3
> (=: >:) f
> |syntax error
> | (=:>:)f
>
> Why is this not allowed?
is the monadic version.
mdf=:1 :0
(y)=:u (".y)
)
NB. For example
] N=:4
4
>: mdf 'N'
5
N
5
cheers, bob
Oops,
The example should read:
N=:4
>: mdf 'N'
5
N
5
On -Apr21-2010, at -Apr21-201010:16 AM, bob therriault wrote:
> along the lines of Raul's suggestion,
> but closer to the original request of Richard's
>
>> f=:3
>> (=: >:) f
>
Last post on from me on this one,
For some reason the mail system is is reformatting >: mdf 'N' to
| : mdf 'N'
cheers, bob
On -Apr21-2010, at -Apr21-201010:22 AM, bob therriault wrote:
> Oops,
>
> The example should read:
>
Hi Bob,
I hope this doesn't confuse the situation more (and I hope i am right in this
information), but it is worth keeping in mind that the adverb Insert (/),
inserts the verb between the ITEMS of whatever argument it is working on. So
/"1 works on lists and inserts the verb between atoms, /"2
Hey Raul,
I think
5 5#: 0j1 + i.9
0 0j1
0 1j1
0 2j1
1 _2j1
1 _1j1
1 0j1
1 1j1
1 2j1
2 _2j1
makes more sense
5#.(5 5#: 0j1 + i.9)
0j1 1j1 2j1 3j1 4j1 5j1 6j1 7j1 8j1
Cheers, bob
On -Aug16-2010, at -Aug16-20109:41 AM, Raul Miller wrote:
> Does this make sense?
>
> 5#:i.9
> 0 1 2 3
Hi Bo,
I don't seem to be able to duplicate your results in either J602 or J701beta.
Cheers, bob
On -Aug16-2010, at -Aug16-201011:24 AM, Bo Jacoby wrote:
> 5 5#: 0j1 + i.9
--
For information about J forums see http://www.jsoft
Although I think the approach Dan and Raul are taking is terrifically
instructive, the other option I see is to define explicitly
4 : 'x ((x & a) c (y & d ))@:b y'
x b y is only calculated once and the original arguments are kept available by
reusing the x and y placeholders.
Cheers, bob
On
I was playing around with different number representation and this result for
0x1 struck me as odd (I expected 0).
Could someone with more mathematical awareness help me understand the result
below?
1x1
2.71828
0.1x1
0.271828
0.01x1
0.0271828
0x1
2.71828
9!:14 ''
j602/2008-03-03
Cheers, bob
On 2010-09-28, at 10:58 PM, Raul Miller wrote:
> On Wed, Sep 29, 2010 at 1:30 AM, bob therriault wrote:
>> 1x1
>> 2.71828
>> 0.1x1
>> 0.271828
>> 0.01x1
>> 0.0271828
>> 0x1
>> 2.71828
>> 9!:14 ''
>> j602/2
e distributed among several
> lines in the resulting explicit definition? Certainly not at every @ .
> Etc.
>
> On my J todo list for several years has been a J "coach" similar to the
> "Regex Buddy" at [1]. I've just never got up the initiative to do it.
Oops my bad,
I think this is more appropriate for chat so I've posted over there [1].
Cheers, bob
[1] http://jsoftware.com/pipermail/chat/2010-November/004007.html
On 2010-11-22, at 9:25 AM, bob therriault wrote:
> Thanks for the mention Dan,
>
> I've just added a mo
Hi Bill,
This might be bad style (please let me know if it is), but the leading '';
doesn't seem to be required
adv2 =: 1 : (':' ; 'm*y-x')
works just as well.
Cheers, bob
On 2010-12-14, at 4:39 PM, bill lam wrote:
> adv2=: 1 : ('';':';'m*y-x')
--
Somewhat surprisingly (to me)
av2=: 1 : 'm*-~'
also works the same way.
Cheers, bob
On 2010-12-14, at 4:48 PM, Tikkanz wrote:
> Or just
> adv2 =: 1 : (':';'m*y-x')
>
> See http://www.jsoftware.com/help/dictionary/d310n.htm
> and http://www.jsoftware.com/help/dictionary/dicth.htm
>
> On Wed,
Upon further thought, it doesn't quite act the same way. If you use it
dyadically it will, but returns 0 if used monadically instead of the domain
error the original solution would provide.
Cheers, bob
On 2010-12-14, at 4:52 PM, bob therriault wrote:
> Somewhat surprisingly (to me)
e the first time I am wide of the
mark).
Cheers, bob
On 2010-12-15, at 4:23 AM, Viktor Cerovski wrote:
>
>
> bob therriault-2 wrote:
>>
>> Somewhat surprisingly (to me)
>>
>> av2=: 1 : 'm*-~'
>>
>> also works the same way.
>>
>> which can be simplified to:
>> av2t1 =: ("_)(`*`-)(`:6)~
>>
>> PS: Typed on a handheld device.
>
> Bob Therriault responded:
>> I seem to get a syntax error from your definitions
>
> Just move the parens:
>
> av2t2 =: ("
Hi Björn,
This is a bit brute force but it seems to work.
g=: i.~ f"0@:i.@:+:
g 87
75
Essentially applying f to a list up to twice the argument (y) and returning the
index (x) of the first spot f(x)=y
Cheers, bob
ps. I believe your original f can also be written as:
f1=: [: # i. -.
Whoops, too much turkey!!
I meant to say that:
g=: i.~ f"0@:i.@:+:
g 75
87
Cheers, bob
On 2010-12-26, at 1:48 PM, bob therriault wrote:
> Hi Björn,
>
> This is a bit brute force but it seems to work.
> g=: i.~ f"0@:i.@:+:
> g 87
> 75
>
>
6037'
0.106917371328
g=: i.~ f"0@:i.@:+:
ts 'g 6037'
12.5618 869376
Cheers, bob
On 2010-12-26, at 3:38 PM, bob therriault wrote:
> Whoops, too much turkey!!
>
> I meant to say that:
> g=: i.~ f"0@:i.@:+:
>g 75
> 87
>
> C
Hi Ian,
I've used the PREPARE tags in the authoring of labs to add video (audio could
be added in a similar fashion) if this fits the requirements
PREPARE
coclass 'jvideo'
coinsert 'jbrowser'
t=:'YES'-: wd 'mb Test "Would you like to include Video?" mb_yesno'
launch ^: t 'http://www.youtube.com
Charles,
I have seen #jlang used although it can be a bit ambiguous with other users
incorporating different meanings to it. But it's a start.
Cheers, bob
On 2011-01-21, at 11:55 AM, Charles Turner wrote:
> On Jan 21, 2011, at 1:45 PM, Dan Bron wrote:
>
>> There is a growing community of J use
On Mac the standard print dialogue has a 'Print to PDF' button.
Cheers, bob
On 2011-02-14, at 6:31 AM, bill lam wrote:
> Sorry I misread your original message. The gtkide missed a print function
> as that in J602. That will be added by gtk printing. And you can print
> to a pdf printer. cup
another approach could be
series=: +/\@# NB. sums x subsets with elements of value y
cheers, bob
On 2011-02-18, at 10:58 AM, Skip Cave wrote:
> Never mind. I had a programming block.
>
> 6 * 1 + i. 7
>
> Skip
>
> On 2/18/2011 12:51 PM, Skip Cave wrote:
>> I need a function
>>
>> x serie
Hey Raul,
I am certainly in no position to give any advice on web programming, but in my
stumbling about I found the most useful area on investigation for JHS was to
look at the demo's. Specifically demo1 and the link to demo1.ijs on the demo
page show how jsubmit is used (it looks like it is o
I may be misreading the request, but I think Alex wants:
mypoly=: 1 2 3 & p.
mypoly 4
57
As Marshall points out, the conjunction "&" connects '1 2 3' to the left
argument of 'p.', leaving the usual right argument y to produce a dyadic,
albeit with a fixed left argument, result.
I find w
Hi Harvey,
I took a similar approach to Henry, but created a left argument first and then
made the verb a dyad
punct =: '';'-';'/'
punct (;@(, each 1 0 3{ ]))"1 q
Cheers, bob
On 2011-08-09, at 3:14 PM, Henry Rich wrote:
> <@;@(1&{ , '-' ; 0&{ , '/' ; 3&{)"1 q
--
Hi David,
This doesn't use index but it is short and I think gives the result you are
looking for:
a
18 20 28 30 29 28
22 28 8 7 21 32
31 17 25 32 33 28
13 17 29 15 1 25
18 28 33 26 22 9
17 6 34 15 23 35
Is there a shorter sentence?[: |: [: (i. >./)"1 |:
>
> I'm thinking t
If the hook (+%) was meant to be read as the sum of the inverses then this
would work
+/@:% 1 2 3 4 5 6
but I agree with Raul's solution as the question was originally written.
cheers, bob
On 2011-09-12, at 6:08 AM, Raul Miller wrote:
> On Mon, Sep 12, 2011 at 8:57 AM, David Vaughan
> wrot
You are so close! Just use the #/.~ with some special glue ;"1 0 to join the
nub ~. to the count.
(~. ;"1 0 ( #/.~))test
┌┬─┐
│0 │1│
├┼─┤
│1 │1│
├┼─┤
│8 │1│
├┼─┤
│27 │1│
├┼─┤
│46 │1│
├──
Hi Xin,
If you know the length of the string that you want to search, the easiest way
is to shorten it before you search.
'label' I.@E. 12&{. 'label1label2label3' NB. searches first 12 characters of
string
0 6
id=: (I.@E. 12&{.) NB. dyadic hook that will search the first 12 characters
Hi Xin,
If I understand your observation correctly (and clearly my first response
showed I was not correct in my understanding of your original question), I
would reply that J verbs can be written in an explicit style using control
words such as if. else. while. etc that would allow you to anal
This is also my experience using the new JHS for J701 on Mac. The closing and
reopening of the tab does work when the original tab did not display.
Cheers, bob
On 2011-10-26, at 8:24 AM, Björn Helgason wrote:
> This may have to do with the bug that is being fixed in JHS
> close the tab and conn
Roger,
The other aspect that I find very powerful is that it is that you can define
what you want the inverse to be using the obverse conjunction (:.). Thus the
under conjunction (&.)can be non symmetrical if the programmer defines a
non-symmetrical inverse when creating a verb.
Cheers, bob
O
PATHSEP_j_ may be what you are looking for Ian. It is set at startup from the
j602\bin\profile.ijs and is referenced in numerous verbs such as jhostpath_z_
and jpath_z_
Cheers, bob
On 2011-11-21, at 10:24 PM, Ian Clark wrote:
> Does J (all versions, maybe stripped-down) maintain a dependable n
Hi everybody,
First, my name is Bob Therriault and I have been following/playing
with J for a number of years (this does not mean that my understanding
is advanced, as I am constantly reminded as I read the posts on this
forum). My background is communications (specifically television
Thank you Don.
I hadn't understood the functionality of the move properties of the
controls. I was expecting these adjustments to be defined at the form
level, but when you point it out, it does make much more sense to put
the adjustments at the level of the items on the form (smart objects
nd it
helps with the analysis of tacit expressions, but is that usefulness
an illusion when viewed from the perspective of an advanced J
programmer?
On -Apr28-2009, at -Apr28-20091:09 PM, Sherlock, Ric wrote:
>> From: bob therriault
>>
>> My questions.
>>
>> 1. Any comment
Thanks for the info on wd 'qd' Bill
I ran into this problem earlier and used some awkward assignments to
the box (edit box) since I didn't know that the query could be forced.
Nice trick.
The empty list issue might be rectified by displaying an 'Enter tacit
sentence into edit box' message
y Mac. I get the following error upon loading the script.
>
> |index error: wdget
> | vls{~nms i.,&.>x
>
> This has been a pleasure to peruse.
>
> On Wed, Apr 29, 2009 at 1:25 AM, bob therriault
> wrote:
>> Thank you Ric,
>>
>> Giving the
includes the choice of box drawing characters in the next couple days
(hitting a busy stretch through the weekend)
As always, thanks to both you and Bill for your advice.
Cheers, bob
On -Apr29-2009, at -Apr29-20097:19 PM, Sherlock, Ric wrote:
>> From: bill lam
>>
>> On
a change I will
gladly make.
Cheers, bob
On -Apr29-2009, at -Apr29-20099:16 PM, bill lam wrote:
> On Wed, 29 Apr 2009, bob therriault wrote:
>> You did mention the usefulness of cut and paste but to be honest I
>> hadn't even tried cut and paste. Of course being a multiselect
es to go before I sleep :-}
Cheers, bob
On -Apr29-2009, at -Apr29-20099:39 PM, Sherlock, Ric wrote:
>> From: bob therriault
>>
>> I agree with you that things should not be forced on the user and I
>> think that an additional pair of radio buttons and a static control
>
bill,
Believe me I am winning by not being first. All of your contributions
are giving me a very instructive course in J programming. I'm on the
steep part of my learning curve.
At first glance,
The coerase use off the top to clear global variables is something I
have not seen before and t
;qd''){ LINEDRAW ,:
ASCIIDRAW)) [ (UDRAW=: 9!:6 '''')'
rstD=: 3 : '9!:7 UDRAW'
drw=: stD :. rstD
update=: 3 : 0
try.
(3 : 'wd ''set tdisp *'', utf8 ; (2 4 5 6#~ 99".> CBFORMAT wdget wd
''qd'') style
Thank you bill,
I was unaware of 'bind'. One advantage of having so many eyes on my
code is the depth of experience everyone brings.
The method I used to set the drawing box was to set the global code
using 9!:7 according to the radio button pressed, display with those
characters and then r
stD ''
end.
)
display_box_button=: update
('display_'&,each RBD,each<'_button')=: update
('display_'&,each CBFORMAT,each<'_button')=: update
display=: display_run`display_res...@.((<'display') e. {."1...@wdforms
Hey Chris,
This may be too simple a solution, but wouldn't the 6th in the series
for problem 4 be 5211055596?
My reasoning is that the overlap progressively shifts from right to
left. The second five of the first with the first five of the second;
the second 8 of the third with the first 8
Yuva,
You might also look under Labs.
Form Editor and some of the Graphics Labs such as Graphics - gl2 commands could
be useful.
Also under Studio demos is the events demo which gives you some interactive
experience with different form controls.
Cheers, bob
On -Jan7-2010, at -Jan7-20105:19 PM
Hi Ric,
I noticed that Oleg had a similar problem with Macs in his Diagram script.
http://www.jsoftware.com/jwiki/Scripts/Diagram It sounds as though setinvalid
is a challenge for the Mac platform and he painted directly instead.
Hope this helps,
bob
On -Jan7-2010, at -Jan7-20107:13 PM, Sh
rm GUI issues!
> Ric
>
>> -Original Message-----
>> From: programming-boun...@jsoftware.com [mailto:programming-
>> boun...@jsoftware.com] On Behalf Of bob therriault
>> Sent: Friday, 8 January 2010 16:31
>> To: Programming forum
>> Subject: Re: [Jprogramming] Pendulum
Hi Oleg and Ian,
http://www.youtube.com/watch?v=ODxv498p4ME
This isn't about a specific function, but is an animation i put together to
explain why it is useful to organize information into arrays. I developed it on
keynote, but haven't yet put a soundtrack to it. It's not really high end, but
e it. They generate you an to copy/paste. See
> source of http://www.maxclark.me.uk/undeadtree/interspex.htm for an
> example.
>
> But how to do it with MoinMoin?
>
> So... are you offering to do a 15 second movie for each J primitive?
>
> Ian
>
>
> On Mon, Feb 1, 2010
bob
On -Feb2-2010, at -Feb2-201010:03 AM, Oleg Kobchenko wrote:
> Hi Bob, what do you use for animation.
>
> Maybe it'd be good to come up with a toolkit,
> based on Blender or something, so that new
> stuff can be easily added. Then people may
> want to get on boar
mation loops are good.
>> (Though it's nice to be able to stop 'em!)
>>
>> Take a J primitive which is relatively simple but maybe hard for a
>> beginner to intuit, like monadic "=" (self-classify). Not something
>> with bells and whistles like ";:&q
gt;
> And remember the better it conveys its message, the more trivial and
> "obvious" it looks and the less time the viewer spends looking at it.
> It's why writers of public notices are always too pompous and prolix:
> they don't want to appear dumb. It's really q
; I wasn't not necessarily talking about machine efficiency.
> =x takes more room on the screen, and in your brain.
>
>
>
> - Original Message -
> From: bob therriault
> Date: Tuesday, February 2, 2010 10:50
> Subject: Re: [Jprogramming] The Ambiguous Dic
Thanks for the sustained effort Ian et al,
Speaking of content rich. Here is a test for animating the + (plus) verb with a
variety of arguments. There is no audio (yet!) as this needs to be timed
carefully and requires the animation to be locked down.
I welcome comments, this is a first pass.
scalar + vector case. The former is more inevitable
> than the latter.
>
>
>
> - Original Message -
> From: bob therriault
> Date: Sunday, February 7, 2010 8:16
> Subject: Re: [Jprogramming] The Accessible Dictionary
> To: Programming forum
>
>>
gt;
> Music for a standalone presentation: yes. For embedding in a reference
> page: no. I think the animation(s) could serve both purposes. Maybe to
> run at different speeds.
>
> Ian
>
>
> On Sun, Feb 7, 2010 at 4:15 PM, bob therriault wrote:
>> Thanks for t
Great idea, Devon
I'll try to get my two bits in there in the next couple of days.
Cheers, bob
On -Feb7-2010, at -Feb7-20105:48 PM, Devon McCormick wrote:
> Members of the Forum -
>
> In an effort to re-invigorate the making of J videos, I've started a page on
> the wiki - http://www.jsoftware
7;ll be banging some more tests out in the next week and look
forward to your feedback.
Cheers, bob
On -Feb7-2010, at -Feb7-20106:41 PM, Dan Bron wrote:
> bob therriault proffered:
>> http://www.youtube.com/watch?v=Mfvs8o5kmyg
>
> That was really cool! And undeniably helpful for a
p://www.jsoftware.com/jwiki/VideoInstructionInJ . It's a good start.
>
> What tools do you use to create it?
>
> Regards,
>
> Devon
>
> On Mon, Feb 8, 2010 at 1:19 AM, bob therriault wrote:
>
>> Great idea, Devon
>>
>> I'll try to get m
Hi Ric,
I think in some of the 'gorier' areas animated annotations might go a long way
to reduce the learner's anxiety. It's a big step for most to visualize frames
and k-cells when they are starting out, but if the visualizations are supplied
the learner need only match the model to the concep
Hi Harvey,
What values do you use for your grey scale? Using an image matrix with values
of 0 - black to 1- white matrix, I played around with some bracketing functions
and came up with:
pts=: 0.3 0.75 NB. Lower crush point , Upper crush
point
im =: 10 10 $ /:~ ?100 $
Hi Tracy
Maybe also take a look at the 'nl' verb that is used in 'names' to see the
argument options (if they are useful to you):
names
┌───┬─┬──┐
│list_z_...@│nl│
└───┴─┴──┘
nl
┌─┬─┬──┐
│3│:│'' nl y │
│ │ │:
Hi Stefan Scott,
I am enjoying your explorations. I haven't had time really dig in, but the
(i. 6);(i. 6);(i. 6)
could be replaced by
3 # < i. 6
I await those with more experience to shower us with elegance.
Cheers, bob
ps. If you subscribe to chat, we'd love your input on some of the anim
75 matches
Mail list logo