Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: gavnfitz, 1 Guest(s)
Thread Closed 
[btpd] BTPD 0.15 - Lightweight and Fast Bittorrent
03-26-2009, 12:20 PM (This post was last modified: 03-26-2009 12:44 PM by Allbest.)
Post: #61
RE: [btpd] BTPD 0.15 FINAL
shurup
(03-25-2009 10:19 PM)shurup Wrote:  About 2Gb - that comes from btpd socket, I had 4.7Gb torent, I connect to btpd socket run get torrent command (tget) and in return I get 2147483647.
Hello! I think you fail to bear smth in mind Smile First of all you can try "btcli ... stat" command Wink (btcli works via BTPD daemon with it's socket).
Secondly I have already fixed these errors. At least for this code http://code.google.com/p/php-btpd/ Wink
Please see bencode.php library. A Function "decode_int" uses another "bad" PHP function "round". You can change line "$result['r'] = round($m[1]);" to a new one "$result['r'] = $m[1];" Please test it Wink
Additionally something like this is necessary in main code: $sess_up=(float)$val[self::SESSUP];
Find all posts by this user
03-26-2009, 07:18 PM
Post: #62
RE: [btpd] BTPD 0.15 FINAL
[Image: 53123044.jpg]

[Image: popcornbanner200.gif]
Find all posts by this user
03-26-2009, 07:20 PM
Post: #63
RE: [btpd] BTPD 0.15 FINAL
Could you post a bigger screenshot? This one is kinda small.
Regarding your red text, known issue. Fix is being worked on.

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
03-26-2009, 07:27 PM (This post was last modified: 03-26-2009 07:34 PM by Snick66.)
Post: #64
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 07:20 PM)Ger Teunis Wrote:  Could you post a bigger screenshot? This one is kinda small.
sorry, my monitor 1680*1050 only...
Undecided

and, how about sort list function?...
[Image: 17251736.jpg]

why files downloading in root of /share/Download ... not in subdir ?

[Image: popcornbanner200.gif]
Find all posts by this user
03-26-2009, 08:10 PM (This post was last modified: 03-26-2009 08:40 PM by shurup.)
Post: #65
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 07:27 PM)Snick66 Wrote:  why files downloading in root of /share/Download ... not in subdir ?

Could you please send me that torrent file, I'll check, because multi-file torrents I tested last release on created sub-folder ok. Thanks.
Allbest Wrote:Hello! I think you fail to bear smth in mind

Don't be rude

Allbest Wrote:Secondly I have already fixed these errors. At least for this code http://code.google.com/p/php-btpd/ Wink

Where did you fix them?

Allbest Wrote:You can change line "$result['r'] = round($m[1]);" to a new one "$result['r'] = $m[1];"

Ok, thanks, I kind of relied on the library being perfect since it was last udated in 2003 and used since. Wouldn't be "$result['r'] = is_numeric($m[1])?$m[1]:0;" more correct?

Allbest Wrote:Additionally something like this is necessary in main code: $sess_up=(float)$val[self::SESSUP];

Don't use it.
Find all posts by this user
03-26-2009, 08:30 PM (This post was last modified: 03-26-2009 09:24 PM by Allbest.)
Post: #66
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 05:43 PM)shurup Wrote:  Don't be rude
Sorry, if it is really rude Sad An English language is not a my native language. Therefore it is possible some misunderstanding

(03-26-2009 05:43 PM)shurup Wrote:  Where did you fix them?
This version currently lives on the my computer. When I'll finish all my plans I'll publisize it...

(03-26-2009 05:43 PM)shurup Wrote:  Ok, thanks, I kind of relied on the library being perfect since it was last udated in 2003 and used since. Wouldn't be "$result['r'] = is_numeric($m[1])?$m[1]:0;" more correct?
May be. In truth I am a newbie in PHP Smile

(03-26-2009 05:43 PM)shurup Wrote:  Don't use it.
At least this correction fixes an error! You should know better of course Smile

(03-26-2009 05:43 PM)shurup Wrote:  <?php
$zzz = 4294967296;

echo is_numeric($zzz)?$zzz:0; echo "
";
echo max($zzz,0); echo "
";
echo $zzz; echo "
";
echo round($zzz); echo "
";
?>

Output:
4294967296
4294967296
4294967296
4294967296

Are these results from POPCORN? I am not a PHP programmer but I see that here we deal with registry overflow and all correction I suggested fixes above-mentioned error Undecided
Additionally what is a type of $m[1] in time of conversion via round? Wink
Find all posts by this user
03-26-2009, 09:00 PM
Post: #67
RE: [btpd] BTPD 0.15 FINAL
Hahahaha

<?php

echo 4294967296;

?>

Output:

2147483647


