Bitcoin Forum
June 17, 2024, 08:35:53 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 »
  Print  
Author Topic: Peerbet.org - Play without house edge!  (Read 106567 times)
smooth
Legendary
*
Offline Offline

Activity: 2968
Merit: 1198



View Profile
March 25, 2013, 08:33:49 PM
 #261

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.

Quote
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 Offline

Activity: 72
Merit: 10


View Profile
March 26, 2013, 12:30:51 AM
 #262

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 Smiley
giantdragon (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1002



View Profile
March 26, 2013, 01:16:22 AM
 #263

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 Smiley
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 Offline

Activity: 1582
Merit: 1002



View Profile
March 26, 2013, 03:24:05 AM
 #264

Winning ticket determination algorithm have changed to increase produced random number quality. The bias described above was completely eliminated.

Code:
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):

Code:
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 Offline

Activity: 23
Merit: 0



View Profile WWW
March 26, 2013, 03:41:59 AM
 #265

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 26, 2013, 09:27:41 PM
 #266

You can remove users from chat mute list with "/unignore username" command.
fghj
Member
**
Offline Offline

Activity: 65
Merit: 10


View Profile
March 27, 2013, 11:03:52 AM
 #267

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 27, 2013, 04:05:39 PM
 #268

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 27, 2013, 10:15:43 PM
Last edit: March 28, 2013, 03:23:24 AM by giantdragon
 #269

Now you can send chat message to the concrete user, for example:

Code:
%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 Offline

Activity: 1582
Merit: 1002



View Profile
March 28, 2013, 03:19:40 AM
 #270

The bug causing empty string in the chat PMs that was sent via API have been fixed!
bomboclat77
Full Member
***
Offline Offline

Activity: 150
Merit: 100


View Profile
March 28, 2013, 05:55:00 AM
 #271

Cool site!!


giantdragon (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1002



View Profile
March 28, 2013, 04:19:31 PM
 #272

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 28, 2013, 07:38:41 PM
 #273

If you need txID in the raw transaction history, add "txid=1" parameter to the profile-transactions.php call.
giantdragon (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1002



View Profile
March 29, 2013, 05:58:24 AM
 #274

1,000,000 games were played on Peerbet!
oli123123
Legendary
*
Offline Offline

Activity: 1445
Merit: 1000



View Profile
March 29, 2013, 08:56:36 PM
 #275

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 29, 2013, 09:59:11 PM
 #276

I can translate English to Turkish
You can start!
karasu
Newbie
*
Offline Offline

Activity: 38
Merit: 0



View Profile WWW
March 30, 2013, 03:07:34 PM
 #277

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 Offline

Activity: 1582
Merit: 1002



View Profile
March 30, 2013, 04:08:53 PM
 #278

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 Offline

Activity: 65
Merit: 10


View Profile
March 30, 2013, 05:03:56 PM
 #279

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 Offline

Activity: 38
Merit: 0



View Profile WWW
March 30, 2013, 05:09:32 PM
 #280

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!  Grin I wish I started from z not a Wink
Good luck and enjoy your hard earned btc
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!