Re: [Jbeta] J iOS data transfer
Brian As you remarked earlier gtkwd.ijs is missing, which is why the require fails at the beginning of pousse.ijs. This doesn't fix your problem but at least explains it. I suppose my problem lies elsewhere. fyi, the ~ symbol is resolved in jpath. Seems like definitions in stdlib.ijs and elsewhere need changing so people dont waste time on stuff like this. The script function looks like a good place to start. (same applies to scriptd) I wonder what others think. Regards David -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I wasn't clear. Functions like script need to tell people which files are missing otherwise time gets wasted. On Sun, Jun 24, 2012 at 9:34 AM, david alis david.a...@gmail.com wrote: Brian As you remarked earlier gtkwd.ijs is missing, which is why the require fails at the beginning of pousse.ijs. This doesn't fix your problem but at least explains it. I suppose my problem lies elsewhere. fyi, the ~ symbol is resolved in jpath. Seems like definitions in stdlib.ijs and elsewhere need changing so people dont waste time on stuff like this. The script function looks like a good place to start. (same applies to scriptd) I wonder what others think. Regards David -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
End users seldom use script or scriptd directly. They use load or require that should be able to echo the name the missng files. I guess that script failed and did not give any helpful diagnostic messages was because the package was not built by project manager in that platform. Anyway, I think none of the gui games will run on iOS/android. Вск, 24 Июн 2012, david alis писал(а): I wasn't clear. Functions like script need to tell people which files are missing otherwise time gets wasted. On Sun, Jun 24, 2012 at 9:34 AM, david alis david.a...@gmail.com wrote: Brian As you remarked earlier gtkwd.ijs is missing, which is why the require fails at the beginning of pousse.ijs. This doesn't fix your problem but at least explains it. I suppose my problem lies elsewhere. fyi, the ~ symbol is resolved in jpath. Seems like definitions in stdlib.ijs and elsewhere need changing so people dont waste time on stuff like this. The script function looks like a good place to start. (same applies to scriptd) I wonder what others think. Regards David -- For information about J forums see http://www.jsoftware.com/forums.htm -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
i'm almost there ... On my Win7 I ran (beware line breaks): jt'c';'C:\Users\david\j64-602-user/test.jt';'C:\Users\david\j64-602\addons\';'games' ('C:\Users\david\j64-602-user/test2.html')jattach 'C:\Users\david\j64-602-user/test.jt' (returns 131617 chars written). mailed test2 to myself Opened it in iPad.mail, copied to clipboard, returned to J typing jcbtof '~/t.jt' The content of file t.jt looks reasonable and its size is 129050. 1!:0'j/t.jt' returns 129050. But when i run jt'x';'~/t.jt';'addons/games' i get assertion failure: assert(#fd)=fd frwrite p When I run 1!:0'j/addons/*' I can see the directories for convert graphics ide and labs games isnt there. I get the same assertion error for jt'x';'~/t.jt';'~addons/games' jt'x';'~/t.jt';'~/addons/games' but in both cases the games directory is created aIn both cases it is empty. No doubt something simple. Brief description of how the character ~ is resolved in file and path names would be helpful. Rgds David On Sat, Jun 23, 2012 at 12:03 AM, Eric Iverson eric.b.iver...@gmail.com wrote: In an email from me to beta forum in the last few days. I will clean this up, but would like to hear of a successful use (or not so) first. On Fri, Jun 22, 2012 at 5:59 PM, Jim Russell jimsruss...@yahoo.com wrote: I need a bunch of brushing up first, but for future reference, where is jt.ijs to be found? Sent from my iPad On Jun 22, 2012, at 5:06 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I believe my last posting with the jt.ijs script works properly. Please try it. If it fails, let me know details and I will fix it. Be sure to use my last posting, as there were many earlier ones with various problems. Rather than try with a big folder of stuff, you might want to try a simple test file with text you suspect might cause problems. If this fails it will be easier to track down and fix. If it works, there is a better chance of the big test working. On Fri, Jun 22, 2012 at 4:52 PM, John Baker bakerj...@gmail.com wrote: Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.com wrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I guess the base folders should match so that jt 'c' addons' ; 'games' so that it should be decompressed as jt 'x' addons' the games folder will be created under addons automatically. If it still fails, there might be some binary files inside games directory that jt cannot handle. Сбт, 23 Июн 2012, david alis писал(а): i'm almost there ... On my Win7 I ran (beware line breaks): jt'c';'C:\Users\david\j64-602-user/test.jt';'C:\Users\david\j64-602\addons\';'games' ('C:\Users\david\j64-602-user/test2.html')jattach 'C:\Users\david\j64-602-user/test.jt' (returns 131617 chars written). mailed test2 to myself Opened it in iPad.mail, copied to clipboard, returned to J typing jcbtof '~/t.jt' The content of file t.jt looks reasonable and its size is 129050. 1!:0'j/t.jt' returns 129050. But when i run jt'x';'~/t.jt';'addons/games' i get assertion failure: assert(#fd)=fd frwrite p When I run 1!:0'j/addons/*' I can see the directories for convert graphics ide and labs games isnt there. I get the same assertion error for jt'x';'~/t.jt';'~addons/games' jt'x';'~/t.jt';'~/addons/games' but in both cases the games directory is created aIn both cases it is empty. No doubt something simple. Brief description of how the character ~ is resolved in file and path names would be helpful. Rgds David On Sat, Jun 23, 2012 at 12:03 AM, Eric Iverson eric.b.iver...@gmail.com wrote: In an email from me to beta forum in the last few days. I will clean this up, but would like to hear of a successful use (or not so) first. On Fri, Jun 22, 2012 at 5:59 PM, Jim Russell jimsruss...@yahoo.com wrote: I need a bunch of brushing up first, but for future reference, where is jt.ijs to be found? Sent from my iPad On Jun 22, 2012, at 5:06 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I believe my last posting with the jt.ijs script works properly. Please try it. If it fails, let me know details and I will fix it. Be sure to use my last posting, as there were many earlier ones with various problems. Rather than try with a big folder of stuff, you might want to try a simple test file with text you suspect might cause problems. If this fails it will be easier to track down and fix. If it works, there is a better chance of the big test working. On Fri, Jun 22, 2012 at 4:52 PM, John Baker bakerj...@gmail.com wrote: Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.com wrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see
Re: [Jbeta] J iOS data transfer
David, I was able to transfer the ~addons from my Mac to my iPad without getting your errors. I used monadic jattach, not dyadic, though. For me disillusionment struck with the following error appeared load'~addons/games/pousse.ijs' not found: /j/addons/games/pousse.ijs |file name error: script | 0!:0 y[4!:55'y' And then a look at pousse.ijs suggests to me that needed addons from gtkwd and gl2 may not even work in my Pad. require 'gtkwd gl2 text' I think I followed exactly the instructions Eric provided that I have placed at Jwiki/i05 (I edited them slightly on the Jwiki/i05 so there could he an error). I find it hard fo remember or to follow the instructions regarding when to add things like 'misc' and '.ijs'. Please let me or Jwiki/i05 know when you find errors. -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Hi Brian monadic jattach just uses the default file name of '~temp/jattach.html' What do you get when you list files in directories? 1!:0'j/addonns/games/*' I'm having loads of fun reverse engineering my way to figuring out how J works on iPad. But I wouldnt mind a little bit of help. An explanation of the resolution of what ~ means when it's used as part of a file or path name would be nice. I suppose using J701 instead of J602 might help. David On Sat, Jun 23, 2012 at 3:35 PM, Brian Schott schott.br...@gmail.com wrote: David, I was able to transfer the ~addons from my Mac to my iPad without getting your errors. I used monadic jattach, not dyadic, though. For me disillusionment struck with the following error appeared load'~addons/games/pousse.ijs' not found: /j/addons/games/pousse.ijs |file name error: script | 0!:0 y[4!:55'y' And then a look at pousse.ijs suggests to me that needed addons from gtkwd and gl2 may not even work in my Pad. require 'gtkwd gl2 text' I think I followed exactly the instructions Eric provided that I have placed at Jwiki/i05 (I edited them slightly on the Jwiki/i05 so there could he an error). I find it hard fo remember or to follow the instructions regarding when to add things like 'misc' and '.ijs'. Please let me or Jwiki/i05 know when you find errors. -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
1!:0'j64-701/addons/games/*' ┌──┬─┬───┬───┬──┬──┐ │pousse│2012 3 11 3 26 16│136│rwx│d-│drwxr-xr-x│ └──┴─┴───┴───┴──┴──┘ 1!:0'j602/addons/games/*' 1!:0'~/j602/addons/games/*' On Sat, Jun 23, 2012 at 11:08 AM, david alis david.a...@gmail.com wrote: Hi Brian monadic jattach just uses the default file name of '~temp/jattach.html' What do you get when you list files in directories? 1!:0'j/addonns/games/*' I'm having loads of fun reverse engineering my way to figuring out how J works on iPad. But I wouldnt mind a little bit of help. An explanation of the resolution of what ~ means when it's used as part of a file or path name would be nice. I suppose using J701 instead of J602 might help. David -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
and what's actually in the pouse directory on the iPad as well as the PC? On the iPad the games directory should show up when you run 1!:0'j/addons/*' and pousse should show up when you run 1!:0'j/addons/games/*' Assuming that's the case, what shows up when you run 1!:0'j/addons/games/pousse/*' you should see manifest.ijs and pousse.ijs When I created the .jt file for my games directory on the PC the jt program reported that three binary files which it ignored: file with non-char bytes ignored: games\minesweeper\tiles18.png file with non-char bytes ignored: games\minesweeper\tiles26.png file with non-char bytes ignored: games\solitaire\cards.j31 but none relate to pousse. Rgds David On Sat, Jun 23, 2012 at 8:42 PM, Brian Schott schott.br...@gmail.com wrote: 1!:0'j64-701/addons/games/*' ┌──┬─┬───┬───┬──┬──┐ │pousse│2012 3 11 3 26 16│136│rwx│d-│drwxr-xr-x│ └──┴─┴───┴───┴──┴──┘ 1!:0'j602/addons/games/*' 1!:0'~/j602/addons/games/*' On Sat, Jun 23, 2012 at 11:08 AM, david alis david.a...@gmail.com wrote: Hi Brian monadic jattach just uses the default file name of '~temp/jattach.html' What do you get when you list files in directories? 1!:0'j/addonns/games/*' I'm having loads of fun reverse engineering my way to figuring out how J works on iPad. But I wouldnt mind a little bit of help. An explanation of the resolution of what ~ means when it's used as part of a file or path name would be nice. I suppose using J701 instead of J602 might help. David -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
David, I made one error in downloading and so there are some extra directories and files that show up around Pousse. 1!:0'j/addons/*' ++--++---+--+--+ |games |2012 6 23 9 4 22 |136 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ |graphics|2012 6 10 21 52 38|170 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ |ide |2012 6 10 21 52 38|102 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ |labs|2012 6 10 21 52 38|102 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ |math|2012 6 23 8 48 19 |102 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ |misc|2012 6 23 8 46 45 |1088|rwx|d-|drwxr-xr-x| ++--++---+--+--+ |pousse |2012 6 23 8 5 0 |102 |rwx|d-|drwxr-xr-x| ++--++---+--+--+ 1!:0'j/addons/games/*' +--+-+---+---+--+--+ |pousse|2012 6 23 7 55 20|102|rwx|d-|drwxr-xr-x| +--+-+---+---+--+--+ |pousse.ijs|2012 6 23 9 4 22 |21 |rw-|--|-rw-r--r--| +--+-+---+---+--+--+ 1!:0'j/addons/games/pousse/*' +--+-+-+---+--+--+ |pousse.ijs|2012 6 23 7 55 20|10370|rw-|--|-rw-r--r--| +--+-+-+---+--+--+ jd'~addons/games/pousse' pousse.ijs --- (B=) On Jun 23, 2012, at 3:13 PM, david alis david.a...@gmail.com wrote: and what's actually in the pouse directory on the iPad as well as the PC? On the iPad the games directory should show up when you run 1!:0'j/addons/*' and pousse should show up when you run 1!:0'j/addons/games/*' Assuming that's the case, what shows up when you run 1!:0'j/addons/games/pousse/*' you should see manifest.ijs and pousse.ijs When I created the .jt file for my games directory on the PC the jt program reported that three binary files which it ignored: file with non-char bytes ignored: games\minesweeper\tiles18.png file with non-char bytes ignored: games\minesweeper\tiles26.png file with non-char bytes ignored: games\solitaire\cards.j31 but none relate to pousse. Rgds David -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.comwrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I believe my last posting with the jt.ijs script works properly. Please try it. If it fails, let me know details and I will fix it. Be sure to use my last posting, as there were many earlier ones with various problems. Rather than try with a big folder of stuff, you might want to try a simple test file with text you suspect might cause problems. If this fails it will be easier to track down and fix. If it works, there is a better chance of the big test working. On Fri, Jun 22, 2012 at 4:52 PM, John Baker bakerj...@gmail.com wrote: Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.com wrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I need a bunch of brushing up first, but for future reference, where is jt.ijs to be found? Sent from my iPad On Jun 22, 2012, at 5:06 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I believe my last posting with the jt.ijs script works properly. Please try it. If it fails, let me know details and I will fix it. Be sure to use my last posting, as there were many earlier ones with various problems. Rather than try with a big folder of stuff, you might want to try a simple test file with text you suspect might cause problems. If this fails it will be easier to track down and fix. If it works, there is a better chance of the big test working. On Fri, Jun 22, 2012 at 4:52 PM, John Baker bakerj...@gmail.com wrote: Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.com wrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
In an email from me to beta forum in the last few days. I will clean this up, but would like to hear of a successful use (or not so) first. On Fri, Jun 22, 2012 at 5:59 PM, Jim Russell jimsruss...@yahoo.com wrote: I need a bunch of brushing up first, but for future reference, where is jt.ijs to be found? Sent from my iPad On Jun 22, 2012, at 5:06 PM, Eric Iverson eric.b.iver...@gmail.com wrote: I believe my last posting with the jt.ijs script works properly. Please try it. If it fails, let me know details and I will fix it. Be sure to use my last posting, as there were many earlier ones with various problems. Rather than try with a big folder of stuff, you might want to try a simple test file with text you suspect might cause problems. If this fails it will be easier to track down and fix. If it works, there is a better chance of the big test working. On Fri, Jun 22, 2012 at 4:52 PM, John Baker bakerj...@gmail.com wrote: Have there been any updates to the transfer process since this thread started? When I last looked the J code was not untangling properly. On Mon, Jun 18, 2012 at 2:09 PM, Eric Iverson eric.b.iver...@gmail.com wrote: You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.com wrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- John D. Baker bakerj...@gmail.com -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Bill, Yes, you are right, the extraction needs to apply to ~temp/t.jt . The 'c' likely needs to be to ~addons/t.jt -- not ~temp/t.jt -- also. But when I do that, the file shows up in ~addons as t.jt and I cannot change the name to ~addons/math/misc . I am missing some steps, clearly. On Mon, Jun 18, 2012 at 1:52 AM, bill lam bbill@gmail.com wrote: I guess that meant file not found. not sured if ~temp/t.jt = ~t.jt on ipad. Пнд, 18 Июн 2012, Brian Schott писал(а): Eric, I got the following error when attempting to pass ~addons/math/misc to ipad I had corrected the typo of addond to addons. jcbtof'~temp/t.jt' ~temp/t.jt jt 'x';'~t.jt';'~addons' |rank error: jt | i=.(a E.d)i.1 -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I made a couple of sloppy typos in the instructions. I will repeat them below with the typos corrected. Please try again. It helps to have an overview of what is going on and to have an understanding of tar and how jt provides similar facilities. That is 'c' creates, 'x' extracts, and 't' tests (displays contents of jt file). Please try again and let me know how it goes. *** expanded instructions with typos corrected Use jt to transfer a folder of files. jt is similar to tar. It creates a single file with the info necessary to recreate a folder. On desktop jt '' NB. jt help jt 'c';'~temp/t.jt';'~addons/math';'misc' NB. create single t.jt file from addon/math misc folder send email with t.jt attachement On iPad read email and follow single file example to copy to clipboard jcbtof 't.jt' NB. put clipboard contents to file t.jt (at root for less name typing) jt 'x';'t.jt';'~addons' NB. extract contents of t.jt On Mon, Jun 18, 2012 at 12:13 AM, Brian Schott schott.br...@gmail.comwrote: Eric, I got the following error when attempting to pass ~addons/math/misc to ipad I had corrected the typo of addond to addons. jcbtof'~temp/t.jt' ~temp/t.jt jt 'x';'~t.jt';'~addons' |rank error: jt | i=.(a E.d)i.1 --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Eric, Ok, I see what I was not doing: anything involving jattach. I was attaching t.jt to the email. But now I have a different problem. The jattach.html file is so large with math/misc that it does not fit in the copy buffer. How is that problem worked around? Thanks, --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
It worked for me so there is something limiting in your environment or there is something wrong with the steps. Which copy buffer? On your desktop or on the iPad? If you have not already done so, please get familiar with successfully moving several single files from your desktop to your iPad before tackling moving a large jt files such as addons/math/misc. On Mon, Jun 18, 2012 at 1:55 PM, Brian Schott schott.br...@gmail.comwrote: Eric, Ok, I see what I was not doing: anything involving jattach. I was attaching t.jt to the email. But now I have a different problem. The jattach.html file is so large with math/misc that it does not fit in the copy buffer. How is that problem worked around? Thanks, --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
You see the attachment jattach.html in your email message. Tap it and you should see your stuff in a browser page that you can then tap and hold and copy. On Mon, Jun 18, 2012 at 2:59 PM, Brian Schott schott.br...@gmail.comwrote: On my ipad, in gmail, I do not see the attachment in safari. I see it it gmail. I do not use mail exactly, I use gmail. The attachment is an html file. On Mon, Jun 18, 2012 at 2:32 PM, Eric Iverson eric.b.iver...@gmail.com wrote: To repeat with emphasis: the jattach step and attaching the jattach.html file that is sent is essential. This is the only way to get full copy/paste support on the iPad as otherwise you get the sickly limited version. The jattach step is needed whether sending a single file or a jt file that contains multiple files. Utilities will eventually combine these steps into common forms. -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I think if one plays with the proposed mechanism it actually works quite well once one is used to the steps. Part of it is just learning more iPad tricks and that is simpler than the arcane iTunes file sharing. Feedback on actual transfer experience would be appreciated. Especially clarifying the steps. On Sun, Jun 17, 2012 at 3:44 PM, John Baker bakerj...@gmail.com wrote: The official app store version does not remove any files you may have loaded with iTunes. I just installed the app store version and it still sees all my beta version extra files. I agree with. Eric that some well documented work around is needed to get scripts and data on this version of J. It nice to see this was accepted for the app store. I wasn't sure a general purpose tool like J would qualify and even though there are restrictions on data movement this is a full powered J. Sent from my iPhone On Jun 17, 2012, at 11:40 AM, Eric Iverson eric.b.iver...@gmail.com wrote: Until the dust settles and necessary code is in standard library and procedures are documented in a wiki page, the discussion in beta will drive how we transfer stuff for J iOS. To simplify discussion we'll talk about desktop and iPad. First, put the script at the end of this message in your desktop J ~temp/jt.ijs. To transfer a script from desktop to iPad: load'~temp/jt.ijs' jattach ' file you want to move to iPad' send email to yourself with attachment ~temp/jattach.html read email on iPad tap jattach.html tap hold to select all tap copy jcbtof '~temp/t.ijs' NB. put clipboard data in file or to edit immediately je jcbtof '~temp/t.ijs' To transfer a script from iPad to desktop: je '. script' tap hold - select all - copy send email with pasted contents ... Use jt to transfer a folder of files. jt is similar to tar. It creates a single file with the info necessary to recreate a folder. jt '' NB. jt help jt 'c';'~temp/t.jt';'~addond/math';'misc' NB. create single file from addon transfer single file to iPAD jcbtof 't.jt' jt 'x';'~t.jt';'~addons' An interesting alternative to email is www.gethopper.com. With a hopper account you can drag files to hopper and then get them from hopper on your iPad. Your help in refining and streamlining these steps will be much appreciated. *** ~temp/jt.ijs jattach_z_=: 3 : 0 t=. 'htmlhead' t=. t,'meta http-equiv=Content-type content=text/html;charset=UTF-8' t=. t,'titleTITLE/title/headbodydiv class=sectionh1NB. TITLE/h1' t=. t,'DATA/div/body/html' t=. t rplc 'TITLE';y d=. toJ fread y d=. d rplc '';'amp;' d=. d rplc '';'lt;' d=. d rplc LF;'br',LF NB.! need to fix d LF t=. t rplc 'DATA';d t fwrite '~temp/jattach.html' i.0 0 ) jt_z_=: 3 : 0 if. ''-:y do. smoutput'jt packs/uppacks text files' smoutput'jt ''c'';''~temp/test.jt'';''~system'';''util''' smoutput'jt ''t'';''~temp/test.jt''' smoutput'jt ''x'';''~temp/test.jt'';''~temp/test''' i.0 0 return. end. t=. {.y f=. 1{y a=. LF,'NB. ** jta ' z=. LF,'NB. ** jtz ' r=. '' select. {.{.y case. 'c' do. assert. 4=#y['needs 4 paramters' 'file path folder'=. }.y assert 2=ftype path['path must exist' '' fwrite file path=. jpath path base=. path,'/',folder d=. {.1 dirtree base files=. (:#path)}.each d for_f. files do. f=. f d=. toJ fread path,'/',f if. +./((32{.a.)-.TAB,CRLF)e.d do. smoutput 'file with non-char bytes ignored: ',f else. r=.r,f d=. ((a,f,LF),d,z,f,LF) fappend file end. end. fcase. 'x' do. assert 3=#y['x needs 3 parameters' path=. {:y y=. }:y case. 't' do. assert 2:#y['t needs 2 parameters' d=. toJ fread f while. d do. i=. (a E. d)i.1 if. i=#d do. r return. end. d=. i}.d d=. (#a)}.d i=. d i. LF f=. i{.d r=. r,f d=. }.i}.d i=. ((z,f,LF) E. d)i.1 if. i=#d do. r return. end. fd=. i{.d d=. i}.d if. t='x' do. p=. path,'/',f for_n. I. p='/' do. 1!:5 :: [ jpath n{.p end. assert (#fd)=fd fwrite p end. end. case. do. assert 0['unsupported feature' end. r ) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Eric, The first assert in the script has a postfix period, and the others do not. Is that correct ? --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Thanks for seeing this. All uses of assert should be without the dot. On Sun, Jun 17, 2012 at 9:15 PM, Brian Schott schott.br...@gmail.comwrote: Eric, The first assert in the script has a postfix period, and the others do not. Is that correct ? --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
Eric, I got the following error when attempting to pass ~addons/math/misc to ipad I had corrected the typo of addond to addons. jcbtof'~temp/t.jt' ~temp/t.jt jt 'x';'~t.jt';'~addons' |rank error: jt | i=.(a E.d)i.1 --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jbeta] J iOS data transfer
I guess that meant file not found. not sured if ~temp/t.jt = ~t.jt on ipad. Пнд, 18 Июн 2012, Brian Schott писал(а): Eric, I got the following error when attempting to pass ~addons/math/misc to ipad I had corrected the typo of addond to addons. jcbtof'~temp/t.jt' ~temp/t.jt jt 'x';'~t.jt';'~addons' |rank error: jt | i=.(a E.d)i.1 --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- For information about J forums see http://www.jsoftware.com/forums.htm