<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-24193</id>
	<title>Nabble - J</title>
	<updated>2009-12-17T01:43:09Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/J-f24193.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/J-f24193.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.jsoftware.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;J&lt;/a&gt;&amp;nbsp;is a modern, high-level, general-purpose, high-performance programming language. J is portable and runs on Windows, Unix, Mac, and PocketPC handhelds, both as a GUI and in a console. True 64-bit J systems are available for XP64 or Linux64, on AMD64 or Intel EM64T platforms. J systems can be installed and distributed for free.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26825494</id>
	<title>Re: JDB Error Handling Bug? (WAS: RE: Newbie JDB problem: inserting chars in a 1 column	char table gives 'assertion failure')</title>
	<published>2009-12-17T01:43:09Z</published>
	<updated>2009-12-17T01:43:09Z</updated>
	<author>
		<name>Alex Rufon</name>
	</author>
	<content type="html">Working on it some more, I am more convinced that this is a bug. Since, you would not be able to simulate this problem if you have more than one column like so:
&lt;br&gt;&amp;nbsp; &amp;nbsp;ht=: Create__db 'tblTest';0 : 0
&lt;br&gt;Field1 int
&lt;br&gt;Field2 varchar
&lt;br&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblTest';&amp;lt;0;'a'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db 'from tblTest'
&lt;br&gt;+------+------+
&lt;br&gt;|Field1|Field2|
&lt;br&gt;+------+------+
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |a &amp;nbsp; &amp;nbsp; |
&lt;br&gt;+------+------+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblTest';&amp;lt;0 1 ;&amp;lt;;:'aa bb'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db 'from tblTest'
&lt;br&gt;+------+------+
&lt;br&gt;|Field1|Field2|
&lt;br&gt;+------+------+
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |a &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |aa &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|1 &amp;nbsp; &amp;nbsp; |bb &amp;nbsp; &amp;nbsp;|
&lt;br&gt;+------+------+
&lt;br&gt;&lt;br&gt;NB. Now we try to make insert fail:
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblTest';&amp;lt;'aa bb'
&lt;br&gt;|Insert rows required items: 2, given items: 1: throw
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; throw msg
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblTest';&amp;lt;'aa'
&lt;br&gt;|Insert rows required items: 2, given items: 1: throw
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; throw msg
&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db 'from tblTest'
&lt;br&gt;+------+------+
&lt;br&gt;|Field1|Field2|
&lt;br&gt;+------+------+
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |a &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |aa &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|1 &amp;nbsp; &amp;nbsp; |bb &amp;nbsp; &amp;nbsp;|
&lt;br&gt;+------+------+
&lt;br&gt;+------+------+
&lt;br&gt;|Field1|Field2|
&lt;br&gt;+------+------+
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |a &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|0 &amp;nbsp; &amp;nbsp; |aa &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|1 &amp;nbsp; &amp;nbsp; |bb &amp;nbsp; &amp;nbsp;|
&lt;br&gt;+------+------+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblTest';&amp;lt;10;&amp;lt;;:'xy e4 dty'
&lt;br&gt;|assertion failure: validate
&lt;br&gt;| &amp;nbsp; 1=#~.(#@&amp;quot;.)&amp;&amp;gt;'active';Tcolmap
&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db 'from tblTest'
&lt;br&gt;+------+------+
&lt;br&gt;|Field1|Field2|
&lt;br&gt;+------+------+
&lt;br&gt;| 0 &amp;nbsp; &amp;nbsp;|a &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| 0 &amp;nbsp; &amp;nbsp;|aa &amp;nbsp; &amp;nbsp;|
&lt;br&gt;| 1 &amp;nbsp; &amp;nbsp;|bb &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|10 &amp;nbsp; &amp;nbsp;|xy &amp;nbsp; &amp;nbsp;|
&lt;br&gt;+------+------+
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;As you can see from above, the code was able to handle columns insert of different sizes by only handling the first &amp;quot;valid&amp;quot; rows. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825494&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of Alex Rufon
&lt;br&gt;Sent: Thursday, December 17, 2009 5:47 PM
&lt;br&gt;To: Programming forum
&lt;br&gt;Subject: [Jprogramming] JDB Error Handling Bug? (WAS: RE: Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure')
&lt;br&gt;&lt;br&gt;I've been trying out Chris Collins code and I believe there may be a bug. &amp;nbsp;So here is my J session.
&lt;br&gt;NB. =========================================================
&lt;br&gt;NB. Start of J session
&lt;br&gt;&amp;nbsp; &amp;nbsp;load 'data/jdb'
&lt;br&gt;&amp;nbsp; &amp;nbsp;[ffd=: Open_jdb_ jpath '~temp'
&lt;br&gt;+-+
&lt;br&gt;|1|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Drop__ffd 'testdb'
&lt;br&gt;&amp;nbsp; &amp;nbsp;[db=: Create__ffd 'testdb'
&lt;br&gt;+-+
&lt;br&gt;|2|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;ht=: Create__db 'tblVarChar';0 : 0
&lt;br&gt;field1 varchar
&lt;br&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;ht
&lt;br&gt;+-+
&lt;br&gt;|3|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;NB. At this point, we know that my server locale is 1, my database locale is 2 and the table 'tblVarChar' is in locale 3.
&lt;br&gt;NB. I'm going to insert a sequence of data and read the table immediately
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';'a'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;+------+---+
&lt;br&gt;|field1|+-+|
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;||a||
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;|+-+|
&lt;br&gt;+------+---+
&lt;br&gt;&amp;nbsp; &amp;nbsp;;:'bb ccc dddd eeeee ffffff'
&lt;br&gt;+--+---+----+-----+------+
&lt;br&gt;|bb|ccc|dddd|eeeee|ffffff|
&lt;br&gt;+--+---+----+-----+------+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';&amp;lt;&amp;lt;;:'bb ccc dddd eeeee ffffff'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;+------+----------------------------+
&lt;br&gt;|field1|+-+--+---+----+-----+------+|
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;||a|bb|ccc|dddd|eeeee|ffffff||
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;|+-+--+---+----+-----+------+|
&lt;br&gt;+------+----------------------------+
&lt;br&gt;NB. Up to this point, everything is going well, not I am going to force the JDB Insert method to fail by inserting 
&lt;br&gt;NB. data in a format that it did not expect
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';&amp;lt;'zz'
&lt;br&gt;|assertion failure: validate
&lt;br&gt;| &amp;nbsp; 1=#~.(#@&amp;quot;.)&amp;&amp;gt;'active';Tcolmap
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;|index error: readbase1
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; (rws{&amp;quot;.)&amp;.&amp;gt;cls
&lt;br&gt;&lt;br&gt;NB. End of J Session
&lt;br&gt;NB. =========================================================
&lt;br&gt;&lt;br&gt;I believe that the data itself is not corrupted because the data can still be seen there (note that 'zz' was saved)
&lt;br&gt;&amp;nbsp; &amp;nbsp;c2__ht 
&lt;br&gt;+-+--+---+----+-----+------+--+
&lt;br&gt;|a|bb|ccc|dddd|eeeee|ffffff|zz|
&lt;br&gt;+-+--+---+----+-----+------+--+
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;From what I remember from the discussions, JDB is transactional ... is there a way to rollback?
&lt;br&gt;&lt;br&gt;I feel that this should be considered a bug.
&lt;br&gt;&lt;br&gt;r/Alex
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825494&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825494&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of christopher collins
&lt;br&gt;Sent: Thursday, December 17, 2009 2:12 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825494&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;Subject: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'
&lt;br&gt;&lt;br&gt;Thanks to all for your help, especially Mr. Lam.
&lt;br&gt;Your response, Mr. Lam, &amp;nbsp;was very instructive.
&lt;br&gt;I used your input to explore a bit more, with a couple of questions arising.
&lt;br&gt;&lt;br&gt;See the questions embedded below:
&lt;br&gt;&lt;br&gt;*****************************
&lt;br&gt;load 'data/jdb'
&lt;br&gt;&lt;br&gt;ffd =: Open_jdb_ jpath , '~temp'
&lt;br&gt;&lt;br&gt;Drop__ffd 'testdb'
&lt;br&gt;db =: Create__ffd 'testdb'
&lt;br&gt;&lt;br&gt;ht=: Create__db 'tblChar';0 : 0
&lt;br&gt;c1 char
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;NB. JDB doc says a 'char' column is stored as a character matrix
&lt;br&gt;NB. The next sentence works, even though it inserts a scalar, 'a'
&lt;br&gt;NB. QUESTION: Is this contrary to the JDB doc?
&lt;br&gt;Insert__db 'tblChar';'a'
&lt;br&gt;]shape =. $'a'
&lt;br&gt;NB. Inserts a list of shape 1
&lt;br&gt;Insert__db 'tblChar';,'b'
&lt;br&gt;]shape =. $ ,'b'
&lt;br&gt;NB. Inserts a list of shape 3 1
&lt;br&gt;Insert__db 'tblChar';,.'def'
&lt;br&gt;]shape =. $ ,.'def'
&lt;br&gt;NB. Inserts a list of shape 1 4
&lt;br&gt;Insert__db 'tblChar';,:'ghih'
&lt;br&gt;]shape =. $ ,:'ghih'
&lt;br&gt;Insert__db 'tblChar';3 5 $'123457'
&lt;br&gt;Insert__db 'tblChar';,:'012345678901234567890'
&lt;br&gt;]shape=.$ ,:'012345678901234567890'
&lt;br&gt;NB. A JDB 'char' column allows chars of varying lengths to be inserted
&lt;br&gt;Insert__db 'tblChar';2 100$'1234567890'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;NB. The insert below causes a failure
&lt;br&gt;NB. After this the table can no longer be read.
&lt;br&gt;NB. QUESTION: Is that behavior intended?
&lt;br&gt;NB. If so, JDB seems a little fragile for the rough, unskilled hands
&lt;br&gt;of newbies like me
&lt;br&gt;NB. This insert, where '01' is a list of shape 2, fails even though an
&lt;br&gt;insert of 'b', a list of shape 1 worked above.
&lt;br&gt;NB. QUESTION: Is this behavior consistent in a way that I am not understanding?
&lt;br&gt;Insert__db 'tblChar';'01'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;Thanks again for the high quality help &amp; instruction.
&lt;br&gt;--chris--
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26823698s24193p26825494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825388</id>
	<title>JDB Error Handling Bug? (WAS: RE: Newbie JDB problem: inserting chars in a 1 column	char table gives 'assertion failure')</title>
	<published>2009-12-17T01:34:29Z</published>
	<updated>2009-12-17T01:34:29Z</updated>
	<author>
		<name>Alex Rufon</name>
	</author>
	<content type="html">I've been trying out Chris Collins code and I believe there may be a bug. &amp;nbsp;So here is my J session.
&lt;br&gt;NB. =========================================================
&lt;br&gt;NB. Start of J session
&lt;br&gt;&amp;nbsp; &amp;nbsp;load 'data/jdb'
&lt;br&gt;&amp;nbsp; &amp;nbsp;[ffd=: Open_jdb_ jpath '~temp'
&lt;br&gt;+-+
&lt;br&gt;|1|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Drop__ffd 'testdb'
&lt;br&gt;&amp;nbsp; &amp;nbsp;[db=: Create__ffd 'testdb'
&lt;br&gt;+-+
&lt;br&gt;|2|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;ht=: Create__db 'tblVarChar';0 : 0
&lt;br&gt;field1 varchar
&lt;br&gt;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;ht
&lt;br&gt;+-+
&lt;br&gt;|3|
&lt;br&gt;+-+
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;NB. At this point, we know that my server locale is 1, my database locale is 2 and the table 'tblVarChar' is in locale 3.
&lt;br&gt;NB. I'm going to insert a sequence of data and read the table immediately
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';'a'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;+------+---+
&lt;br&gt;|field1|+-+|
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;||a||
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;|+-+|
&lt;br&gt;+------+---+
&lt;br&gt;&amp;nbsp; &amp;nbsp;;:'bb ccc dddd eeeee ffffff'
&lt;br&gt;+--+---+----+-----+------+
&lt;br&gt;|bb|ccc|dddd|eeeee|ffffff|
&lt;br&gt;+--+---+----+-----+------+
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';&amp;lt;&amp;lt;;:'bb ccc dddd eeeee ffffff'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;+------+----------------------------+
&lt;br&gt;|field1|+-+--+---+----+-----+------+|
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;||a|bb|ccc|dddd|eeeee|ffffff||
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;|+-+--+---+----+-----+------+|
&lt;br&gt;+------+----------------------------+
&lt;br&gt;NB. Up to this point, everything is going well, not I am going to force the JDB Insert method to fail by inserting 
&lt;br&gt;NB. data in a format that it did not expect
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblVarChar';&amp;lt;'zz'
&lt;br&gt;|assertion failure: validate
&lt;br&gt;| &amp;nbsp; 1=#~.(#@&amp;quot;.)&amp;&amp;gt;'active';Tcolmap
&lt;br&gt;&amp;nbsp; &amp;nbsp;Read__db 'from tblVarChar'
&lt;br&gt;|index error: readbase1
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; (rws{&amp;quot;.)&amp;.&amp;gt;cls
&lt;br&gt;&lt;br&gt;NB. End of J Session
&lt;br&gt;NB. =========================================================
&lt;br&gt;&lt;br&gt;I believe that the data itself is not corrupted because the data can still be seen there (note that 'zz' was saved)
&lt;br&gt;&amp;nbsp; &amp;nbsp;c2__ht 
&lt;br&gt;+-+--+---+----+-----+------+--+
&lt;br&gt;|a|bb|ccc|dddd|eeeee|ffffff|zz|
&lt;br&gt;+-+--+---+----+-----+------+--+
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;From what I remember from the discussions, JDB is transactional ... is there a way to rollback?
&lt;br&gt;&lt;br&gt;I feel that this should be considered a bug.
&lt;br&gt;&lt;br&gt;r/Alex
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825388&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825388&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of christopher collins
&lt;br&gt;Sent: Thursday, December 17, 2009 2:12 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825388&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;Subject: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'
&lt;br&gt;&lt;br&gt;Thanks to all for your help, especially Mr. Lam.
&lt;br&gt;Your response, Mr. Lam, &amp;nbsp;was very instructive.
&lt;br&gt;I used your input to explore a bit more, with a couple of questions arising.
&lt;br&gt;&lt;br&gt;See the questions embedded below:
&lt;br&gt;&lt;br&gt;*****************************
&lt;br&gt;load 'data/jdb'
&lt;br&gt;&lt;br&gt;ffd =: Open_jdb_ jpath , '~temp'
&lt;br&gt;&lt;br&gt;Drop__ffd 'testdb'
&lt;br&gt;db =: Create__ffd 'testdb'
&lt;br&gt;&lt;br&gt;ht=: Create__db 'tblChar';0 : 0
&lt;br&gt;c1 char
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;NB. JDB doc says a 'char' column is stored as a character matrix
&lt;br&gt;NB. The next sentence works, even though it inserts a scalar, 'a'
&lt;br&gt;NB. QUESTION: Is this contrary to the JDB doc?
&lt;br&gt;Insert__db 'tblChar';'a'
&lt;br&gt;]shape =. $'a'
&lt;br&gt;NB. Inserts a list of shape 1
&lt;br&gt;Insert__db 'tblChar';,'b'
&lt;br&gt;]shape =. $ ,'b'
&lt;br&gt;NB. Inserts a list of shape 3 1
&lt;br&gt;Insert__db 'tblChar';,.'def'
&lt;br&gt;]shape =. $ ,.'def'
&lt;br&gt;NB. Inserts a list of shape 1 4
&lt;br&gt;Insert__db 'tblChar';,:'ghih'
&lt;br&gt;]shape =. $ ,:'ghih'
&lt;br&gt;Insert__db 'tblChar';3 5 $'123457'
&lt;br&gt;Insert__db 'tblChar';,:'012345678901234567890'
&lt;br&gt;]shape=.$ ,:'012345678901234567890'
&lt;br&gt;NB. A JDB 'char' column allows chars of varying lengths to be inserted
&lt;br&gt;Insert__db 'tblChar';2 100$'1234567890'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;NB. The insert below causes a failure
&lt;br&gt;NB. After this the table can no longer be read.
&lt;br&gt;NB. QUESTION: Is that behavior intended?
&lt;br&gt;NB. If so, JDB seems a little fragile for the rough, unskilled hands
&lt;br&gt;of newbies like me
&lt;br&gt;NB. This insert, where '01' is a list of shape 2, fails even though an
&lt;br&gt;insert of 'b', a list of shape 1 worked above.
&lt;br&gt;NB. QUESTION: Is this behavior consistent in a way that I am not understanding?
&lt;br&gt;Insert__db 'tblChar';'01'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;Thanks again for the high quality help &amp; instruction.
&lt;br&gt;--chris--
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26823698s24193p26825388.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825251</id>
	<title>Re: A Programming Language</title>
	<published>2009-12-17T01:20:43Z</published>
	<updated>2009-12-17T01:20:43Z</updated>
	<author>
		<name>Stephen Taylor-2</name>
	</author>
	<content type="html">I am awe-struck by Roger’s HTML markup. This typesetting is a labour of
