Page 1 of 1
Compression 2.2 - Compress a folder
Posted: Thu Sep 15, 2022 9:18 pm
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 (31.66 KiB) Viewed 856 times
Re: Compression 2.2 - Compress a folder
Posted: Sat Sep 17, 2022 12:45 am
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.
Re: Compression 2.2 - Compress a folder
Posted: Sat Sep 17, 2022 6:01 pm
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 (6.02 KiB) Viewed 777 times
______________________________________________
I changed the pinstall.sh script to make it compatible with Easy OS
_________________________________________________
Re: Compression 2.2 - Compress a folder
Posted: Tue Jan 17, 2023 1:26 am
by glene77is
to don570
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 !
Re: Compression 2.2 - Compress a folder
Posted: Tue Jan 17, 2023 2:11 am
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.
Re: Compression 2.2 - Compress a folder
Posted: Thu Jan 19, 2023 2:45 am
by glene77is
to DON570
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.
Re: Compression 2.2 - Compress a folder
Posted: Wed Jan 25, 2023 12:28 am
by don570
Maybe I will get around to adding a progression bar
but I don't have time now.
Thanks for suggestion.
Re: Compression 2.2 - Compress a folder
Posted: Wed Feb 01, 2023 2:51 am
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 !
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 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 20 times
===
Re: Compression 2.2 - Compress a folder
Posted: Fri Feb 03, 2023 8:09 pm
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.