[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Metalink (XML) library for Ruby?

Anthony Bryan

1/5/2008 11:22:00 PM

Hi,

Would anyone be interested in working on a Metalink library for Ruby?
There's already one for PHP & Python (
http://code.google.com/p/metalin... ).

Metalink is a simple XML format for describing downloads. Most
metalink files contain mirror lists/p2p (the various ways you can get
a file) and checksums (for file verification). They're frequently used
for large files like ISOs and also contain chunk checksums for
repairing downloads and other info. But they're also used by smaller
things like cURL, OpenOffice.org, podcasts, videos, and other stuff.

Close to 20 download programs support Metalink. There's more info at
http://en.wikipedia.org/wik...

Here's an example ruby-1.8.6-p111.tar.gz.metalink (most would contain
more mirrors, and maybe a description):

Ruby 1.8.6-p111 (md5: c36e011733a3a3be6f43ba27b7cd7485)

<metalink version="3.0" xmlns="http://metalinker.org...
<files>
<file name="ruby-1.8.6-p111.tar.gz">
<verification>
<hash type="md5">c36e011733a3a3be6f43ba27b7cd7485</hash>
</verification>
<resources>
<url type="ftp" location="us"
preference="100">ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.gz&l...
</resources>
</file>
</files>
</metalink>

Thanks,
--
(( Anthony Bryan ... Metalink [ http://www.meta... ]
)) Easier, More Reliable, Self Healing Downloads

32 Answers

Daniel Brumbaugh Keeney

1/6/2008 3:24:00 PM

0

On Jan 5, 2008 5:22 PM, Anthony Bryan wrote:
> Would anyone be interested in working on a Metalink library for Ruby?

Metalinks are very cool. There's some folks working on a wget
implementation in Ruby, and I had proposed they incorporate metalinks,
I don't think they've done that yet, maybe not ever. Some guy named
Dag Odenhall[1] looks started a project for this on sharesource[2],
but it doesn't appear to have anything done. I'm sorry I don't have
time to help you in the near future.

Daniel Brumbaugh Keeney

[1]
http://sharesource.org...
[2]
http://sharesource.org/project/...

Anthony Bryan

1/9/2008 12:08:00 AM

0

On Jan 6, 2008 10:24 AM, Daniel Brumbaugh Keeney
<devi.webmaster@gmail.com> wrote:
> On Jan 5, 2008 5:22 PM, Anthony Bryan wrote:
> > Would anyone be interested in working on a Metalink library for Ruby?
>
> Metalinks are very cool. There's some folks working on a wget
> implementation in Ruby, and I had proposed they incorporate metalinks,
> I don't think they've done that yet, maybe not ever. Some guy named
> Dag Odenhall[1] looks started a project for this on sharesource[2],
> but it doesn't appear to have anything done. I'm sorry I don't have
> time to help you in the near future.
>
> Daniel Brumbaugh Keeney
>
> [1]
> http://sharesource.org...
> [2]
> http://sharesource.org/project/...

Daniel, thanks a lot for the encouragement!

I hadn't known about metalink4r, even tho there was never a release
it's at least interesting to know that someone thought about doing it
:)

If this seems like something that you'd be interesting in working on
later, please let me know. Or if you're just interested in metalinks,
we have a pretty low traffic discussion list at
http://groups.google.com/group/metalink-... , feel free to join
us.

--
(( Anthony Bryan ... Metalink [ http://www.meta... ]
)) Easier, More Reliable, Self Healing Downloads

Rene Leonhardt

1/9/2008 4:29:00 PM

0

On 6 Jan., 00:22, Anthony Bryan <anthonybr...@gmail.com> wrote:
> Hi,
>
> Would anyone be interested in working on a Metalink library for Ruby?
> There's already one for PHP & Python (http://code.google.com/p/metalin...).

Hello Anthony,

I would like to help porting my library to Ruby.
That would be a good way to learn it ;)
But I would need someone to help with the trickier parts at least:
- reading XML
- hash libraries (MD5, SHA-1, SHA-256, maybe ED2K)
- HTTP requests and responses including headers
- bin2ascii for creating and parsing BitTorrent

The Python code is a bit more than 2000 lines long and I would port
most of them.

Anyone interested?

Frederick Cheung

1/9/2008 4:36:00 PM