&lt;br&gt;love.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/12/17 Roger Hui &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhui000@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/papers/APL.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/papers/APL.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-General-f24204.html&quot; embed=&quot;fixTarget[24204]&quot; target=&quot;_top&quot; &gt;J General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-Programming-Language-tp26824841s24193p26825251.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26824841</id>
	<title>A Programming Language</title>
	<published>2009-12-17T00:36:21Z</published>
	<updated>2009-12-17T00:36:21Z</updated>
	<author>
		<name>Roger Hui</name>
	</author>
	<content type="html">&lt;a href=&quot;http://www.jsoftware.com/papers/APL.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/papers/APL.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-General-f24204.html&quot; embed=&quot;fixTarget[24204]&quot; target=&quot;_top&quot; &gt;J General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-Programming-Language-tp26824841s24193p26824841.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26823698</id>
	<title>Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'</title>
	<published>2009-12-16T22:12:23Z</published>
	<updated>2009-12-16T22:12:23Z</updated>
	<author>
		<name>christopher collins-2</name>
	</author>
	<content type="html">Thanks to all for your help, especially Mr. Lam.
&lt;br&gt;Your response, Mr. Lam, &amp;nbsp;was very instructive.
&lt;br&gt;I used your input to explore a bit more, with a couple of questions arising.
&lt;br&gt;&lt;br&gt;See the questions embedded below:
&lt;br&gt;&lt;br&gt;*****************************
&lt;br&gt;load 'data/jdb'
&lt;br&gt;&lt;br&gt;ffd =: Open_jdb_ jpath , '~temp'
&lt;br&gt;&lt;br&gt;Drop__ffd 'testdb'
&lt;br&gt;db =: Create__ffd 'testdb'
&lt;br&gt;&lt;br&gt;ht=: Create__db 'tblChar';0 : 0
&lt;br&gt;c1 char
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;NB. JDB doc says a 'char' column is stored as a character matrix
&lt;br&gt;NB. The next sentence works, even though it inserts a scalar, 'a'
&lt;br&gt;NB. QUESTION: Is this contrary to the JDB doc?
&lt;br&gt;Insert__db 'tblChar';'a'
&lt;br&gt;]shape =. $'a'
&lt;br&gt;NB. Inserts a list of shape 1
&lt;br&gt;Insert__db 'tblChar';,'b'
&lt;br&gt;]shape =. $ ,'b'
&lt;br&gt;NB. Inserts a list of shape 3 1
&lt;br&gt;Insert__db 'tblChar';,.'def'
&lt;br&gt;]shape =. $ ,.'def'
&lt;br&gt;NB. Inserts a list of shape 1 4
&lt;br&gt;Insert__db 'tblChar';,:'ghih'
&lt;br&gt;]shape =. $ ,:'ghih'
&lt;br&gt;Insert__db 'tblChar';3 5 $'123457'
&lt;br&gt;Insert__db 'tblChar';,:'012345678901234567890'
&lt;br&gt;]shape=.$ ,:'012345678901234567890'
&lt;br&gt;NB. A JDB 'char' column allows chars of varying lengths to be inserted
&lt;br&gt;Insert__db 'tblChar';2 100$'1234567890'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;NB. The insert below causes a failure
&lt;br&gt;NB. After this the table can no longer be read.
&lt;br&gt;NB. QUESTION: Is that behavior intended?
&lt;br&gt;NB. If so, JDB seems a little fragile for the rough, unskilled hands
&lt;br&gt;of newbies like me
&lt;br&gt;NB. This insert, where '01' is a list of shape 2, fails even though an
&lt;br&gt;insert of 'b', a list of shape 1 worked above.
&lt;br&gt;NB. QUESTION: Is this behavior consistent in a way that I am not understanding?
&lt;br&gt;Insert__db 'tblChar';'01'
&lt;br&gt;Reads__db 'from tblChar'
&lt;br&gt;&lt;br&gt;Thanks again for the high quality help &amp; instruction.
&lt;br&gt;--chris--
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26823698s24193p26823698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26822651</id>
	<title>Re: C# .NET COM JDLLServer</title>
	<published>2009-12-16T19:42:12Z</published>
	<updated>2009-12-16T19:42:12Z</updated>
	<author>
		<name>Alex Rufon</name>
	</author>
	<content type="html">Hi Matthew,
&lt;br&gt;&lt;br&gt;I asked the team leader for the project I mentioned and they actually solved it two ways:
&lt;br&gt;1. As suggested, compiled the solution with platform set to x86 instead of AllCPU.
&lt;br&gt;2. Went back to some of the 3rd party suppliers and got versions for the 64bit OS. Actually, with this, they eliminated the use of Interopt's.
&lt;br&gt;&lt;br&gt;I'm a bit embarrassed that my reply is not very useful to your problem. 
&lt;br&gt;&lt;br&gt;r/Alex
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of Matthew Brand
&lt;br&gt;Sent: Wednesday, December 16, 2009 4:45 PM
&lt;br&gt;To: Programming forum
&lt;br&gt;Subject: Re: [Jprogramming] C# .NET COM JDLLServer
&lt;br&gt;&lt;br&gt;Hi Alex,
&lt;br&gt;&lt;br&gt;&amp;gt; Just saw this thread (and the previous ones) ... unfortunately I'm at home right now and the machine here is configured for gaming so theres no development tools whatsoever installed. I'll be back in the office tomorrow though and will give your problem a run through.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only caveat is that my dev machine is WindowsXP Pro 32bit so I may not hit your problem since when I read your earlier code ... the only reason it would have failed is if J.DLL wasn't registered properly which you have done so correctly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although I have been to some dev discussions at the office where they mentioned the an Interopt problem when there was a deployment to a 64bit machine, I'll guess I'll have to ask them how they worked around it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks, much appreciated ... I am stumped. :-).
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know its a long shot but can you give JEXEServer a try instead of JDLL? I believe it would still throw the same error though but its a curiosity.
&lt;br&gt;&lt;br&gt;Your EXE suggestion worked. In Visual Studio using EXE server works,
&lt;br&gt;but using DLL does not. So I thought my problem was solved, but
&lt;br&gt;alas...
&lt;br&gt;&lt;br&gt;The NinjaTrader C# IDE does not seem to allow references to EXE, only
&lt;br&gt;to DLL! I will ask them about it on their forum. I will try to make
&lt;br&gt;visual studio project to output a DLL containing a pass-through to the
&lt;br&gt;J EXE, which hopefully I can call from NinjaTrader.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hmmm. I hope I don't offend you but are you using the 64bit version of J?
&lt;br&gt;&lt;br&gt;No offense taken, please feel free to suggest even the most basic
&lt;br&gt;things. I know absolutely nothing about DLL's - apart from it appears
&lt;br&gt;to be an incredibily complicated and delicate affair. I appreciate any
&lt;br&gt;advice given.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Matthew.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; r/Alex
&lt;br&gt;&amp;gt; ________________________________________
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of Matthew Brand [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, December 16, 2009 12:19 AM
&lt;br&gt;&amp;gt; To: Programming forum
&lt;br&gt;&amp;gt; Subject: Re: [Jprogramming] C# .NET COM JDLLServer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have done some investigations (outside of NinjaTrader, just using
&lt;br&gt;&amp;gt; Visual Studio c#). I do not know for sure, but it might be that the
&lt;br&gt;&amp;gt; JDLLServerClass does not work on 64 bit Windows 7? I am in way over my
&lt;br&gt;&amp;gt; head here, I have no idea what is going on - so apologies in advance
&lt;br&gt;&amp;gt; if I am wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I read this:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://blogs.msdn.com/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I removed the &amp;quot;Class&amp;quot; prefix from &amp;quot;JDLLServerClass&amp;quot; to end up with
&lt;br&gt;&amp;gt; a program that looks like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; using System;
&lt;br&gt;&amp;gt; using System.Collections.Generic;
&lt;br&gt;&amp;gt; using System.Linq;
&lt;br&gt;&amp;gt; using System.Text;
&lt;br&gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt; using JEXEServerLib;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; namespace ConsoleApplication1
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;    class Program
&lt;br&gt;&amp;gt;    {
&lt;br&gt;&amp;gt;        static void Main(string[] args)
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;           //  JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;            JDLLServer j = new JDLLServer();
&lt;br&gt;&amp;gt;            object result;
&lt;br&gt;&amp;gt;            int status = j.DoR(&amp;quot;2| !/~i.4&amp;quot;, out result);
&lt;br&gt;&amp;gt;            string.Format(&amp;quot;J DoR ended with status {0} and
&lt;br&gt;&amp;gt; result\n{1}&amp;quot;, status, result);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But now I get a different error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; System.Runtime.InteropServices.COMException was unhandled
&lt;br&gt;&amp;gt;  Message=Retrieving the COM class factory for component with CLSID
&lt;br&gt;&amp;gt; {21EB05EA-1AB3-11CF-A2AC-8FF70874C460} failed due to the following
&lt;br&gt;&amp;gt; error: 80040154 Class not registered (Exception from HRESULT:
&lt;br&gt;&amp;gt; 0x80040154 (REGDB_E_CLASSNOTREG)).
&lt;br&gt;&amp;gt;  Source=mscorlib
&lt;br&gt;&amp;gt;  ErrorCode=-2147221164
&lt;br&gt;&amp;gt;  StackTrace:
&lt;br&gt;&amp;gt;       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type,
&lt;br&gt;&amp;gt; Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,
&lt;br&gt;&amp;gt; RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)
&lt;br&gt;&amp;gt;       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,
&lt;br&gt;&amp;gt; Boolean skipCheckThis, Boolean fillCache)
&lt;br&gt;&amp;gt;       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean
&lt;br&gt;&amp;gt; publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis,
&lt;br&gt;&amp;gt; Boolean fillCache)
&lt;br&gt;&amp;gt;       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
&lt;br&gt;&amp;gt;       at System.Activator.CreateInstance(Type type)
&lt;br&gt;&amp;gt;       at ConsoleApplication1.Program.Main(String[] args) in
&lt;br&gt;&amp;gt; c:\users\mtthwbrnd\documents\visual studio
&lt;br&gt;&amp;gt; 2010\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line
&lt;br&gt;&amp;gt; 15
&lt;br&gt;&amp;gt;       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
&lt;br&gt;&amp;gt; String[] args)
&lt;br&gt;&amp;gt;       at System.AppDomain.ExecuteAssembly(String assemblyFile,
&lt;br&gt;&amp;gt; Evidence assemblySecurity, String[] args)
&lt;br&gt;&amp;gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
&lt;br&gt;&amp;gt;       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
&lt;br&gt;&amp;gt;       at System.Threading.ExecutionContext.Run(ExecutionContext
&lt;br&gt;&amp;gt; executionContext, ContextCallback callback, Object state, Boolean
&lt;br&gt;&amp;gt; ignoreSyncCtx)
&lt;br&gt;&amp;gt;       at System.Threading.ExecutionContext.Run(ExecutionContext
&lt;br&gt;&amp;gt; executionContext, ContextCallback callback, Object state)
&lt;br&gt;&amp;gt;       at System.Threading.ThreadHelper.ThreadStart()
&lt;br&gt;&amp;gt;  InnerException:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This might be relevent?:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;PROBLEM:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When you run the .net Code in X64 Environment you will get the
&lt;br&gt;&amp;gt; following error message.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot; Failed --Retrieving the COM class factory for component with CLSID ....&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; E.g. in CMS Export / Import server side .net code =
&lt;br&gt;&amp;gt; &amp;quot;ExportSiteContentIncremental(...) Failed --Retrieving the COM class
&lt;br&gt;&amp;gt; factory for component with CLSID
&lt;br&gt;&amp;gt; {CA0752B3-021C-4F99-82E3-2C0F19C5E953} failed due to the following
&lt;br&gt;&amp;gt; error: 80040154.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; WORKAROUND:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The possible workaround is modify your project's platform from 'Any
&lt;br&gt;&amp;gt; CPU' to 'X86' (in Project's Properties, Build/Platform's Target)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ROOTCAUSE
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The VSS Interop is a managed assembly using 32-bit Framework and the
&lt;br&gt;&amp;gt; dll contains a 32-bit COM object. If you run this COM dll in 64 bit
&lt;br&gt;&amp;gt; environment, you will get the error message.
&lt;br&gt;&amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://blogs.msdn.com/karthick/archive/2006/02/28/540780.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/karthick/archive/2006/02/28/540780.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Only problem for me here is that my visual studio only has the &amp;quot;x86&amp;quot; option.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/14 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; I just got a response from the NinjaTrader supoport team on their
&lt;br&gt;&amp;gt;&amp;gt; forum to asking:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Best course of action would be to inquiry with the author to see if
&lt;br&gt;&amp;gt;&amp;gt; they can direct you to where it needs to be dropped.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.ninjatrader-support2.com/vb/showthread.php?p=133247#post133247&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ninjatrader-support2.com/vb/showthread.php?p=133247#post133247&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a special place that the dll needs to be put?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/12/14 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have added the DLL as a reference in the C# program with:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; right clik (in the C# IDE)-&amp;gt;references...-&amp;gt;add-&amp;gt;(navigate to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Interop.JDLLServerLib.dll)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and have the lines:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in my c# program. The intellisense recognises all of the things that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; are inside JDLLServerClass ... which to me inidicates that the DLL
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; file was found correctly. But when I run the program I get the error:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 14/12/2009 13:02:34,Strategy,Error on calling 'OnBarUpdate' method for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; strategy 'JayServerExample': Could not load file or assembly
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'Interop.JDLLServerLib, Version=3.0.0.0, Culture=neutral,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PublicKeyToken=null' or one of its dependencies. The system cannot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; find the file specified.,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It's a long shot becuase it is nothing to do with J, but does anybody
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have any ideas what I might need to do? [PS, I have only used C# since
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; last week so really don't quite &amp;quot;get it&amp;quot; at this stage!]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Matthew.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For reference, the c# program is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #region Using declarations
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.ComponentModel;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Diagnostics;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Drawing;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Drawing.Drawing2D;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Xml.Serialization;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Cbi;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Data;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Indicator;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Gui.Chart;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Strategy;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; // This namespace holds all strategies and is required. Do not change it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; namespace NinjaTrader.Strategy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// Example of communcation with J
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    [Description(&amp;quot;Example of communcation with J&amp;quot;)]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    public class JayServerExample : Strategy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #region Variables
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        // Wizard generated variables
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        // User defined variables (add any user defined variables below)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// This method is used to configure the strategy and is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; called once before any strategy method is called.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        protected override void Initialize()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;            CalculateOnBarClose = true;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// Called on each bar update event (incoming tick)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        protected override void OnBarUpdate()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                        Print(Bars.Count);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                        JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #region Properties
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009/12/12 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; That did it, thanks :-).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PS. For anyone else with this problem, if you get a domain error when
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; you run the command:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  wd 'exec *',BINPATH,'\jreg.bat'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it might be that you need to run as administrator in which case execute:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; BINPATH,'\jreg.bat'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to see where the file is and go to it in windows explorer, right click
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and select run as administrator.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2009/12/12 Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822651&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Matthew wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  But the JDLLServer does not appear on the COM tab for me. Is there
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  something I need to install first?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Try running   wd 'exec *',BINPATH,'\jreg.bat'  .  Or just double-click that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; batch file in Windows explorer.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -Dan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C--.NET-COM-JDLLServer-tp26759768s24193p26822651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26822521</id>
	<title>Re: Cancelling the dialog box in wdquery defaults to &quot;OK&quot; --a bug or a feature?</title>
	<published>2009-12-16T19:19:31Z</published>
	<updated>2009-12-16T19:19:31Z</updated>
	<author>
		<name>bill lam-2</name>
	</author>
	<content type="html">mer, 16 Dec 2009, Ian Clark skribis:
