Skip Navigation
rimu rimu @kbin.social

Web developer. Also into photography, nature, philosophy, politics, climate, psychology.

Posts 3
Comments 28
kbin.run ssl errors?
  • It doesn't work for me, on Firefox or Chrome. Chrome reports ERR_HTTP2_PROTOCOL_ERROR

  • Stupid Question, not an insult: Why is kbin written in PHP?
  • When I say "optional", I mean you can just create a filename.php and start putting lines of code into it, and it'll work fine. But, these days OOP is favored by most and pretty much everyone is using it. So if you are working on code that other people have written, classes are everywhere.

    A lot of Wordpress code is non-OOP, though.

  • Stupid Question, not an insult: Why is kbin written in PHP?
  • PHP is huge and more relevant than you realise. There are many many PHP developers.

    IMO one of the things holding the fediverse back is that not much of it is written in Python or PHP. Neither are "good" languages but there is a massive pool of developers and they're easy to get up and running.

  • A few questions about how kbin works
  • Go to https://kbin.social/settings/general and choose the Subscribed home page.

  • PSA: every interaction you make with various posts on kbin is viewable to everyone.
  • Often, the option to downvote is the only thing stopping me from getting sucked into some stupid argument with an idiot. It is a massive productivity booster. Downvote and move on.

    I wish kbin would hide posts with lots of downvotes...

  • Will it ever be possible for kbin to federate with PeerTube?
  • I expect it will be - it seems to almost work already. For example, take this peertube channel - https://tube.arthack.nz/c/intertwingled/videos?s=1.

    I tried a few different things in the kbin search and @[email protected] got a result that I could subscribe to. If that channel posts another video, it might show up in kbin. Will it be a microblog? A thread? A magazine? Who knows! kbin seems very confused about all of this.

  • Can NSFW images and links *please* be hidden from the sidebar?
  • When things are working properly, it does.

  • Issues with AsyncIO and advocacy for Gevent instead

    Gevent seems pretty straightforward. Check out this example:

    Here is a tutorial.

    Unlike asyncio, with gevent you can continue to use the libraries you're familiar with, and the exact same codebase can be run with or without gevent "enabled". You don't need special async versions of each library, as you do with async/await code.

    What are the issues you ran in to while using gevent, that asyncio solved?

    Why did AsyncIO take off when we already had gevent?

    0
    Every Linux Geek Needs to Know Sed and Awk. Here’s Why… - The Tech Edvocate
  • Wanna see something that makes even Perl look elegant and readable? Check out any sed script. Here's tetris, in sed: https://github.com/uuner/sedtris/blob/master/sedtris.sed

  • Looking For Opinions on Docker + Letsencrypt + Reverse Proxy Setup
  • Yes, it can provide a SSL connection to the end-user even though you're just serving http with no cert. However it is yet another moving part that can break or be mis-configured and yet another bunch of capitalists data-mining all the things.

  • Looking For Opinions on Docker + Letsencrypt + Reverse Proxy Setup
  • Naaah, Caddy is way simpler than Apache. It'll be much easier. Take a quick look at the docs and you'll see what I mean.

  • Enhance your OpenAI chatbot with custom code: integrate weather, web scraping, APIs, etc

    codeberg.org Python-Flask-Chatbot-Quickstart

    Use OpenAI API to build a chatbot with a custom system prompt.

    ChatGPT-based chatbots can now call your custom code to get information it doesn't know. e.g. current weather, scrape the web, access APIs, etc.

    I've added a #Python ( #Flask ) demo of this to my chatbot quickstart repository.

    0
    The state of Flow-based Programming (2022)
  • This seems ideal for something like ActivityPub where data is flowing between different people and places all the time. Looks like the tooling isn't there yet, though.

  • Is there a way to improve Federation rate?
  • Another thing to bear in mind is that lemmy.world and lemmy.ml are totally overloaded at present. While their UI might function Ok, behind the scenes there are queues of content to be sent out to other servers that get pretty choked up.

  • Is there a way to improve Federation rate?
  • Content from before you subscribe is not sent, only from that point onwards (unless someone else on the same server already subscribed to it).

  • Is there a way to improve Federation rate?
  • Lemmy has a bug where when you search it won't show any results at first, and then 10 seconds later it'll show your magazine. Are you waiting 10+ seconds?

  • Loving the richness of variety in fediverse
  • Yup. There needs to be some de-duplication code, somehow.

  • images on the left side would make kbin easier to read
  • Sorry to get your hopes up - it turns out that moving the image to the left is really hard (aka I don't know CSS grid very well). Also the other changes I wanted ended up being identical to "Compact mode" which you can enable with the cog in the top right. Highly recommended.