25

Alright.. it's time.

Time to release my new devrant client!

dr 1.0 has been released and is now available at:
HTTPS://GitHub.com/ewpratten/dr

More info can be found at:
https://devrant.com/rants/1606532/...

And

https://devrant.com/rants/1606055/...

Feel free to break stuff and let me know how I screwed up.

Some people are adding this package to some package managers for me, so if you would like to do that, feel free to help them out.

Keep in mind, this devrant client is still missing quite a bit of functionality because I am building my own API wrapper as I develop dr. So it is a lot of work to add new features.

Currently just the basic reading rant feeds and posting rants is available.

Next up, commenting and searching.

Also, the Linux (not chromeos)build is untested, so you might have to use the scripts in the dr folder.

(Don't forget to install the stuff in requirements.txt first)

Comments
  • 5
    That mini heart attack when I first read:

    chmod +755 dr

    as

    chmod +777

    Do you accept pull requests if I have any?
  • 5
    *knucklecrack*

    Let's see what SE Linux thinks about this...
  • 6
    For people who can't click link
    https://github.com/Ewpratten/dr
  • 3
    Hmm, only the dr file in the dr subdir works.
    The build/dr file errors out with the non UTF-8 character \x85.
  • 7
    @gitpush yep.

    I have never learned how to properly use chmod. I was just told that 755 is better. Is there a different number that I should use for this project?
  • 6
    @PrivateGER have you tried one of the files from the releases?

    If it still doesn't work, you can symlink your python install to /use/local/bin/python3 and then run the chromeos one.

    Aside from that, idk.

    Also, the only .py file that is runnable, is dr.py
  • 4
    @ewpratten thanks man

    As for permissions I'm not sure tbh, but you can test setting lower permissions and see if that works
  • 4
    @ewpratten I got it working by simply symlinking the dr/dr.py one to /usr/local/bin and adding #! /usr/local/bin/python3 on top of it.
  • 5
    @RantSomeWhere go ahead. Maybe even use some of the same commands? Like for consistency?
  • 5
    @PrivateGER that was what I was originally doing. The packages are just for simple installation. Let me know how you like the client
  • 6
    Alright. If anyone is having trouble with running the script, check out the build-linux.sh script in build/

    Also, this will be helpful if you are putting this in a package manager.
  • 4
    @RantSomeWhere the API has more than you think.
  • 4
    @RantSomeWhere as far as I can tell, skayo isn't allowed to tell people about some parts of the API. (Based on his comments)

    The stuff I know is from some digging around and wireshark.
  • 2
  • 1
    @ewpratten
    The AUR package is working.
    Package name: dr
    😁😁
  • 1
    <@RantSomeWhere>
  • 1
    <@RantSomeWhere>
  • 4
    @Electrux thanks so much. Does it auto-update? Or do you have to do it manually?
  • 4
    @RantSomeWhere I can confirm. Notifs are server side.
  • 4
    @RantSomeWhere API magic.
  • 2
    <@RantSomeWhere>
    I can recommend RantScript. devRantron uses it
  • 4
    @RantSomeWhere hey. Psst. Why don't you use the python lib that I am writing as a backend for dr?

    It has notifs and auth and cool stuff like that built in!
  • 4
    @RantSomeWhere I'm going to push an update soon. It will contain some cool auth stuff.
  • 1
    @ewpratten updates need to be done manually because PKGBUILD contains sha512sum for the dr file and the download also uses version which is 1.0 right now.
  • 3
    @Electrux ah. Check out the build scripts.
    Also, I have a new version to be released soon.
  • 4
    @RantSomeWhere all the stuff I want is already in dRS.

    I just need to find the endpoint for viewing a single comment by its id.
  • 4
    @RantSomeWhere I get an "invalid token" error I think. Either that or a 405
  • 4
    @RantSomeWhere it says invalid user credentials
  • 4
    @RantSomeWhere I did.
  • 4
    @RantSomeWhere why do I need auth to view a comment tho?
  • 4
    @RantSomeWhere I added an extra slash in the url... I feel dumb now..
  • 4
    @RantSomeWhere there can't be a / between the last part of the URL and the ?app=3
  • 3
    @RantSomeWhere plat is not needed. I can check how I did it. But that looks right.
  • 3
    @RantSomeWhere I honestly have no idea what the plat thing is for. all I know is that the other devrant clients have their own id.
  • 3
    @RantSomeWhere I can help you. (Probably)
  • 3
    @RantSomeWhere are you doing a get? Or a post?
  • 1
    @ewpratten Mind checking Keybase for a change? I need to ask a few questions for building and automating this thing
  • 4
    @chilledfrogs oh. Ya. Sorry.

    I was logged out. One sec.
Add Comment