[cathub] pencilpushing nazis eat your balls but footy on tv

in #rudyardcatling6 years ago (edited)

DSC01486.JPG

the one man thing, ergo-therapeutic brainrot prevention, post number two (three this week, i think i can manage one a day , now ... about the money ? why are you people wrecking my money like that ? dumping prices into deep space zeroes? dont you know i need this for my epic?)


Trying to look like a pro yet i'm not, out of the chaos comes creation, i am Random of Amber ... not mister Formal Ed


2018-06-21

Yes well, i will be spending less time on post-creation and layout and more on coding automation and scripted generated layoud and commenting because statistically i think i could post a picture of a beet every day and get the same result as a five hour post on average ... SO ... but i thought why not do that thing i used to do in school while they were wasting my time ? so i spent four minutes on this instead of 60 seconds on an A.I. rendered logo, so YAY me !
...and...

totally checked in to steempy, if it were compilable as a standalone command it would be super awesome, now its a whole lot to install ... yea standalone would be ultranice , like just sudo apt install steempy as if its name was curl

THAT would be awesome, without all the python-crud ... ive been runnin that "download the blockchain" script for three days straight now and i have a textfile 56mb large ... which means its gonna take what ? a year ? and how do i know its not corrupt if i can only sync when i have witness millions to get upvoted ?

how do i know that ? that means i'm stuck with connecting online arent i?


the things and stuff


folder structure :

it's actually supposed to be a folder structure you can unzip anywhere and use as is without installing anything (you know how to rightclick/view image i suppose). Basically just a bunch of snips i scribbled up to do some things and view some things but, structure might be possible


commands available

  • parseaccounthistory_wrk.sh (several subroutines to parse data from an account history kept locally)

  • pretty_please.sh (something i got from stackoverflow that strips .json data into separate lines without having to install extra packages, which is the intention and so far, other than curl seems to work)

  • updatehistory_rudyardcatling.sh / updatehistory.sh (gets an accounts full history , incrementally depending on how much is already stored locally)

  • wurdamoney.sh0 [accountname] calculates the worth of a 100/100 vote on any given account (not counting delegation, only 'own' power)

  • findeligiblevoters.sh0 (parse list of accountnames (gathered from a post voted on in this case so far) check one by one the time of latest root post, it time <7days add to list of eligible) used to simplify finding the random people to vote on who participated (a LOT of accounts are stale, bots or re-steem only)

- batchpay.sh0 using steempy make batch payments from flatfile listing accountnames
  • batchupvote.sh0 using steempy to vote on post (=top line from flatfile)

  • vote100notify_wrk.sh use with watch -n to have espeak every x seconds how many seconds left until next 100/100 vote




includes

the point would be to as many of these since they don't require separate PIDs

composemainbody.inc split from ubasti/ubasti, used to get all the necessary variables to include in a pre-formatted text body, can now be used for multiple types or repeating posts with changing vars

functions available

