smooth
Legendary
Offline
Activity: 2968
Merit: 1198
|
|
March 25, 2013, 08:33:49 PM |
|
I just thought: because you wrote about this flaw, you could also suggest how to correct it.
You know, I did suggest the stackexchange post, which has what I think is the correct algorithm. I have implemented new random algorithm that solves bias flaw. Please ensure that it is correct.
With the caveat that I'm not a PHP programmer at all, it looks right to me.
|
|
|
|
khamark
Member
Offline
Activity: 72
Merit: 10
|
|
March 26, 2013, 12:30:51 AM |
|
I can translate from English to Italian and from Spanish to Italian aswell, i'm a native italian/spanish speaker.(Parents from both sides, i've lived in italy and spanish country aswell for years, right now i'm in Italy) if you need me contact me to see how much work is it
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 26, 2013, 01:16:22 AM |
|
I can translate from English to Italian and from Spanish to Italian aswell, i'm a native italian/spanish speaker.(Parents from both sides, i've lived in italy and spanish country aswell for years, right now i'm in Italy) if you need me contact me to see how much work is it Someone already took Italian translation, but said that he is very busy in near time. You can start working on Italian locale.
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 26, 2013, 03:24:05 AM |
|
Winning ticket determination algorithm have changed to increase produced random number quality. The bias described above was completely eliminated. function getWinningTicket($nonce, $blockHash, $ticketsTotal) { $randMax = 268435455; $remainder = $randMax % $ticketsTotal; $output = -1;
do { $hash = hash('sha256', $nonce . $blockHash); $randHex = substr($hash, strlen($hash) - 7, 7); $x = base_convert($randHex, 16, 10); $output = $x % $ticketsTotal; $nonce .= '0'; } while($x >= ($randMax - $remainder)); return $output + 1; }
Previous version (use for verification of the raffles completed before March 26, 2013, 03:15 UTC): function getWinningTicket($nonce, $blockHash, $ticketsTotal) { $hash = hash('sha256', $nonce . $blockHash); $randHex = substr($hash, strlen($hash) - 7, 7); $randDec = base_convert($randHex, 16, 10); return ($randDec % $ticketsTotal) + 1; }
|
|
|
|
mrmoj
Newbie
Offline
Activity: 23
Merit: 0
|
|
March 26, 2013, 03:41:59 AM |
|
I like it. I blogged recently about a bias I noticed will small (i.e. 50) sets of (contiguous) hashes showing drastic skew, although with much larger sets (i.e. 1,000,000) this was eliminated entirely. I will retry with this new algorithm and see if small sets show improved probability. Thanks!
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 26, 2013, 09:27:41 PM |
|
You can remove users from chat mute list with "/unignore username" command.
|
|
|
|
fghj
Member
Offline
Activity: 65
Merit: 10
|
|
March 27, 2013, 11:03:52 AM |
|
We are happy to announce bonuses for the Peerbet website and Android app translation. You can earn 0.01-0.1 BTC depending from the localization value to the Peerbet (i.e. popular languages will be rewarded higher). You need to translate website's locale files and Android app's strings.xml. If you are interested in, write what languages do you know. I could do Polish translation. From the second one it's this /Peerbet_src/res/values/strings.xml file only?
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 27, 2013, 04:05:39 PM |
|
We are happy to announce bonuses for the Peerbet website and Android app translation. You can earn 0.01-0.1 BTC depending from the localization value to the Peerbet (i.e. popular languages will be rewarded higher). You need to translate website's locale files and Android app's strings.xml. If you are interested in, write what languages do you know. I could do Polish translation. From the second one it's this /Peerbet_src/res/values/strings.xml file only? You can start. strings.xml is the only one file required to translate Android app.
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 27, 2013, 10:15:43 PM Last edit: March 28, 2013, 03:23:24 AM by giantdragon |
|
Now you can send chat message to the concrete user, for example: %user name, Hello, this is private message! (comma is the delimiter, username can contain spaces) Bot owners, please update your scripts to make chat more readable for real users.
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 28, 2013, 03:19:40 AM |
|
The bug causing empty string in the chat PMs that was sent via API have been fixed!
|
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 28, 2013, 04:19:31 PM |
|
Hey, giantdragon, it's been 12 blocks, and I don't see my deposit.
txid: 8d99bcad463e37612a1dff9662856e92251fa0f4babbfae3bc6d801610b0b6c4
We use Bitcoinmonitor for payment notifications and it sometimes goes down. If this downtime is too long, send me an e-mail and I will add your deposit manually. P.S. I see your deposit is credited now!
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 28, 2013, 07:38:41 PM |
|
If you need txID in the raw transaction history, add "txid=1" parameter to the profile-transactions.php call.
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 29, 2013, 05:58:24 AM |
|
1,000,000 games were played on Peerbet!
|
|
|
|
oli123123
Legendary
Offline
Activity: 1445
Merit: 1000
|
|
March 29, 2013, 08:56:36 PM |
|
We are happy to announce bonuses for the Peerbet website and Android app translation. You can earn 0.01-0.1 BTC depending from the localization value to the Peerbet (i.e. popular languages will be rewarded higher). You need to translate website's locale files and Android app's strings.xml. If you are interested in, write what languages do you know. I can translate English to Turkish
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 29, 2013, 09:59:11 PM |
|
I can translate English to Turkish
You can start!
|
|
|
|
karasu
Newbie
Offline
Activity: 38
Merit: 0
|
|
March 30, 2013, 03:07:34 PM |
|
We are happy to announce bonuses for the Peerbet website and Android app translation. You can earn 0.01-0.1 BTC depending from the localization value to the Peerbet (i.e. popular languages will be rewarded higher). You need to translate website's locale files and Android app's strings.xml. If you are interested in, write what languages do you know. Is anyone doing Polish already? If not, I can do it!
|
|
|
|
giantdragon (OP)
Legendary
Offline
Activity: 1582
Merit: 1002
|
|
March 30, 2013, 04:08:53 PM |
|
Is anyone doing Polish already? If not, I can do it!
Someone offered Polish translation, but not answering for 3 days. I think you can do!
|
|
|
|
fghj
Member
Offline
Activity: 65
Merit: 10
|
|
March 30, 2013, 05:03:56 PM |
|
Is anyone doing Polish already? If not, I can do it!
Someone offered Polish translation, but not answering for 3 days. I think you can do! I'm almost finished two files left.
|
|
|
|
karasu
Newbie
Offline
Activity: 38
Merit: 0
|
|
March 30, 2013, 05:09:32 PM |
|
Is anyone doing Polish already? If not, I can do it!
Someone offered Polish translation, but not answering for 3 days. I think you can do! I'm almost finished two files left. Arghh, hate you! I wish I started from z not a Good luck and enjoy your hard earned btc
|
|
|
|
|