Bitcoin Forum
July 17, 2019, 09:41:17 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: script for check requirements for next rank v2  (Read 598 times)
giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 05, 2019, 08:33:52 AM
Last edit: June 28, 2019, 10:52:37 AM by giammangiato
Merited by TMAN (10), redsn0w (5), babo (2), Micio (2), bob123 (2), Daniel91 (1), Matt9301 (1), kronos123 (1), Halab (1), fillippone (1), Verde_Mantis (1), Bitlover10 (1)
 #1

Hello, i bake a simple python script and i want to share with community.
This is the script on pastern ->
https://pastebin.com/0tTCAYSA - v2
https://pastebin.com/gm4qxCtt - v1

This script check your current activities and merits and tell missing requirements.

output example with my profile
Code:
UID 889300
Profile: https://bitcointalk.org/index.php?action=profile;u=889300
Merits: 12
Activity: 129
Position: Member
Next Position: Full Member
Missing: ('Merits:', 88, 'Activity:', -9)

Mean, i missing 88 merits.

LICENCE
It is released without a license, use it as you wish. Don't abuse.

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
1563399677
Hero Member
*
Offline Offline

Posts: 1563399677

View Profile Personal Message (Offline)

Ignore
1563399677
Reply with quote  #2

1563399677
Report to moderator
hd49728
Full Member
***
Offline Offline

Activity: 267
Merit: 119



View Profile
June 05, 2019, 08:55:08 AM
 #2

I don't think it is needed, because people know exactly what they have. Especially with merit system, people don't immediately rank up when they hit activity requirements; and they can not easily get required  number of merits to rank up. Moreover, it will save their time to read helpful things in the forum, for their own interests, or spend their time to make helpful posts, rather than spending too much time to run such script and pay too much attention on which requirements they have not met.

witcher_sense
Hero Member
*****
Offline Offline

Activity: 588
Merit: 556


View Profile
June 05, 2019, 09:01:46 AM
 #3

What about Legendary account requirements? Will your script work just as well, even if the activity requirements are not clear?
TryNinja
Legendary
*
Online Online

Activity: 1078
Merit: 1359


CS <3


View Profile
June 05, 2019, 10:20:26 AM
 #4

What about Legendary account requirements? Will your script work just as well, even if the activity requirements are not clear?
By checking the script, it looks like they use the minimum (775 activity) for Legendary account requirements. So, you will only see how much you need to get into the "luck" range (775 - 1030).

hd49728
Full Member
***
Offline Offline

Activity: 267
Merit: 119



View Profile
June 05, 2019, 12:53:44 PM
 #5

By checking the script, it looks like they use the minimum (775 activity) for Legendary account requirements. So, you will only see how much you need to get into the "luck" range (775 - 1030).
There is bob123, whom has not hit lucky number, even activity hits 924 so far: https://bitcointalk.org/index.php?action=profile;u=579628

giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 06, 2019, 12:48:49 PM
 #6

I don't think it is needed, because people know exactly what they have. Especially with merit system, people don't immediately rank up when they hit activity requirements; and they can not easily get required  number of merits to rank up. Moreover, it will save their time to read helpful things in the forum, for their own interests, or spend their time to make helpful posts, rather than spending too much time to run such script and pay too much attention on which requirements they have not met.

I do it for myself. If anyone will use it, better.  Wink

What about Legendary account requirements? Will your script work just as well, even if the activity requirements are not clear?

For legendary rank, i only check the minimum - i can't predice the future.  Grin

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 25, 2019, 10:06:06 AM
 #7

If anyone is interested I could also make a web version with django. In any case, thanks for the merits.
 Cheesy

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
jademaxsuy
Member
**
Offline Offline

Activity: 518
Merit: 21

★777Coin.com★ Fun BTC Casino!


View Profile WWW
June 25, 2019, 03:37:14 PM
 #8

If anyone is interested I could also make a web version with django. In any case, thanks for the merits.
 Cheesy
