Where have I been? Also Hive-Nectar v0.1.5

in Synergy Builders6 days ago

Hey everyone,

Where have I been for the last few days? Well, long story short, I had to completely reformat and set up my dev machine. I've learned a valuable lesson: installing libraries without a proper package manager is not a smart idea, and I'll try not to do that again.


But I'm back, and last night I got a great message from @holoz0r about hive-nectar and witness rewards.

2025-11-04_06-35.png

He was absolutely right. As far as I knew, there was no easy way to view those. So, I added it this morning.

Now available: hive-nectar 0.1.5

You might have noticed the version jumped a bit since my last post. I was actually going to post about v0.1.4 today, but @holoz0r's request was a great addition, so here we are at v0.1.5!

Version 0.1.4, which I released yesterday, was also a community-driven update at the request of @themarkymark. It included two new helper functions on the Comment class:

  • to_zero(): Computes the downvote needed to zero a post's payout.
  • to_token_value(): Computes the upvote needed to add a specific HBD value to a post.

Now, you can auto-vote a post to zero or to a target HBD value without having to do any of the weird math yourself. Since they are helper functions on a Comment object, you just pass the account you want to cast the vote with. For example, if Marky wanted to zero my last post (please don't! 😅), he could do:

p = Comment("@thecrazygm/happy-hpud-nov-2025")
p.to_zero("themarkymark")
# or if he was feeling generous
p.to_token_value("themarkymark", 5) #that would slap a $5 HBD vote down

This release also included a large number of fixes to the vote value math to align it with reality.
(I'm hesitant to update the hsbi for @steembasicincome as it does change quite a bit of the vote math)

Today's Update: Witness Rewards

Then, for version 0.1.5, I added the CLI flag for @holoz0r. The hive-nectar rewards command now has a --witness (or -w) flag that aggregates producer rewards into a clean table. I also fixed a few issues with the rewards CLI to handle missing data more gracefully.

Here it is in action:

screenshot-20251104-062807.png

Both versions are, of course, published to PyPI.

screenshot-20251104-062645.png

As always,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

I've learned not to install anything without a proper package manager, not only libraries, as there are just too many things that could go awry. Excellent job on the additions to the new versions, though I'm not sure downvoting needs any help, as it's rather something of challenge for Hive in its present implementation as it is now. This is becoming a very versatile script indeed! 😁🙏💚✨🤙

I'm not sure downvoting needs any help

I agree, but a request is a request.

I just make the shotguns, I don't rob the bank with them :D

I understand, my friend, all good. I just think that the downvoting feature needs to be modified a bit. 😁 🙏 💚 ✨ 🤙

PIZZA!

$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm

Come get MOONed!

Pretty handy stuff, if I do say so myself - but the most valuable is probably a developer that responds so quickly to ideas from the community!

!PAKX
!PIMP
!PIZZA

View or trade PAKX tokens.

@ecoinstant, PAKX has voted the post by @thecrazygm. (1/2 calls)

Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.

Also, on the topic of nuking environments, I have found a new use for LLMs - take a snapshot of the current system environment / packages, and ask it to generate a shell script to restore your configured environments / packages :)

I did my "work" on this locally, figuring out what pip packages I would need, then once I built it, I wanted to deploy to my little mini pc. :)

I have done this for a proxmox container that will be running a little price checker script using selenium / beautiful soup. It goes to the specified URL, finds the price, compares the item to the user defined list, then logs to the console / takes a screenshot if there's a price difference. Next step will be to get it to tell me on telegram if there's a price drop.

(Think self-hosted 3camels in a python script)

Alternatively, set up a hook (marky taught me this) to take a snapshot everytime you upgrade something with your package manager - could probably do the same with pip commands if you're not installing them into venvs :)

Wasn't anything as innocuous as pip libs. I decided to give wayland a try as a compositor as I'm and old geezer still in X11, and well, the libs even on debian sid are "dated" so, i installed a LOT of updated libraries just to build the wm, and it nuked like 99% of the apps debian installed. I could have restored the debian versions one at a time and picked off strays, but "it was time to put her down" :D

and install arch, right? :)

I have arch to blame for most of my knowledge as I used it for years. But I don't have the patience to configure every little thing anymore... Man I'm getting old...

I haven't booted into windows (Photoshop, PowerBI, Lightroom) since I installed Arch. I opted to use Photoshop and Lightroom on my Macbook M2 instead of pressing F8 on my desktop.

I am LOVING the freedom it gives me, and the performance! But I am reluctant to keep installing things as I slowly broaden what I am capable of on the system and the command line.

I'm still a total noob, but I am learning rapidly.

pacman is so easy, and yay gets you everything else. :)

I haven't been brave enough to playaround in fstab yet though...

Once it clicks it's hard to go back. I haven't booted into Windows for anything since the late 90s early 2ks.

That's how I learned, break it, fix it, break it again.

I start my new job in 6 days time - so I will presumably be using windows every day again, yuck. :P

But It will just remind me more and more why I am increasingly loving *nix environments.

Loading...
 5 days ago (edited)Reveal Comment

Two great additions! :)