Compression 2.2 - Compress a folder

Moderator: Forum moderators

Post Reply
don570
Posts: 653
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 108 times

Compression 2.2 - Compress a folder

Post by don570 »

Compression 2.2 - Compress a folder
French translation by esmourguit

Right click menu utility. First choose a folder with Rox filer.

Do you need to quickly compress a folder to send to a friend? Do you need to encrypt it ?
(Encryption is only available with the zip and 7z format)
Note that 7z requires the install of the p7zip package

screenshot-compression.png
screenshot-compression.png (31.66 KiB) Viewed 824 times
Attachments
compression-2.2-noarch.pet
(22.87 KiB) Downloaded 70 times
Last edited by don570 on Sat Sep 17, 2022 6:06 pm, edited 1 time in total.
User avatar
Flash
Moderator
Posts: 958
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 50 times
Been thanked: 120 times

Re: Compression 2.2 - Compress a folder

Post by Flash »

Is 'compress' the right word? When you compress air, for instance, nothing is removed, except maybe some heat. When you condense milk, on the other hand, you remove unnecessary water. It can be replaced later, if desired.

Most "compression" apps remove redundant bits and then add them back to reconstitute a file. I can't even see how it's possible to compress data; instead, it's being condensed.

Chaos coordinator :?
don570
Posts: 653
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 108 times

Re: Compression 2.2 - Compress a folder

Post by don570 »

Compression probably does mean removing the bits that are redundant.
The french word is 'archiver'
Jake has the excellent programm 'Pack It'.

I'm not a computer scientist so I just choose a word that came to my head.

Google drive uses the word 'zip'

Screenshot 2022-09-17 13.52.57.png
Screenshot 2022-09-17 13.52.57.png (6.02 KiB) Viewed 745 times

______________________________________________

I changed the pinstall.sh script to make it compatible with Easy OS
_________________________________________________

User avatar
glene77is
Posts: 55
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 46 times
Been thanked: 7 times
Contact:

Re: Compression 2.2 - Compress a folder

Post by glene77is »

to don570 :welcome:
Compress / Zip / Pack / archiver
Want to hear about the Greek version of this function ?
compress is Αγγλοελληνικό Λεξικό
As you wrote "French translation by esmourguit"
In Spanish it is different again.

"Compress" is OK by me.

In the late 1970's, as micro-computers developed,
I wrote my own Huffman Compression routines in Assembler ( 6502 and Z-80 )
--- and guess what I called them ? Compress !
Then became aware of Arc, then Zip,
then the Lempel-Ziv-Welch (LZW) algorithm which provided loss-less data compression.
That was an interesting time.

You do not have to be a "computer scientist" to get your point across.
I am "who" I am, and "I just choose a word that came to my head" just like you did.
Join the group and write some more, exercise your talents !

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
amethyst
Posts: 2368
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 490 times

Re: Compression 2.2 - Compress a folder

Post by amethyst »

Flash wrote: Sat Sep 17, 2022 12:45 am

Is 'compress' the right word? When you compress air, for instance, nothing is removed, except maybe some heat. When you condense milk, on the other hand, you remove unnecessary water. It can be replaced later, if desired.

Most "compression" apps remove redundant bits and then add them back to reconstitute a file. I can't even see how it's possible to compress data; instead, it's being condensed.

Definitely compressed. With compression you lose nothing of the actual content, the contents are are just repacked in another way but the original contents stay the same. Condensing could mean a permanent change and even loss of (or some loss of) the original content.

User avatar
glene77is
Posts: 55
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 46 times
Been thanked: 7 times
Contact:

Re: Compression 2.2 - Compress a folder

Post by glene77is »

to DON570 :welcome:

I have run your "Compression 2.2", several times
which I renamed as "rc.z_CDH.sh" and placed into "/root/my-applications/bin" for active scripts.
I traced (with xterm).
It is a useful BackUp program. I like the idea, and most of the methodology.
I plan to force the "Directory Select" to begin at a default "/mnt/home/" ( not "/" nor "/root" ).