You deserve it OP, anyway is it your work doing the script? I can't tell if it is easy or not to make it because I am not an IT expert or a programmer. I just think that it is hard to do but since if it is your doings and expertise then maybe it is easier for you OP.

Welsh
Staff
Legendary
*
Offline Offline

Activity: 1638
Merit: 1460



View Profile
June 25, 2019, 04:02:11 PM
 #9

I don't think it is needed, because people know exactly what they have. Especially with merit system, people don't immediately rank up when they hit activity requirements; and they can not easily get required  number of merits to rank up. Moreover, it will save their time to read helpful things in the forum, for their own interests, or spend their time to make helpful posts, rather than spending too much time to run such script and pay too much attention on which requirements they have not met.

I guess there's users who have fulfilled the merit requirements in order to rank up, but haven't hit the activity requirements. Although, the mass majority of users won't have a use for it I imagine there will be a few users who will appreciate it. I haven't checked the script myself, but good work nonetheless.

fillippone
Sr. Member
****
Online Online

Activity: 406
Merit: 724


Self Made Hero Member + merit -activity


View Profile
June 26, 2019, 06:23:12 AM
 #10

I don't think it is needed, because people know exactly what they have. Especially with merit system, people don't immediately rank up when they hit activity requirements; and they can not easily get required  number of merits to rank up. Moreover, it will save their time to read helpful things in the forum, for their own interests, or spend their time to make helpful posts, rather than spending too much time to run such script and pay too much attention on which requirements they have not met.

I guess there's users who have fulfilled the merit requirements in order to rank up, but haven't hit the activity requirements. Although, the mass majority of users won't have a use for it I imagine there will be a few users who will appreciate it. I haven't checked the script myself, but good work nonetheless.
Yeah Welsh,
I am one of that users! I am left with a some activity left to rank up.
As the activity progressing is so complicated and unintelligible by the average user (😜), I am requesting the OP to improve his script giving the user an accurate prediction of the least time needed to get the needed activity, paying attention to the standard cut times for activity build-up adopted in the forum.
If both merits and activity are missing to rank up then it would be nice to add the minimum merits per day to rank up by the minimum date.
I will merit the op when he deliver this improvements!


giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 26, 2019, 08:18:39 AM
 #11


Yeah Welsh,
I am one of that users! I am left with a some activity left to rank up.
As the activity progressing is so complicated and unintelligible by the average user (😜), I am requesting the OP to improve his script giving the user an accurate prediction of the least time needed to get the needed activity, paying attention to the standard cut times for activity build-up adopted in the forum.
If both merits and activity are missing to rank up then it would be nice to add the minimum merits per day to rank up by the minimum date.
I will merit the op when he deliver this improvements!




Yes, i can. I think is a nice improvement. Tomorrow i work on it.

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
bob123
Legendary
*
Offline Offline

Activity: 966
Merit: 1252



View Profile WWW
June 26, 2019, 08:28:40 AM
 #12

There is bob123, whom has not hit lucky number, even activity hits 924 so far: https://bitcointalk.org/index.php?action=profile;u=579628

Sad

Well.. i had a 50% chance to hit it <= 902 activity.

Now, each 14 days it gets more and more probable for me to rank up.. i guess you just have to see the glass half full in this case  Cheesy



For legendary rank, i only check the minimum - i can't predice the future.  Grin

Could you at least try, please?  Smiley

giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 26, 2019, 08:32:47 AM
 #13

Could you at least try, please?  Smiley

I can calculate % of luck with a range of activity. But i dont know the right formula.

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
fillippone
Sr. Member
****
Online Online

Activity: 406
Merit: 724


Self Made Hero Member + merit -activity


View Profile
June 26, 2019, 08:48:18 AM
Last edit: June 26, 2019, 09:49:20 AM by fillippone
Merited by TryNinja (2)
 #14

Could you at least try, please?  Smiley