under /include ... well its not really /include but the intention is that it is , its not all functions it might just be sets of variables or ENV_VAR declarations for use in multiple scripts or commands with the linux shell source command

  • formatname.inc (used to make it independent wether user inputs @accountname or simply accountname

  • getacctvars.inc (basically meant to store lots more but atm only gets last tx , last tx number and last tx id of account)

  • getSP.inc (gets steem power of account by calculation (delegation not included) )

  • votersfrompost.inc (gets all voters on a certain post from the post.json and puts them in a nice small flatfile)

  • getvoteworth.inc (gets the sbd value of a 100/100 vote from accountname) <--- alarming downtrend


"projects"

  • steemterm : the eventual compilation , commands for now : help, clear, reload, sbi, upvotes, downvotes, transfers , display [on/off]

  • ubasti / sakhmet : used to generate the main body of the daily post and pick out the voters and non eligible voters from the last paid out post

  • well, python crud ofcourse, so far nothing really but i think the generated script from topline of file should be handy


steemUX

  1. 19/06/2008
  • got a batchscript to process payments for @ubasti in one streak .. still need to enter passphrase one by one since i dont trust setting it unencrypted anywhere

  • changed composemainbody to stream $SHAREPP to file ubasti_sharepp for reading by batchpay.sh0

  • added errorcheck on AMOUNT in batchpay.sh0

  • changed ubasti mainbody text

  • added script to autovote on posts from a flatfile list (for now just one)

  • changed sakhmet mainbody text

  • changed batchupvote.sh0 to open browser to post voted on (to check)

  • changed batchupvote.sh0 to ask confirmation to delete top line(link) from input file (after checking vote in browser)

AlleyCat

  • nada for now ? lots of daily deardiary pics ofcourse but how boring is that?

things to do ? (lots)

  • switch as many commands as possible to includes (no new processes spawned while running, not much difference on todays machines but i like it and i will try to keep it built for speed and minimal network load)

  • split up functions as small as possible to make sure no network access is made that's not needed, network is the bottleneck for speed here after all

  • add env_vars include to make it easy to use relative paths within the main folder and get rid of the symlinks which dont work when its copied to another place

  • find out what i need to get a localnode up and running (hopefully 240 gb is enough)

well ... 204 actually

  • see if i can make transactions like payments on the local network while that one syncs to the blockchain so the actual keys never have to leave ... IF POSSIBLE :p (or is that already happening with steempy?)
  • euhm ... now we filtered out the root_posts, maybe check for comments that arent stale yet in case someone quit trying because of (you know, why, elitist bastard) and just interacts a little here and there, but that will be for later, re-steems wont count and ...

  • ofcourse, randomize the processs BUT id need to see vote value for that , i dont wanna elect anyone who will get a vote that turns to dust, thats an honourable mention with zero practical use, pragmacticalists like me (not a spelling mistake) cant have that ... i'm sure its possible but as i dont count this as getting paid it will happen in my time on my tempo, im sure no one has any reason to complain so far

  • switch pretty_please to include function

  • split up accounts when they reach treshold due to the lousy security one factor password system to spread assets over multiple 'vaults', it will lose on curation and probably look like you're upvoting with a whole system, but one compromised password doesnt mean losing everything that way, MUST DO !

  • ponder specific vars in composemainbody on flag or switch to relative project and put them there like

  1. if [ -n "$RAFFLEVOTES" ]
    then
    RAFFLEVOTEFILE="$ACCOUNTURI""_rafflevotes"
    RAFFLEVOTESELECTED=$(cat $RAFFLEVOTEFILE)
    fi

can be put in either ubasti/ubasti without the conditional or in the mainbody where its conditional depending on flag $2

  • put composemainbody.inc autodeclined / non eligible in separate file

  • start my own bookmarks folder on alleycat.be this is how many times now ? trusting third parties and that cloud-shyte never works out

  • finally start that appgamekit thing simulating population and put that here too ...

  • yes, thats not half a bad idea precious ... script a script that generates python code and picks permlinks from a list ... i can set up the list in advance and just run the command and enter the passphrase on alarm-time-is-now ... not quite supreme but timesaving, good let me write this down in the middle of my laundry before i forget it, m-hm, it wont work to keep up the 100% votes while sleeping or afk but for now its a timesaver, GUD, downwritten

  • check if i can pipe an OTP into the batchpay script that would solve most of my moral dilemma on storing unencrypted passphrases locally on disk or in an env var ... GOOD IDEA, PRECIOUS, TWICE A DAY AND WITH A BLEEDING HEADACHE LIKE THIS, we might get it up and running and get to the appgamekit after all ... now where's my money ?

  • make enough money from one post per week to not make more than one post per week and focus on other things that do not require phoneboy and/or suitman to have the illusion to be the boss of me (cos thats never gonna happen again, im damaged)

  • get independent from handouts by government, employers lobby and benevolend enlighters

  • get rich or die trying

  • hunt down and exterminate whoever has been wrecking the sbd price fro a month now

  • never go for witness on steemit

  • much much more

  • get catfood

  • dont trust dogs

  • avoid humans

  • live by night (because i couldnt even type this post by day)

  • and so on ...

if you feel like this is @utopian-io go ahead but its one-man team so i dont know how open source that is lol

it's ergo-therapy

i need it for my epic

1.png


getting somewhere ::

celeroncat@cerebro ~/Documents/steemUX/ubasti $ time ./batchpay.sh0 1001
share per participant is set to 0.001
Keep value from file ("YES") or enter actual value (format x.xxx) :YES
YES
0.001
your share for distro #1001, thank you, come again
Passphrase: 
ERROR:root:Downgrade-retry rpc.steemviz.com
{
    "ref_block_prefix": 1434719538,
    "extensions": [],
    "signatures": [
        "1f2c103f278b6ba887a3b879cd1fc9026b013760316ae76f7f37c1d8eece1a903d5cbcffba6b927af4481595f682b4739583fb21f7e56831539955bd32d514a91b"
    ],
    "expiration": "2018-06-18T21:35:03",
    "operations": [
        [
            "transfer",
            {
                "to": "sakhmet",
                "from": "ubasti",
                "amount": "0.001 SBD",
                "memo": "your share for distro #1001, thank you, come again"
            }
        ]
    ],
    "ref_block_num": 44267
}
Passphrase: 
ERROR:root:Downgrade-retry rpc.steemviz.com
{
    "extensions": [],
    "ref_block_prefix": 3169874992,
    "expiration": "2018-06-18T21:35:18",
    "signatures": [
        "20280ca353efc0e181172d34deb6976ed327c3c33b89674f5fc9cd37f75209609726f86f0325965c73cfbdb3de7d8a02297c5250c24c6f5edd44d1d88ee53c681a"
    ],
    "operations": [
        [
            "transfer",
            {
                "memo": "your share for distro #1001, thank you, come again",
                "from": "ubasti",
                "to": "sakhmet",
                "amount": "0.001 SBD"
            }
        ]
    ],
    "ref_block_num": 44272
}
Passphrase: 
ERROR:root:Downgrade-retry rpc.steemviz.com
{
    "ref_block_prefix": 2859179781,
    "expiration": "2018-06-18T21:35:32",
    "ref_block_num": 44276,
    "extensions": [],
    "signatures": [
        "1f11acc1664c3ab80c81b97526b2eb693873a6afd1ced5b6aab368bb53ec8d9f014ca912f1f1a4b61647d2f0134bcdba4a1f0ec23c6d4fd02fe2544ed9fbad1081"
    ],
    "operations": [
        [
            "transfer",
            {
                "from": "ubasti",
                "amount": "0.001 SBD",
                "memo": "your share for distro #1001, thank you, come again",
                "to": "sakhmet"
            }
        ]
    ]
}

real    0m54.939s
user    0m5.764s
sys 0m0.186s
celeroncat@cerebro ~/Documents/steemUX/ubasti $ 

definitely getting somewhere


celeroncat@cerebro ~/Documents/steemUX/ubasti $ ./batchupvote.sh0
https://steemit.com/giveaway/@zerotoherobot/daily-sbd-distribution-6-18-2018-13-39-615
Passphrase: 
ERROR:root:Downgrade-retry rpc.steemviz.com
{
    "ref_block_num": 47537,
    "ref_block_prefix": 3876053904,
    "operations": [
        [
            "vote",
            {
                "voter": "ubasti",
                "weight": 10000,
                "permlink": "daily-sbd-distribution-6-18-2018-13-39-615",
                "author": "zerotoherobot"
            }
        ]
    ],
    "signatures": [
        "20213d35b056b5a504301c92cc726905c7a62b9aec4670548463551d87f5721fbf522ac676480e21da3edca6d748bef834303e44325c87183c0add4561fc5a4531"
    ],
    "expiration": "2018-06-19T00:18:37",
    "extensions": []
}
celeroncat@cerebro ~/Documents/steemUX/ubasti $



previous post(bottom up .. or was that top-down?) -> should link back all to the first one at the bottom

https://steemit.com/rudyardcatling/@rudyardcatling/cathub-could-this-be-done-with-yubikey-instead-of-storing-unencrypted-passphrases-locally

https://steemit.com/rudyardcatling/@rudyardcatling/cathub-rtfm-and-and-rtfa-but-the-explanation-is-right-here-and-there-and-a-bit-there-and-overthere-some

https://steemit.com/rudyardcatling/@rudyardcatling/cathub-project-with-no-name-v0-0-the-leaked-episode-rottentomatoes-killed-baywatch-cos-it-sucked

https://steemit.com/rudyardcatling/@rudyardcatling/cathub-project-with-no-name-v0-0-the-indie-movie-pt-1-the-recap-prequel-to-the-sequel-mark-your-tings

https://steemit.com/rudyardcatling/@rudyardcatling/cathub-project-with-no-name-v0-0-the-indie-movie-pt-1-start-the-cleanup


Sort:  

the market will come back it's just a matter of time because it always does, that's when the patience kicks in. After that all your work will make sense.

well ... i suppose if i didnt believe that all the way i would have quit by now anyway, but its not like i got other milliondollar moneymaking schemes going on (lol) either ... bitcoin seems to be moving a little again, thats usually an indicator
but out here in the desert nothing is certain , right, and when it comes to code ... once an algorithm works or a script functions, it will never un-work, right, time saved since then is alway true :)