&lt;br&gt;&amp;gt; This seems counterintuitive to me. A user might expect that GoAway /
&lt;br&gt;&amp;gt; Esc equates to Cancel, not OK. Other Mac apps (eg TextEdit) disable
&lt;br&gt;&amp;gt; the GoAway within a confirmation dialog, eg on quitting with an
&lt;br&gt;&amp;gt; unsaved document... and Esc is equivalent to Cancel, not &amp;quot;Save...&amp;quot; or
&lt;br&gt;&amp;gt; &amp;quot;Don't Save&amp;quot;.
&lt;br&gt;&lt;br&gt;In gtk dialog box, pressing esc usually equated to resign. &amp;nbsp;Hopefully
&lt;br&gt;the new gtk frontend will include this as a nice side effect.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cancelling-the-dialog-box-in-wdquery-defaults-to-%22OK%22---a-bug-or-a-feature--tp26815380s24193p26822521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821826</id>
	<title>Re: SQLite dot commands</title>
	<published>2009-12-16T17:47:39Z</published>
	<updated>2009-12-16T17:47:39Z</updated>
	<author>
		<name>Sherlock, Ric</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: Bill Harris
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've got a process that starts with a J script to pull many
&lt;br&gt;&amp;gt; spreadsheets
&lt;br&gt;&amp;gt; into one csv file and then uses a file of sql commands that sqlite3
&lt;br&gt;&amp;gt; executes in cygwin bash to populate a database. &amp;nbsp;I'd like to run
&lt;br&gt;&amp;gt; everything from J and, in the process, lose the dependency on cygwin.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm stuck on running the sql to populate the database. &amp;nbsp;It contains a
&lt;br&gt;&amp;gt; few
&lt;br&gt;&amp;gt; dot commands for sqlite3, and exec__db seems to choke on those.
&lt;/div&gt;&lt;br&gt;From the sqlite documentation it sounds as though the dot commands (eg. .tables) are just convenience functions that create SQL.
&lt;br&gt;From: &lt;a href=&quot;http://sqlite.org/sqlite.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sqlite.org/sqlite.html&lt;/a&gt;&lt;br&gt;&amp;lt;quote&amp;gt;
&lt;br&gt;The &amp;quot;.tables&amp;quot; command is similar to setting list mode then executing the following query:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; SELECT name FROM sqlite_master 
&lt;br&gt;&amp;nbsp; &amp;nbsp; WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%'
&lt;br&gt;&amp;nbsp; &amp;nbsp; UNION ALL 
&lt;br&gt;&amp;nbsp; &amp;nbsp; SELECT name FROM sqlite_temp_master 
&lt;br&gt;&amp;nbsp; &amp;nbsp; WHERE type IN ('table','view') 
&lt;br&gt;&amp;nbsp; &amp;nbsp; ORDER BY 1
&lt;br&gt;&lt;br&gt;In fact, if you look at the source code to the sqlite3 program (found in the source tree in the file src/shell.c) you'll find exactly the above query.
&lt;br&gt;&amp;lt;/quote&amp;gt;
&lt;br&gt;&lt;br&gt;Might be worthwhile looking up the C source for &amp;quot;.import&amp;quot; and working out what SQL it is creating.
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The commands I'm using are
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; .database cpredik.sqlite
&lt;br&gt;&amp;gt; .separator &amp;quot;|&amp;quot;
&lt;br&gt;&amp;gt; .import Predik.csv predik
&lt;br&gt;&amp;gt; .exit
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The first and last are a bit superfluous in the J context, but they are
&lt;br&gt;&amp;gt; there to keep sqlite3 happy when run from the shell. &amp;nbsp;The middle two
&lt;br&gt;&amp;gt; could
&lt;br&gt;&amp;gt; probably be replaced with a bulkins, but then that wouldn't be
&lt;br&gt;&amp;gt; compatible
&lt;br&gt;&amp;gt; with sqlite3.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a way to have this one .sql file that will run both with
&lt;br&gt;&amp;gt; sqlite3
&lt;br&gt;&amp;gt; from the shell (bash) and inside J using exec__db?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bill
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLite-dot-commands-tp26821192s24193p26821826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821788</id>
	<title>Re: Tacit exercise</title>
	<published>2009-12-16T17:45:51Z</published>
	<updated>2009-12-16T17:45:51Z</updated>
	<author>
		<name>Viktor Cerovski</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Andrew Nikitin wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; For those who want to train their tacit muscles, here's a challenge. 