Suggestion to observe tar messages as a Progress Indicator.
(0) Once you have downloaded, and extracted the several "Cold-Tar-Backup" code scripts to a working directory.
(1) Rename "CTB-SL.sh" file to "CTX.sh", and set permissions to "executable" via "chmod +x CTX.sh ".
(2) place the executable "CTX.sh" into "/root/my-applications/bin", which is a Puppy System Path location.
(3) From Command Line terminal, carefully enter xterm -e CTX.sh
(4) This will call "xterm", which will execute "CTX.sh" , which will show the "TarOpt" code activity inside "CTX.sh" .
You can observe the message output of tar as it cycles through groups of code lines, as a Progress Indicator .

# Please see WIKI for a nice discussion of Structured Code Naming methods, very useful topic.
In my words this method enables the "sacredness" of all subroutine names, all variable names, all typing of all variables, etc.

I see you are involved with BK Easy-OS.
I wonder what is the benefit BK Easy-OS offers that is not found in other OS developed via WOOF based on Ubuntu and some Debian code ?
Well, answers will show up if I read further in the Easy-OS forum.
I downloaded it, but have not had time to go further.

I hope to find you again in this forum. :welcome:

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

don570
Posts: 653
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 108 times

Re: Compression 2.2 - Compress a folder

Post by don570 »

Maybe I will get around to adding a progression bar
but I don't have time now.
Thanks for suggestion.

User avatar
glene77is
Posts: 55
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 46 times
Been thanked: 7 times
Contact:

Re: Compression 2.2 - Compress a folder

Post by glene77is »

to Don570
I was not trying to suggest an additional routine.
I never seem to be able to simply write a simple program ! :geek:

When I use the Tar.Gz method, I simply calc "Source File size MB / 10 " in my head.
I have observed a gross correlation between that "File-Size-Number" and the "Time" required
for compressing "text" and/or "binary" files.
Compressing "Text" is much faster than Compressing "binary"
... ( binary has few redundancies, and requires complex tree and index tables).
So processing a "saveDATA folder" of 231 MBytes takes , round-about, 23 seconds, give-or-take a mile.

Not a complaint, just an observation.
I do not see a correlation between the "Time for Compression" given in "Seconds" and the aprox. real "run time".
I just killed the little window for "Time" ... for me, a good enough fix.

I do complain about my own mental botching :oops: when I am writing and re-writing my own code. !!!

Attached is a little workup I did to begin exploring the use of embedded graphics, xpm and svg (which have a text format) ,
with the intent of not having dependency on system graphic files.
I believe you shared the seminal idea on this forum.

rc.z_CDW-sh.zip
CDW embedded graphics demo .sh
(2.97 KiB) Downloaded 17 times

===

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

User avatar
glene77is
Posts: 55
Joined: Thu Aug 13, 2020 7:44 pm
Location: Univ of TN, Memphis,TN,USA
Has thanked: 46 times
Been thanked: 7 times
Contact:

Re: Compression 2.2 - Compress a folder

Post by glene77is »

to: Don570

Attached is a little workup I did to begin exploring the use of embedded graphics, xpm and svg
(which have a text format) ,
with the intent of not having dependency on system graphic files.
I believe you shared the seminal idea on this forum.

This is a second work-up exploring and prototyping his method
of cutting the strings on system graphics,
by Embedding SVG and XPM graphics withing a BASH script.
I have already upgraded several of my projects to include this method.

CDW.sh is Dated 230203-1315, today.

Attachments
rc.z_CDW-230203-1330sh.zip
ProtoType-Embedded-Graphics.sh in a zip file.
(5.5 KiB) Downloaded 20 times

*Just an old Apprentice caught Tinkering in the Master's WorkShop. *
Glen Ellis ( ͡° ͜ʖ ͡° ) K4KKQ , Electronic Engineering :ugeek:
Website: http://www.GeoCities.WS/glene77is :thumbup2:
Electrical Science , Memphis, TN

Post Reply

Return to “Utilities”