i used to think that then came php2 php3 php5 php7 not even sure which one im running on LOL:) javascript and css have had little change, but i see if i could find a good use (way to make a buck) in a legit manner.

well .. i hate to get semantic but what i meant is once you have the algorithm it is always valid, the rest is syntax

as you say, versions and upgrades ... its php7 still i think btw

as for the css and html 5 i only recently found out about those svg tags just because its not daily for me, its just too much to keep it in all at once so i stick to my wise saying :"syntax is a waste of brainspace" its like fashion, right ? and you can just google it

and with this, i award myself a medal for answering all comments three days in a row !1f947.png

now read about google bootstrap.css and bootstrap. js + jquery.js they work together all the animation properties are built in. also you should look up Alessandro Castellani everything you need to know PHP. Well it will make for a good read anyways :)

i prefer not to use too many libraries actually , i think custom code is highly underappreciated these days "in the name of productivity" but its giving up on understanding, im a hobbyist after all, i dont do it for the pro, if i did i would go for speed too lol, faster finish = more projects just look at now, i waited month to install steem-python just cos i wanted shell only and still i stick to steempy , i havent even checked on using variables in python because its clearly different

i can handle javascript as long as i have the 1e100

http://cat.alleycat.be/tulz/stageing/ (the pages flip every five seconds as i kept it from one stage to another)