0


On 9 Jan 2008, at 16:29, Rene Leonhardt wrote:

> On 6 Jan., 00:22, Anthony Bryan <anthonybr...@gmail.com> wrote:
>> Hi,
>>
>> Would anyone be interested in working on a Metalink library for Ruby?
>> There's already one for PHP & Python (http://code.google.com/p/metalin...
>> ).
>
> Hello Anthony,
>
> I would like to help porting my library to Ruby.
> That would be a good way to learn it ;)
> But I would need someone to help with the trickier parts at least:
> - reading XML
> - hash libraries (MD5, SHA-1, SHA-256, maybe ED2K)
> - HTTP requests and responses including headers
> - bin2ascii for creating and parsing BitTorrent
>
> The Python code is a bit more than 2000 lines long and I would port
> most of them.

None of that's terribly difficult, I'd be happy to lend a hand (and I
wrote metalink support into an app on the mac, so I at least have a
vague idea of what's going on :-) )

Fred

Anthony Bryan

1/9/2008 8:56:00 PM

0

On Jan 9, 2008 11:29 AM, Rene Leonhardt <rene.leonhardt@googlemail.com> wrote:
> On 6 Jan., 00:22, Anthony Bryan <anthonybr...@gmail.com> wrote:
> > Hi,
> >
> > Would anyone be interested in working on a Metalink library for Ruby?
> > There's already one for PHP & Python (http://code.google.com/p/metalin...).
>
> Hello Anthony,
>
> I would like to help porting my library to Ruby.
> That would be a good way to learn it ;)
> But I would need someone to help with the trickier parts at least:
> - reading XML
> - hash libraries (MD5, SHA-1, SHA-256, maybe ED2K)
> - HTTP requests and responses including headers
> - bin2ascii for creating and parsing BitTorrent
>
> The Python code is a bit more than 2000 lines long and I would port
> most of them.
>
> Anyone interested?

Rene, that would be great if you & Fred could collaborate.

I take it you've seen Fred's reply, he worked on Speed Download (a
cool and absolutely gorgeous download manager) from
http://www.ya...

small world, didn't expect to run into both you guys here :)