That's waaaaay tooo cool than I can handle Big GrinBig GrinBig Grin
Find all posts by this user
03-26-2009, 09:06 PM
Post: #68
RE: [btpd] BTPD 0.15 FINAL
Dast ist Fantastic Big GrinBig GrinBig Grin
Find all posts by this user
03-26-2009, 09:40 PM
Post: #69
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 07:27 PM)Snick66 Wrote:  why files downloading in root of /share/Download ... not in subdir ?

Ahaaaaa, I checked CSI, and btpd there is not yet updated to latest version I uploaded yesterday, so don't worry, after release will be updated everything will be fine again.
Find all posts by this user
03-26-2009, 10:41 PM (This post was last modified: 03-26-2009 11:04 PM by Ger Teunis.)
Post: #70
RE: [btpd] BTPD 0.15 FINAL
Done, updated the CSI release and merged last shurup's changes.
The php5-cgi doesn't have this issue.
Like shurup suggested we need to migrate the webui someday from virtual hosting to php5 cgi.

test.cgi
Code:
#!/mnt/syb8634/server/php5-cgi
&lt;?php
echo 4294967296;
?&gt;

returns 4294967296 correctly.

This is really too bad, had a lot of work in getting btpd running in nobody mode. Smile
.


Arr. crap. That was not true

Code:
echo "&lt;?php echo 4294967296; ?&gt;" | /mnt/syb8634/server/php5-cgi

resulted in
Code:
2147483647

shurup, did you get the result back as a correct 'string'?
Perhaps we should just strip everything after the last dot and prevent any number manipulations on it.

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
03-26-2009, 11:58 PM (This post was last modified: 03-27-2009 12:00 AM by Ger Teunis.)
Post: #71
RE: [btpd] BTPD 0.15 FINAL
Found the solution, convert it to float

<?php echo 5140206218.0/1024; ?>
results in
5019732.6347656

and this can be round again Smile

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
03-27-2009, 07:49 AM
Post: #72
RE: [btpd] BTPD 0.15 FINAL
New version is out
It includes that 2GB fixes, enjoy.

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
[+] 3 users say Thank You to Ger Teunis for this post
03-27-2009, 06:42 PM
Post: #73
RE: [btpd] BTPD 0.15 FINAL
(03-27-2009 07:49 AM)Ger Teunis Wrote:  New version is out
It includes that 2GB fixes, enjoy.

thank you very much again , Ger and .... shurup .Wink.
Find all posts by this user
03-27-2009, 09:26 PM
Post: #74
RE: [btpd] BTPD 0.15 final - Lightweight and Fast Bittorrent
0.15.3 - ok! Heart

[Image: popcornbanner200.gif]
Find all posts by this user
03-28-2009, 12:25 AM (This post was last modified: 03-28-2009 01:03 AM by avdim.)
Post: #75
RE: [btpd] BTPD 0.15 final - Lightweight and Fast Bittorrent
Some observations.
1. Still bad permissions with newly downloaded files (at least incomplete). User - nobody, group - 99, as a result can't delete with SMB.
2. Saving settings in UI don't start daemon - need reboot to start it.
3. Once I saw background in UI shifted so that white cloud was in the position where free space is displayed. As a result can't see anyting in this position. Can't reproduce it though.
4. Is it possible to make separate UI for PC, compact with all items clearly seen on one screen in case of many uploaded torrents? Or at least setting how many items display on single page? And saving selection between refreshes of the page as it was in original NMT UI. The best will be separate controlling applications like Transmission Remote GUI but I doubt it is possible without changing btpd code.
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  bittorrent settings jeroen342 1 1,108 05-05-2013 09:16 AM
Last Post: chris57
  a300 will not connect to bittorrent ui donal1682 4 1,796 09-17-2012 08:18 PM
Last Post: miuivaniui
  Disable BitTorrent (Do not start it on restart) hornedratty 4 1,876 06-21-2012 08:57 PM
Last Post: hornedratty
  NZBget: Old recurring problem, but still no fast solution?: Error 403 Forbidden Cherek 5 2,817 12-29-2011 05:28 PM
Last Post: Cherek
  Where is bittorrent on A210 Albie999 4 2,803 07-08-2011 09:39 PM
Last Post: chris57
  NMT BitTorrent and scheduling simonz 8 4,932 05-21-2011 07:30 AM
Last Post: Rusakov2@Netscape.net
  BTPD 0.15 - C200 - Lightweight and Fast Bittorrent vaidyasr 12 7,623 05-09-2011 10:42 AM
Last Post: vaidyasr
  Having issues with bittorrent. philipmediaplayer 0 1,088 03-19-2011 02:31 PM
Last Post: philipmediaplayer
  BitTorrent on C200 BlooDz 1 2,028 11-20-2010 01:47 PM
Last Post: deadlyhifi
  Basic principles of optimizing a bittorrent client Media 0 1,667 08-16-2010 11:43 AM
Last Post: Media

Forum Jump: