[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] fox-tool - interactive gui builder for fxruby

Austin Ziegler

10/6/2003 7:45:00 PM

On Tue, 7 Oct 2003 03:37:04 +0900, Dalibor Sramek wrote:
> I have problems with downloading the file. The size is OK but gzip
> complains about CRC error:
> gzip: fox-tool-0.9.0-preview.tar.gz: invalid compressed data--crc error

> Can you provide a hash of the file? I got this:
> MD5 (fox-tool-0.9.0-preview.tar.gz) = ed3694962cce4e34ec4500844e3a63d7

> I use FreeBSD but I suppose that standard Linux distro could also have
> md5 command.

ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'

Replace <filename> as appropriate.

-austin
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.10.06
* 15.43.16



7 Answers

john

10/6/2003 11:19:00 PM

0

Austin Ziegler wrote:
> On Tue, 7 Oct 2003 03:37:04 +0900, Dalibor Sramek wrote:
>
>>I have problems with downloading the file. The size is OK but gzip
>>complains about CRC error:
>>gzip: fox-tool-0.9.0-preview.tar.gz: invalid compressed data--crc error
>
>
>>Can you provide a hash of the file? I got this:
>>MD5 (fox-tool-0.9.0-preview.tar.gz) = ed3694962cce4e34ec4500844e3a63d7
>
>
>>I use FreeBSD but I suppose that standard Linux distro could also have
>>md5 command.
>
>
> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>
> Replace <filename> as appropriate.
>
> -austin
> --
> austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
> software designer * pragmatic programmer * 2003.10.06
> * 15.43.16
>
hi,
i've uploaded fox-tool-0.10.0-preview.tar.gz to
http://rubyforge.org/project...

hope this conforts also unix users. if still problems arise please report.

MD5 (fox-tool-0.10.0-preview.tar.gz) = 67ee32c67b23e188e4db5955630c60db

thanks to all who give it a try,
-- henon

eg

10/7/2003 6:12:00 AM

0

Austin Ziegler wrote:

>
> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>
> Replace <filename> as appropriate.
>

A newbie question a bit off topic, but when I do this on Windows XP
(using Ruby 1.80-10) I get the following error message;

-e:1: uninitialized constant Digest (NameError)


Is this due to a windows config issue?

E.

john

10/7/2003 8:57:00 AM

0

eg wrote:
> Austin Ziegler wrote:
>
>>
>> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>>
>> Replace <filename> as appropriate.
>>
>
> A newbie question a bit off topic, but when I do this on Windows XP
> (using Ruby 1.80-10) I get the following error message;
>
> -e:1: uninitialized constant Digest (NameError)
>
>
> Is this due to a windows config issue?
>
> E.

i get the same error on windows. however, when you write a small script
like this:
----
require 'digest/md5'

Digest::MD5.new(File.read("<filename>")).hexdigest
----
it works fine.

-- henon

Shajith

10/7/2003 9:07:00 AM

0

henon wrote:

> eg wrote:
>
>> Austin Ziegler wrote:
>>
>>>
>>> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>>>
>>> Replace <filename> as appropriate.
>>>
>>
>> A newbie question a bit off topic, but when I do this on Windows XP
>> (using Ruby 1.80-10) I get the following error message;
>>
>> -e:1: uninitialized constant Digest (NameError)
>>
>>
>> Is this due to a windows config issue?
>>
>> E.
>
>
> i get the same error on windows. however, when you write a small script
> like this:
> ----
> require 'digest/md5'
>
> Digest::MD5.new(File.read("<filename>")).hexdigest
> ----
> it works fine.
>
> -- henon
>
You could try 'require'-ing it on the command line, like,
ruby -rmd5 -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'

Isn't this expected behavior?

--fin

gabriele renzi

10/7/2003 8:23:00 PM

0

il Tue, 07 Oct 2003 06:12:14 GMT, eg <eg@jnk.jnk> ha scritto::

>Austin Ziegler wrote:
>
>>
>> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>>
>> Replace <filename> as appropriate.
>>
>
>A newbie question a bit off topic, but when I do this on Windows XP
>(using Ruby 1.80-10) I get the following error message;
>
>-e:1: uninitialized constant Digest (NameError)
>
>
>Is this due to a windows config issue?
>
I think the line should be:

"require 'digest/md5';p Digest::MD5.new(File.read('f')).hexdigest"

eg

10/8/2003 5:11:00 AM

0

Shajith wrote:
> henon wrote:
>
>>
>> i get the same error on windows. however, when you write a small
>> script like this:
>> ----
>> require 'digest/md5'
>>
>> Digest::MD5.new(File.read("<filename>")).hexdigest
>> ----
>> it works fine.
>>
>> -- henon
>>
> You could try 'require'-ing it on the command line, like,
> ruby -rmd5 -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>
> Isn't this expected behavior?
>
> --fin
>

Thanks everyone. The following single line command worked for me and
printed the result on the command line (Of course the script version
worked as well).

ruby -rmd5 -e 'p Digest::MD5.new(File.read("<filename>")).hexdigest'

meinrad recheis

10/11/2003 7:35:00 PM

0

henon wrote:

> hi,
> i've uploaded fox-tool-0.10.0-preview.tar.gz to
> http://rubyforge.org/project...
>
> hope this comforts also unix users. if still problems arise please report.
>
> MD5 (fox-tool-0.10.0-preview.tar.gz) = 67ee32c67b23e188e4db5955630c60db

sorry, the correct MD5 hexdigest is f98fe86a8d673c0f51e5fe897aaad59a
thanks to hugh sasse who found out why i was able to calculate the wrong
checksum.

> thanks to all who give it a try,

-- henon