[uxcatling] ubasti the road to automation , so i dont have to employ, suit boy you get what you given HAH

in rudyardcatling •  7 years ago  (edited)

after a while after https://steemit.com/rudyarcatlnig/@rudyardcatling/uxcatling-ubasti-first-steps-to-automation


not like i havent done ANYthing ... its just VERY hard to do something if you cant focus for more than 5 maybe ten minutes without having to "GO" somewhere else

im not making excuses i'm describing, but that's totally not the point as i had a small talk with someone today about my pet ubasti account (who lives to serve ofcourse, goddess of love and all that (and cats) who else speaks in parentheses that fit really ? i dont know)

since i was on it anyway since i had like about four hours of sleep of which 2x2 uninterrupted, not like im einstein or anything its just


IT WONT LET ME

it ... yea,, that

on how it would become increasingly daft to keep up the manual processing, where i explained that there's actually not much manual processing left but the payment and voting

which i'm not sure i wanna, and even if , i would only after the complete body is done , with me tools

not third party tools

why , just cuzz

it keeps me busy

good thing

and NO i am not your deskjockey, five minutes in your office and the place is wrecked, i already have caged-syndrome HERE at home .. dont make it worse

and coz simply just like my sample dabbles i wanna do it for teh lulz and teh concept all in lOOnix

cuzz

dont ask me why, just cuzz, i feel like that

and there's no timeline and no goal and no plan

and presentation for the board and if ever, there will be no board because i (thats ME) would NEVER go public, for a few dollars more ? NEVER

it would crank my style, and stifle my innovation HAHAAAAA

nuff dat so

i was talking and saying and responding how the only thing i would REALLY like (for ubasti that is and likewise spinoffs in the future) is a limit on the number of particpants

hard-coded

that means @ned level :p

o yea how punny use of at there c0ac7ffd2d23780b46aa58d6f03440b7--symbols-emoticons-smiley-faces.jpg

hardcoded option like in the api itself to prevent people from voting after i say stop would in my case be GREAT

cooltext263014691606796.png

well, ask mister Buffett what he thinks on the matter of "sometimes less is better for more" ... maybe he can explain, im sure he's got the lingo, overadvertising before you can deliver only goes so far if you wanna stay independent

or you can bubble up and pop

or many many, how many mics do we kill on the delli ?

none , recently zero actually
so

its pretty much coming togther, the message body is generated from several files parsed, like the account json data and the total pool and all that to get the sp value and the vote value, the days old and then some, account history to calculate how many sbd has been distributed (minus sbd sent to bots and the like yes yes)

that doesnt take much time really .. the manual sending does

but thats fine since i personally can't think of any elegant solution in case of timeout

it would mean needing a 24/7 machine (and i dont have any to spare right now) that keeps checking and checks if payments have arrived, and has some way of recognizing network lag or timeout with data not pushed through and all that

Pfffrrw ... i think its faster to do it manually without error :p

for now

so i was on this lets try to keep network load minimal cos no one seems to give a shit

but this is the age of blockchain people


you need to think differently

you cant just go through the whole chain every time

its locked, ethereum chains are LOCKED, you can have a local copy or cache, and it will never change (barring a split like eth/etc) so all those mega and over time giga bytes dont need to go through the cables, those servers dont need to handle that massive flow of data , if you just pick what you need so

#!/bin/bash

##################################
ACCOUNTHANDLE=$1
##################################

ACCOUNTHANDLE="ubasti"

source include/getacctvars.inc

lastxlocal=$(cat fullhist_ubasti | grep -Po '(?<=(,\[)).*?(?=(,{"trx))' | tail -1)

getactvars ubasti
lastxnr=$(cat lastxnr)
echo $lastxlocal
echo $lastxnr

if [ "$lastxlocal" -eq "$lastxnr" ]
then
echo "no new transactions since last time"
exit
elif [ "$lastxnr" -le "10000" ]
then
diff=$((lastxnr-lastxlocal))
echo $diff
diff=$((diff-1))
echo $diff
curldat1='{"jsonrpc": "2.0", "method": "condenser_api.get_account_history", "params": ["ubasti",  10000000000, '
curldat2='], "id": 1 }'
curldat="$curldat1$diff$curldat2"
curl --silent --data "$curldat" https://api.steemit.com > newtx
cat newtx >> fullhist_ubasti
fi

pardon my amateurism but like i said, its a hobby, it might become something but for now its cool as long as its fair, i get to figure and everybody happy

this only works for small new accounts ofcourse, you will need a loop to do blocks (bad word in this context case) to do euh well ... things .. of 10000 transactions since thats the most it will load ya

it also has an upper limit, so i used a ridiculous number to get the last transaction since i have no idea on the call that simply gets me that, but theres 109 here maybe i missed it

and that

is so far that, the voting and payouts is manual and will be

next up, which i have more or less figured out barring all but syntax (as usual) is using the file with the voters from post to check each account for activity and give chances for a raffle vote in order like

  • has posted like ever
  • has rootpost in the past seven days
  • has comment in the last seven days
  • has re-steems

for starters but then i also need the value

and the value of the ubasti vote to make sure nothing turns to dust so

that might take a while


please remember : these things can actually work if they stick to the system they were built for, distribute the overflow to empower those who are WILLING ... if it flows to hogs then that is where it stops , its not a pyramid

because there's no top or bottom input, its money from nothing

virtually it is

it doesnt even have to be as sharp as that, equal for all, i mean if i had like a factory or something id distribute end of year too, but id keep a bigger share for me

cos its MINE, but this is an automated system over time, not comparable to manual labor and physical logistics

mind you

shin sekai , things can be done that couldnt be, just like with the steem-engine (steam, right? ) or nuclear power

Screenshot from 2018-05-31 10-21-16.png


i think i has a content

every post that doesnt reach my minimum ubi requirement after 24 hours will be upvoted with bots to the max extent of my resources. This benefits me and this benefits people i vote on, this benefits people who vote on my little distro-for-plankton project and whatever the moralizing by fat fish, i dont really care, if i sit around waiting for handouts and cookies i'll be old and grey before i'm anywhere


i dont think you get the bid-bot game, precious, i don't invest to get +roi, i invest in steem power, it doestn really matter if i get 100% or more of what i put in it in sbd back, i get steem power i wouldnt get otherwise so
no i dont think you get it, then again, you havent gotten much since the dark ages ended have you ?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!