• uncompression

    From nelgin@VERT/EOTLBBS to Digital Man on Tue May 6 13:35:47 2025
    I'm looking for a way to automatically handle decompression of files within JS but I'm not seeing any such methods. I was wonder if maybe Archive could be extend to just uncompress .gz .zip .lzh or whatever files or maybe a new method for (de)compression of files.

    Maybe something exists already but I'm not seeing it.

    Thanks,

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Nightfox@VERT/DIGDIST to nelgin on Tue May 6 12:20:23 2025
    Re: uncompression
    By: nelgin to Digital Man on Tue May 06 2025 01:35 pm

    I'm looking for a way to automatically handle decompression of files within JS but I'm not seeing any such methods. I was wonder if maybe Archive could be extend to just uncompress .gz .zip .lzh or whatever files or maybe a new method for (de)compression of files.

    Maybe something exists already but I'm not seeing it.

    Archive has a method called extract().

    https://www.synchro.net/docs/jsobjs.html#Archive_class

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From nelgin@VERT/EOTLBBS to Nightfox on Tue May 6 15:38:43 2025
    Re: uncompression
    By: Nightfox to nelgin on Tue May 06 2025 12:20:23

    Archive has a method called extract().

    https://www.synchro.net/docs/jsobjs.html#Archive_class

    That extracts from archives or containers. It does not uncompress .gz files.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to nelgin on Tue May 6 14:05:15 2025
    Re: uncompression
    By: nelgin to Nightfox on Tue May 06 2025 03:38 pm

    Re: uncompression
    By: Nightfox to nelgin on Tue May 06 2025 12:20:23

    Archive has a method called extract().

    https://www.synchro.net/docs/jsobjs.html#Archive_class

    That extracts from archives or containers. It does not uncompress .gz files.

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #7:
    BinkD = Binkley Daemon
    Norco, CA WX: 61.2øF, 76.0% humidity, 9 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nelgin@VERT/EOTLBBS to Digital Man on Tue May 6 17:07:38 2025
    Re: uncompression
    By: Digital Man to nelgin on Tue May 06 2025 14:05:15

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.

    "No plan to support" = "If you want it, add it yourself" ? :)

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From fusion@VERT/CFBBS to nelgin on Tue May 6 20:31:00 2025
    On 06 May 2025, nelgin said the following...

    Re: uncompression
    By: Digital Man to nelgin on Tue May 06 2025 14:05:15

    Right, .gz files aren't archives. No plan to support them directly in S .tgz / .tar.gz files *are* supported however.

    "No plan to support" = "If you want it, add it yourself" ? :)

    it doesn't really make a lot of sense.. gzip isn't really used that way except for edge cases

    .tar.gz
    ^ ^---- compression - supports only one file
    `-------- archive of files, uncompressed

    the edge case being generally like:

    derp.log.gz
    ^---- compressing one file, a log

    so for SBBS what would be the purpose? so you can view gzipped log files?

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: cold fusion - cfbbs.net - grand rapids, mi
  • From MRO@VERT/BBSESINF to Digital Man on Tue May 6 19:24:02 2025
    Re: uncompression
    By: Digital Man to nelgin on Tue May 06 2025 02:05 pm

    files.

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.

    well a .gz file is a single compressed file, right?
    so why are you saying it's not an archive format?
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to MRO on Tue May 6 17:58:42 2025
    Re: uncompression
    By: MRO to Digital Man on Tue May 06 2025 07:24 pm

    Re: uncompression
    By: Digital Man to nelgin on Tue May 06 2025 02:05 pm

    files.

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.

    well a .gz file is a single compressed file, right?

    No, it's a block of compressed data which may not have originally been a file.

    so why are you saying it's not an archive format?

    Becaue it's not. An archive file/format contains one or more files, their data/contents and metadata about those files (e.g. file name, date/time, size, checksum) - a .gz file doesn't contain any of that.

    A .tar file is an archive.
    A .gz file is compressed data.
    A .tar.gz (or .tgz) is a compressed archive.
    --
    digital man (rob)

    This Is Spinal Tap quote #29:
    I find lost luggage. I locate mandolin strings in the middle of Austin!
    Norco, CA WX: 57.2øF, 86.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nelgin@VERT/EOTLBBS to fusion on Tue May 6 20:05:25 2025
    Re: Re: uncompression
    By: fusion to nelgin on Tue May 06 2025 20:31:00

    it doesn't really make a lot of sense.. gzip isn't really used that way except for edge cases

    Welcome to my edge case.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From MRO@VERT/BBSESINF to Digital Man on Tue May 6 20:49:37 2025
    Re: uncompression
    By: Digital Man to MRO on Tue May 06 2025 05:58 pm

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.

    well a .gz file is a single compressed file, right?

    No, it's a block of compressed data which may not have originally been a file.

    so why are you saying it's not an archive format?

    Becaue it's not. An archive file/format contains one or more files, their data/contents and metadata about those files (e.g. file name, date/time, size, checksum) - a .gz file doesn't contain any of that.

    A .tar file is an archive.
    A .gz file is compressed data.
    A .tar.gz (or .tgz) is a compressed archive.

    well i only worked with .gz files long ago. but only when i HAD to, so i'm a bit confused about why you think that it's not an archive format.

    so i used gzip and created an archive

    root@linux:~# gzip -l shit.rar.gz
    compressed uncompressed ratio uncompressed_name
    12861660 12860366 -0.0% shit.rar
    root@linux:~# gzip -l -v shit.rar.gz
    method crc date time compressed uncompressed ratio uncompressed_name
    defla d61855b3 Sep 7 12:47 12861660 12860366 -0.0% shit.rar

    as you can see, the archive i created shows crc, date time the compressed and uncompressed size, the ratio and the uncompressed filename
    https://i.imgur.com/EwYcPym.png

    so it meets the criteria you mentioned for archives, right?
    so yes, it's one file but it's a compressed archive.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to MRO on Tue May 6 20:54:51 2025
    Re: uncompression
    By: MRO to Digital Man on Tue May 06 2025 08:49 pm

    Re: uncompression
    By: Digital Man to MRO on Tue May 06 2025 05:58 pm

    Right, .gz files aren't archives. No plan to support them directly in SBBS. .tgz / .tar.gz files *are* supported however.

    well a .gz file is a single compressed file, right?

    No, it's a block of compressed data which may not have originally been a file.

    so why are you saying it's not an archive format?

    Becaue it's not. An archive file/format contains one or more files, their data/contents and metadata about those files (e.g. file name, date/time, size, checksum) - a .gz file doesn't contain any of that.

    A .tar file is an archive.
    A .gz file is compressed data.
    A .tar.gz (or .tgz) is a compressed archive.

    well i only worked with .gz files long ago. but only when i HAD to, so i'm a bit confused about why you think that it's not an archive format.

    so i used gzip and created an archive

    root@linux:~# gzip -l shit.rar.gz
    compressed uncompressed ratio uncompressed_name
    12861660 12860366 -0.0% shit.rar
    root@linux:~# gzip -l -v shit.rar.gz
    method crc date time compressed uncompressed ratio uncompressed_name
    defla d61855b3 Sep 7 12:47 12861660 12860366 -0.0% shit.rar

    as you can see, the archive i created shows crc, date time the compressed and uncompressed size, the ratio and the uncompressed filename https://i.imgur.com/EwYcPym.png

    Those header fields are optional: https://en.wikipedia.org/wiki/Gzip

    so it meets the criteria you mentioned for archives, right?

    No.

    so yes, it's one file but it's a compressed archive.

    If a library can only store one book, is it still a library? No, it's not.
    --
    digital man (rob)

    Sling Blade quote #4:
    Doyle: wimpy-ass kids or mental retards.. she got one of each livin' with her. Norco, CA WX: 55.9øF, 89.0% humidity, 5 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From fusion@VERT/CFBBS to nelgin on Wed May 7 05:48:00 2025
    On 06 May 2025, nelgin said the following...

    Re: Re: uncompression
    By: fusion to nelgin on Tue May 06 2025 20:31:00

    it doesn't really make a lot of sense.. gzip isn't really used that way except for edge cases

    Welcome to my edge case.

    at least write what that edge case is ya twat

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: cold fusion - cfbbs.net - grand rapids, mi
  • From nelgin@VERT/EOTLBBS to fusion on Wed May 7 13:18:53 2025
    Re: Re: uncompression
    By: fusion to nelgin on Wed May 07 2025 05:48:00

    at least write what that edge case is ya twat

    I don't answer to you.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From MRO@VERT/BBSESINF to Digital Man on Wed May 7 19:18:15 2025
    Re: uncompression
    By: Digital Man to MRO on Tue May 06 2025 08:54 pm

    so why are you saying it's not an archive format?

    Becaue it's not. An archive file/format contains one or more files, their data/contents and metadata about those files (e.g. file name, date/time, size, checksum) - a .gz file doesn't contain any of that.

    as you can see, the archive i created shows crc, date time the compressed and uncompressed size, the ratio and the uncompressed filename https://i.imgur.com/EwYcPym.png

    Those header fields are optional: https://en.wikipedia.org/wiki/Gzip


    if it's optional how does that matter?

    so it meets the criteria you mentioned for archives, right?

    No.

    I listed all the criteria you mentioned and met it with a gzip archive. furthermore, gzip refers to them as archives. https://www.gnu.org/software/gzip/manual/gzip.html

    Usage: gzip [OPTION]... [FILE]...
    Compress or uncompress FILEs (by default, compress FILES in-place).

    Mandatory arguments to long options are mandatory for short options too.

    -c, --stdout write on standard output, keep original files unchanged
    -d, --decompress decompress
    -f, --force force overwrite of output file and compress links
    -h, --help give this help
    -k, --keep keep (don't delete) input files
    -l, --list list compressed file contents
    -L, --license display software license
    -n, --no-name do not save or restore the original name and timestamp
    -N, --name save or restore the original name and timestamp
    -q, --quiet suppress all warnings
    -r, --recursive operate recursively on directories
    --rsyncable make rsync-friendly archive ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    IN YOUR FACE!

    so yes, it's one file but it's a compressed archive.

    If a library can only store one book, is it still a library? No, it's not.

    if it only had ONE, very good book it would be called the library of [good book].
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From MRO@VERT/BBSESINF to fusion on Wed May 7 19:20:16 2025
    Re: Re: uncompression
    By: fusion to nelgin on Wed May 07 2025 05:48 am

    it doesn't really make a lot of sense.. gzip isn't really used that way except for edge cases

    Welcome to my edge case.

    at least write what that edge case is ya twat

    hey you 2 gay rods get out of here with that talking about edging
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to MRO on Wed May 7 17:44:55 2025
    Re: uncompression
    By: MRO to Digital Man on Wed May 07 2025 07:18 pm

    Re: uncompression
    By: Digital Man to MRO on Tue May 06 2025 08:54 pm

    so why are you saying it's not an archive format?

    Becaue it's not. An archive file/format contains one or more files, their data/contents and metadata about those files (e.g. file name, date/time, size, checksum) - a .gz file doesn't contain any of that.

    as you can see, the archive i created shows crc, date time the compressed and uncompressed size, the ratio and the uncompressed filename https://i.imgur.com/EwYcPym.png

    Those header fields are optional: https://en.wikipedia.org/wiki/Gzip

    if it's optional how does that matter?

    Because there are plenty of gz files have any file metadata because it's not an archive file/format.

    so it meets the criteria you mentioned for archives, right?

    No.

    I listed all the criteria you mentioned and met it with a gzip archive. furthermore, gzip refers to them as archives. https://www.gnu.org/software/gzip/manual/gzip.html

    Usage: gzip [OPTION]... [FILE]...
    Compress or uncompress FILEs (by default, compress FILES in-place).

    Mandatory arguments to long options are mandatory for short options too.

    -c, --stdout write on standard output, keep original files unchanged
    -d, --decompress decompress
    -f, --force force overwrite of output file and compress links
    -h, --help give this help
    -k, --keep keep (don't delete) input files
    -l, --list list compressed file contents
    -L, --license display software license
    -n, --no-name do not save or restore the original name and timestamp
    -N, --name save or restore the original name and timestamp
    -q, --quiet suppress all warnings
    -r, --recursive operate recursively on directories
    --rsyncable make rsync-friendly archive ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    IN YOUR FACE!

    That's for when using gzip along with an archiver (e.g. tar) to create an archive file that have single files extracted even when the parent archive is changed. Read the man page on that option. That option provides no feature/function when not used in combination with an archive program (e.g. tar). gzip is not an archive format or program.

    so yes, it's one file but it's a compressed archive.

    If a library can only store one book, is it still a library? No, it's not.

    if it only had ONE, very good book it would be called the library of [good book].

    Per Wikipedia:

    Compressed archives are typically created by assembling collections of files into a single tar archive (also called tarball),[7] and then compressing that archive with gzip. The final compressed file usually has the extension .tar.gz or .tgz.
    --
    digital man (rob)

    This Is Spinal Tap quote #36:
    Bobbi Flekman: Money talks, and bullshit walks.
    Norco, CA WX: 71.9øF, 54.0% humidity, 10 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Digital Man on Thu May 8 18:55:37 2025
    Re: uncompression
    By: Digital Man to MRO on Wed May 07 2025 05:44 pm


    Per Wikipedia:

    Compressed archives are typically created by assembling collections of files into a single tar archive (also called tarball),[7] and then compressing that archive with gzip. The final compressed file usually has the extension .tar.gz or .tgz.

    Are you seriously referencing wikipedia, a site that anybody can edit?
    how about i just change it for ya?
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From Digital Man@VERT to MRO on Thu May 8 18:03:10 2025
    Re: uncompression
    By: MRO to Digital Man on Thu May 08 2025 06:55 pm

    Re: uncompression
    By: Digital Man to MRO on Wed May 07 2025 05:44 pm


    Per Wikipedia:

    Compressed archives are typically created by assembling collections of files into a single tar archive (also called tarball),[7] and then compressing that archive with gzip. The final compressed file usually has the extension .tar.gz or .tgz.

    Are you seriously referencing wikipedia, a site that anybody can edit?
    how about i just change it for ya?

    Okay, I'll reference the same man page that you did:

    "If you wish to create a single archive file with multiple members so that members can later be extracted independently, use an archiver such as tar or zip. GNU tar supports the -z option to invoke gzip transparently. gzip is designed as a complement to tar, not as a replacement."

    They're both correct: gzip is not an archiver tool or an archive file format. --
    digital man (rob)

    Rush quote #62:
    He's a restless young romantic, wants to run the big machine .. New World Man Norco, CA WX: 79.9øF, 44.0% humidity, 9 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net