&lt;br&gt;&lt;br&gt;&amp;gt; A Markov algorithm is a specialized term rewriter. &amp;nbsp;It accepts ...
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I am not sure the problem can be handled by tacit expressions better than with explicit expressions.
&lt;br&gt;&lt;br&gt;Tacit way to implement 'while' is body^:predicate^:_
&lt;br&gt;&lt;br&gt;In J as it is there is no information flow between body and predicate, but for this problem there is a significant sharing of information. predicate is true when a non-terminal rule was applied and body is the application of this rule.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Also, I belive, if you are demanding &amp;quot;tacit&amp;quot; solution, you should also use only tacitly defined utilities. stringreplace (which seems to be the cornerstone of the algorithm) is not.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Anyway, here is my submission (sans parsing)
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;NB. This rules file is extracted from Wikipedia:
&lt;br&gt;NB. &lt;a href=&quot;http://en.wikipedia.org/wiki/Markov_Algorithm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Markov_Algorithm&lt;/a&gt;&lt;br&gt;R1=:i.0 3
&lt;br&gt;R1=:R1,'A';'apple';0
&lt;br&gt;R1=:R1,'B';'bag';0
&lt;br&gt;R1=:R1,'S';'shop';0
&lt;br&gt;R1=:R1,'T';'the';0
&lt;br&gt;R1=:R1,'the shop';'my brother';0
&lt;br&gt;R1=:R1,'a never used';'terminating rule';1
&lt;br&gt;&lt;br&gt;T1=:'I bought a B of As from T S.'
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;mapply=: 4 : 0
&lt;br&gt;ri=.0
&lt;br&gt;while. ri&amp;lt;#x do.
&lt;br&gt;&amp;nbsp; z=.y E.~ p=.&amp;gt;{.r=.ri{x
&lt;br&gt;&amp;nbsp; ri=.1+ri
&lt;br&gt;&amp;nbsp; if. +./z do.
&lt;br&gt;&amp;nbsp; &amp;nbsp; y=.((&amp;gt; 1 { r) , (#p) }. ])&amp;.((z i. 1)&amp;|.) y
&lt;br&gt;&amp;nbsp; &amp;nbsp; ri=._*&amp;gt;{:r
&lt;br&gt;&amp;nbsp; end.
&lt;br&gt;end.
&lt;br&gt;y
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;[...]
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Slightly shorter/faster/neater:
&lt;br&gt;&lt;br&gt;mapply1=: 4 : 0
&lt;br&gt;t=.ri=.0
&lt;br&gt;while. (-.t) *. ri&amp;lt;#x do.
&lt;br&gt;&amp;nbsp;'p s t'=.ri{x
&lt;br&gt;&amp;nbsp; y=.(s , (#p) }. ])&amp;.((z i. 1)&amp;|.)^:(f=.+./z=.p E. y) y
&lt;br&gt;&amp;nbsp; ri=.(-.f)*ri+1
&lt;br&gt;end.
&lt;br&gt;y
&lt;br&gt;)
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tacit-exercise-tp26818596s24193p26821788.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821794</id>
	<title>Tacit exercise</title>
	<published>2009-12-16T17:45:48Z</published>
	<updated>2009-12-16T17:45:48Z</updated>
	<author>
		<name>Andrew Nikitin</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;  Anyway, here is my submission (sans parsing)
&lt;br&gt;&lt;br&gt;&amp;gt; I haven't read your code yet, but I will.  Meanwhile, could you
&lt;br&gt;&amp;gt; provide a high-level comparison of your explicit implementation with
&lt;br&gt;&amp;gt; the one in my original message?
&lt;br&gt;&lt;br&gt;It pretty much does the same thing, but, arguably, in a fancier way.
&lt;br&gt;x is ruleset, y is target string
&lt;br&gt;ruleset is n by 3 matrix of boxed pattern, replacement and termination
&lt;br&gt;flag in that order.
&lt;br&gt;ri cycles through rule indexs selecting current rule in r. p takes
&lt;br&gt;pattern from this rule and z marks the beginnings of this pattern in
&lt;br&gt;target string. Then ri is incremented, but if pattern matches (z has 1
&lt;br&gt;in it), then (here comes fancy part) pattern is replaced with a target
&lt;br&gt;(and here fancy part ends) and ri is reset to 0 or _ (depending on 3rd
&lt;br&gt;component in rule r, which is &amp;quot;terminating&amp;quot; flag)
&lt;br&gt;&lt;br&gt;&lt;br&gt;mapply=: 4 : 0
&lt;br&gt;ri=.0
&lt;br&gt;while. ri&amp;lt;#x do.
&lt;br&gt;  z=.y E.~ p=.&amp;gt;{.r=.ri{x
&lt;br&gt;  ri=.1+ri
&lt;br&gt;  if. +./z do.
&lt;br&gt;    y=.((&amp;gt; 1 { r) , (#p) }. ])&amp;.((z i. 1)&amp;|.) y
&lt;br&gt;    ri=._*&amp;gt;{:r
&lt;br&gt;  end.
&lt;br&gt;end.
&lt;br&gt;y
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;&amp;gt; [1]  Maybe we should capture such situations in a &amp;quot;When to be
&lt;br&gt;&amp;gt; explicit&amp;quot; essay.  What other situations call for explicit code?
&lt;br&gt;&amp;gt; State, side effects, object management ... anything else?
&lt;br&gt;&lt;br&gt;If you ask me, the answer should be &amp;quot;always&amp;quot; or &amp;quot;almost always&amp;quot;.
&lt;br&gt;Tacit has its charm and its place, but you can just do more things
&lt;br&gt;simpler if you allow explicit constructs, especially temp variables.
&lt;br&gt;&lt;br&gt;Also, if you are looking for real challenge, instead of &amp;quot;explicit vs
&lt;br&gt;tacit&amp;quot; try &amp;quot;boxed vs flat&amp;quot;. Take some function that relies on boxing
&lt;br&gt;internally and rewrite it using only flat arrays.
&lt;br&gt;&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Hotmail: Free, trusted and rich email service.
&lt;br&gt;&lt;a href=&quot;http://clk.atdmt.com/GBL/go/171222984/direct/01/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://clk.atdmt.com/GBL/go/171222984/direct/01/&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tacit-exercise-tp26821794s24193p26821794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821192</id>
	<title>SQLite dot commands</title>
	<published>2009-12-16T16:34:48Z</published>
	<updated>2009-12-16T16:34:48Z</updated>
	<author>
		<name>Bill Harris</name>
	</author>
	<content type="html">I've got a process that starts with a J script to pull many spreadsheets
&lt;br&gt;into one csv file and then uses a file of sql commands that sqlite3
&lt;br&gt;executes in cygwin bash to populate a database. &amp;nbsp;I'd like to run
&lt;br&gt;everything from J and, in the process, lose the dependency on cygwin.
&lt;br&gt;&lt;br&gt;I'm stuck on running the sql to populate the database. &amp;nbsp;It contains a few
&lt;br&gt;dot commands for sqlite3, and exec__db seems to choke on those.
&lt;br&gt;&lt;br&gt;The commands I'm using are
&lt;br&gt;&lt;br&gt;.database cpredik.sqlite
&lt;br&gt;.separator &amp;quot;|&amp;quot;
&lt;br&gt;.import Predik.csv predik
&lt;br&gt;.exit
&lt;br&gt;&lt;br&gt;The first and last are a bit superfluous in the J context, but they are
&lt;br&gt;there to keep sqlite3 happy when run from the shell. &amp;nbsp;The middle two could
&lt;br&gt;probably be replaced with a bulkins, but then that wouldn't be compatible
&lt;br&gt;with sqlite3.
&lt;br&gt;&lt;br&gt;Is there a way to have this one .sql file that will run both with sqlite3
&lt;br&gt;from the shell (bash) and inside J using exec__db?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Bill
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SQLite-dot-commands-tp26821192s24193p26821192.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819199</id>
	<title>Re: Tacit exercise</title>
	<published>2009-12-16T13:58:05Z</published>
	<updated>2009-12-16T13:58:05Z</updated>
	<author>
		<name>Dan Bron</name>
	</author>
	<content type="html">Andrew Nikitin wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;I am not sure the problem can be handled by tacit expressions better 
&lt;br&gt;&amp;gt; &amp;nbsp;than with explicit expressions. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I had come to the same conclusion, but I wanted validation (because I find explicit loops distasteful).
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;In J as it is there is no information flow between
&lt;br&gt;&amp;gt; &amp;nbsp;body and predicate, but for this problem there is a significant sharing
&lt;br&gt;&amp;gt; &amp;nbsp;of information. predicate is true when a non-terminal rule was applied
&lt;br&gt;&amp;gt; &amp;nbsp;and body is the application of this rule.
&lt;br&gt;&lt;br&gt;Yep; I think you captured the essence of the problem perfectly; this'll help me identify similar situations later*. &amp;nbsp;I had a small
&lt;br&gt;twinge when I realized that at least for rule-reapplication, the test of whether to &amp;quot;start over&amp;quot; is exactly if the target has
&lt;br&gt;remained unchanged, and so I thought there might be a clean way to use &amp;nbsp;^:_ &amp;nbsp;to detect this stabilization. &amp;nbsp;But you're right, even
&lt;br&gt;if &amp;nbsp;^:_ &amp;nbsp;worked for that situation, it wouldn't work for early termination.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Also, I believe, if you are demanding &amp;quot;tacit&amp;quot; solution, you should also use only tacitly defined utilities. 
&lt;br&gt;&lt;br&gt;Yep; you can see an example of a completely tacit solution at [2]. &amp;nbsp;Well, actually it's not completely tacit because it uses rxmatch
&lt;br&gt;and rxcut. &amp;nbsp;But that doesn't bother me; I view and used standard utilities and Addons as black boxes. &amp;nbsp;It's not my concern if
&lt;br&gt;they're tacit or explicit; I only worry about my own code [3]. &amp;nbsp;And the tacit version I wrote does implement its own tacit replace
&lt;br&gt;function (for reasons discussed below).
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;stringreplace (which seems to be the cornerstone of the algorithm) 
&lt;br&gt;&lt;br&gt;Ah, no, stringreplace was only used in the initial, quick-and-dirty hack. &amp;nbsp;Actually, stringreplace itself is what motivated me to
&lt;br&gt;rewrite the solution entirely; not because stringreplace is explicit (as I said, I consider it a black box), but because it does
&lt;br&gt;exactly the wrong thing in this context. &amp;nbsp;Not only does it apply all the substitutions at every pass, but it actually makes all
&lt;br&gt;possible replacements for each substitution. &amp;nbsp;I actually think that's the proper and natural way to implement a term rewriter, but
&lt;br&gt;was perturbed to discover that Markov algorithms specifically and intentionally deny this implementation. &amp;nbsp;
&lt;br&gt;&lt;br&gt;It was exactly this part of the specification that motivated my message. &amp;nbsp;Anyway, you can ignore the &amp;quot;stringreplace&amp;quot; formulation and
&lt;br&gt;focus your attention on the explicit and tacit formulations at [3].
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Anyway, here is my submission (sans parsing)
&lt;br&gt;&lt;br&gt;I haven't read your code yet, but I will. &amp;nbsp;Meanwhile, could you provide a high-level comparison of your explicit implementation with
&lt;br&gt;the one in my original message?
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;br&gt;[1] &amp;nbsp;Maybe we should capture such situations in a &amp;quot;When to be explicit&amp;quot; essay. &amp;nbsp;What other situations call for explicit code?
&lt;br&gt;State, side effects, object management ... anything else?
&lt;br&gt;[2] &amp;nbsp;&lt;a href=&quot;http://rosettacode.org/wiki/Talk:Markov_Algorithm#explicit_vs_tacit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rosettacode.org/wiki/Talk:Markov_Algorithm#explicit_vs_tacit&lt;/a&gt;&amp;nbsp;
&lt;br&gt;[3] &amp;nbsp;But using standard utilities does prevent me from creating fully fixed tacit code that happens to use standard utilities. &amp;nbsp;I
&lt;br&gt;used to use my &amp;quot;fix local&amp;quot; utility to get around this limitation, but since Roger changed (broke!) 15!:6, that doesn't work anymore,
&lt;br&gt;and I haven't gotten around to rewriting it.
&lt;br&gt;&lt;br&gt;PS: &amp;nbsp;For anyone who read the original message and wanted some test data:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m1 =. noun define
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # This rules file is extracted from Wikipedia:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # &lt;a href=&quot;http://en.wikipedia.org/wiki/Markov_Algorithm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Markov_Algorithm&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A -&amp;gt; apple
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B -&amp;gt; bag
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S -&amp;gt; shop
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; T -&amp;gt; the
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the shop -&amp;gt; my brother
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a never used -&amp;gt; .terminating rule
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m1 markov 'I bought a B of As from T S.' 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I bought a bag of apples from my brother.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tacit-exercise-tp26818596s24193p26819199.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818982</id>
	<title>Re: Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T13:41:50Z</published>
	<updated>2009-12-16T13:41:50Z</updated>
	<author>
		<name>Joey K Tuttle</name>
	</author>
	<content type="html">Yes. Sorry for my typo, and lack of thought about it...
&lt;br&gt;&lt;br&gt;Sent from my iCan't see what I'm typing (iPod) - excuse terseness and &amp;nbsp;
&lt;br&gt;typos.
&lt;br&gt;&lt;br&gt;- joey
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 16, 2009, at 11:05, Roger Hui &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhui000@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I don't see that the dyad I. (interval index) belongs with the others.
&lt;br&gt;&amp;gt; I assume you mean |. (rotate).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; {.
&lt;br&gt;&amp;gt; }.
&lt;br&gt;&amp;gt; |.
&lt;br&gt;&amp;gt; A.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can not have the new behaviour (boxed left arguments)
&lt;br&gt;&amp;gt; for {. }. |. and still be compatible. &amp;nbsp;The left ranks are wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; From: Joey K Tuttle &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jkt@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wednesday, December 16, 2009 10:57
&lt;br&gt;&amp;gt; Subject: Re: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;&amp;gt; To: Programming forum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If such an extension was to be implemented I think it would make
&lt;br&gt;&amp;gt;&amp;gt; sense
&lt;br&gt;&amp;gt;&amp;gt; to have similar arguments work with I. {. {. as well. Current
&lt;br&gt;&amp;gt;&amp;gt; behavior
&lt;br&gt;&amp;gt;&amp;gt; could be left as a convenience/back compatibility.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent from my iPod - excuse terseness and typos.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - joey
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Dec 16, 2009, at 10:41, Roger Hui &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhui000@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The extension can be more readily accommodated (i.e.,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; with backward compatibility) if the left argument were boxed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Likewise, if we were designing from scratch (which we are not),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; we would be tempted to box the left arguments of the dyads
&lt;br&gt;&amp;gt;&amp;gt; |. &amp;nbsp;{. }. .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Date: Wednesday, December 16, 2009 9:59
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: 'Programming forum' &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818982&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I would like to propose an extension to dyad
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A. &amp;nbsp; Specifically, I would like dyad &amp;nbsp;A. &amp;nbsp;to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; interpret left-arguments in a way similar
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to &amp;nbsp;|. &amp;nbsp;and &amp;nbsp;{. &amp;nbsp;, where each atom
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; of &amp;nbsp; x &amp;nbsp; corresponds to an axis of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; y &amp;nbsp;. &amp;nbsp; &amp;nbsp;For example, &amp;nbsp;with the new
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; definition, the phrase (0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _1 A. i. 4 5) &amp;nbsp;would reverse the columns of y, yielding the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; same results as &amp;nbsp;(_1 A.&amp;.|: i. 4 5) &amp;nbsp;does with the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; current definition.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Similar statements apply to higher dimensions; I can post a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; model (using &amp;nbsp;|:) &amp;nbsp;if that's helpful.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Of course, right now, the ranks of dyad &amp;nbsp;A. &amp;nbsp;are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 0 &amp;nbsp;_ &amp;nbsp;. &amp;nbsp; The new definition of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A. &amp;nbsp;would require them to be &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _ &amp;nbsp; &amp;nbsp;, so
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; extension is not backwards compatible. &amp;nbsp;But because of the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; way &amp;nbsp;A. &amp;nbsp;is typically used, I doubt it would break
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; much code in practice.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Furthermore, the fix is trivial; &amp;nbsp;substitute &amp;nbsp;A.&amp;quot;_ 0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _ &amp;nbsp; for all uses of &amp;nbsp;A.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I believe the extension would be useful; more and more I find
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; myself wanting direct access non-leading axes of an array,
&lt;br&gt;&amp;gt;&amp;gt; and I now
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; make heavy use of &amp;nbsp;(boxes &amp;lt;;.n &amp;nbsp;y), (list {. y),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (list |. &amp;nbsp;y) &amp;nbsp;etc. &amp;nbsp;This extension to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A. &amp;nbsp;would make a nice companion to another
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; proposal I made:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&lt;/a&gt;&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26818982.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818596</id>
	<title>Tacit exercise</title>
	<published>2009-12-16T13:13:28Z</published>
	<updated>2009-12-16T13:13:28Z</updated>
	<author>
		<name>Andrew Nikitin</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; For those who want to train their tacit muscles, here's a challenge. 
&lt;br&gt;&lt;br&gt;&amp;gt; A Markov algorithm is a specialized term rewriter. &amp;nbsp;It accepts ...
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I am not sure the problem can be handled by tacit expressions better than with explicit expressions.
&lt;br&gt;&lt;br&gt;Tacit way to implement 'while' is body^:predicate^:_
&lt;br&gt;&lt;br&gt;In J as it is there is no information flow between body and predicate, but for this problem there is a significant sharing of information. predicate is true when a non-terminal rule was applied and body is the application of this rule.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Also, I belive, if you are demanding &amp;quot;tacit&amp;quot; solution, you should also use only tacitly defined utilities. stringreplace (which seems to be the cornerstone of the algorithm) is not.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Anyway, here is my submission (sans parsing)
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;NB. This rules file is extracted from Wikipedia:
&lt;br&gt;NB. &lt;a href=&quot;http://en.wikipedia.org/wiki/Markov_Algorithm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Markov_Algorithm&lt;/a&gt;&lt;br&gt;R1=:i.0 3
&lt;br&gt;R1=:R1,'A';'apple';0
&lt;br&gt;R1=:R1,'B';'bag';0
&lt;br&gt;R1=:R1,'S';'shop';0
&lt;br&gt;R1=:R1,'T';'the';0
&lt;br&gt;R1=:R1,'the shop';'my brother';0
&lt;br&gt;R1=:R1,'a never used';'terminating rule';1
&lt;br&gt;&lt;br&gt;T1=:'I bought a B of As from T S.'
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;mapply=: 4 : 0
&lt;br&gt;ri=.0
&lt;br&gt;while. ri&amp;lt;#x do.
&lt;br&gt;&amp;nbsp; z=.y E.~ p=.&amp;gt;{.r=.ri{x
&lt;br&gt;&amp;nbsp; ri=.1+ri
&lt;br&gt;&amp;nbsp; if. +./z do.
&lt;br&gt;&amp;nbsp; &amp;nbsp; y=.((&amp;gt; 1 { r) , (#p) }. ])&amp;.((z i. 1)&amp;|.) y
&lt;br&gt;&amp;nbsp; &amp;nbsp; ri=._*&amp;gt;{:r
&lt;br&gt;&amp;nbsp; end.
&lt;br&gt;end.
&lt;br&gt;y
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;NB. test 
&lt;br&gt;&lt;br&gt;NB. R1 mapply T1
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Hotmail: Trusted email with powerful SPAM protection.
&lt;br&gt;&lt;a href=&quot;http://clk.atdmt.com/GBL/go/177141665/direct/01/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://clk.atdmt.com/GBL/go/177141665/direct/01/&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tacit-exercise-tp26818596s24193p26818596.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817618</id>
	<title>Re: Indexed Write(length) Error to Bill Iam and Devon McCormick</title>
	<published>2009-12-16T12:06:21Z</published>
	<updated>2009-12-16T12:06:21Z</updated>
	<author>
		<name>Wandelt</name>
	</author>
	<content type="html">Thank You Bill and Devon it becomes clear to me.
&lt;br&gt;Thanks again, Hermann
&lt;br&gt;&lt;br&gt;______________________
&lt;br&gt;&lt;br&gt;Hermann Wandelt
&lt;br&gt;&lt;br&gt;Schustersweid 6
&lt;br&gt;&lt;br&gt;47665 Sonsbeck 
&lt;br&gt;&lt;br&gt;E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] Im Auftrag von bill lam
&lt;br&gt;Gesendet: Mittwoch, 16. Dezember 2009 15:36
&lt;br&gt;An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;Betreff: Re: [Jprogramming] Indexed Write(length) Error
&lt;br&gt;&lt;br&gt;I guess the length error referred to the right argument of 1!:12 that
&lt;br&gt;it expected a count of 2 item.
&lt;br&gt;a 1!:12 f,(sg*60)
&lt;br&gt;or
&lt;br&gt;a 1!:12 f;(sg*60)
&lt;br&gt;&lt;br&gt;mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes Bill, 'a' is a character string of 60 bytes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9679 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ______________________
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 47665 Sonsbeck 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] Im Auftrag von bill lam
&lt;br&gt;&amp;gt; Gesendet: Mittwoch, 16. Dezember 2009 15:03
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817618&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [Jprogramming] Indexed Write(length) Error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What is 'a'? &amp;nbsp;Is it a rank-1 character array of 60 bytes?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;br&gt;&amp;gt; &amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I
&lt;/div&gt;can't
&lt;br&gt;&amp;gt; &amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;----------------------------------------------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; sg &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 0
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; &amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60) &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; | &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;&amp;gt; &amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [---=| Quote block shrinked by t-prot: 23 lines snipped |=---]
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; | &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [---=| TOFU protection by t-prot: 20 lines snipped |=---]
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26817618.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817531</id>
	<title>Re: Cancelling the dialog box in wdquery defaults to &quot;OK&quot; --a bug or a feature?</title>
	<published>2009-12-16T12:00:23Z</published>
	<updated>2009-12-16T12:00:23Z</updated>
	<author>
		<name>Oleg Kobchenko</name>
	</author>
	<content type="html">Very good observation. I had been baffled by pressing Esc
&lt;br&gt;on Quit dialog and having J disappear, when cancellation of
&lt;br&gt;action was expected. But I did not realize it is related to
&lt;br&gt;the wrong return code of the query box.
&lt;br&gt;&lt;br&gt;On Windows 7, ?5 is not a good argument--depending on parameter
&lt;br&gt;the value of Esc is different on it may even be disabled.
&lt;br&gt;&lt;br&gt;But Esc+Esc in session first shows the quit box and then discards
&lt;br&gt;it without closing J, which is correct.
&lt;br&gt;&lt;br&gt;Note also, that Esc in session should NEVER have invoked a
&lt;br&gt;quit box. &amp;quot;Esc&amp;quot; is for &amp;quot;discard&amp;quot;, which is different from &amp;quot;close&amp;quot;.
&lt;br&gt;Esc is appropriate to discard a dialog box though with an effect
&lt;br&gt;of NOT taking any action, i.e. as if the box never appeared.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Ian Clark &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;earthspotty@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On my iMac, on entering:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(?5) wdquery 'myapp' ; 'my message'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if you press Esc or click the GoAway button in the window's titlebar,
&lt;br&gt;&amp;gt; this is equivalent to clicking OK, viz 0 is returned in all cases of
&lt;br&gt;&amp;gt; left arg. The same thing happens when you try to quit J itself and see
&lt;br&gt;&amp;gt; the message: &amp;quot;Do you want to exit J?&amp;quot; -- J exits on Esc / GoAway.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One sad effect of that -- and I've seen it happen -- is that if a
&lt;br&gt;&amp;gt; trailing wire (stray elbow, cat's paw, etc) holds down the Esc button,
&lt;br&gt;&amp;gt; J promptly closes all its windows and terminates.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This seems counterintuitive to me. A user might expect that GoAway /
&lt;br&gt;&amp;gt; Esc equates to Cancel, not OK. Other Mac apps (eg TextEdit) disable
&lt;br&gt;&amp;gt; the GoAway within a confirmation dialog, eg on quitting with an
&lt;br&gt;&amp;gt; unsaved document... and Esc is equivalent to Cancel, not &amp;quot;Save...&amp;quot; or
&lt;br&gt;&amp;gt; &amp;quot;Don't Save&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I know it's an OAFWD (&amp;quot;Only A Fool Would Do it!&amp;quot;). But my users don't
&lt;br&gt;&amp;gt; possess our level of intelligence. How can I detect GoAway / Esc, to
&lt;br&gt;&amp;gt; override this behaviour?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ian
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cancelling-the-dialog-box-in-wdquery-defaults-to-%22OK%22---a-bug-or-a-feature--tp26815380s24193p26817531.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816751</id>
	<title>Re: Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T11:12:45Z</published>
	<updated>2009-12-16T11:12:45Z</updated>
	<author>
		<name>Dan Bron</name>
	</author>
	<content type="html">Roger wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;The extension can be more readily accommodated (i.e., 
&lt;br&gt;&amp;gt; &amp;nbsp;with backward compatibility) if the left argument were boxed.
&lt;br&gt;&lt;br&gt;Good idea.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Likewise, if we were designing from scratch (which we are not),
&lt;br&gt;&amp;gt; &amp;nbsp;we would be tempted to box the left arguments of the dyads |. &amp;nbsp;{. }. .
&lt;br&gt;&lt;br&gt;Certainly this would make phrases like &amp;nbsp;{./ &amp;nbsp;more useful. &amp;nbsp;The only downside I can see would be it would make certain trains
&lt;br&gt;muddier; today I might write &amp;nbsp;(|.~ _ &amp;nbsp;, someCalulation) &amp;nbsp;to rotate certain columns, the boxed form would have me write &amp;nbsp; &amp;nbsp;(|.~ _
&lt;br&gt;&amp;lt;@, someCalulation) &amp;nbsp;, which I could live with.
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26816751.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816650</id>
	<title>Re: Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T11:05:20Z</published>
	<updated>2009-12-16T11:05:20Z</updated>
	<author>
		<name>Roger Hui</name>
	</author>
	<content type="html">I don't see that the dyad I. (interval index) belongs with the others.
&lt;br&gt;I assume you mean |. (rotate).
&lt;br&gt;&lt;br&gt;{
&lt;br&gt;{.
&lt;br&gt;}.
&lt;br&gt;|.
&lt;br&gt;A.
&lt;br&gt;&lt;br&gt;You can not have the new behaviour (boxed left arguments)
&lt;br&gt;for {. }. |. and still be compatible. &amp;nbsp;The left ranks are wrong.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message -----
&lt;br&gt;From: Joey K Tuttle &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jkt@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Wednesday, December 16, 2009 10:57
&lt;br&gt;Subject: Re: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;To: Programming forum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If such an extension was to be implemented I think it would make 
&lt;br&gt;&amp;gt; sense  
&lt;br&gt;&amp;gt; to have similar arguments work with I. {. {. as well. Current 
&lt;br&gt;&amp;gt; behavior  
&lt;br&gt;&amp;gt; could be left as a convenience/back compatibility.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sent from my iPod - excuse terseness and typos.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - joey
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Dec 16, 2009, at 10:41, Roger Hui &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816650&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhui000@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The extension can be more readily accommodated (i.e.,
&lt;br&gt;&amp;gt; &amp;gt; with backward compatibility) if the left argument were boxed.
&lt;br&gt;&amp;gt; &amp;gt; Likewise, if we were designing from scratch (which we are not),
&lt;br&gt;&amp;gt; &amp;gt; we would be tempted to box the left arguments of the dyads 
&lt;br&gt;&amp;gt; |.  {. }. .
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; &amp;gt; From: Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816650&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Wednesday, December 16, 2009 9:59
&lt;br&gt;&amp;gt; &amp;gt; Subject: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;&amp;gt; &amp;gt; To: 'Programming forum' &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816650&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I would like to propose an extension to dyad
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; A.   Specifically, I would like dyad  A.  to
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; interpret left-arguments in a way similar
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; to  |.  and  {.  , where each atom
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; of   x   corresponds to an axis of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; y  .    For example,  with the new
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; definition, the phrase (0
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _1 A. i. 4 5)  would reverse the columns of y, yielding the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; same results as  (_1 A.&amp;.|: i. 4 5)  does with the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; current definition.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Similar statements apply to higher dimensions; I can post a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; model (using  |:)  if that's helpful.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Of course, right now, the ranks of dyad  A.  are
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 0  _  .   The new definition of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; A.  would require them to be   1
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _    , so
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; extension is not backwards compatible.  But because of the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; way  A.  is typically used, I doubt it would break
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; much code in practice.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Furthermore, the fix is trivial;  substitute  A.&amp;quot;_ 0
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _   for all uses of  A.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I believe the extension would be useful; more and more I find
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; myself wanting direct access non-leading axes of an array, 
&lt;br&gt;&amp;gt; and I now
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; make heavy use of  (boxes &amp;lt;;.n  y), (list {. y),
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (list |.  y)  etc.  This extension to
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; A.  would make a nice companion to another
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; proposal I made:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26816650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816486</id>
	<title>Re: Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T10:53:36Z</published>
	<updated>2009-12-16T10:53:36Z</updated>
	<author>
		<name>Joey K Tuttle</name>
	</author>
	<content type="html">If such an extension was to be implemented I think it would make sense &amp;nbsp;
&lt;br&gt;to have similar arguments work with I. {. {. as well. Current behavior &amp;nbsp;
&lt;br&gt;could be left as a convenience/back compatibility.
&lt;br&gt;&lt;br&gt;Sent from my iPod - excuse terseness and typos.
&lt;br&gt;&lt;br&gt;- joey
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 16, 2009, at 10:41, Roger Hui &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rhui000@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The extension can be more readily accommodated (i.e.,
&lt;br&gt;&amp;gt; with backward compatibility) if the left argument were boxed.
&lt;br&gt;&amp;gt; Likewise, if we were designing from scratch (which we are not),
&lt;br&gt;&amp;gt; we would be tempted to box the left arguments of the dyads |. &amp;nbsp;{. }. .
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; From: Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816486&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wednesday, December 16, 2009 9:59
&lt;br&gt;&amp;gt; Subject: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;&amp;gt; To: 'Programming forum' &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816486&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would like to propose an extension to dyad
&lt;br&gt;&amp;gt;&amp;gt; A. &amp;nbsp; Specifically, I would like dyad &amp;nbsp;A. &amp;nbsp;to
&lt;br&gt;&amp;gt;&amp;gt; interpret left-arguments in a way similar
&lt;br&gt;&amp;gt;&amp;gt; to &amp;nbsp;|. &amp;nbsp;and &amp;nbsp;{. &amp;nbsp;, where each atom
&lt;br&gt;&amp;gt;&amp;gt; of &amp;nbsp; x &amp;nbsp; corresponds to an axis of
&lt;br&gt;&amp;gt;&amp;gt; y &amp;nbsp;. &amp;nbsp; &amp;nbsp;For example, &amp;nbsp;with the new
&lt;br&gt;&amp;gt;&amp;gt; definition, the phrase (0
&lt;br&gt;&amp;gt;&amp;gt; _1 A. i. 4 5) &amp;nbsp;would reverse the columns of y, yielding the
&lt;br&gt;&amp;gt;&amp;gt; same results as &amp;nbsp;(_1 A.&amp;.|: i. 4 5) &amp;nbsp;does with the
&lt;br&gt;&amp;gt;&amp;gt; current definition.
&lt;br&gt;&amp;gt;&amp;gt; Similar statements apply to higher dimensions; I can post a
&lt;br&gt;&amp;gt;&amp;gt; model (using &amp;nbsp;|:) &amp;nbsp;if that's helpful.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Of course, right now, the ranks of dyad &amp;nbsp;A. &amp;nbsp;are
&lt;br&gt;&amp;gt;&amp;gt; 0 &amp;nbsp;_ &amp;nbsp;. &amp;nbsp; The new definition of
&lt;br&gt;&amp;gt;&amp;gt; A. &amp;nbsp;would require them to be &amp;nbsp; 1
&lt;br&gt;&amp;gt;&amp;gt; _ &amp;nbsp; &amp;nbsp;, so
&lt;br&gt;&amp;gt;&amp;gt; extension is not backwards compatible. &amp;nbsp;But because of the
&lt;br&gt;&amp;gt;&amp;gt; way &amp;nbsp;A. &amp;nbsp;is typically used, I doubt it would break
&lt;br&gt;&amp;gt;&amp;gt; much code in practice.
&lt;br&gt;&amp;gt;&amp;gt; Furthermore, the fix is trivial; &amp;nbsp;substitute &amp;nbsp;A.&amp;quot;_ 0
&lt;br&gt;&amp;gt;&amp;gt; _ &amp;nbsp; for all uses of &amp;nbsp;A.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I believe the extension would be useful; more and more I find
&lt;br&gt;&amp;gt;&amp;gt; myself wanting direct access non-leading axes of an array, and I now
&lt;br&gt;&amp;gt;&amp;gt; make heavy use of &amp;nbsp;(boxes &amp;lt;;.n &amp;nbsp;y), (list {. y),
&lt;br&gt;&amp;gt;&amp;gt; (list |. &amp;nbsp;y) &amp;nbsp;etc. &amp;nbsp;This extension to
&lt;br&gt;&amp;gt;&amp;gt; A. &amp;nbsp;would make a nice companion to another
&lt;br&gt;&amp;gt;&amp;gt; proposal I made:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; .
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26816486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26816262</id>
	<title>Re: Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T10:41:32Z</published>
	<updated>2009-12-16T10:41:32Z</updated>
	<author>
		<name>Roger Hui</name>
	</author>
	<content type="html">The extension can be more readily accommodated (i.e., 
&lt;br&gt;with backward compatibility) if the left argument were boxed.
&lt;br&gt;Likewise, if we were designing from scratch (which we are not),
&lt;br&gt;we would be tempted to box the left arguments of the dyads |. &amp;nbsp;{. }. .
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message -----
&lt;br&gt;From: Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816262&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Wednesday, December 16, 2009 9:59
&lt;br&gt;Subject: [Jprogramming] Proposed extension to A. (incompatible)
&lt;br&gt;To: 'Programming forum' &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26816262&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I would like to propose an extension to dyad  
&lt;br&gt;&amp;gt; A.   Specifically, I would like dyad  A.  to 
&lt;br&gt;&amp;gt; interpret left-arguments in a way similar
&lt;br&gt;&amp;gt; to  |.  and  {.  , where each atom 
&lt;br&gt;&amp;gt; of   x   corresponds to an axis of  
&lt;br&gt;&amp;gt; y  .    For example,  with the new 
&lt;br&gt;&amp;gt; definition, the phrase (0
&lt;br&gt;&amp;gt; _1 A. i. 4 5)  would reverse the columns of y, yielding the 
&lt;br&gt;&amp;gt; same results as  (_1 A.&amp;.|: i. 4 5)  does with the 
&lt;br&gt;&amp;gt; current definition.
&lt;br&gt;&amp;gt; Similar statements apply to higher dimensions; I can post a 
&lt;br&gt;&amp;gt; model (using  |:)  if that's helpful.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Of course, right now, the ranks of dyad  A.  are  
&lt;br&gt;&amp;gt; 0  _  .   The new definition of  
&lt;br&gt;&amp;gt; A.  would require them to be   1 
&lt;br&gt;&amp;gt; _    , so
&lt;br&gt;&amp;gt; extension is not backwards compatible.  But because of the 
&lt;br&gt;&amp;gt; way  A.  is typically used, I doubt it would break 
&lt;br&gt;&amp;gt; much code in practice.
&lt;br&gt;&amp;gt; Furthermore, the fix is trivial;  substitute  A.&amp;quot;_ 0 
&lt;br&gt;&amp;gt; _   for all uses of  A.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I believe the extension would be useful; more and more I find 
&lt;br&gt;&amp;gt; myself wanting direct access non-leading axes of an array, and I now
&lt;br&gt;&amp;gt; make heavy use of  (boxes &amp;lt;;.n  y), (list {. y), 
&lt;br&gt;&amp;gt; (list |.  y)  etc.  This extension to  
&lt;br&gt;&amp;gt; A.  would make a nice companion to another
&lt;br&gt;&amp;gt; proposal I made:  
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y &quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y &lt;/a&gt;&amp;nbsp;.
&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26816262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26815577</id>
	<title>Proposed extension to A. (incompatible)</title>
	<published>2009-12-16T09:57:42Z</published>
	<updated>2009-12-16T09:57:42Z</updated>
	<author>
		<name>Dan Bron</name>
	</author>
	<content type="html">I would like to propose an extension to dyad &amp;nbsp;A. &amp;nbsp; Specifically, I would like dyad &amp;nbsp;A. &amp;nbsp;to interpret left-arguments in a way similar
&lt;br&gt;to &amp;nbsp;|. &amp;nbsp;and &amp;nbsp;{. &amp;nbsp;, where each atom of &amp;nbsp; x &amp;nbsp; corresponds to an axis of &amp;nbsp;y &amp;nbsp;. &amp;nbsp; &amp;nbsp;For example, &amp;nbsp;with the new definition, the phrase (0
&lt;br&gt;_1 A. i. 4 5) &amp;nbsp;would reverse the columns of y, yielding the same results as &amp;nbsp;(_1 A.&amp;.|: i. 4 5) &amp;nbsp;does with the current definition.
&lt;br&gt;Similar statements apply to higher dimensions; I can post a model (using &amp;nbsp;|:) &amp;nbsp;if that's helpful.
&lt;br&gt;&lt;br&gt;Of course, right now, the ranks of dyad &amp;nbsp;A. &amp;nbsp;are &amp;nbsp;0 &amp;nbsp;_ &amp;nbsp;. &amp;nbsp; The new definition of &amp;nbsp;A. &amp;nbsp;would require them to be &amp;nbsp; 1 _ &amp;nbsp; &amp;nbsp;, so
&lt;br&gt;extension is not backwards compatible. &amp;nbsp;But because of the way &amp;nbsp;A. &amp;nbsp;is typically used, I doubt it would break much code in practice.
&lt;br&gt;Furthermore, the fix is trivial; &amp;nbsp;substitute &amp;nbsp;A.&amp;quot;_ 0 _ &amp;nbsp; for all uses of &amp;nbsp;A.
&lt;br&gt;&lt;br&gt;I believe the extension would be useful; more and more I find myself wanting direct access non-leading axes of an array, and I now
&lt;br&gt;make heavy use of &amp;nbsp;(boxes &amp;lt;;.n &amp;nbsp;y), (list {. y), (list |. &amp;nbsp;y) &amp;nbsp;etc. &amp;nbsp;This extension to &amp;nbsp;A. &amp;nbsp;would make a nice companion to another
&lt;br&gt;proposal I made: &amp;nbsp;&lt;a href=&quot;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/System/Interpreter/Requests#redefineu.3B.0y&lt;/a&gt;&amp;nbsp; .
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposed-extension-to-A.-%28incompatible%29-tp26815577s24193p26815577.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26815416</id>
	<title>Re: Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'</title>
	<published>2009-12-16T09:47:03Z</published>
	<updated>2009-12-16T09:47:03Z</updated>
	<author>
		<name>Devon McCormick</name>
	</author>
	<content type="html">Hi -
&lt;br&gt;&lt;br&gt;The following appears to work OK:
&lt;br&gt;&lt;br&gt;Insert__db 'tblChar';,.'ABCDEF'
&lt;br&gt;&lt;br&gt;The &amp;quot;,.&amp;quot; preceding the vector turns it into a 1-column matrix, which is
&lt;br&gt;consistent with how the field is defined.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db '* from tblChar'
&lt;br&gt;+--+
&lt;br&gt;|c1|
&lt;br&gt;+--+
&lt;br&gt;|a |
&lt;br&gt;|A |
&lt;br&gt;|B |
&lt;br&gt;|C |
&lt;br&gt;|D |
&lt;br&gt;|E |
&lt;br&gt;|F |
&lt;br&gt;+--+
&lt;br&gt;&lt;br&gt;Hope this helps.
&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 7:39 PM, christopher collins &amp;lt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26815416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christopher.collins1111@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks for the help, Mr. Tirrell.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does JDB have a way to declare the length of the char column?
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Devon McCormick, CFA
&lt;br&gt;^me^ at acm.
&lt;br&gt;org is my
&lt;br&gt;preferred e-mail
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26772440s24193p26815416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26815380</id>
	<title>Cancelling the dialog box in wdquery defaults to &quot;OK&quot; --a bug or a feature?</title>
	<published>2009-12-16T09:44:32Z</published>
	<updated>2009-12-16T09:44:32Z</updated>
	<author>
		<name>Ian Clark-6</name>
	</author>
	<content type="html">On my iMac, on entering:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;(?5) wdquery 'myapp' ; 'my message'
&lt;br&gt;&lt;br&gt;if you press Esc or click the GoAway button in the window's titlebar,
&lt;br&gt;this is equivalent to clicking OK, viz 0 is returned in all cases of
&lt;br&gt;left arg. The same thing happens when you try to quit J itself and see
&lt;br&gt;the message: &amp;quot;Do you want to exit J?&amp;quot; -- J exits on Esc / GoAway.
&lt;br&gt;&lt;br&gt;One sad effect of that -- and I've seen it happen -- is that if a
&lt;br&gt;trailing wire (stray elbow, cat's paw, etc) holds down the Esc button,
&lt;br&gt;J promptly closes all its windows and terminates.
&lt;br&gt;&lt;br&gt;This seems counterintuitive to me. A user might expect that GoAway /
&lt;br&gt;Esc equates to Cancel, not OK. Other Mac apps (eg TextEdit) disable
&lt;br&gt;the GoAway within a confirmation dialog, eg on quitting with an
&lt;br&gt;unsaved document... and Esc is equivalent to Cancel, not &amp;quot;Save...&amp;quot; or
&lt;br&gt;&amp;quot;Don't Save&amp;quot;.
&lt;br&gt;&lt;br&gt;I know it's an OAFWD (&amp;quot;Only A Fool Would Do it!&amp;quot;). But my users don't
&lt;br&gt;possess our level of intelligence. How can I detect GoAway / Esc, to
&lt;br&gt;override this behaviour?
&lt;br&gt;&lt;br&gt;Ian
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cancelling-the-dialog-box-in-wdquery-defaults-to-%22OK%22---a-bug-or-a-feature--tp26815380s24193p26815380.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26813114</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T07:36:09Z</published>
	<updated>2009-12-16T07:36:09Z</updated>
	<author>
		<name>Devon McCormick</name>
	</author>
	<content type="html">Yes - it's easy to see how you might make this mistake. &amp;nbsp;The foreign
&lt;br&gt;conjunction immediately preceding (1!:12) is (1!:11) - indexed read - which
&lt;br&gt;does require 2 numbers in the second box. &amp;nbsp;Also, if you're coming from
&lt;br&gt;something lik a C background, you are used to specifying the lengths of
&lt;br&gt;things explicitly, as in the prototype for file write:
&lt;br&gt;&lt;br&gt;fwrite(void *ptr, size_t size, size_t nbr, FILE *stream);
&lt;br&gt;&lt;br&gt;Hermann - it looks like you may be working with large files, so you may be
&lt;br&gt;interested in this description of dealing with files larger than 2 GB:
&lt;br&gt;&lt;a href=&quot;http://www.jsoftware.com/jwiki/Scripts/Working%20with%20Big%20Files&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/jwiki/Scripts/Working%20with%20Big%20Files&lt;/a&gt;&amp;nbsp;.
&lt;br&gt;Unfortunately, it's specific to Windows as it uses an API for working with
&lt;br&gt;large files.
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 9:35 AM, bill lam &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813114&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bbill.lam@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I guess the length error referred to the right argument of 1!:12 that
&lt;br&gt;&amp;gt; it expected a count of 2 item.
&lt;br&gt;&amp;gt; a 1!:12 f,(sg*60)
&lt;br&gt;&amp;gt; or
&lt;br&gt;&amp;gt; a 1!:12 f;(sg*60)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;br&gt;&amp;gt; &amp;gt; Yes Bill, 'a' is a character string of 60 bytes.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9679 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49'
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ______________________
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 47665 Sonsbeck
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813114&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; &amp;gt; Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813114&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813114&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] Im Auftrag von bill lam
&lt;br&gt;&amp;gt; &amp;gt; Gesendet: Mittwoch, 16. Dezember 2009 15:03
&lt;br&gt;&amp;gt; &amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26813114&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Betreff: Re: [Jprogramming] Indexed Write(length) Error
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; What is 'a'? &amp;nbsp;Is it a rank-1 character array of 60 bytes?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I
&lt;br&gt;&amp;gt; can't
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sg
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 0
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; | &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; [---=| Quote block shrinked by t-prot: 23 lines snipped |=---]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; | &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; NB.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; [---=| TOFU protection by t-prot: 20 lines snipped |=---]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; regards,
&lt;br&gt;&amp;gt; ====================================================
&lt;br&gt;&amp;gt; GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;&amp;gt; gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Devon McCormick, CFA
&lt;br&gt;^me^ at acm.
&lt;br&gt;org is my
&lt;br&gt;preferred e-mail
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26813114.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26812445</id>
	<title>Tacit exercise</title>
	<published>2009-12-16T06:59:36Z</published>
	<updated>2009-12-16T06:59:36Z</updated>
	<author>
		<name>Dan Bron</name>
	</author>
	<content type="html">For those who want to train their tacit muscles, here's a challenge. &amp;nbsp;A Markov algorithm is a specialized term rewriter. &amp;nbsp;It accepts
&lt;br&gt;a list of rules (denoting substitutions) and a target string to evaluate. &amp;nbsp;See &lt;a href=&quot;http://rosettacode.org/wiki/Markov_Algorithm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rosettacode.org/wiki/Markov_Algorithm&lt;/a&gt;&amp;nbsp; for a
&lt;br&gt;more detailed description, examples, and some implementations (ignore the J implementation for now; it is incorrect).
&lt;br&gt;&lt;br&gt;However, the Markov engine has a very strict order of evaluation. &amp;nbsp;At each step, it evaluates the current rule; if the rule matches,
&lt;br&gt;it makes one and only one substitution (to the leftmost match), and then it starts over from the beginning (i.e. at rule 0, as
&lt;br&gt;opposed to looking for more matches for this rule or moving on to the next rule). &amp;nbsp;Once all the rules have been applied and no more
&lt;br&gt;matches occur, the (now stable) result is the output of the Markov engine. &amp;nbsp; The engine may also termination early, before the
&lt;br&gt;result stabilizes; &amp;nbsp;a rule may be marked as a &amp;quot;terminator&amp;quot;, and if such a rule matches, it makes one and only one substitution (to
&lt;br&gt;the leftmost match) and the result is the output of the Markov engine.
&lt;br&gt;&lt;br&gt;Below is a model in explicit J. &amp;nbsp; Can you rewrite it tacitly? &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Now, the challenge is more than just a tacit rewrite (though that can be a fun exercise in itself, especially for those new to tacit
&lt;br&gt;J). &amp;nbsp;Any stateless explicit code can be rewritten tacitly (Pepe proved this), through a fairly mechanical translation procedure.
&lt;br&gt;But the results are often ugly and inferior (longer, harder to read, more redundant) than the original explicit model. &amp;nbsp;For an
&lt;br&gt;example, see &lt;a href=&quot;http://rosettacode.org/wiki/Talk:Markov_Algorithm#explicit_vs_tacit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rosettacode.org/wiki/Talk:Markov_Algorithm#explicit_vs_tacit&lt;/a&gt;&amp;nbsp; . 
&lt;br&gt;&lt;br&gt;The challenge truly is: &amp;nbsp;can you write an elegant tacit Markov algorithm? &amp;nbsp;
&lt;br&gt;&lt;br&gt;-Dan
&lt;br&gt;&lt;br&gt;------------------
&lt;br&gt;&lt;br&gt;markovLexer &amp;nbsp;=: &amp;nbsp;verb define
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules =. &amp;nbsp;LF cut TAB&amp;=`(,:&amp;' ')}y
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules =. &amp;nbsp;a: -.~ (dltb@:{.~ i:&amp;'#')&amp;.&amp;gt; rules
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules =. &amp;nbsp;0 _1 {&amp;quot;1 '\s+-&amp;gt;\s+' (rxmatch rxcut ])S:0 rules
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NB. &amp;nbsp;Determine which rules are terminating
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (,. ] (}.&amp;.&amp;gt;~ ,. ]) ('.'={.)&amp;.&amp;gt;)/ |: rules
&lt;br&gt;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;replace &amp;nbsp; &amp;nbsp; &amp;nbsp;=: &amp;nbsp;dyad define
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'index patternLength replacement'=. &amp;nbsp;x
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'head tail' =. &amp;nbsp;index split y
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; head, replacement, patternLength }. tail
&lt;br&gt;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;matches &amp;nbsp; &amp;nbsp; &amp;nbsp;=: &amp;nbsp;E. i. 1:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;markovStrict &amp;nbsp;=: &amp;nbsp;dyad define
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules =. &amp;nbsp;markovLexer x
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruleIdx =. 0
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while. ruleIdx &amp;lt; #rules do.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'pattern replacement terminating' =. ruleIdx { rules
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if. (#y) &amp;gt; index =. pattern matches y do.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y =. (index ; (#pattern) ; replacement) replace y
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if. terminating do.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NB. &amp;nbsp;If terminating rule, just return current string
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruleIdx =. #rules 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NB. &amp;nbsp;Else reevaluate from the beginning after every match
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruleIdx =. 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ruleIdx =. 1 + ruleIdx
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tacit-exercise-tp26812445s24193p26812445.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26812053</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T06:35:37Z</published>
	<updated>2009-12-16T06:35:37Z</updated>
	<author>
		<name>bill lam-2</name>
	</author>
	<content type="html">I guess the length error referred to the right argument of 1!:12 that
&lt;br&gt;it expected a count of 2 item.
&lt;br&gt;a 1!:12 f,(sg*60)
&lt;br&gt;or
&lt;br&gt;a 1!:12 f;(sg*60)
&lt;br&gt;&lt;br&gt;mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes Bill, 'a' is a character string of 60 bytes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9679 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ______________________
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 47665 Sonsbeck 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812053&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812053&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812053&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] Im Auftrag von bill lam
&lt;br&gt;&amp;gt; Gesendet: Mittwoch, 16. Dezember 2009 15:03
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26812053&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [Jprogramming] Indexed Write(length) Error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What is 'a'? &amp;nbsp;Is it a rank-1 character array of 60 bytes?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;br&gt;&amp;gt; &amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I can't
&lt;br&gt;&amp;gt; &amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; sg &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 0
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; &amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60) &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; | &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;&amp;gt; &amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [---=| Quote block shrinked by t-prot: 23 lines snipped |=---]
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; |length error
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; | &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NB.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [---=| TOFU protection by t-prot: 20 lines snipped |=---]
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26812053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811958</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T06:30:25Z</published>
	<updated>2009-12-16T06:30:25Z</updated>
	<author>
		<name>Devon McCormick</name>
	</author>
	<content type="html">From the documentation:
&lt;br&gt;&lt;br&gt;x 1!:12 y &amp;nbsp; &amp;nbsp;Indexed Write. x is the string to be written; y is a list of a
&lt;br&gt;boxed file name (or number) and a boxed index.
&lt;br&gt;&lt;br&gt;You don't need to give an index and a length - J knows the shape of things.
&lt;br&gt;Try something like
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;a (1!:12) f;sg*60
&lt;br&gt;&lt;br&gt;Hope this helps.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Devon McCormick, CFA
&lt;br&gt;^me^ at acm.
&lt;br&gt;org is my
&lt;br&gt;preferred e-mail
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26811958.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811708</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T06:14:47Z</published>
	<updated>2009-12-16T06:14:47Z</updated>
	<author>
		<name>Wandelt</name>
	</author>
	<content type="html">Yes Bill, 'a' is a character string of 60 bytes.
&lt;br&gt;&lt;br&gt;a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&lt;br&gt;a
&lt;br&gt;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9679 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49'
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;______________________
&lt;br&gt;&lt;br&gt;Hermann Wandelt
&lt;br&gt;&lt;br&gt;Schustersweid 6
&lt;br&gt;&lt;br&gt;47665 Sonsbeck 
&lt;br&gt;&lt;br&gt;E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811708&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811708&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811708&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] Im Auftrag von bill lam
&lt;br&gt;Gesendet: Mittwoch, 16. Dezember 2009 15:03
&lt;br&gt;An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811708&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming@...&lt;/a&gt;
&lt;br&gt;Betreff: Re: [Jprogramming] Indexed Write(length) Error
&lt;br&gt;&lt;br&gt;What is 'a'? &amp;nbsp;Is it a rank-1 character array of 60 bytes?
&lt;br&gt;&lt;br&gt;mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;br&gt;&amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I can't
&lt;br&gt;&amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt;
&lt;br&gt;----------------------------------------------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sg &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60) &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; | &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;&amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; --------------------------------------------------- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;sg &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;#a
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$a
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;f=:1!:21 &amp;lt;'d:\xldlm\dlm_daten\dlmnIndex.txt'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;f
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 270030848
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; | &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB.
&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------------
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pleas, give me an advice.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank You,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 47665 Sonsbeck 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811708&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26811708.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811547</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T06:02:48Z</published>
	<updated>2009-12-16T06:02:48Z</updated>
	<author>
		<name>bill lam-2</name>
	</author>
	<content type="html">What is 'a'? &amp;nbsp;Is it a rank-1 character array of 60 bytes?
&lt;br&gt;&lt;br&gt;mer, 16 Dec 2009, Hermann Wandelt skribis:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I can't
&lt;br&gt;&amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sg &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60) &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; | &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;&amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --------------------------------------------------- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;sg &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;#a
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$a
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;f=:1!:21 &amp;lt;'d:\xldlm\dlm_daten\dlmnIndex.txt'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;f
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 270030848
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; | &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NB.
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; ------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pleas, give me an advice.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank You,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 47665 Sonsbeck 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811547&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26811547.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26811168</id>
	<title>Re: Indexed Write(length) Error</title>
	<published>2009-12-16T05:38:38Z</published>
	<updated>2009-12-16T05:38:38Z</updated>
	<author>
		<name>Don Guinn-3</name>
	</author>
	<content type="html">The data to be written to the file should be the left argument of
&lt;br&gt;(1!:12) and the position to write should follow the file name.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;'Test' 1!:12 'Test.txt';0
&lt;br&gt;&amp;nbsp; &amp;nbsp;'C' 1!:12 'Test.txt';2
&lt;br&gt;&amp;nbsp; &amp;nbsp;fread 'Test.txt'
&lt;br&gt;TeCt
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 6:24 AM, Hermann Wandelt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811168&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm not very experienced in using Foreign Conjunctions. Therefore I can't
&lt;br&gt;&amp;gt; see what the length error causes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NB.---------------Test No. 1
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; sg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;&amp;gt; (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; |   (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)  (1!:12)
&lt;br&gt;&amp;gt; ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NB. -------------Test No. 2
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; ---------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  sg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   #a
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   $a
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 60
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   f=:1!:21 &amp;lt;'d:\xldlm\dlm_daten\dlmnIndex.txt'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   f
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 270030848
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   a (1!:12) f,(sg*60),60
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; |length error
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; |   a    (1!:12)f,(sg*60),60
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NB.
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt; ------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Pleas, give me an advice.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank You,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hermann
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hermann Wandelt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Schustersweid 6
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 47665 Sonsbeck
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26811168&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26811168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26810987</id>
	<title>Indexed Write(length) Error</title>
	<published>2009-12-16T05:24:42Z</published>
	<updated>2009-12-16T05:24:42Z</updated>
	<author>
		<name>Wandelt</name>
	</author>
	<content type="html">I'm not very experienced in using Foreign Conjunctions. Therefore I can't
&lt;br&gt;see what the length error causes.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;NB.---------------Test No. 1
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;--------------------------------------------------
&lt;br&gt;&lt;br&gt;sg &amp;nbsp;
&lt;br&gt;&lt;br&gt;0
&lt;br&gt;&lt;br&gt;(10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
&lt;br&gt;(1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60) &amp;nbsp;
&lt;br&gt;&lt;br&gt;|length error
&lt;br&gt;&lt;br&gt;| &amp;nbsp; (10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi) &amp;nbsp;(1!:12)
&lt;br&gt;('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;NB. -------------Test No. 2
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;--------------------------------------------------- 
&lt;br&gt;&lt;br&gt;&amp;nbsp;sg &amp;nbsp;
&lt;br&gt;&lt;br&gt;0
&lt;br&gt;&lt;br&gt;&amp;nbsp; a=. 10 15 15 10 10&amp;quot;:tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;#a
&lt;br&gt;&lt;br&gt;60
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;$a
&lt;br&gt;&lt;br&gt;60
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;f=:1!:21 &amp;lt;'d:\xldlm\dlm_daten\dlmnIndex.txt'
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;f
&lt;br&gt;&lt;br&gt;270030848
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;a (1!:12) f,(sg*60),60
&lt;br&gt;&lt;br&gt;|length error
&lt;br&gt;&lt;br&gt;| &amp;nbsp; a &amp;nbsp; &amp;nbsp;(1!:12)f,(sg*60),60
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;NB.
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;------
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Pleas, give me an advice.
&lt;br&gt;&lt;br&gt;Thank You,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Hermann
&lt;br&gt;&lt;br&gt;_
&lt;br&gt;&lt;br&gt;Hermann Wandelt
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Schustersweid 6
&lt;br&gt;&lt;br&gt;47665 Sonsbeck 
&lt;br&gt;&lt;br&gt;E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26810987&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;baycon@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Indexed-Write%28length%29-Error-tp26810987s24193p26810987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807994</id>
	<title>Re: C# .NET COM JDLLServer</title>
	<published>2009-12-16T00:45:15Z</published>
	<updated>2009-12-16T00:45:15Z</updated>
	<author>
		<name>Matthew Brand-2</name>
	</author>
	<content type="html">Hi Alex,
&lt;br&gt;&lt;br&gt;&amp;gt; Just saw this thread (and the previous ones) ... unfortunately I'm at home right now and the machine here is configured for gaming so theres no development tools whatsoever installed. I'll be back in the office tomorrow though and will give your problem a run through.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only caveat is that my dev machine is WindowsXP Pro 32bit so I may not hit your problem since when I read your earlier code ... the only reason it would have failed is if J.DLL wasn't registered properly which you have done so correctly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although I have been to some dev discussions at the office where they mentioned the an Interopt problem when there was a deployment to a 64bit machine, I'll guess I'll have to ask them how they worked around it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks, much appreciated ... I am stumped. :-).
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know its a long shot but can you give JEXEServer a try instead of JDLL? I believe it would still throw the same error though but its a curiosity.
&lt;br&gt;&lt;br&gt;Your EXE suggestion worked. In Visual Studio using EXE server works,
&lt;br&gt;but using DLL does not. So I thought my problem was solved, but
&lt;br&gt;alas...
&lt;br&gt;&lt;br&gt;The NinjaTrader C# IDE does not seem to allow references to EXE, only
&lt;br&gt;to DLL! I will ask them about it on their forum. I will try to make
&lt;br&gt;visual studio project to output a DLL containing a pass-through to the
&lt;br&gt;J EXE, which hopefully I can call from NinjaTrader.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hmmm. I hope I don't offend you but are you using the 64bit version of J?
&lt;br&gt;&lt;br&gt;No offense taken, please feel free to suggest even the most basic
&lt;br&gt;things. I know absolutely nothing about DLL's - apart from it appears
&lt;br&gt;to be an incredibily complicated and delicate affair. I appreciate any
&lt;br&gt;advice given.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Matthew.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; r/Alex
&lt;br&gt;&amp;gt; ________________________________________
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of Matthew Brand [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Wednesday, December 16, 2009 12:19 AM
&lt;br&gt;&amp;gt; To: Programming forum
&lt;br&gt;&amp;gt; Subject: Re: [Jprogramming] C# .NET COM JDLLServer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have done some investigations (outside of NinjaTrader, just using
&lt;br&gt;&amp;gt; Visual Studio c#). I do not know for sure, but it might be that the
&lt;br&gt;&amp;gt; JDLLServerClass does not work on 64 bit Windows 7? I am in way over my
&lt;br&gt;&amp;gt; head here, I have no idea what is going on - so apologies in advance
&lt;br&gt;&amp;gt; if I am wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I read this:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://blogs.msdn.com/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I removed the &amp;quot;Class&amp;quot; prefix from &amp;quot;JDLLServerClass&amp;quot; to end up with
&lt;br&gt;&amp;gt; a program that looks like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; using System;
&lt;br&gt;&amp;gt; using System.Collections.Generic;
&lt;br&gt;&amp;gt; using System.Linq;
&lt;br&gt;&amp;gt; using System.Text;
&lt;br&gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt; using JEXEServerLib;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; namespace ConsoleApplication1
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;    class Program
&lt;br&gt;&amp;gt;    {
&lt;br&gt;&amp;gt;        static void Main(string[] args)
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;           //  JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;            JDLLServer j = new JDLLServer();
&lt;br&gt;&amp;gt;            object result;
&lt;br&gt;&amp;gt;            int status = j.DoR(&amp;quot;2| !/~i.4&amp;quot;, out result);
&lt;br&gt;&amp;gt;            string.Format(&amp;quot;J DoR ended with status {0} and
&lt;br&gt;&amp;gt; result\n{1}&amp;quot;, status, result);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But now I get a different error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; System.Runtime.InteropServices.COMException was unhandled
&lt;br&gt;&amp;gt;  Message=Retrieving the COM class factory for component with CLSID
&lt;br&gt;&amp;gt; {21EB05EA-1AB3-11CF-A2AC-8FF70874C460} failed due to the following
&lt;br&gt;&amp;gt; error: 80040154 Class not registered (Exception from HRESULT:
&lt;br&gt;&amp;gt; 0x80040154 (REGDB_E_CLASSNOTREG)).
&lt;br&gt;&amp;gt;  Source=mscorlib
&lt;br&gt;&amp;gt;  ErrorCode=-2147221164
&lt;br&gt;&amp;gt;  StackTrace:
&lt;br&gt;&amp;gt;       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type,
&lt;br&gt;&amp;gt; Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,
&lt;br&gt;&amp;gt; RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)
&lt;br&gt;&amp;gt;       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,
&lt;br&gt;&amp;gt; Boolean skipCheckThis, Boolean fillCache)
&lt;br&gt;&amp;gt;       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean
&lt;br&gt;&amp;gt; publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis,
&lt;br&gt;&amp;gt; Boolean fillCache)
&lt;br&gt;&amp;gt;       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
&lt;br&gt;&amp;gt;       at System.Activator.CreateInstance(Type type)
&lt;br&gt;&amp;gt;       at ConsoleApplication1.Program.Main(String[] args) in
&lt;br&gt;&amp;gt; c:\users\mtthwbrnd\documents\visual studio
&lt;br&gt;&amp;gt; 2010\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line
&lt;br&gt;&amp;gt; 15
&lt;br&gt;&amp;gt;       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
&lt;br&gt;&amp;gt; String[] args)
&lt;br&gt;&amp;gt;       at System.AppDomain.ExecuteAssembly(String assemblyFile,
&lt;br&gt;&amp;gt; Evidence assemblySecurity, String[] args)
&lt;br&gt;&amp;gt;       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
&lt;br&gt;&amp;gt;       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
&lt;br&gt;&amp;gt;       at System.Threading.ExecutionContext.Run(ExecutionContext
&lt;br&gt;&amp;gt; executionContext, ContextCallback callback, Object state, Boolean
&lt;br&gt;&amp;gt; ignoreSyncCtx)
&lt;br&gt;&amp;gt;       at System.Threading.ExecutionContext.Run(ExecutionContext
&lt;br&gt;&amp;gt; executionContext, ContextCallback callback, Object state)
&lt;br&gt;&amp;gt;       at System.Threading.ThreadHelper.ThreadStart()
&lt;br&gt;&amp;gt;  InnerException:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This might be relevent?:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;PROBLEM:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When you run the .net Code in X64 Environment you will get the
&lt;br&gt;&amp;gt; following error message.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot; Failed --Retrieving the COM class factory for component with CLSID ....&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; E.g. in CMS Export / Import server side .net code =
&lt;br&gt;&amp;gt; &amp;quot;ExportSiteContentIncremental(...) Failed --Retrieving the COM class
&lt;br&gt;&amp;gt; factory for component with CLSID
&lt;br&gt;&amp;gt; {CA0752B3-021C-4F99-82E3-2C0F19C5E953} failed due to the following
&lt;br&gt;&amp;gt; error: 80040154.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; WORKAROUND:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The possible workaround is modify your project's platform from 'Any
&lt;br&gt;&amp;gt; CPU' to 'X86' (in Project's Properties, Build/Platform's Target)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ROOTCAUSE
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The VSS Interop is a managed assembly using 32-bit Framework and the
&lt;br&gt;&amp;gt; dll contains a 32-bit COM object. If you run this COM dll in 64 bit
&lt;br&gt;&amp;gt; environment, you will get the error message.
&lt;br&gt;&amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://blogs.msdn.com/karthick/archive/2006/02/28/540780.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/karthick/archive/2006/02/28/540780.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Only problem for me here is that my visual studio only has the &amp;quot;x86&amp;quot; option.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/14 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; I just got a response from the NinjaTrader supoport team on their
&lt;br&gt;&amp;gt;&amp;gt; forum to asking:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Best course of action would be to inquiry with the author to see if
&lt;br&gt;&amp;gt;&amp;gt; they can direct you to where it needs to be dropped.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.ninjatrader-support2.com/vb/showthread.php?p=133247#post133247&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ninjatrader-support2.com/vb/showthread.php?p=133247#post133247&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a special place that the dll needs to be put?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/12/14 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have added the DLL as a reference in the C# program with:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; right clik (in the C# IDE)-&amp;gt;references...-&amp;gt;add-&amp;gt;(navigate to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Interop.JDLLServerLib.dll)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and have the lines:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in my c# program. The intellisense recognises all of the things that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; are inside JDLLServerClass ... which to me inidicates that the DLL
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; file was found correctly. But when I run the program I get the error:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 14/12/2009 13:02:34,Strategy,Error on calling 'OnBarUpdate' method for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; strategy 'JayServerExample': Could not load file or assembly
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'Interop.JDLLServerLib, Version=3.0.0.0, Culture=neutral,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PublicKeyToken=null' or one of its dependencies. The system cannot
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; find the file specified.,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It's a long shot becuase it is nothing to do with J, but does anybody
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have any ideas what I might need to do? [PS, I have only used C# since
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; last week so really don't quite &amp;quot;get it&amp;quot; at this stage!]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Matthew.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For reference, the c# program is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #region Using declarations
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.ComponentModel;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Diagnostics;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Drawing;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Drawing.Drawing2D;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using System.Xml.Serialization;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Cbi;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Data;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Indicator;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Gui.Chart;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using NinjaTrader.Strategy;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; using JDLLServerLib;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; // This namespace holds all strategies and is required. Do not change it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; namespace NinjaTrader.Strategy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// Example of communcation with J
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    [Description(&amp;quot;Example of communcation with J&amp;quot;)]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    public class JayServerExample : Strategy
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #region Variables
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        // Wizard generated variables
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        // User defined variables (add any user defined variables below)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// This method is used to configure the strategy and is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; called once before any strategy method is called.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        protected override void Initialize()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;            CalculateOnBarClose = true;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// Called on each bar update event (incoming tick)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        /// &amp;lt;/summary&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        protected override void OnBarUpdate()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                        Print(Bars.Count);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                        JDLLServerClass j = new JDLLServerClass();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #region Properties
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        #endregion
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;    }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009/12/12 Matthew Brand &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mtthwbrnd@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; That did it, thanks :-).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PS. For anyone else with this problem, if you get a domain error when
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; you run the command:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  wd 'exec *',BINPATH,'\jreg.bat'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it might be that you need to run as administrator in which case execute:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; BINPATH,'\jreg.bat'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to see where the file is and go to it in windows explorer, right click
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and select run as administrator.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2009/12/12 Dan Bron &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807994&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Matthew wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  But the JDLLServer does not appear on the COM tab for me. Is there
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  something I need to install first?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Try running   wd 'exec *',BINPATH,'\jreg.bat'  .  Or just double-click that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; batch file in Windows explorer.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -Dan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C--.NET-COM-JDLLServer-tp26759768s24193p26807994.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806583</id>
	<title>Re: Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'</title>
	<published>2009-12-15T21:48:40Z</published>
	<updated>2009-12-15T21:48:40Z</updated>
	<author>
		<name>bill lam-2</name>
	</author>
	<content type="html">I don't use JDB either, however I guess you cannot declare a maximum length for
&lt;br&gt;the literal string in char column. &amp;nbsp;you might have to reshape rank-1 vector before
&lt;br&gt;inserting. eg.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ht=: Create__db 'tblChar2';'c1 char'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';'a'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';,'b'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';,.'c'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';,.'def'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';,:'ghij'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';3 4$'1234567'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Insert__db 'tblChar2';3 5$'1234567'
&lt;br&gt;&amp;nbsp; &amp;nbsp;Reads__db 'from tblChar2'
&lt;br&gt;+-----+
&lt;br&gt;|c1 &amp;nbsp; |
&lt;br&gt;+-----+
&lt;br&gt;|a &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|b &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|c &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|d &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|e &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|f &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|ghij |
&lt;br&gt;|1234 |
&lt;br&gt;|5671 |
&lt;br&gt;|2345 |
&lt;br&gt;|12345|
&lt;br&gt;|67123|
&lt;br&gt;|45671|
&lt;br&gt;+-----+
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;regards,
&lt;br&gt;====================================================
&lt;br&gt;GPG key 1024D/4434BAB3 2008-08-24
&lt;br&gt;gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26772440s24193p26806583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806427</id>
	<title>Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'</title>
	<published>2009-12-15T21:18:55Z</published>
	<updated>2009-12-15T21:18:55Z</updated>
	<author>
		<name>christopher collins-2</name>
	</author>
	<content type="html">Thank you Ric, for your suggestions.
&lt;br&gt;&lt;br&gt;I've reviewed the JDB doc carefully as well as all the example code
&lt;br&gt;and haven't found the solution to my trivial problem.
&lt;br&gt;Perhaps its there, but it is invisible to my J disabled cognition.
&lt;br&gt;&lt;br&gt;In my original post on this issue (Sent: Sunday, December 13, 2009
&lt;br&gt;10:10 PM), I outlined my situation.
&lt;br&gt;I'm trying to learn J and JDB. I built a trivial table with only a
&lt;br&gt;single character column.
&lt;br&gt;I executed several inserts, each one inserting a single character.
&lt;br&gt;That worked fine.
&lt;br&gt;Then I executed an insert statement that should have inserted a
&lt;br&gt;multi-character string into the same column.
&lt;br&gt;It failed.
&lt;br&gt;(All this is in my original post.)
&lt;br&gt;&lt;br&gt;Jordan Tirrell pointed out that a 'char' column is fixed length and
&lt;br&gt;would not accept the insert of a single character string such as 'a'
&lt;br&gt;and subsequently another insert of a multi-character string such as
&lt;br&gt;'aaaa'.
&lt;br&gt;&lt;br&gt;So I then (in the post you saw) built a single 'char' column table and
&lt;br&gt;tried to insert &amp;nbsp;a multi-character string such as 'aaaaa'.
&lt;br&gt;That failed.
&lt;br&gt;So....I'm trying to understand how do I insert a multi-character
&lt;br&gt;string such as 'aaaa' into a table that has only a single 'char'
&lt;br&gt;column.
&lt;br&gt;Of course this is of little practical use. I'm just trying to learn,
&lt;br&gt;starting with the most trivial examples.
&lt;br&gt;&lt;br&gt;I note that other database systems (Oracle, MySQL, etc.) require that
&lt;br&gt;columns of datatype 'char' be specified with a number that defines the
&lt;br&gt;max number of characters accepted.
&lt;br&gt;&lt;br&gt;Does JDB?
&lt;br&gt;&lt;br&gt;If not, how does JDB know how many characters the 'char' column can
&lt;br&gt;maximally accept?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;--chris--
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26806427s24193p26806427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806170</id>
	<title>Re: Newbie JDB problem: inserting chars in	a	1	column char table gives 'assertion failure'</title>
	<published>2009-12-15T20:32:35Z</published>
	<updated>2009-12-15T20:32:35Z</updated>
	<author>
		<name>Alex Rufon</name>
	</author>
	<content type="html">Hi Christopher,
&lt;br&gt;&lt;br&gt;I actually had to rewrite this response a couple of times.
&lt;br&gt;&lt;br&gt;From what I understand from the implementation, all arbitrary sized strings should be using the VARCHAR datatype. The concept was implementation of a MAX or field lenth value for VARCHAR is not part of JDB but instead part of the front end or the client application. That is unless you can convince Chris or Oleg of the validity/advantage of putting in the field length ...
&lt;br&gt;&lt;br&gt;For me, I've always used JDB (a bastardized version of it) as a local DB for MS-SQL server (I added in extensions/variables so that JDB would retain the MS-SQL datatype for the purpose of creating SQL statements for DML commands) and not having to worry about the character lengths. Of course there were instances where the generated SQL statement failed when updating MS-SQL because the concatenated fields were longer than the actual storage field but I treat this as an EXCEPTION and not the rule. :)
&lt;br&gt;&lt;br&gt;In short, my advice is not worry about the length of the characters and instead concentrate on the solution. Problems like these should be treated as exceptions ...
&lt;br&gt;&lt;br&gt;r/Alex
&lt;br&gt;&lt;br&gt;&lt;br&gt;________________________________________
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806170&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806170&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;programming-bounces@...&lt;/a&gt;] On Behalf Of Sherlock, Ric [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26806170&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.G.Sherlock@...&lt;/a&gt;]
&lt;br&gt;Sent: Wednesday, December 16, 2009 9:35 AM
&lt;br&gt;To: Programming forum
&lt;br&gt;Subject: Re: [Jprogramming] Newbie JDB problem: inserting chars in &amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; column char table gives 'assertion failure'
&lt;br&gt;&lt;br&gt;Sorry ignore my previous post. Having read your post more carefully I see that you probably want to know how to do specify the max length of the field. (As I said, I haven't used JDB before &amp; assumed that c1 was more than just the field name).
&lt;br&gt;&lt;br&gt;Perhaps you checking out the demo databases that ship with the Addon will help.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;open 'data/jdb/sed'
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; From: Sherlock, Ric
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've not used JDB before but it's not clear from your post what exactly
&lt;br&gt;&amp;gt; you are trying to do.
&lt;br&gt;...
&lt;br&gt;&amp;gt; &amp;nbsp; b) or that the field will dynamically change its specification to now
&lt;br&gt;&amp;gt; allow several characters
&lt;br&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If b), then I suspect that you will need to change the initial
&lt;br&gt;&amp;gt; definition of the field to be the maximum number of characters that you
&lt;br&gt;&amp;gt; want to be able to insert in it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From: christopher collins
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Does JDB have a way to declare the length of the char column?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've gone through the JDB doc and sample code carefully and can't
&lt;br&gt;&amp;gt; find
&lt;br&gt;&amp;gt; &amp;gt; any indication of how to declare the length of the char column.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've run a few experiments and can't get a JDB database table which
&lt;br&gt;&amp;gt; &amp;gt; consists of only one char column to accept anything but a single
&lt;br&gt;&amp;gt; &amp;gt; character in each insert.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Here's the code:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; NB. Create a table with only a single char column
&lt;br&gt;&amp;gt; &amp;gt; Create__db 'tblA';0 : 0
&lt;br&gt;&amp;gt; &amp;gt; c1 char
&lt;br&gt;&amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; NB. Insert a single character
&lt;br&gt;&amp;gt; &amp;gt; Insert__db 'tblA';'a'
&lt;br&gt;&amp;gt; &amp;gt; Insert__db 'tblA';'b'
&lt;br&gt;&amp;gt; &amp;gt; Insert__db 'tblA';'c'
&lt;br&gt;&amp;gt; &amp;gt; NB. works fine, no problem
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; NB. Define another table with a single char column
&lt;br&gt;&amp;gt; &amp;gt; Create__db 'tblB';0 : 0
&lt;br&gt;&amp;gt; &amp;gt; c1 char
&lt;br&gt;&amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; NB. Insert a string of characters
&lt;br&gt;&amp;gt; &amp;gt; Insert__db 'tblB';'aaaaaaa'
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; |assertion failure: validate
&lt;br&gt;&amp;gt; &amp;gt; | &amp;nbsp; 1=#~.(#@&amp;quot;.)&amp;&amp;gt;'active';Tcolmap
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To summarize: I can't find any doc that outlines how to construct a
&lt;br&gt;&amp;gt; &amp;gt; table with a single char column &amp;nbsp;that &amp;nbsp;accepts multiple characters.
&lt;br&gt;&amp;gt; &amp;gt; Nor can I find any code samples. Various small experiments have
&lt;br&gt;&amp;gt; failed.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks in advance for any help.
&lt;br&gt;&amp;gt; &amp;gt; --chris--
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; For information about J forums see
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;/div&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;For information about J forums see &lt;a href=&quot;http://www.jsoftware.com/forums.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jsoftware.com/forums.htm&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/J-Programming-f24203.html&quot; embed=&quot;fixTarget[24203]&quot; target=&quot;_top&quot; &gt;J Programming&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbie-JDB-problem%3A-inserting-chars-in-a-1-column-char-table-gives-%27assertion-failure%27-tp26772440s24193p26806170.html" />
</entry>

</feed>
