rimu

joined 1 year ago
[–] [email protected] 1 points 4 months ago

It doesn't work for me, on Firefox or Chrome. Chrome reports ERR_HTTP2_PROTOCOL_ERROR

[–] [email protected] 1 points 1 year ago

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.

[–] [email protected] 3 points 1 year ago (2 children)

No, OOP is optional in PHP.

[–] [email protected] 12 points 1 year ago* (last edited 1 year ago)

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.

[–] [email protected] 0 points 1 year ago (3 children)

Go to https://kbin.social/settings/general and choose the Subscribed home page.

[–] [email protected] 5 points 1 year ago

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...

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (2 children)

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.

[–] [email protected] 1 points 1 year ago

When things are working properly, it does.

[–] [email protected] 1 points 1 year ago (1 children)

I don't miss the 60Hz flicker, one little bit.

 

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?

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 0 points 1 year ago

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.

[–] [email protected] 2 points 1 year ago

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.

 

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.

view more: next ›