Re: Console Applet

From: Stefan Kaczmarek <stefan_at_thezonie.org>
Date: Tue, 10 Apr 2007 13:10:51 -0700

Nothing like some good smacking ... :)

On Apr 10, 2007, at 1:09 PM, Dylan Douglas wrote:

> I is trying. Will let you know when it is happy and jolly again. ...
> Or you will probably notice it working.
>
>> -----Original Message-----
>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>> Sent: Tuesday, April 10, 2007 12:33 PM
>> To: Ivan Kwok
>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Sergio Alvarez; Dylan Douglas
>> Subject: Re: Console Applet
>>
>> Yup, that's becase the file_info.php is not returning the right info
>> for some reason. (It's not returning the name and size ... And it's
>> the size that it needs to continue...)
>>
>> So ... Wander around and smack people until you find the right person
>> who can fix it. :)
>>
>> - Z
>>
>> On Apr 10, 2007, at 12:28 PM, Ivan Kwok wrote:
>>
>>> Z, I got the following errors when I was downloading some files.
>>>
>>> org.json.JSONException: JSONObject["size"] is not a number.
>>>
>>> at org.json.JSONObject.getDouble(JSONObject.java:416)
>>>
>>> at org.json.JSONObject.getInt(JSONObject.java:434)
>>>
>>> at IndexServerConnection.GetFileInfo(IndexServerConnection.java:
>>> 92)
>>>
>>> at FileTransferSession.run(FileTransferSession.java:52)
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> Exception in thread "Thread-1" java.lang.NullPointerException
>>>
>>> at FileTransferSession.run(FileTransferSession.java:57)
>>>
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> -Ivan
>>>
>>>
>>> -----Original Message-----
>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>> Sent: Monday, April 09, 2007 9:10 PM
>>> To: Ivan Kwok
>>> Subject: Re: Console Applet
>>>
>>> Here you go.
>>>
>>> Now there's a "timeout=<timeout_sec>" where you just put the seconds
>>> timeout in there.
>>>
>>> - Z
>>>
>>> On Apr 9, 2007, at 5:57 PM, Ivan Kwok wrote:
>>>
>>>> Coolio, thanks =)
>>>>
>>>> -Ivan
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>>> Sent: Monday, April 09, 2007 5:56 PM
>>>> To: Ivan Kwok
>>>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Dylan Douglas; Sergio Alvarez
>>>> Subject: Re: Console Applet
>>>>
>>>> Ok, I can add that. :)
>>>>
>>>> On Apr 9, 2007, at 5:51 PM, Ivan Kwok wrote:
>>>>
>>>>> Yep.
>>>>>
>>>>> -Ivan
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>>>> Sent: Monday, April 09, 2007 5:49 PM
>>>>> To: Ivan Kwok
>>>>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Dylan Douglas; Sergio Alvarez
>>>>> Subject: Re: Console Applet
>>>>>
>>>>> What, like it the entire program will kill itself if it hasn't
>>>>> received file data in x number of seconds or something?
>>>>>
>>>>> On Apr 9, 2007, at 4:45 PM, Ivan Kwok wrote:
>>>>>
>>>>>> Z, would it be possible to have a timeout option? Basically, the
>>>>>> console
>>>>>> app will quit if is idling for X amount of seconds. It shouldn't
>>>>>> count
>>>>>> it idle when it's actually downloading something from peers, so
>>>>>> basically when you're receiving file data, you should reset that
>>>>>> timeout
>>>>>> counter.
>>>>>>
>>>>>> Thanks,
>>>>>> -Ivan
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>>>>> Sent: Monday, April 09, 2007 3:46 PM
>>>>>> To: Ivan Kwok
>>>>>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Dylan Douglas
>>>>>> Subject: Re: Console Applet
>>>>>>
>>>>>> It keeps trying to get hosts and never quits. (It also farms Ares
>>>>>> hosts as it connects to Ares hosts and gets back X-Alt hosts when
>>>>>> they're busy or something.)
>>>>>>
>>>>>> On Apr 9, 2007, at 3:24 PM, Ivan Kwok wrote:
>>>>>>
>>>>>>> Z, how long will your app keep trying to download if there is no
>>>>>>> more
>>>>>>> sources to d/l or they're all busy? Or it just keeps trying and
>>>>>>> never
>>>>>>> quits?
>>>>>>>
>>>>>>> -Ivan
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Ivan Kwok
>>>>>>> Sent: Monday, April 09, 2007 3:11 PM
>>>>>>> To: 'Stefan Kaczmarek'
>>>>>>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Dylan Douglas
>>>>>>> Subject: RE: Console Applet
>>>>>>>
>>>>>>> Z, can you add one more option like 'silence' so that it won't
>>>>>>> output
>>>>>>> anything to the console?
>>>>>>> BTW, how to you read "PIECES"? I saw something like 'PIECES :
>>>>>>> 2222222222222222222212222222221100000000'
>>>>>>>
>>>>>>> -Ivan
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Stefan Kaczmarek [mailto:stefan_at_thezonie.org]
>>>>>>> Sent: Monday, April 09, 2007 11:11 AM
>>>>>>> To: Ivan Kwok
>>>>>>> Cc: Ben Ebert; Ty Heath; Jay Mairs; Dylan Douglas
>>>>>>> Subject: Re: Console Applet
>>>>>>>
>>>>>>> Ok, here's the console applet.
>>>>>>>
>>>>>>> To use it, you just say:
>>>>>>>
>>>>>>> java -jar console.jar hash=<hash> [path=<path>]
>> [mb=<mb>] [source]
>>>>>>>
>>>>>>> "hash" is the only requred field. It's the 40-byte sha-1.
>>>>>>>
>>>>>>> If "path" is not set, it just writes it to the current
>>>>>>> folder. It
>>>>>>> will
>>>>>>> not create folders, so if you're going to want it to be put in a
>>>>>>> folder,
>>>>>>> make sure it already exists. "mb" is the number of MB you want
>>>>>>> it to
>>>>>>> download. (Since it deals in multiples of 10MB at this point,
>>>>>>> every
>>>>>>> value will be rounded up to the nearest 10MB.)
>>>>>>>
>>>>>>> If "source" is set, then the app will not close when it is done,
>>>>>>> but
>>>>>>> will instead continue running as a source. If it is not set,
>>>>>>> then it
>>>>>>> will close when it is done.
>>>>>>>
>>>>>>> You can't combine a MB limit with "source", though,
>> because you're
>>>>>>> not
>>>>>>> really a source if you limi the mb downloaded.
>>>>>>>
>>>>>>> Any problems or questions, just let me know.
>>>>>>>
>>>>>>> I'll CVS the source, as well.
>>>>>>>
>>>>>>> Oh, and just and FYI, when you see a bunch of numbers go by in
>>>>>>> parenthesis, that is just a connection attempt. The number is
>>>>>>> the
>>>>>>> "rank"
>>>>>>> of the source. All sources start out with a rank of 0, and
>>>>>>> increase or
>>>>>>> decrease based on if they are connectable, are busy, etc.
>>>>>>>
>>>>>>> - Z
>>>>>>
>>>>>
>>>>
>>>
>>
>>
Received on Fri Sep 14 2007 - 10:56:07 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:48 BST