1. File Compression
- Posted by cklester <cklester at HOTPOP.COM> Jan 24, 2000
- 485 views
------=_NextPart_000_0005_01BF665D.6B753BA0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need to be able to compress files from within a program, and jiri's = and Junko's compression programs are command line interfaces. Has = anybody got routines for compressing/decompressing from within a = program? Thanks, ck ------=_NextPart_000_0005_01BF665D.6B753BA0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>I need to be able to compress files from within a = program, and=20 jiri's and Junko's compression programs are command line interfaces. Has = anybody=20 got routines for compressing/decompressing from within a = program?</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Thanks,</FONT></DIV> <DIV><FONT size=3D2>ck</FONT></DIV> ------=_NextPart_000_0005_01BF665D.6B753BA0--
2. Re: File Compression
- Posted by Ian Smith <whoisian at HOTMAIL.COM> Jan 24, 2000
- 456 views
>From: cklester <cklester at HOTPOP.COM> >Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >To: EUPHORIA at LISTSERV.MUOHIO.EDU >Subject: File Compression >Date: Mon, 24 Jan 2000 11:23:21 -0600 > >I need to be able to compress files from within a program, and jiri's and >Junko's compression programs are command line interfaces. Has anybody got >routines for compressing/decompressing from within a program? > >Thanks, >ck > I don't have any routines, but try http://www.wotsit.org and search for LZW, lzw is the best compression alogrithm but be sure to credit Lempel.. who ever. besides that wotsit.org has format documentation on almost any format you're looking for. i hope this helps. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
3. Re: File Compression
- Posted by Paul Sheepwash <whalley99 at HOTMAIL.COM> Jan 24, 2000
- 453 views
------=_NextPart_000_0006_01BF666F.D6AB0B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need to be able to compress files from within a program, and jiri's = and Junko's compression programs are command line interfaces. Has = anybody got routines for compressing/decompressing from within a = program? Thanks, ck Why not us the system() command? ------=_NextPart_000_0006_01BF666F.D6AB0B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV> </DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV> </DIV> <DIV><FONT size=3D2>I need to be able to compress files from within a = program,=20 and jiri's and Junko's compression programs are command line = interfaces. Has=20 anybody got routines for compressing/decompressing from within a=20 program?</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Thanks,</FONT></DIV> <DIV><FONT size=3D2>ck</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Why not us the system()=20 ------=_NextPart_000_0006_01BF666F.D6AB0B40--
4. Re: File Compression
- Posted by Ad Rienks <kwibus at ZONNET.NL> Jan 24, 2000
- 482 views
- Last edited Jan 25, 2000
------=_NextPart_000_0036_01BF66B4.15598D00 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello ck, I haven't tested nor seen the programs, but they are Euphoria programs, = aren't they? Well, then you must be able to rewrite them so that the = routines are used from within the program. The only alteration should be = in the part were the command line is read. If you change that to read in = (an) internal variable(s), or user input, and then to return to the rest = of the program, everything should work, I guess. Hope this helps, Ad ----- Oorspronkelijk bericht -----=20 Van: cklester=20 Aan: EUPHORIA at LISTSERV.MUOHIO.EDU=20 Verzonden: maandag 24 januari 2000 18:23 Onderwerp: File Compression I need to be able to compress files from within a program, and jiri's = and Junko's compression programs are command line interfaces. Has = anybody got routines for compressing/decompressing from within a = program? Thanks, ck ------=_NextPart_000_0036_01BF66B4.15598D00 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV>Hello ck,</DIV> <DIV> </DIV> <DIV>I haven't tested nor seen the programs, but they are Euphoria = programs,=20 aren't they? Well, then you must be able to rewrite them so that the = routines=20 are used from within the program. The only alteration should be in the = part were=20 the command line is read. If you change that to read in (an) = internal=20 variable(s), or user input, and then to return to the rest of the = program,=20 everything should work, I guess.</DIV> <DIV> </DIV> <DIV>Hope this helps, Ad</DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Oorspronkelijk bericht ----- = </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>Van:</B>=20 <A href=3D"mailto:cklester at HOTPOP.COM" = title=3Dcklester at HOTPOP.COM>cklester</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Aan:</B> <A=20 href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20 title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> = </DIV> <DIV style=3D"FONT: 10pt arial"><B>Verzonden:</B> maandag 24 januari = 2000=20 18:23</DIV> <DIV style=3D"FONT: 10pt arial"><B>Onderwerp:</B> File = Compression</DIV> <DIV><BR></DIV> <DIV><FONT size=3D2>I need to be able to compress files from within a = program,=20 and jiri's and Junko's compression programs are command line = interfaces. Has=20 anybody got routines for compressing/decompressing from within a=20 program?</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Thanks,</FONT></DIV> <DIV><FONT size=3D2>ck</FONT></DIV> ------=_NextPart_000_0036_01BF66B4.15598D00--
5. Re: File Compression
- Posted by Jiri Babor <J.Babor at GNS.CRI.NZ> Jan 25, 2000
- 470 views
ck wrote: > I need to be able to compress files from within a program, and > jiri's and Junko's compression programs are command line interfaces. > Has anybody got routines for compressing/decompressing from within a > program? What are you dealing with, ck? If it's external files, I can whip up an include without too much trouble, but if it is internal Euphoria data, there are, I am sure, better alternatives available. Just let me know. jiri
6. Re: File Compression
- Posted by cklester <cklester at HOTPOP.COM> Jan 24, 2000
- 474 views
jiri, It's external files... my program takes a file on my harddrive, compresses it, and stores it on a floppy... Thanks! ck ----- Original Message ----- From: Jiri Babor <J.Babor at GNS.CRI.NZ> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, January 24, 2000 3:11 PM Subject: Re: File Compression > ck wrote: > > > I need to be able to compress files from within a program, and > > jiri's and Junko's compression programs are command line interfaces. > > Has anybody got routines for compressing/decompressing from within a > > program? > > What are you dealing with, ck? If it's external files, I can whip up > an include without too much trouble, but if it is internal Euphoria > data, there are, I am sure, better alternatives available. Just let > me know. jiri >
7. Re: File Compression
- Posted by Jiri Babor <J.Babor at GNS.CRI.NZ> Jan 25, 2000
- 470 views
Content-type: text/plain; charset=us-ascii Content-Disposition: inline ck wrote: >It's external files... my program takes a file on my harddrive, compresses it, and stores it on a floppy... Ok, the attached module will do the trick, I hope. Just a bit of warning: for larger files, say bigger than 70 or 100 kbytes, you would be probably better off using Junko's huff encoding. It is generally faster and more efficient for larger files. jiri (See attached file: Pack.e) Content-type: application/octet-stream; name="Pack.e"
8. Re: File Compression
- Posted by "C. K. Lester" <cklester at HOTPOP.COM> Jan 25, 2000
- 474 views
Thanks, jiri. I'll try and get this incorporated tomorrow... I mean later today, since it's 12:14 am! DOH! > Ok, the attached module will do the trick, I hope. Just a bit of > warning: for > larger files, say bigger than 70 or 100 kbytes, you would be > probably better off > using Junko's huff encoding. It is generally faster and more efficient for > larger files. jiri > > (See attached file: Pack.e) >
9. Re: File Compression
- Posted by Irv Mullins <irv at ELLIJAY.COM> Jan 25, 2000
- 472 views
On Mon, 24 Jan 2000, you wrote: > >%_ > > I need to be able to compress files from within a program, and jiri's and > Junko's compression programs are command line interfaces. Has anybody got > routines for compressing/decompressing from within a program? > > Thanks, > ck > > Why not us the system() command? Especially if you need to exchange the files with other people, calling Pkzip or WinZip with the system() command would be the best way. Irv
10. File Compression
- Posted by C & K L <candkNOSPAM2ME at TICNET.COM> Oct 01, 1998
- 468 views
Okay, who has the best compression algorithm/program on the EU Contribution Page? Thanks! ck P.S. Please feel free to sell your compression program here... ;)
11. Re: File Compression
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Oct 01, 1998
- 476 views
- Last edited Oct 02, 1998
>Okay, who has the best compression algorithm/program on the EU Contribution >Page? Well, I used Daniel Bernstein's routines for my first version of EDOM> But now there's also routines available of for the gzip format and lha (I believe) .. Benchmarks would tell. There no such thing as a compression algorithm that suits all needs. It is based on a certain predictibility of the data. In other words, need less space for more common data. The definition of "common" is where the ugly part is. Some algorithms are good for text, other for bitmaps. Some are better at patterns (repeatment of a certain text or combination of text), while some are better at mathimatical relationships.. (not that I know any that actually compresses a picture of a circle into a formula though in theory..) Anyways, for what type of data are you gonna compress ? And what the limit on speed and file size (to get the priorities straight) In other words, where do you need it for ? Ralf
12. Re: File Compression
- Posted by C & K L <candkNOSPAM2ME at TICNET.COM> Oct 01, 1998
- 463 views
I'm going to be compressing files that will store sequences (which means either using "print" or other...). The files won't usually be very big, so speed is not a factor. What I want is compression-ability. Even then, it might not be necessary to compress. But I want to know my options. Thanks, Ralf. ck Ralf Nieuwenhuijsen wrote: > Anyways, for what type of data are you gonna compress ? > And what the limit on speed and file size (to get the priorities straight) > > In other words, where do you need it for ? > > Ralf
13. Re: File Compression
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Oct 01, 1998
- 479 views
- Last edited Oct 02, 1998
>I'm going to be compressing files that will store sequences (which means either >using "print" or other...). The files won't usually be very big, so speed is not >a factor. What I want is compression-ability. Even then, it might not be >necessary to compress. But I want to know my options. You could use my EDOM to compress your sequences. And for one dimension sequence, only containing integers, Arthur Adamson has made a quick library. (Called: save_seq) Both are way more efficient than using print () And maybe of interest: the data is not human-readable anymore. Compressing the result of the slow sprint is not recommened. It is memory unfriendly, and slow. If you do not know the structure of your sequence, you can either use EDOM or write you own routines, or use sprint () and try to compress its output. (an LZH would do very well with all the comma's and all the {'s and '}'s .. Ralf
14. Re: File Compression
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Oct 01, 1998
- 480 views
Please Ralf, Give me a clue also on reliable compression and uncompression methods for= sequences (within sequences). Up til now I'm using print en get to save a= nd load, but as the files grow bigger (over 60K and maybe larger) I can use some gain in time, saving and especially loading it. TIA, Ad. Original message: >I'm going to be compressing files that will store sequences (which means= either >using "print" or other...). The files won't usually be very big, so spee= d is not >a factor. What I want is compression-ability. Even then, it might not be= >necessary to compress. But I want to know my options. >Thanks, Ralf. >ck >Ralf Nieuwenhuijsen wrote: >> Anyways, for what type of data are you gonna compress ? >> And what the limit on speed and file size (to get the priorities straight) >> >>In other words, where do you need it for ? >> >> Ralf