create account

Python Libraries: Expanding the Functions by slobberchops

View this thread on: hive.blogpeakd.comecency.com
· @slobberchops ·
$200.09
Python Libraries: Expanding the Functions
Apologies but this will be too heavy for most readers. For Python coders, it may be semi-legible.

I recently wrote a couple of functions to further support the [RandomVoter]( https://peakd.com/hive-163521/@slobberchops/python-libraries-the-random-splash-voter) script. One reason is to stop my head from falling into decay as I now haven't worked for around 9 months.

![PythonLibs - Splash.jpg](https://files.peakd.com/file/peakd-hive/slobberchops/23tHbkj8AudnJmGf78JtTHsLDCVAFBG1wvxqF5g9i7yN3Te3zuvarrWTNzs9ZHF8jiT8G.jpg)

They say IT still has great demand, but not for my niche. At my age I don’t know whether I can be arsed to re-skill and if Splinterlands Land takes off next year, then maybe I will never need to.

Learning Python has been quite fun, and it’s an easy language once you get your head around it. I struggle more with the BEEM library due to inadequate documentation.

Technical people are not re-known for making great docs, and I am a testament to that.

I am unsure whether to make a GitHub repository for all these bits of code. I don’t mind sharing but my confidence as a programmer has never been great.

In the commercial world, I have written many scripts that have been used but have always seen myself as a hack n' slash coder, and that more orthodox coders would sneer at my badly written efforts.

The main thing is that I can get things to work, and that is more important to me than structure and order.

![RedLine.png](https://files.peakd.com/file/peakd-hive/slobberchops/246bHiHbRfQjcEkvuD5ZVRvw29C4Aas1iYDEwtReeDiSQvkVR31FKYpYdHUK9egHprYqW.png)

<H4>Function detecttag</H4>

I have never been a great fan of Actifit posts. I see some that a quite meaty in content and I do upvote these posts if I follow the authors and they are to a good standard.

What I don't want happening is for the RandomVoter script to upvote them as quite often I won't look or inspect their innards.

I needed a way to detect the tags used from the post object and then skip the vote if #actifit was present.

There used to be a method ‘get_tags_used_by_author’ which no longer works. @foxon mentioned in a discord session this had been discounted in HF24.

![image.png](https://files.peakd.com/file/peakd-hive/slobberchops/23t8CSPFBxuKHv7HKi8NLChvGoCqqNzrvPciVLYrx8kHsvmG12r8qC93jrqZcU4wBoEeo.png)

Thanks to @steevc who has used an alternative method I dissected his GitHub code and figured out an easier way.

“tags” is an attribute of the comment property but tough to find in Holger's documentation, or at least with examples.

*strnovotetag* holds the tag for pending posts that I don't want to curate.

Like many of my functions, it returns a Boolean value for the result code.

Next, I needed to add the Def into my main script with some If commands to skip voting depending on the results.

![RedLine.png](https://files.peakd.com/file/peakd-hive/slobberchops/246bHiHbRfQjcEkvuD5ZVRvw29C4Aas1iYDEwtReeDiSQvkVR31FKYpYdHUK9egHprYqW.png)

<H4>Function isfollowed</H4>

My list of votees does contain some accounts that I follow. While I am happy that the four smaller accounts curate these authors, I did not want my large @slobberchops one included.

I generally curate my followers manually and wield larger votes than the default weight of 5% used with RandomVoter.

It would be great if I could detect the accounts on the list, check if @slobberchops is following them, and skip that vote.

This way all accounts benefit from the smaller votes and I can manually hand out bigger ones to accounts I follow.

![image.png](https://files.peakd.com/file/peakd-hive/slobberchops/Eo8ZdCDZ5SFMBMANSca65RXAwRJHvWHeD3HwuKcPh6gTbZ4JuwtPQpnD8mmyhCeku5L.png)

This one was quite easy to lift from Holger's documentation and took less than 30 minutes to craft in my usual style.

I used @meesterboom as the followed account is the string *strvotee* and my account in *strmainvotingaccount*.

Like *detecttag* this function returns a Boolean value and can easily be adapted into the main script, or so I thought!

![RedLine.png](https://files.peakd.com/file/peakd-hive/slobberchops/246bHiHbRfQjcEkvuD5ZVRvw29C4Aas1iYDEwtReeDiSQvkVR31FKYpYdHUK9egHprYqW.png)

After some tinkering to the main script, the release notes added and an updated version (2.0) yielded the result I was looking for worked.

Incorporating the functions into the main script took longer than writing both routines. Perhaps it is my bad structure, which I am fully aware of.

![Vote.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23tmmf7kimEjrsjabrki1CpUp1bYeWPyBgm8ahh7vc4vUX5aihHspmWLDnrKDsaXB6t3p.JPG)

The voting code needed to be relocated into a separate function as I am not a fan of duplicating code. It looks a little more structured now and contains the call to the check posts that have already been voted.

The issue I had was to ensure both functions would be enumerated correctly and I needed to resort to using a Boolean variable named *slobbervote* which would be set to False if the *isfollowed* function returned False.

![IncorporatedIntoMain.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23tSzR72rs5o9seGbxGs1y6mX6L7esCREEFN9H1hCFKsbGZCzCEynrnDuXmeAYcXDcgxF.JPG)

Maybe there is a more elegant solution to my solution but as I have said before, I am still learning and am no coding genius.

To test I needed accounts that have posted in the last 24 hours, one that I follow and one that is an Actifit post.

![GetRandAccount.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23tSzR6hgfq4SZMnGcBrJvK6khbtZnuQyEhE7K7zmnz2kJhvoEShzKeBtCVmJaCBzFm9c.JPG)

For this I can comment out the *getrandaccount* function that returns.., what do you know!.. a random account to vote on, and hard code in other accounts.

![NoVoteAsI Follow.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23t72jnQXZExBZqGc3orFVjaeZrWpQ1gZdgzBEaGxS4JMRm7uX9Zm62N6ZEE8cv8W3HSy.JPG)

Thanks, @chekohler for being my guinea pig on this one. I can see it works and @chekohler will now get random votes from my smaller accounts but not the @slobberchops account as I tend to manually curate his work.

![NoVoteAndIgnoresActifit.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23t72xBf8cigPwm2SpPYQ1uspi5ni9jrzXXhBeAgps2NdT6N3SJz8u2YKnPxubypCg1EQ.JPG)

@trezzahn is another author who I follow and exclusively uses the Actifit tag. This account was perfect for testing my other function, or was it?

Like the previous example, the code exited when it discovered I follow @trezzahn. There is no requirement to check for the Actifit tag as I follow this author.



For the final test, I needed an author who was on my vote list, who I didn't follow, and who used ActiFit tags in their post.

![ActiFit posts.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23tSspxYHVcjbVx5o1WrgpDcCnteA69fHZ278jWmZFxk1XxigSySkLGAmpgEmxr8cYLnt.JPG)

I couldn't find one immediately so scanned ALL ActiFit posts. This is why I don't want to auto-curate these posts. Most of them are [sparse.](https://peakd.com/hive-193552/@likeablespoon321/actifit-likeablespoon321-20220429t092954245z).

I could say shit, but each to their own!

![ActifitNOVOTE.JPG](https://files.peakd.com/file/peakd-hive/slobberchops/23t72xBKxRTvBa4KUwJFBeCY8aYKqsZzFkdzfwf5agnbqpWHrbK2QQdGbyMGHJTWvysTN.JPG)

Sorry @likeablespoon321 but I can't vote for your one line of text, but if you see this, respond, and don't give me any shit I may give you a comment vote. Love the name, but 321?

![RedLine.png](https://files.peakd.com/file/peakd-hive/slobberchops/BqIuXs6C-RedLine.png)

<H6>
 - Earn currency while you play brewing virtual beer with [CryptoBrewMaster](https://www.cryptobrewmaster.io/game/invite?ref=9846a8af82df4dd0bc23192a135df232&code=AlphaBonus)
 - Earn currency while you play and become a global Rock Star with [Rising Star](https://www.risingstargame.com?referrer=slobberchops)
</H6>

<center>
![CurieCurator.jpg](https://files.peakd.com/file/peakd-hive/slobberchops/f5zec6UG-CurieCurator.jpg)
</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 532 others
👎  , , ,
properties (23)
authorslobberchops
permlinkpython-libraries-expanding-the-functions
categoryhive-163521
json_metadata{"app":"peakd/2022.04.6","format":"markdown","tags":["python","stemgeeks","leofinance","proofofbrain","palnet","creativecoin","neoxian","vyb","ctp"],"users":["slobberchops","foxon","steevc","meesterboom","chekohler","trezzahn","trezzahn.","likeablespoon321"],"image":["https://files.peakd.com/file/peakd-hive/slobberchops/23tHbkj8AudnJmGf78JtTHsLDCVAFBG1wvxqF5g9i7yN3Te3zuvarrWTNzs9ZHF8jiT8G.jpg","https://files.peakd.com/file/peakd-hive/slobberchops/246bHiHbRfQjcEkvuD5ZVRvw29C4Aas1iYDEwtReeDiSQvkVR31FKYpYdHUK9egHprYqW.png","https://files.peakd.com/file/peakd-hive/slobberchops/23t8CSPFBxuKHv7HKi8NLChvGoCqqNzrvPciVLYrx8kHsvmG12r8qC93jrqZcU4wBoEeo.png","https://files.peakd.com/file/peakd-hive/slobberchops/Eo8ZdCDZ5SFMBMANSca65RXAwRJHvWHeD3HwuKcPh6gTbZ4JuwtPQpnD8mmyhCeku5L.png","https://files.peakd.com/file/peakd-hive/slobberchops/23tmmf7kimEjrsjabrki1CpUp1bYeWPyBgm8ahh7vc4vUX5aihHspmWLDnrKDsaXB6t3p.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23tSzR72rs5o9seGbxGs1y6mX6L7esCREEFN9H1hCFKsbGZCzCEynrnDuXmeAYcXDcgxF.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23tSzR6hgfq4SZMnGcBrJvK6khbtZnuQyEhE7K7zmnz2kJhvoEShzKeBtCVmJaCBzFm9c.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23t72jnQXZExBZqGc3orFVjaeZrWpQ1gZdgzBEaGxS4JMRm7uX9Zm62N6ZEE8cv8W3HSy.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23t72xBf8cigPwm2SpPYQ1uspi5ni9jrzXXhBeAgps2NdT6N3SJz8u2YKnPxubypCg1EQ.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23tSspxYHVcjbVx5o1WrgpDcCnteA69fHZ278jWmZFxk1XxigSySkLGAmpgEmxr8cYLnt.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/23t72xBKxRTvBa4KUwJFBeCY8aYKqsZzFkdzfwf5agnbqpWHrbK2QQdGbyMGHJTWvysTN.JPG","https://files.peakd.com/file/peakd-hive/slobberchops/BqIuXs6C-RedLine.png","https://files.peakd.com/file/peakd-hive/slobberchops/f5zec6UG-CurieCurator.jpg"]}
created2022-04-29 10:28:24
last_update2022-04-29 10:28:24
depth0
children51
last_payout2022-05-06 10:28:24
cashout_time1969-12-31 23:59:59
total_payout_value100.163 HBD
curator_payout_value99.931 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7,997
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,110
net_rshares200,918,823,660,036
author_curate_reward""
vote details (600)
@ace108 ·
$0.17
Quite cool. Instead of give the author one last post and check for actifit, perhaps you can give 3 strikes and struck out if all 3 were actifit. Just an idea. 
Unfortunately, I found not all the function in the beem documented works as expected but sometimes you have to try the function before you figure out you decide it is not working. 
Technically, I think you can get rid of the detecttag function by using list comprehension or the any() function. Have a look at this:
https://www.geeksforgeeks.org/python-test-if-string-contains-element-from-list/
👍  ,
properties (23)
authorace108
permlinkrb3w7o
categoryhive-163521
json_metadata{"links":["https://www.geeksforgeeks.org/python-test-if-string-contains-element-from-list/"],"app":"hiveblog/0.1"}
created2022-04-29 14:57:36
last_update2022-04-29 14:57:36
depth1
children2
last_payout2022-05-06 14:57:36
cashout_time1969-12-31 23:59:59
total_payout_value0.085 HBD
curator_payout_value0.084 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length555
author_reputation1,021,100,737,485,503
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,752,467
net_rshares171,214,238,905
author_curate_reward""
vote details (2)
@slobberchops ·
I think some of Holger's function no longer work, but as he's now AWOL we will never know. I plan to add AFIT to the detecttag function and 'any' will come in useful.

Python is quite new to me, I'm still learning a lot of new things.
👍  
properties (23)
authorslobberchops
permlinkre-ace108-rb3wl0
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 15:05:36
last_update2022-04-29 15:05:36
depth2
children1
last_payout2022-05-06 15:05:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length234
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,752,700
net_rshares0
author_curate_reward""
vote details (1)
@ace108 ·
To me, sometimes, you just need to imagine there is a simpler way to do it and search for it. 
Especially when you think need to loop through a list or dataframe, then likely the search will find something useful.
👍  
properties (23)
authorace108
permlinkrb3wok
categoryhive-163521
json_metadata{"app":"hiveblog/0.1"}
created2022-04-29 15:07:36
last_update2022-04-29 15:07:36
depth3
children0
last_payout2022-05-06 15:07:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length213
author_reputation1,021,100,737,485,503
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,752,769
net_rshares0
author_curate_reward""
vote details (1)
@ackza ·
Run the python inside of telos as a smart contract hosted on dstor like ipfs or aw3 so its always on
properties (22)
authorackza
permlinkrb5ud2
categoryhive-163521
json_metadata{"app":"hiveblog/0.1"}
created2022-04-30 16:12:42
last_update2022-04-30 16:12:42
depth1
children0
last_payout2022-05-07 16:12:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length100
author_reputation280,292,027,615,726
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id112,782,396
net_rshares0
@barski ·
$0.07
I agree, so far, for me, this is a difficult reading)

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@barski/re-slobberchops-4xnf3f)
👍  , , , ,
properties (23)
authorbarski
permlinkre-slobberchops-4xnf3f
categoryhive-163521
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["hive-163521","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@barski/re-slobberchops-4xnf3f"}
created2022-04-29 12:06:42
last_update2022-04-29 12:06:42
depth1
children0
last_payout2022-05-06 12:06:42
cashout_time1969-12-31 23:59:59
total_payout_value0.034 HBD
curator_payout_value0.033 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length150
author_reputation548,329,493,693,658
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,748,167
net_rshares70,005,863,444
author_curate_reward""
vote details (5)
@bozz ·
$0.17
> Technical people are not re-known for making great docs,

Ain't that the truth!  This looks pretty cool.  I think I would need to see the whole code to really understand what is going on.  I can't figure out if you have to run this manually or if it is all automated.  I'd love to dig into this some, but I honestly don't even know what I would do with it.  
👍  , , , ,
properties (23)
authorbozz
permlinkre-slobberchops-rb3mz0
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:37:51
last_update2022-04-29 11:37:51
depth1
children3
last_payout2022-05-06 11:37:51
cashout_time1969-12-31 23:59:59
total_payout_value0.088 HBD
curator_payout_value0.085 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length360
author_reputation1,484,760,503,648,128
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,583
net_rshares176,212,142,201
author_curate_reward""
vote details (5)
@slobberchops ·
$0.06
While I would love to share the whole script, the writing style is quite haphazard and badly structured. I found this when trying to incorporate these functions in. Last night my head was on fire thinking on how to get all this working and I had to take a break.

The more I practice, the easier it becomes mostly due to re-usable code. If I can remember that I have done it before then its easy to adopt it.
👍  , , , , , ,
properties (23)
authorslobberchops
permlinkre-bozz-rb3n97
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:43:54
last_update2022-04-29 11:43:54
depth2
children2
last_payout2022-05-06 11:43:54
cashout_time1969-12-31 23:59:59
total_payout_value0.031 HBD
curator_payout_value0.030 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length408
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,698
net_rshares64,892,205,558
author_curate_reward""
vote details (7)
@bozz ·
$0.03
I'd likely be lost.  It has been so long since I have coded.  I tried to follow along with what you posted, but many of the pieces didn't seem that intuitive to me.  I guess once you learn the language it probably isn't too bad.
👍  , , , ,
properties (23)
authorbozz
permlinkre-slobberchops-rb3ng0
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:48:00
last_update2022-04-29 11:48:00
depth3
children1
last_payout2022-05-06 11:48:00
cashout_time1969-12-31 23:59:59
total_payout_value0.017 HBD
curator_payout_value0.016 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length228
author_reputation1,484,760,503,648,128
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,796
net_rshares35,954,298,566
author_curate_reward""
vote details (5)
@chasmic-cosm ·
$0.45
Nice work! I always like seeing code-related posts on hive. 

@steevc makes a good point about the loops! 

I've become quite accustomed to the JavaScript `map()`, `filter()`, and `reduce()` style of dealing with lists, so would probably struggle a bit going back to python.

Posted using [Proof of Brain](https://www.proofofbrain.io/@chasmic-cosm/re-slobberchops-l2kbq1hz)
👍  , , , , ,
properties (23)
authorchasmic-cosm
permlinkre-slobberchops-l2kbq1hz
categoryhive-163521
json_metadata{"tags":["proofofbrain"],"format":"markdown","canonical_url":"https://www.proofofbrain.io/@chasmic-cosm/re-slobberchops-l2kbq1hz","app":"proofofbrain/1.1.0"}
created2022-04-29 11:00:27
last_update2022-04-29 11:00:27
depth1
children3
last_payout2022-05-06 11:00:27
cashout_time1969-12-31 23:59:59
total_payout_value0.226 HBD
curator_payout_value0.225 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length373
author_reputation4,159,775,155,640
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,749
net_rshares455,862,812,143
author_curate_reward""
vote details (6)
@beerlover ·
<div class='pull-right'>https://files.peakd.com/file/peakd-hive/beerlover/yiuU6bdf-beerlover20gives20BEER.gif<p><sup><a href='https://hive-engine.com/?p=market&t=BEER'>View or trade </a> <code>BEER</code>.</sup></p></div><center><br> <p>Hey @chasmic-cosm, here is a little bit of <code>BEER</code> from @steevc for you. Enjoy it!</p> <p>Learn how to <a href='https://peakd.com/beer/@beerlover/what-is-proof-of-stake-with-beer'>earn <b>FREE BEER</b> each day </a> by staking your <code>BEER</code>.</p> </center><div></div>
properties (22)
authorbeerlover
permlinkre-chasmiccosm-re-slobberchops-l2kbq1hz-20220429t110338790z
categoryhive-163521
json_metadata{"app":"beerlover/2.0"}
created2022-04-29 11:03:39
last_update2022-04-29 11:03:39
depth2
children0
last_payout2022-05-06 11:03:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length523
author_reputation24,770,396,872,031
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,806
net_rshares0
@slobberchops ·
$0.06
>Nice work! I always like seeing code-related posts on hive.

Thanks, though I fear for most it will be like reading Greek (for non-Greeks). 

>I've become quite accustomed to the JavaScript map(), filter(), and reduce() style of dealing with lists, so would probably struggle a bit going back to python.

I have a lot to learn, and with my background being VBS it helps little. The methods you describe are quite alien to me, but at least now I am aware of them.
👍  , , , , , ,
👎  ,
properties (23)
authorslobberchops
permlinkre-chasmic-cosm-rb3n28
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:39:45
last_update2022-04-29 11:39:45
depth2
children0
last_payout2022-05-06 11:39:45
cashout_time1969-12-31 23:59:59
total_payout_value0.029 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length463
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,617
net_rshares61,410,230,104
author_curate_reward""
vote details (9)
@steevc ·
Python has versions of those functions too. I've not done much with JavaScript, so can't really compare the languages. Fortunately I get to use Python at work.

!BEER
👍  , , ,
properties (23)
authorsteevc
permlinkre-chasmic-cosm-rb3lc9
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:02:33
last_update2022-04-29 11:02:33
depth2
children0
last_payout2022-05-06 11:02:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length166
author_reputation1,049,226,460,943,551
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,791
net_rshares1,925,189,832
author_curate_reward""
vote details (4)
@cmplxty ·
$0.07
Reading this makes me want to delve back into Python! I’ve been trying to do it off and on for the past 3 years and have had pretty good luck reading it and understanding what the code is supposed to do. Where I have challenges is writing something for myself. I need to find a good use case for it. I could use this type of script here as a basis for what I want to do. 

How are you getting the account and posting key in there so it will actually vote? Id be interested to check this out if you do post it on GitHub. I think I started one and dropped a couple small projects I was working on but haven’t been able to pick it back up much of late. I incorporate some learning time in my work week, this might give me some motivation to give it a crack! 

What software are you using? I’ve grown fond of pycharm myself but I know there’s lots out there. 
👍  , , , ,
properties (23)
authorcmplxty
permlinkre-slobberchops-rb4pzr
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 01:40:42
last_update2022-04-30 01:40:42
depth1
children1
last_payout2022-05-07 01:40:42
cashout_time1969-12-31 23:59:59
total_payout_value0.037 HBD
curator_payout_value0.037 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length855
author_reputation562,745,874,858,753
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,767,054
net_rshares77,159,238,326
author_curate_reward""
vote details (5)
@slobberchops ·
I'm using an old version of PrimalScript for my editor. It's hardly ideal and is from around 2007. Software is W10 and Anaconda. I had issues getting all the libraries working, but that's a one time thing.
👍  , , , ,
👎  
properties (23)
authorslobberchops
permlinkre-cmplxty-rb5o9e
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 14:00:51
last_update2022-04-30 14:00:51
depth2
children0
last_payout2022-05-07 14:00:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length205
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,779,161
net_rshares17,113,187,272
author_curate_reward""
vote details (6)
@curation-cartel ·
![Don-1UP-Cheers-Cartel-250px.png](https://files.peakd.com/file/peakd-hive/curation-cartel/23wgDhXHXhDmLCUp4RXCi4QwSwg2eCBXYV3b8uBMLvQ7BDWDG4eFSyWTp58qTjfu5ULQD.png) |  <div class="phishy"><u><h4>You have received a __1UP__ from @entrepidus!</h4></u></div> The following @oneup-cartel family members will soon upvote your post:<br> __<code>@leo-curator, @ctp-curator, @ccc-curator, @stem-curator, @vyb-curator, @pob-curator, @neoxag-curator, @pal-curator</code>__  <br>_And they will bring !PIZZA 🍕_ 
-|-

<sup>[Learn more](https://peakd.com/hive-102223/@flauwy/the-curation-cartel-1up-trigger-smart-voting-mana-and-high-delegation-returns-for-14-different-tribes) about our delegation service to earn daily rewards. Join the family on [Discord](https://discord.gg/H5mxvTrexm).</sup>
properties (22)
authorcuration-cartel
permlinkre-python-libraries-expanding-the-functions-20220430t051257z
categoryhive-163521
json_metadata"{"app": "beem/0.24.26"}"
created2022-04-30 05:12:57
last_update2022-04-30 05:12:57
depth1
children0
last_payout2022-05-07 05:12:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length783
author_reputation1,123,281,846,602
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,770,484
net_rshares0
@deathstarer7 ·
$0.07
woah this is actually my first time seeing so much code in a post and I'm stoked. Nice!
👍  ,
properties (23)
authordeathstarer7
permlinkrb3yot
categoryhive-163521
json_metadata{"app":"hiveblog/0.1"}
created2022-04-29 15:50:54
last_update2022-04-29 15:50:54
depth1
children0
last_payout2022-05-06 15:50:54
cashout_time1969-12-31 23:59:59
total_payout_value0.034 HBD
curator_payout_value0.033 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length87
author_reputation3,076,381,137,781
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,753,924
net_rshares68,372,681,579
author_curate_reward""
vote details (2)
@ecency ·
Your content has been **voted** as a part of [Encouragement program](https://ecency.com/ecency/@good-karma/encouragement-program-continues-82eafcd10a299). Keep up the good work! <br><br>Use Ecency daily to boost your growth on platform! <br><br><b>Support Ecency</b><br>[Vote for new Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B197%5D&approve=true)<br>[Delegate HP and earn more](https://ecency.com/hive-125125/@ecency/daily-100-curation-rewards)
👍  
properties (23)
authorecency
permlinkre-2022429t103454351z
categoryhive-163521
json_metadata{"tags":["ecency"],"app":"ecency/3.0.20-welcome","format":"markdown+html"}
created2022-04-29 10:34:54
last_update2022-04-29 10:34:54
depth1
children0
last_payout2022-05-06 10:34:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length478
author_reputation550,722,819,147,141
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,210
net_rshares303,036,294
author_curate_reward""
vote details (1)
@entrepidus ·
$0.04
I'm a complete noob when it comes to Python, but I appreciate the time spent walking through the code rather than just dumping it for others to parse through. I'm definitely curious about this kind of scripting, so I've bookmarked this for later reference (after I learn up some ;P).

!1UP
👍  , , , ,
properties (23)
authorentrepidus
permlinkre-slobberchops-rb4zr6
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 05:11:27
last_update2022-04-30 05:11:27
depth1
children0
last_payout2022-05-07 05:11:27
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.017 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length289
author_reputation25,517,038,518,446
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,770,462
net_rshares38,414,638,818
author_curate_reward""
vote details (5)
@gikitiki ·
$0.17
Anyone who puts enough comments in their code that I can skim through it and understand what it's supposed to do (without requiring coffee and other stimulants) ... is writing absolutely glorious code.

Not only do you have comments, you have Prints!!!!  I can watch the output stream and actually know where/if it crashed!

IRL, One of my functions is to take 20-30 year old code (mainly "short" scripts) from whatever language it was to a current language.  Most folks don't include comments in their code ... "since <em>everyone</em> understands what this perl function does".  If I'm fluent in the code, it's usually simple ... if not, insert coffee here.

At least now, I can lean heavily on Google to assist me ... instead of having to open up the Tomes of Knowledge.  (Code reference manuals suck)
👍  ,
properties (23)
authorgikitiki
permlinkre-slobberchops-rb3tgl
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 13:57:57
last_update2022-04-29 13:57:57
depth1
children2
last_payout2022-05-06 13:57:57
cashout_time1969-12-31 23:59:59
total_payout_value0.084 HBD
curator_payout_value0.084 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length804
author_reputation16,411,531,408,585
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,750,769
net_rshares170,394,967,692
author_curate_reward""
vote details (2)
@slobberchops ·
Perl... it still makes me shudder. I never got to grips with it.., and it was around 2003 when I was looking at an enormous script written by someone else and thinking... christ!

I know where you are coming from. If I don't add the comments, I will forget how it works, never mind anyone else.
👍  
properties (23)
authorslobberchops
permlinkre-gikitiki-rb3ukc
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 14:21:48
last_update2022-04-29 14:21:48
depth2
children1
last_payout2022-05-06 14:21:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length294
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,751,359
net_rshares0
author_curate_reward""
vote details (1)
@gikitiki ·
$0.07
Perl, Pascal, C, VB .... They all make me shudder if they aren't documented.  But perl.    A hash of a hash of a hash ...   c'mon!!!!  Without comments!!!  It's a nightmare.

<center>

![image.png](https://files.peakd.com/file/peakd-hive/gikitiki/23tkk3PMEeqEXMTDHHCNxhUPgrAAGQCCtmaKUaqnbXCCD6rxg5QGHMPvRhXGbkVydvoq2.png)

</center>

I have to admit ... when I think of the term  "Multidimensional Hash",   this is the last thing that comes to my mind!    

Hrmmmm......  What does come to mind ....

<center>

![image.png](https://files.peakd.com/file/peakd-hive/gikitiki/242hfLg9nCZa28mQP81t63Pvrxb1Vbc14AY7aji1KkLkqongdGmCr7h9hsH9iQ1yTRfhV.png) 
<sub>[Source - Legal in Canada](https://momsdispensary.com/the-best-hash-to-try-in-canada/)</sub>

</center>
👍  ,
properties (23)
authorgikitiki
permlinkre-slobberchops-rb43xe
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 17:44:03
last_update2022-04-29 17:44:03
depth3
children0
last_payout2022-05-06 17:44:03
cashout_time1969-12-31 23:59:59
total_payout_value0.035 HBD
curator_payout_value0.034 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length758
author_reputation16,411,531,408,585
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,756,585
net_rshares70,712,543,646
author_curate_reward""
vote details (2)
@hislab ·
$0.07
This is really great, you know your onion despite you haven't coded for like 9 months. 

Thanks for sharing this insightful and motivating post.

Cheers 
👍  , , , ,
properties (23)
authorhislab
permlinkre-slobberchops-2022429t115023176z
categoryhive-163521
json_metadata{"tags":["hive-163521","python","stemgeeks","leofinance","proofofbrain","palnet","creativecoin","neoxian","vyb","ctp"],"app":"ecency/3.0.27-mobile","format":"markdown+html"}
created2022-04-29 11:50:24
last_update2022-04-29 11:50:24
depth1
children0
last_payout2022-05-06 11:50:24
cashout_time1969-12-31 23:59:59
total_payout_value0.034 HBD
curator_payout_value0.033 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length153
author_reputation1,208,974,802,753
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,853
net_rshares69,982,623,743
author_curate_reward""
vote details (5)
@hivebuzz ·
Congratulations @slobberchops! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png"></td><td>Post with the highest payout of the day.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@slobberchops) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hive-122221/@hivebuzz/pud-202205"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202205">Hive Power Up Day - May 1st 2022</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
properties (22)
authorhivebuzz
permlinknotify-slobberchops-20220430t030130
categoryhive-163521
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-04-30 03:01:30
last_update2022-04-30 03:01:30
depth1
children0
last_payout2022-05-07 03:01:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,069
author_reputation367,966,711,077,555
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,768,482
net_rshares0
@meesterboom ·
$0.35
Sparse is the new shit!

Looks some fairly reasonable code up there. I have always been of the kind that writes small bits to get things done. One day I hope to get a bit pythony
👍  , , , ,
properties (23)
authormeesterboom
permlinkrb3l3l
categoryhive-163521
json_metadata{"app":"hiveblog/0.1"}
created2022-04-29 10:57:24
last_update2022-04-29 10:57:24
depth1
children6
last_payout2022-05-06 10:57:24
cashout_time1969-12-31 23:59:59
total_payout_value0.175 HBD
curator_payout_value0.174 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length178
author_reputation1,600,561,346,359,280
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,677
net_rshares351,941,216,838
author_curate_reward""
vote details (5)
@slobberchops ·
Voting on those one-liner Actifit posts would be embarrassing! I noticed some use *AFIT* and my code skips over those and votes.. DOH! I think I need to tweak it again.
👍  , , , ,
👎  ,
properties (23)
authorslobberchops
permlinkre-meesterboom-rb3l6u
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 10:59:18
last_update2022-04-29 10:59:18
depth2
children5
last_payout2022-05-06 10:59:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length168
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,721
net_rshares16,387,468,149
author_curate_reward""
vote details (7)
@meesterboom ·
I know sometimes people make real posts on Actifit but I cant do it. There is so much dross that when  Isee one I flee for the hills!
👍  , , ,
properties (23)
authormeesterboom
permlinkrb3q1u
categoryhive-163521
json_metadata{"app":"hiveblog/0.1"}
created2022-04-29 12:44:21
last_update2022-04-29 12:44:21
depth3
children0
last_payout2022-05-06 12:44:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length133
author_reputation1,600,561,346,359,280
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,748,896
net_rshares1,891,904,666
author_curate_reward""
vote details (4)
@steevc ·
$0.07
You can check for intersections of sets to see if a post has any of a number of tags. I use that in proofofbrian.

```Python
if c.is_main_post() and tracktags.intersection(post['tags']) and author not in notified:
```
👍  , , , ,
properties (23)
authorsteevc
permlinkre-slobberchops-rb3lh6
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:05:30
last_update2022-04-29 11:05:30
depth3
children3
last_payout2022-05-06 11:05:30
cashout_time1969-12-31 23:59:59
total_payout_value0.035 HBD
curator_payout_value0.034 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation1,049,226,460,943,551
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,838
net_rshares71,152,096,011
author_curate_reward""
vote details (5)
@menox98 ·
I prefer doing little work, the index() method is very useful with high efficiency
👍  , , ,
properties (23)
authormenox98
permlinkre-slobberchops-rb3n7i
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:43:00
last_update2022-04-29 11:43:00
depth1
children0
last_payout2022-05-06 11:43:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length82
author_reputation7,177,297,712,342
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,747,680
net_rshares1,879,345,435
author_curate_reward""
vote details (4)
@myrv ·
$0.04
I am very interested in learning this stuff I wish I had the opportunity to really get into programming when I was younger but I only learned hypertext. Really great work thanks for all your efforts keep it up
👍  , , , ,
properties (23)
authormyrv
permlinkre-slobberchops-2022429t19358780z
categoryhive-163521
json_metadata{"tags":["hive-163521","python","stemgeeks","leofinance","proofofbrain","palnet","creativecoin","neoxian","vyb","ctp"],"app":"ecency/3.0.27-mobile","format":"markdown+html"}
created2022-04-30 01:04:00
last_update2022-04-30 01:04:00
depth1
children0
last_payout2022-05-07 01:04:00
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.017 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length209
author_reputation546,226,260,351
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,766,396
net_rshares36,962,640,945
author_curate_reward""
vote details (5)
@oblivioncubed ·
$0.04
Simple but effective little script. I like it! Some other folks already pointed out gains you can make on the efficiency end so I won't reiterate those. Real nice though, I've got to get better about leveraging scripts to automate shit I hate (like posting to Twitter) one of these days 
👍  , , , ,
properties (23)
authoroblivioncubed
permlinkre-slobberchops-rb4uad
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 03:13:27
last_update2022-04-30 03:13:27
depth1
children0
last_payout2022-05-07 03:13:27
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.017 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length287
author_reputation124,797,691,388,831
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,768,735
net_rshares38,401,579,897
author_curate_reward""
vote details (5)
@onw ·
$0.17
Good to see you coding again Slobberchops, got to keep those brain cells moving!

onw
👍  ,
properties (23)
authoronw
permlinkre-slobberchops-rb3uek
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 14:18:21
last_update2022-04-29 14:18:21
depth1
children4
last_payout2022-05-06 14:18:21
cashout_time1969-12-31 23:59:59
total_payout_value0.084 HBD
curator_payout_value0.084 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length85
author_reputation15,571,929,325,531
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,751,286
net_rshares170,240,264,367
author_curate_reward""
vote details (2)
@slobberchops ·
This is probably something you could get into, I know you are capable. I saw that VB6 app you wrote in 2014 for monitoring BitCoin.. though I didn't know what the hell it did! Looked good though.
👍  
properties (23)
authorslobberchops
permlinkre-onw-rb3up9
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 14:24:45
last_update2022-04-29 14:24:45
depth2
children3
last_payout2022-05-06 14:24:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length195
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,751,425
net_rshares0
author_curate_reward""
vote details (1)
@b8l · (edited)
$0.17
That would be the VB.NET app that traded alt coin currency pairs on the Cryptsy.com Exchange via Cryptsy's Restful API.

I had fun writing that, then decided to convert it to C#.NET.

Then Cryptsy fell by the wayside amd I lost my whopping $40 investment.

That was shortly after I got bored of trying to mine cr*p coins with graphics cards lol.

I also tried mining Bitcoin with a Raspberry Pi, a 49 port USB 2.0 Hub and 9 USB Ant Miners, those were the days.

(before any one gets excited and thinks I'm rich, I'm not. Ant Miners where not the ideal hardware for raking it in mining Bitcoin in 2014)

After Cryptsy fell, I got bored with it all and returned to real life, then some guys took me for brunch and started talking about NFT's. That's when it all started again.

Thanks Slobberchops :)

onw / b8l

Posted Using [LeoFinance <sup>Beta</sup>](https://leofinance.io/@b8l/re-slobberchops-5qodkr)
👍  ,
properties (23)
authorb8l
permlinkre-slobberchops-5qodkr
categoryhive-163521
json_metadata{"app":"leofinance/0.2","format":"markdown","tags":["hive-163521","leofinance","hive-167922"],"canonical_url":"https://leofinance.io/@b8l/re-slobberchops-5qodkr","links":["https://leofinance.io/@b8l/re-slobberchops-5qodkr"]}
created2022-04-29 22:15:30
last_update2022-04-29 22:16:24
depth3
children2
last_payout2022-05-06 22:15:30
cashout_time1969-12-31 23:59:59
total_payout_value0.087 HBD
curator_payout_value0.086 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length903
author_reputation102,743,660,504
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,762,801
net_rshares176,915,509,657
author_curate_reward""
vote details (2)
@remilgresenbach ·
$0.07
Your coding looks pretty good to me. I think your self-esteem may be a bit shot, with you saying you're unemployed for nine months now. 

Easy solution: Make a list of 10 freelance platforms, like Fiverr and Freelancer, and post what you can do there. You'll be flooded with work in no time.

 Judging by your article here you can express yourself better than many programmers I know, so you'll deal easily with clients coming to you via those freelance platforms.

 Hope your fortunes turn fast for the better. 😁
👍  , , , ,
properties (23)
authorremilgresenbach
permlinkre-slobberchops-2022430t12844159z
categoryhive-163521
json_metadata{"tags":["python","stemgeeks","leofinance","proofofbrain","palnet","creativecoin","neoxian","vyb","ctp"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-04-29 23:28:45
last_update2022-04-29 23:28:45
depth1
children1
last_payout2022-05-06 23:28:45
cashout_time1969-12-31 23:59:59
total_payout_value0.037 HBD
curator_payout_value0.037 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length513
author_reputation81,343,060,772
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,764,354
net_rshares77,099,884,813
author_curate_reward""
vote details (5)
@slobberchops ·
> like Fiverr and Freelancer, 

I did look on there, but they want the work for peanuts. I can get more on HIVE posting my stuff!
👍  , , , ,
👎  
properties (23)
authorslobberchops
permlinkre-remilgresenbach-rb5ob3
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 14:01:51
last_update2022-04-30 14:01:51
depth2
children0
last_payout2022-05-07 14:01:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length129
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,779,195
net_rshares17,117,935,529
author_curate_reward""
vote details (6)
@revisesociology ·
$0.17
No response from likeable spoon yet then?
👍  ,
properties (23)
authorrevisesociology
permlinkre-slobberchops-rb40p9
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 16:34:21
last_update2022-04-29 16:34:21
depth1
children1
last_payout2022-05-06 16:34:21
cashout_time1969-12-31 23:59:59
total_payout_value0.085 HBD
curator_payout_value0.085 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length41
author_reputation1,649,517,414,950,486
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,754,963
net_rshares170,950,855,313
author_curate_reward""
vote details (2)
@slobberchops ·
Not a word, I am not surprised!
👍  
properties (23)
authorslobberchops
permlinkre-revisesociology-rb41mm
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 16:54:21
last_update2022-04-29 16:54:21
depth2
children0
last_payout2022-05-06 16:54:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,755,412
net_rshares0
author_curate_reward""
vote details (1)
@steevc · (edited)
$0.38
It's all good fun. Python and beem is a powerful combination, but it can be hard to work out what functions to use. I need to play with them some more. I could do some stuff around tenkminnows to make it more useful.

You could check the length of posts as part of deciding if they are worthy of a vote. I know some bots count words.

A couple of Python things. If a function returns a list you can check if something is in there like this rather than looping:

```Python
from beem.account import Account
print('steevc' in Account("slobberchops").get_following())
```

You can do a lot in one line. It may be quicker than a loop if that matters.

When checking a boolean you don't really need the == True, but it does no harm if you find it easier to read.
👍  , , , , ,
properties (23)
authorsteevc
permlinkre-slobberchops-rb3kne
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 10:47:39
last_update2022-04-29 10:48:12
depth1
children4
last_payout2022-05-06 10:47:39
cashout_time1969-12-31 23:59:59
total_payout_value0.192 HBD
curator_payout_value0.189 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length756
author_reputation1,049,226,460,943,551
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,449
net_rshares385,171,468,111
author_curate_reward""
vote details (6)
@slobberchops ·
$0.15
>You could check the length of posts as part of deciding if they are worthy of a vote. I know some bots count words.

This was something I was going to incorporate into the next change. I have yet to find an example in Holger's docs.

>You can do a lot in one line. It may be quicker than a loop if that matters.

I once wrote a VB6 Forms app when working for HBOS (Now Lloyds Banking Group), and had to hand over the source when I left. I feel sorry for the person who had to dissect what I had done. It worked but even I struggled to read it!

>When checking a boolean you don't really need the == True, but it does no harm if you find it easier to read.

![image.png](https://files.peakd.com/file/peakd-hive/slobberchops/48RQZHXvpJ6H6Huex6oJijSNccYqgrsfF6ZGGCTJxQu83ey2D32TT2b4DoMnirGCZY.png)

This I do know and the function calls rely on True using the just the If statement, but on other occasions its stated more obviously.

In the proper coding world, I guess it has to conform all one way or another?
👍  , , , ,
👎  ,
properties (23)
authorslobberchops
permlinkre-steevc-rb3l3i
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 10:57:18
last_update2022-04-29 10:57:18
depth2
children3
last_payout2022-05-06 10:57:18
cashout_time1969-12-31 23:59:59
total_payout_value0.074 HBD
curator_payout_value0.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,009
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,675
net_rshares148,623,050,643
author_curate_reward""
vote details (7)
@steevc ·
$0.07
There has to be a compromise between being concise and being readable, but doing things in one line can be more efficient. There's a lot you can do with lists without resorting to a loop. Can always add a comment to make it clear what was intended.
👍  , , , ,
properties (23)
authorsteevc
permlinkre-slobberchops-rb3l9l
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 11:00:57
last_update2022-04-29 11:00:57
depth3
children2
last_payout2022-05-06 11:00:57
cashout_time1969-12-31 23:59:59
total_payout_value0.035 HBD
curator_payout_value0.034 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length248
author_reputation1,049,226,460,943,551
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,746,757
net_rshares71,180,910,465
author_curate_reward""
vote details (5)
@urun ·
![untitled.gif](https://media.tenor.com/images/0660efe82fa3da42ed56eef013171835/tenor.gif)
properties (22)
authorurun
permlinkre-slobberchops-rb4mx2
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-30 00:34:15
last_update2022-04-30 00:34:15
depth1
children0
last_payout2022-05-07 00:34:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation93,309,389,073,611
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,765,833
net_rshares0
@wwwiebe ·
$0.17
This is great work. Python is such a great go-to for so many things.

I also had enough problems with BEEM that I ultimately took the robot I had running offline. I'm glad you're having better luck than I did (I did not have the patience to dive as deep into the weeds with it as you are).

Awesome work. Everyone should learn python.
👍  , , , ,
properties (23)
authorwwwiebe
permlinkre-slobberchops-rb3p34
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 12:23:30
last_update2022-04-29 12:23:30
depth1
children1
last_payout2022-05-06 12:23:30
cashout_time1969-12-31 23:59:59
total_payout_value0.086 HBD
curator_payout_value0.084 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length334
author_reputation318,663,954,734,459
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,748,479
net_rshares173,793,804,434
author_curate_reward""
vote details (5)
@slobberchops ·
> I also had enough problems with BEEM that I ultimately took the robot I had running offline.

For the first day or two I couldn't get anything to work, it was seriously frustrating. Then bits started to function and it went from there. I have a background in scripting which helps a lot.
👍  
properties (23)
authorslobberchops
permlinkre-wwwiebe-rb3ug7
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 14:19:18
last_update2022-04-29 14:19:18
depth2
children0
last_payout2022-05-06 14:19:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length289
author_reputation2,004,902,424,541,389
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,751,309
net_rshares0
author_curate_reward""
vote details (1)