I can calculate % of luck with a range of activity. But i dont know the right formula.

I supposte something like this:

 if activity>775 then
 luck denominator= rounddown((1030-775)/14,0)
 luck numerator=rounddown((activity-775)/14,0)+1
luck= min(lucknumerator/luckdenominator,100%)

This is something excel- like.


giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 26, 2019, 08:50:53 AM
 #15


I supposte something like this:

 if activity>775 then
 luck denominator= rounddown((1030-775)/14,0
 luck numerator=rounddown((activity-775)/14,0)+1
luck= min(lucknumerator/luckdenominator,100%)

This is something excel- like.


Oh dear! Thank you, i will include this formula on my script.  Kiss
Tomorrow i'll update this thread.

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
bob123
Legendary
*
Offline Offline

Activity: 966
Merit: 1252



View Profile WWW
June 26, 2019, 09:54:53 AM
 #16

I supposte something like this:

 if activity>775 then
 luck denominator= rounddown((1030-775)/14,0)
 luck numerator=rounddown((activity-775)/14,0)+1
luck= min(lucknumerator/luckdenominator,100%)

This is something excel- like.


This formula seems pretty off to me.


For example, with 1029 activity you should be at 100% for getting legendary the next time activity changes (or very close to 100% if you calculate how probable legendary is at given activity).
However, with 1029, you get:

denominator = 18
numerator = 19

luck = min (18, 19, 100) would be 18. That's not close to 100.

fillippone
Sr. Member
****
Online Online

Activity: 406
Merit: 724


Self Made Hero Member + merit -activity


View Profile
June 26, 2019, 11:25:47 AM
Merited by bob123 (3)
 #17

luck= min(lucknumerator/luckdenominator,100%)


This formula seems pretty off to me.

[snip]
luck = min (18, 19, 100) would be 18. That's not close to 100.

luck = min (18/19, 1) would be 18 94%. That's not close to 100%.

Anyway you are messing around with my formula.
With activity of 1029 my formula says 100%, as at the next round you are going to be legendary for sure.

bob123
Legendary
*
Offline Offline

Activity: 966
Merit: 1252



View Profile WWW
June 26, 2019, 11:30:07 AM
 #18

Anyway you are messing around with my formula.


My fault, i have read
luck= min(lucknumerator , luckdenominator , 100%) instead of
luck= min(lucknumerator / luckdenominator, 100%).

I think i am too tired to today.

fillippone
Sr. Member
****
Online Online

Activity: 406
Merit: 724


Self Made Hero Member + merit -activity


View Profile
June 26, 2019, 11:52:05 AM
 #19

Anyway you are messing around with my formula.


My fault, i have read
luck= min(lucknumerator , luckdenominator , 100%) instead of
luck= min(lucknumerator / luckdenominator, 100%).

I think i am too tired to today.

I am  too tired, too old and too hot (as in summer hot) for all this.

giammangiato
Member
**
Offline Offline

Activity: 166
Merit: 49


View Profile
June 27, 2019, 11:12:40 AM
 #20

this is the output for bob123

Code:
Profile: https://bitcointalk.org/index.php?action=profile;u=579628
UID 579628
Nick: bob123
-----
Merits: 1150
Activity: 938
Position: Hero Member
-----
SignUp: October 22, 2015, 04
Last: Today at 11
Mail: hidden
-----
Calculate luck
66.0
Missing: ('Merits:', -150, 'Activity:', -163)

luck 66%


output for not Hero Member is
Code:
Profile: https://bitcointalk.org/index.php?action=profile;u=889300
UID 889300
Nick: giammangiato
-----
Merits: 25
Activity: 144
Position: Member
-----
SignUp: August 16, 2016, 11
Last: Today at 11
Mail: hidden
-----
Next Position: Full Member
Missing: ('Merits:', 75, 'Activity:', -24)

DogeStormBot -> take free doge t.me/DogeStormBot?start=REF-453585349583
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!