or http://cat.alleycat.be/tulz/PsE/ (which took me a while longer because of the draggable points and all that)

which can be used to make what i called vectorsprites like

http://cat.alleycat.be/tulz/adobeinless/index_last.html

but its been more than a year since i did anything like that, im actuall grateful to steemit, despite the elitist elite, and the initial flagwar with some whale and the whatever is keeping the price down too long for getting me some incentive to sit at the keyboard and do more than click pictures on pinterest hahah

i think i use ajax or something to display EXIF data on photos somewhere on the picdiary on the site ... if only i could get some cash here i could get some hosting on a server that can serve instead of out of my bedroom but it still would be hobby only

there's not one cookie on the site , i wanted to, for a game i wanted to but with the crash came nothingness so i hope i can keep the fire burning here with the scripting, and maybe get back to the fun stuff

if you do check , the scroller is just something i did because someone in some chatroom kept saying how much ram she needed with adobe just to make a starwars scroller so i thought like i can do that in a few 100kb, you know ... and off i went and that's how far it got before i got down, its realtime animation so the dropdown boxes change the background or colour or whatever immediately if you change them, its skewed because i was on the process of transposing the whole canvas into a trapezoid before rendering to screen (to get the star wars effect) but well ... the stageing thing was just something when i first heard about this magnificent thing called canvas in html 5 , to try it out, and the pse i wrote to make my life easier so i didnt have to use bitmaps for characters and letters

and then they came up with svg lol

yes it's a start, a while back LOL:)) my customer wanted to make something online for custom t-shirts eventually wrote it into a design studio materiautheque.info for designers LOL

zuck "the narcist" markymark once , while being a geeky kid born in a rich warm environment, wrote a little 'program' as it was called back then, to let the family communicate through the cables in the house, the very definition of nerd

and for some reason

it was a hit some time later :)

Congratulations @rudyardcatling! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard!


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64507.66
ETH 3080.07
USDT 1.00
SBD 3.85