Steemer app update RC 3

in #utopian-io6 years ago

STEEMER-BANNER.png

Banner by @ggcarlosr :)

Repository

https://github.com/hispeedimagins/steem

New Features

  • Add/Edit/Remove beneficiaries?
    sspost.jpg

Now you can add new beneficiaries to your post or remove all. What's more set them up for custom behavior. Like add tags to them so they will automatically enable itself without you moving your finger. Or just simple make them default for all posts. Even change it for one time behaviour. This is the first in any app for steemit.

Why?

Because after much thought on the suggestion of @codingdefined it became apparent that steem needed an app where there is not such thing as a beneficiary. So more users will use it without it eating into their precious rewards.

  1. First off, I created a db to save all the new beneficiaries added.
  2. Created a page to add them easily. It can be instantiated from anywhere.
  3. Created the view from a bottomsheet layout so the user does not have to navigate to another page and yet has minimal impact memory.
  4. Created the functions for easily activating all the beneficiaries based on tag.
  5. Created the logic for one off stop if you wish and also to easily disable developers as beneficiaries.
  6. Created the logic to edit them without the need for a different page.
  7. Added 3 beneficiaries as default. @steemj, @hispeedimagins and @utopian-io if the tag is applicable.
  8. Created a handy button to disable developers as beneficiaries for comments as well.
  9. Made all the ui compatible with dark and light themes.

by default they remain active.

  • Notifications enabled/disabled
    ssnotioff.png
    Added the setting to enable or disable notifications. Requested by @holger80. Sorry for the tag hehe.
  • How did you implement it/them?
  1. Created a new class to be called for adding or removing a firebase job.
    https://github.com/hispeedimagins/steem/commit/4ebd7b188fda335568e44261b9a295fc4a0a5ba9
  2. Listen to settings changes and then call the relevant method.
    https://github.com/hispeedimagins/steem/commit/4641cccea4890fc6ce39df47c4a8632e4775a952

Bug Fixes

  • Steemit images stopped uploading?
    On uploading an image it would return a blank url. The same code worked a month ago. On debug the error was vague.
    500 internal server error.
    Made multiple changes to everything with no avail.
    Decided to download the image hoster souce and see what was wrong.
    Provide links to related issues on GitHub, that you fixed, if applicable.
  • What was the solution?
  1. Download source https://github.com/steemit/imagehoster
  2. If you have windows and plan to use wsl and ubuntu then uninstall avira antivirus. Also install the development toolkit from node, the command will be on their site.
  3. You will need to find the library sharp because it returns 500 from the server.
  4. If you face any error like "lock file locked or something" you can try to delete the lockfile and redo the command. It should work.
  5. It should be running.

Since I have to access this local server via me test device and emulator I had to run these commands

netsh http add urlacl url=http://localhost:8800/ user="NT AUTHORITY\INTERACTIVE"
netsh http add urlacl url=http://*:8800/ user="NT AUTHORITY\INTERACTIVE"

These basically open the port number you require.

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=5555 profile=private remoteip=localsubnet action=allow

Then this for allowing requests via your firewall.

After all this the real error presented itself.

RangeError: recovery should have value between -1 and 4
at Signature.recover (/mnt/f/imagehoster-master/node_modules/dsteem/lib/crypto.js:271:40)
at uploadHandler (/mnt/f/imagehoster-master/src/upload.ts:122:33)
at process._tickCallback (internal/process/next_tick.js:68:7)

Tried several methods, ways, tried canonical signatures.

Went through source code

  1. https://github.com/steemit/condenser/blob/master/src/app/redux/UserSaga.js
  2. https://github.com/steemit/steem-js/blob/master/src/auth/ecc/src/signature.js
  3. https://github.com/steemit/steem-js/blob/master/src/auth/ecc/src/ecdsa.Js

The fix?
https://github.com/hispeedimagins/steem/commit/90ad3ff9f704cced9474a0355bd23b809a403eb6

i += 4; // compressed
i += 27; // compact // 24 or 27 :( forcing odd-y 2nd key candidate)

Steem does not check for compressed while making the header byte after making a recoverable key. I was. Seems small right? My code successfully signs all other requests.

Feels so crazy after going through all that for a stupid number.

Misc changes and fixes

GitHub Account

https://github.com/hispeedimagins/

Hope you guys like the new update and also hopefully everyone on steam can use this app free of cost to them. Bringing us better exposure.

Steemer download link

Sort:  

o WOW i got an honourable mention there <3

i am SO not worthy

android app hm ... maybe i should actually try steemit on my phone then for once .... :D if it runs on ancient kitkat

Hey @hispeedimagins
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Thank you for your contribution. Adding Beneficiary is a good feature to have. A good solution, though little more explanation of the code inside this function signMessageUploadImage, would have been better.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you:) . Missed that, hehe.

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 2 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 47 SBD worth and should receive 115 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

I congratulate you, very interesting the subject, it is very useful! thanks for sharing!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 67651.30
ETH 3269.44
USDT 1.00
SBD 2.64