Re: [Jprogramming] Decompressing gzip in J

2019-03-03 Thread Nimp O
Thanks for the support bill, Your procedure worked for me. From: Programming on behalf of bill lam Sent: Saturday, March 2, 2019 11:04 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Decompressing gzip in J use this, load'web/gethttp&

Re: [Jprogramming] Decompressing gzip in J

2019-03-03 Thread bill lam
> > the --compression option either. > > > > > > > > > > > > Sat, 02 Mar 2019, Nimp O написал(а): > > > > > Thank you bill, > > > > > > > > > > I tried piping the resulting binary stream to busybox within > > > > > J but it gave me an error. I may be doing so

Re: [Jprogramming] Decompressing gzip in J

2019-03-03 Thread David Mitchell
7;|',jpath'~tools/ftp/busybox.exe gunzip' |domain error: uucp | 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi Nevertheless, the equivalent line works in the windows command prompt. Despite this, maybe the ideal solution would be to update curl and wget

Re: [Jprogramming] Decompressing gzip in J

2019-03-03 Thread David Mitchell
/busybox.exe gunzip' |domain error: uucp | 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi Nevertheless, the equivalent line works in the windows command prompt. Despite this, maybe the ideal solution would be to update curl and wget binaries to support this for

Re: [Jprogramming] Decompressing gzip in J

2019-03-03 Thread David Mitchell
|domain error: uucp | 'r pi'=.0 _1{CreateProcessF 0;( uucp y);0;0;inh;f;0;0;si;pi Nevertheless, the equivalent line works in the windows command prompt. Despite this, maybe the ideal solution would be to update curl and wget binaries to support this form of decompression, avoiding the

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread bill lam
s form of decompression, avoiding the use of multiple > shell utilities. > > > Thanks. > > > From: Programming on behalf of > bill lam > Sent: Saturday, March 2, 2019 10:52 AM > To: programm...@jsoftware.com > Subject: Re: [Jpr

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread bill lam
; bill lam > Sent: Saturday, March 2, 2019 10:52 AM > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Decompressing gzip in J > > You can use gunzip to decompress the data. > > busybox.exe bundled in j807 should have this function. > > Sat, 02 Mar 2019, bill la

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread David Mitchell
I was wrong about this. The Windows text editor I am using automatically uncompressed the file. I was not aware of that behaviour. Please ignore my previous message. On 3/2/2019 13:56, David Mitchell wrote: I tried running j wget in a command window on windows 10: C:\Program Files\j64-807\

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread Nimp O
multiple shell utilities. Thanks. From: Programming on behalf of bill lam Sent: Saturday, March 2, 2019 10:52 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Decompressing gzip in J You can use gunzip to decompress the data. busybox.exe bundled in j807

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread David Mitchell
I tried running j wget in a command window on windows 10: C:\Program Files\j64-807\tools\ftp>.\wget "http://api.stackexchange.com/2.2/answers/264298?order=desc&sort=activity&site=meta&filter=!.UDo6l2ikDi7iGlf"; -OC:\Users\me\Downloads\foo1.xxx and the file created was unzipped: {"items":[{"l

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread bill lam
You can use gunzip to decompress the data. busybox.exe bundled in j807 should have this function. Sat, 02 Mar 2019, bill lam написал(а): > Oh, I tried, stackexchange always responsed with gzip data even > wget had not asked. You need to add an extra option in wget > --compression=gzip > > try us

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread Nimp O
;curl --manual' for more information Thanks. From: Programming on behalf of bill lam Sent: Saturday, March 2, 2019 10:23 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Decompressing gzip in J Oh, I tried, stackexchange always responsed with gzip data even wget

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread bill lam
Oh, I tried, stackexchange always responsed with gzip data even wget had not asked. You need to add an extra option in wget --compression=gzip try use --compressed if it is curl. I think you are using windows because your api string won't work on linux, shell will expand special character in it

Re: [Jprogramming] Decompressing gzip in J

2019-03-02 Thread bill lam
If you are using a recent enough version of wget, it should automatically decompress data received. Sat, 02 Mar 2019, Nimp O написал(а): > Hello everyone, > > For educational purposes I'm trying to read a JSON response from the > StackOverflow API in J. > > My current session is: > > load'web/