Re: [Jprogramming] J lib question

2020-01-03 Thread Strale
root 4096 Nov 25 21:02 system drwxr-xr-x 3 root root 4096 Nov 25 21:02 tools Thankyou all for the help On Fri, Jan 3, 2020 at 1:48 AM bill lam wrote: > BINPATH_z_ is the path to J bin folder. > > On Fri, Jan 3, 2020, 7:35 AM bill lam wrote: > > > you need y

Re: [Jprogramming] J lib question

2020-01-02 Thread Strale
#x27; NB. override ┌┐ │/etc/j/8.07/profilex.ijs│ └┘ |assertion failure |[-31] /etc/j/8.07/profile.ijs On Thu, Jan 2, 2020 at 10:54 PM Raul Miller wrote: > Or, if you want the "quick reference" version of that wiki page: &g

Re: [Jprogramming] J lib question

2020-01-02 Thread Strale
strings: > >". 't =: 3 : (''a =: 112'' ; ''b =: 113'')' > > > > load is not defined until you have used 0!:x to load the base library, > as Bill pointed out. > > Henry Rich > > > > > On 1/2/2020 12:3

Re: [Jprogramming] J lib question

2020-01-02 Thread Strale
executable directory but without success. On Thu, Jan 2, 2020 at 4:06 PM David Lambert wrote: > Perhaps those /r should be \r ? > > Date: Thu, 2 Jan 2020 12:18:00 +0100 > > From: Strale > > To:programm...@jsoftware.com > > Subject: [Jprogr

[Jprogramming] J lib question

2020-01-02 Thread Strale
Hello I am trying to mix J with C++ in Linux I have included in my C++ project jfex.h libj.h and libj.so after calling JInit() I am able to execute simple sentences with JDo and get the result with JGetA but I am not able to define more sofisticate behaviours ex. define J function with verb defi

Re: [Jprogramming] accessing android sensors

2019-04-29 Thread Strale
Hi I tryied to acces several sensors via j dll I posted some months ago a bare bone example I think if you find an example how to access gps in c you could use j dll Actually I made an artificial horizon with accellerometers . But does not work good If interested I can look for it and post it. By

Re: [Jprogramming] Adding leading zeros

2019-02-03 Thread Strale
Fill =: verb define : |. x $ |. (x$'0'), ": y ) 5 Fill "0 a Transform item of a to string Add max number of patter in this case '0', x function parameter holds the max length Revert the string ex take the max length (x) Revert again the string Example Call Fill with 5 max length And "0 needed

Re: [Jprogramming] Reading Android sensors time

2018-08-22 Thread Strale
ce, but you may try run in async mode > wd'setj asyncj 1' > then reset android to take effect. > verify setting using > wd'getj asyncj' > > > On Wed, Aug 22, 2018, 7:23 PM Strale wrote: > > > Hello > > > > I have made the following m

[Jprogramming] Reading Android sensors time

2018-08-22 Thread Strale
Hello I have made the following minimal code to read Android sensors it looks to work even if sensor data are sometime wrong and ALooper_pollAll seems to go in timeout I have a problem with the sensor time in android sensor.h it is defined as a 64bit, Nanoseconds from a ("date") I read this v

Re: [Jprogramming] Removing not 7 bit ASCII code for a huge file

2015-09-14 Thread Strale
Hi Tested but not enough RAM anyway, true that I could just drop witout overwrite with spaces thanks Paolo On Fri, Sep 11, 2015 at 4:44 PM, bill lam wrote: > If you have enough RAM, try > > b=. 127 < a. i. data > data=. b } data,:' ' > > Пт, 11 сен 2015, Strale

Re: [Jprogramming] Removing not 7 bit ASCII code for a huge file

2015-09-11 Thread Strale
ble utf8 support in regex? > > RX_OPTIONS_UTF8_jregex_=: 0 > > Thanks, > > -- > Raul > > > On Fri, Sep 11, 2015 at 5:42 AM, Strale wrote: > > Hello > > > > I have a very big file 3 G Bytes and I need to make some search on it :( > > data is 8 bit ch

[Jprogramming] Removing not 7 bit ASCII code for a huge file

2015-09-11 Thread Strale
Hello I have a very big file 3 G Bytes and I need to make some search on it :( data is 8 bit char data J open it without problem but I have some problem to use "rxmatches" due to the not 7 bit ASCII chars (I presume) I have used a trik to delete data > of 7 bit but is very badd and lead to out

Re: [Jprogramming] insert column into tables

2015-07-21 Thread Strale
mple: > > > > > > > >'-' 3 ins 'hello' > > > > hel-lo > > > > > > > > It also does: > > > >column 2 ins"1 table > > > > --T-T-T-┐ > > > > │0│1│0│2│ > > > > +-+-+-+-+ > >

Re: [Jprogramming] insert column into tables

2015-07-20 Thread Strale
lumn onto the end > > of the table and then reordering: > >(<_2}.i._4) C."1 table,.column > > > > (There are other ways of accomplishing the reordering, but I think > > this is the clearest. The i._4 cycle rotates things in the direction > > we

Re: [Jprogramming] insert column into tables

2015-07-20 Thread Strale
Hi Dan this is getting me really scared :) there are even symbols I do not know Thanks On Mon, Jul 20, 2015 at 2:46 PM, Strale wrote: > Hi Henry > > Quite hard for a beginner like me > but the one with complex number looks easier to read and remember > > Thanks > Pao

Re: [Jprogramming] insert column into tables

2015-07-20 Thread Strale
0 1) #^:_1"1 table > >column ( >column (,2)}"1 (1 1j1 1) #"1 table > >column ( > Henry Rich > > > On 7/20/2015 8:11 AM, Strale wrote: > >> Hello >> >> I am trying to combine Tables togethers >> >> for example I w

[Jprogramming] insert column into tables

2015-07-20 Thread Strale
Hello I am trying to combine Tables togethers for example I would like to insert column before the column 2 of the table [table =. 3 3 $ <"0 i.9 ┌─┬─┬─┐ │0│1│2│ ├─┼─┼─┤ │3│4│5│ ├─┼─┼─┤ │6│7│8│ └─┴─┴─┘ [column =. 3 1$ (<,'0') ┌─┐ │0│ ├─┤ │0│ ├─┤ │0│ └─┘ the solution I ha

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Strale
Thank you very much all the information were super I got some problem on the difference between atom variable and list of single element that is clear now Paolo On Wed, Jul 8, 2015 at 1:19 PM, 'Bo Jacoby' via Programming < programm...@jsoftware.com> wrote: > I wonder who takes away the linefeeds

Re: [Jprogramming] Question on E. command

2015-07-08 Thread Strale
Thank you I will read again the chapter on indexing On Wed, Jul 8, 2015 at 12:04 PM, Brian Schott wrote: > Elaborating on Bo's fine answer and (hopefully) adding line feeds. > >(<'h') E. each a > ┌───┬───┬─┬─┬───┬───┐ > │0 0│0 0│0│1│0 0│0 0│ > └───┴───┴─┴─┴───┴───┘ >(<,'h') E. a > 0 0

[Jprogramming] Question on E. command

2015-07-08 Thread Strale
Hello I am trying to learn J and trying to make a function to tokenise strings I have tried the E. command but I cannot have it working to search 1 char token ex: [a=. ;: 'cc dd f h gg zz' ┌──┬──┬─┬─┬──┬──┐ │cc│dd│f│h│gg│zz│ └──┴──┴─┴─┴──┴──┘ (<'h') E. a 0 0 0 0 0 0 but w