--
(( Anthony Bryan ... Metalink [ http://www.meta... ]
)) Easier, More Reliable, Self Healing Downloads

rst0wxyz

2/8/2014 7:38:00 PM

0

On Saturday, February 8, 2014 11:01:41 AM UTC-8, forc...@gmail.com wrote:
> On Thursday, 6 February 2014 12:00:52 UTC+8, rst9 wrote:
> > Can China Kill US Carriers?
> Your question go to the heart of warfare...and arms race.
> In the past wars, enemies matched jet fighters with jet fighters, tanks with tanks, aircraft carriers with aircraft carriers. ..in a form of arm races.

It is still true today.
China and the U.S. ARE definitely in an arms race.
China is building:
1: fighter planes.
2: carriers.
3: submarines.
4: ICBMs
.
.
.
to match the U.S.

> In the battle of Midway, the carrier forces of Japan fought the US carrier forces. Japan lost all their carriers and subsequently cannot stop US carreirs from destroying Japan naval bases and US troops from landing on Japan.. Such warfare was decisive...in the past.
>
> Since the Vietnam war and proven again in the Iraq war, a stronger carrier force, a stronger air force and a stronger tank force is useless...absolutely useless...you can lose a war against an enemy who avoid facing you at your strongest...but hit you where you are most vulnerable.(using Tsun Tze's war strategy)

Vietnam, Iraq, Afghanistan,...
are a different types of war, a war of fire-power against the will-power of the local people.

In a war between the U.S. and China, first, it's a war of fire-power against fire-power.

The winner of the fire-power component of the war then has a decision of two methods of ending the war:
1: total destruction of the enemy's country, which means
dropping nuclear bombs all over the enemy's countryside.
2: conventional fire-power against will-power of the people
like the Vietnam War.

> China can NEVER hope to match the USA in terms of air power, sea power and land power...not in another 100 years.

You're wrong.
Today, because of China's massive population, China CERTAINLY can match America in term of air, sea and land power. As I have said before, who knows where the Chinese hide their manufacturing facilities in what mountain range and how many. China certainly can outlast America in a protracted war like the Vietnam War. The longer the war goes on, the less likely America can win.

> China will be stupid if she try to build better and more carriers than the USA, build better and faster jets than the USA. China is NOT stupid.

And yet, that is exactly what China is doing today.
China is building more carriers, more fighter planes, more tanks, more ships,...

China is preparing to counter the U.S. in every part of the world.


> But can she stop the US carriers...can she destroy the US carreirs and prevent the USA from defeating China like what happened to Japan in WWII. (purely in defensive strategy)

The answer is definitely a yes.
China is NOT building these for nothing. It's to counter the U.S. around the world.
The anti satellite missile.
The hypersonic missiles.
The DF-21D.
more submarines.
more fighter planes, carriers, ships,...

> China found the answer. Now China can kill the US carriers in waters near China in a number of ways...
>
> She can sink the US carriers using the DF 21-D missiles,... she can sink the US carriers using the sea-hugging super sonic Sunburn missiles,... she can get very near to the carriers and sink them with powerful bombs and missiles. In a war with the USA, China will most probably use all three ways to kill the US carriers.

As some people have speculated:
China has demonstrated China's capability by firing a missile off the coast of California.

The U.S. announced the hypersonic missile test in China on January 9th, 2014.
The U.S. military knew what had happening on November 8th, 2010 off the coast of California. They just don't want to let the American public know.

rst0wxyz

2/8/2014 11:37:00 PM

0

On Saturday, February 8, 2014 2:53:47 PM UTC-8, Fisjono wrote:
> In a war between China and the US, we MUST ask who will China be facing
> against other than the USA?
> #1 NATO - 28 countries

NATO countries are mostly broke.
They have a big fight within their own country.

> Etcetera.....etcetera......etcetera, PLUS Non NATO Allies in Asia,
> Africa, Europe, etcetera, etcetera....

NATO allies?
Other countries in Asia except Japan, Africa, South America and the Middle East would be very happy to have the U.S. and NATO gone down the drain in defeat.

> Who will the US be facing against?

Where is the U.S. have troops fighting now? Afghanistan for the last 12 - 13 years, and troops stationed all around the world.

There is no need for China to get involved. The U.S. is in a mess already around te world.

> PRC + Yale Guen Mar...mBwahahahhaahahaha...preeeettt!!!

> Does China want Japanese soldiers to rape their women again?

This time, it will be the other way around.

Coptic Priest Zakaria Boutros ( Botros ) , the instigator for the film Innocences of the M

2/9/2014 1:03:00 AM

0

REST WYSE

you said products come out from China are craps



How about DF-21D ?



is DF-21D a crap?






Saturday, February 8, 2014 11:38:17 AM UTC-8, Resty Wyse wrote:
> On Saturday, February 8, 2014 11:01:41 AM UTC-8, forc...@gmail.com wrote:
>
> > On Thursday, 6 February 2014 12:00:52 UTC+8, rst9 wrote:
>
> > > Can China Kill US Carriers?
>
> > Your question go to the heart of warfare...and arms race.
>
> > In the past wars, enemies matched jet fighters with jet fighters, tanks with tanks, aircraft carriers with aircraft carriers. ..in a form of arm races.
>
>
>
> It is still true today.
>
> China and the U.S. ARE definitely in an arms race.
>
> China is building:
>
> 1: fighter planes.
>
> 2: carriers.
>
> 3: submarines.
>
> 4: ICBMs
>
> .
>
> .
>
> .
>
> to match the U.S.
>
>
>
> > In the battle of Midway, the carrier forces of Japan fought the US carrier forces. Japan lost all their carriers and subsequently cannot stop US carreirs from destroying Japan naval bases and US troops from landing on Japan. Such warfare was decisive...in the past.
>
> >
>
> > Since the Vietnam war and proven again in the Iraq war, a stronger carrier force, a stronger air force and a stronger tank force is useless...absolutely useless...you can lose a war against an enemy who avoid facing you at your strongest...but hit you where you are most vulnerable.(using Tsun Tze's war strategy)
>
>
>
> Vietnam, Iraq, Afghanistan,...
>
> are a different types of war, a war of fire-power against the will-power of the local people.
>
>
>
> In a war between the U.S. and China, first, it's a war of fire-power against fire-power.
>
>
>
> The winner of the fire-power component of the war then has a decision of two methods of ending the war:
>
> 1: total destruction of the enemy's country, which means
>
> dropping nuclear bombs all over the enemy's countryside.
>
> 2: conventional fire-power against will-power of the people
>
> like the Vietnam War.
>
>
>
> > China can NEVER hope to match the USA in terms of air power, sea power and land power...not in another 100 years.
>
>
>
> You're wrong.
>
> Today, because of China's massive population, China CERTAINLY can match America in term of air, sea and land power. As I have said before, who knows where the Chinese hide their manufacturing facilities in what mountain range and how many. China certainly can outlast America in a protracted war like the Vietnam War. The longer the war goes on, the less likely America can win.
>
>
>
> > China will be stupid if she try to build better and more carriers than the USA, build better and faster jets than the USA. China is NOT stupid.
>
>
>
> And yet, that is exactly what China is doing today.
>
> China is building more carriers, more fighter planes, more tanks, more ships,...
>
>
>
> China is preparing to counter the U.S. in every part of the world.
>
>
>
>
>
> > But can she stop the US carriers...can she destroy the US carreirs and prevent the USA from defeating China like what happened to Japan in WWII. (purely in defensive strategy)
>
>
>
> The answer is definitely a yes.
>
> China is NOT building these for nothing. It's to counter the U.S. around the world.
>
> The anti satellite missile.
>
> The hypersonic missiles.
>
> The DF-21D.
>
> more submarines.
>
> more fighter planes, carriers, ships,...
>
>
>
> > China found the answer. Now China can kill the US carriers in waters near China in a number of ways...
>
> >
>
> > She can sink the US carriers using the DF 21-D missiles,... she can sink the US carriers using the sea-hugging super sonic Sunburn missiles,... she can get very near to the carriers and sink them with powerful bombs and missiles. In a war with the USA, China will most probably use all three ways to kill the US carriers.
>
>
>
> As some people have speculated:
>
> China has demonstrated China's capability by firing a missile off the coast of California.
>
>
>
> The U.S. announced the hypersonic missile test in China on January 9th, 2014.
>
> The U.S. military knew what had happening on November 8th, 2010 off the coast of California. They just don't want to let the American public know.

rst9

2/9/2014 2:45:00 AM

0

On Saturday, February 8, 2014 5:02:55 PM UTC-8, Jesus 's Mother Mary copied Hera Godeese of Earth wrote:
> REST WYSE
> you said products come out from China are craps
> How about DF-21D ?
> is DF-21D a crap?

Let's hope we will never find out.

Satish

2/9/2014 8:48:00 AM

0

On Saturday, February 8, 2014 11:38:17 AM UTC-8, Resty Wyse wrote:
> On Saturday, February 8, 2014 11:01:41 AM UTC-8, forc...@gmail.com wrote:
>
> > On Thursday, 6 February 2014 12:00:52 UTC+8, rst9 wrote:
>
> > > Can China Kill US Carriers?
>
> > Your question go to the heart of warfare...and arms race.
>
> > In the past wars, enemies matched jet fighters with jet fighters, tanks with tanks, aircraft carriers with aircraft carriers. ..in a form of arm races.
>
>
>
> It is still true today.
>
> China and the U.S. ARE definitely in an arms race.
>
> China is building:
>
> 1: fighter planes.
>
> 2: carriers.
>
> 3: submarines.
>
> 4: ICBMs
>
> .
>
> .
>
> .
>
> to match the U.S.
>
>
>
> > In the battle of Midway, the carrier forces of Japan fought the US carrier forces. Japan lost all their carriers and subsequently cannot stop US carreirs from destroying Japan naval bases and US troops from landing on Japan. Such warfare was decisive...in the past.
>
> >
>
> > Since the Vietnam war and proven again in the Iraq war, a stronger carrier force, a stronger air force and a stronger tank force is useless...absolutely useless...you can lose a war against an enemy who avoid facing you at your strongest...but hit you where you are most vulnerable.(using Tsun Tze's war strategy)
>
>
>
> Vietnam, Iraq, Afghanistan,...
>
> are a different types of war, a war of fire-power against the will-power of the local people.
>
>
>
> In a war between the U.S. and China, first, it's a war of fire-power against fire-power.
>
>
>
> The winner of the fire-power component of the war then has a decision of two methods of ending the war:
>
> 1: total destruction of the enemy's country, which means
>
> dropping nuclear bombs all over the enemy's countryside.
>
> 2: conventional fire-power against will-power of the people
>
> like the Vietnam War.
>
>
>
> > China can NEVER hope to match the USA in terms of air power, sea power and land power...not in another 100 years.
>
>
>
> You're wrong.
>
> Today, because of China's massive population, China CERTAINLY can match America in term of air, sea and land power. As I have said before, who knows where the Chinese hide their manufacturing facilities in what mountain range and how many. China certainly can outlast America in a protracted war like the Vietnam War. The longer the war goes on, the less likely America can win.
>
>
>
> > China will be stupid if she try to build better and more carriers than the USA, build better and faster jets than the USA. China is NOT stupid.
>
>
>
> And yet, that is exactly what China is doing today.
>
> China is building more carriers, more fighter planes, more tanks, more ships,...
>
>
>
> China is preparing to counter the U.S. in every part of the world.
>
>
>
>
>
> > But can she stop the US carriers...can she destroy the US carreirs and prevent the USA from defeating China like what happened to Japan in WWII. (purely in defensive strategy)
>
>
>
> The answer is definitely a yes.
>
> China is NOT building these for nothing. It's to counter the U.S. around the world.
>
> The anti satellite missile.
>
> The hypersonic missiles.
>
> The DF-21D.
>
> more submarines.
>
> more fighter planes, carriers, ships,...
>
>
>
> > China found the answer. Now China can kill the US carriers in waters near China in a number of ways...
>
> >
>
> > She can sink the US carriers using the DF 21-D missiles,... she can sink the US carriers using the sea-hugging super sonic Sunburn missiles,... she can get very near to the carriers and sink them with powerful bombs and missiles. In a war with the USA, China will most probably use all three ways to kill the US carriers.
>
>
>
> As some people have speculated:
>
> China has demonstrated China's capability by firing a missile off the coast of California.
>
>
>
> The U.S. announced the hypersonic missile test in China on January 9th, 2014.
>
> The U.S. military knew what had happening on November 8th, 2010 off the coast of California. They just don't want to let the American public know.


It is not at all surprising that Yale Guen Mar is an ardent advocate for the imperialist agenda of CCP dictatorship in Beijing.

As the Dr. Strangelove of soc.culture.china, Yale Guen Mar is stinking up the newsgroup with his inane dreams of mayhem and rapes.

Yale Guen Mar must be one desperate Dr. Strangelove to dream of PLA invading Japan or nukung USA. Yale Guen Mar has gone on to describe his evil orgasmic dream quite vividly:

" ... Chinese troops enter Tokyo, be sure to kill and rape at least 300,000.. And use Japanese civilians for bayonet practice."

http://groups.google.com/group/soc.culture.japan/msg/46c71c... ;

The Tojo regime paid the price for its evil acts. The CCP dictatorship in Beijing too will have to pay for its evil acts if it gets goaded by the likes of Yale Guen Mar (rst0/rst7/rst9) to commit war crimes in Japan or any where else.


Yale Guen Mar, your jaundiced skin isn't the problem, your jaundiced brain is.

Your intelligence is only skin deep. In fact, the only thing deep about you is your hemorrhoid ridden asshole. It is as full of shit as your skull.

In a moment of unguarded candor, didn't you admit what your ex-gf in Merced, CA told you? Didn't you post, "She said I logged on to chat- room and called everybody stupid."?


http://groups.google.com/group/soc.culture.china/msg/2dcef7...


Even your ex-gf knows you don't make sense on the usenet.

Someone like you can end up only in hell.

That's where you will be dragged wily-nily by the Grim Reaper. Heaven has no place for Quislings like you who make 50 cents per post from the CCP from his haven in Merced, CA:

****************

http://en.wikipedia.org/wiki/50_... ;

The 50 Cent Party are Internet commentators (?????, ?????, wanglù pínglùn yuán) hired by the government of the People's Republic of China (both local and central) or the Communist Party to post comments favorable towards party policies in an attempt to shape and sway public opinion on various Internet message boards. The commentators are said to be paid for every post that either steers a discussion away from anti-party or sensitive content on domestic websites, bulletin board systems, and chatrooms, or that advances the Communist
party line.

*************************