@rimu@mastodon.nzoss.nz
@rimu@mastodon.nzoss.nz avatar

rimu

@rimu@mastodon.nzoss.nz

web dev. php, #python, #flask
greenie
lefty

Developer of PieFed - a federated forum, similar to Lemmy but written in Python - https://piefed.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

silverpill, to article_interop
@silverpill@mitra.social avatar

Article Interop WG: How to represent titles?

Should title be inserted into Article.content as an <h1> tag, or should it go to Article.name?

@article_interop

rimu,
@rimu@mastodon.nzoss.nz avatar

@django @silverpill @article_interop Lemmy uses 'name' on a Page (not Article).

If you get the URL of any Lemmy post and do a GET with the Accept header set to "application/activity+json" you'll see everything.

mhoye, to random
@mhoye@mastodon.social avatar

Is there any wiki software out there that integrates well with activitypub? Plenty have RSS...

rimu,
@rimu@mastodon.nzoss.nz avatar
julian, to random
@julian@community.nodebb.org avatar

An update from last night brings some additional logic to the title generation of topics from the fediverse.

Previously if a title was provided in the name property, that was used as the topic title.

While that hasn't changed (and is the strongest signal for a topic title), not all fediverse content contains titles. Specifically, Mastodon posts do not require or even have a space to put a title in.

For those cases, we fall back to generating one based on the content. We literally grabbed the first 128 characters or so, and added an ellipsis to the end.

While that worked okay as a stopgap, it meant that a lot of topics ended up with really long titles — not ideal.

The new logic tries to grab the first line of text (either the first <p> or line), and from there, the first sentence, using some naive regular expressions.

While still not a proper alternative to... you know... specifying a title, it's better than nothing I suppose!

I wonder if other fediverse softwares implement title generation logic like this...

rimu,
@rimu@mastodon.nzoss.nz avatar

@julian PieFed uses the first 150 chars (adjusted for word boundaries) of the first <p>.

I like your method of stopping at the first '.', that would yield better results more often.

rimu,
@rimu@mastodon.nzoss.nz avatar

@julian Ooo good point about adding the ? back on.

If you're interested in a non-regex solution, here's what I have - https://codeberg.org/rimu/pyfedi/src/branch/main/app/utils.py#L247

grimalkina, to random
@grimalkina@mastodon.social avatar

I want to see absolutely no sensible and practical advice here. What programming language should I start vaguely and in a chill way teaching myself if I just want to experience something fun or elegant or interesting in and of itself, assuming I have no goal for using it to do anything really (outside of learning)

rimu,
@rimu@mastodon.nzoss.nz avatar

@grimalkina A lot of games embed Lua. I'm sure there are some fun environments mess around in with that.

rimu, to Pixelfed
@rimu@mastodon.nzoss.nz avatar

and are the only platforms with a print stylesheet.

Gotta do the basics right.

julian, to random
@julian@community.nodebb.org avatar

To refresh your memory, you can read the minutes of last week's meeting.

Please see @angus's note below regarding agenda preparation for the May WG meeting

Follow up

  1. The Social Web Community Group approved our application to turn this into a Task Force.
  2. Async work will happen across any federated platform followed by either (or both) of these categories

Next Meeting
We're going to have our next meeting in the first week of May.

Time
Please vote in our meeting poll. Whatever time we decide for this one, we'll aim to keep as our regular monthly slot.

Agenda
Please see this google doc. Everyone has comment permission. Julian will incorporate comments into the agenda.

Looking forward to seeing you at the next meeting!

My apologies for the delay. Angus and I have been working these past few weeks to hammer out some federation issues between our respective forum categories (the ones mentioned above re: async work.)

rimu,
@rimu@mastodon.nzoss.nz avatar

@julian Sure, yeah.

It's not really a question or an answer, just a space for sharing experiences and knowledge.

Groups in Mastodon and how/whether they work is pretty important to me as PieFed uses the Group actor type also.

julian, to random
@julian@community.nodebb.org avatar

Prior our last task force meeting, @rimu brought up the need for a common nomenclature for ease of communication between ActivityPub implementors. Rimu also took the initiative to conduct an informal survey to see what terminology was used across fediverse-capable software (and some non-federating software).

Going beyond "toots" vs "posts", it was noted (not surprisingly) that each software has their own name for things.

  • The most common object type passed around via the ActivityPub protocol (as:Note) could be called a comment, a post, or a reply
  • A grouping of as:Notes could be a post (!!), a topic, a thread, a conversation, or a discussion
  • A higher order grouping of those could be a community, a category, a forum, a (sub)tag, a group, or a magazine

The main takeaways were that while there was occasional convergence, it wasn't entirely surprising that there were more names for things than things to name. Secondly, it was fairly clear that putting forth a recommendation to align on nomenclature would be fairly futile.

What were we expecting... naming things is, after all, one of the hard problems in computing.

All joking aside, up with a common terminology — a lingua franca (thanks @AaronNGray!) — definitely has some advantages.

What terms do you think communicate these levels of organization most succinctly? Let us know!

rimu,
@rimu@mastodon.nzoss.nz avatar

@jupiter_rowland @mikedev @mario

"If you really aim to create a common language for the whole Fediverse and make it pretty much mandatory"

No no, that's not the intent :)

It's great if we use different words as long as we all understand the meaning behind them. Ideally when a NodeBB dev says "Post" they mean X and when I see them say "Post" i know they mean X (which I as a PieFed dev refer to as "Comment" or whatever).

Attached is the current state of the spreadsheet, FYI.

rimu,
@rimu@mastodon.nzoss.nz avatar

@jupiter_rowland @mikedev @mario You can see the spreadsheet just documents the words we use it makes no attempt to prescribe a particular word.

rimu, to retrocomputing
@rimu@mastodon.nzoss.nz avatar

Absolutely loving the "Hercules 1982" theme for .

Hercules was the brand of graphics card for the IBM PC that was widely used in the 1980s.

It could do two colours - black and whatever colour the monitor was. For my first year I had a green monitor and then an amber one for the next two years.

You can try it by choosing the theme at https://piefed.social/user/settings

A screenshot of PieFed. All the text is monospaced with an green colour on a near-black background.

adele, to random
@adele@phpc.social avatar

Do you remember, several decades ago, when icons, buttons, logos, smileys.. were all stored in a unique gif or png image on your website ?
This image was cut by background-image css rules to extract elements from it with position, height, width and shifting. So, there were only one request to the server to grab all the design elements.
That was funny and tricky to do.
I wonder if some sites still works that way 🤔

rimu,
@rimu@mastodon.nzoss.nz avatar

@adele old.reddit.com does :)

rimu, to CSS
@rimu@mastodon.nzoss.nz avatar

For the , I've made a theme based on the trans pride flag and set it as the default theme on .

https://piefed.social/post/76469

TodePond, to random
@TodePond@mas.to avatar

ARE THERE ANY FILE TRANSFER PROTOCOL web hostings anymore?

i want to drop HTML files on a BOX and let people DOWNLOAD the html files

please send recommendations

rimu,
@rimu@mastodon.nzoss.nz avatar

@TodePond

I've been using Greengeeks for 15 years, they've been great!

https://www.greengeeks.com/track/rimuatkinson

phil_stevens, to random
@phil_stevens@mastodon.nz avatar

Vale, Rod Oram. You will be missed by many, and our gratitude for what you did is beyond measure.

https://newsroom.co.nz/2024/03/20/prominent-columnist-and-environmentalist-rod-oram-dies/

rimu,
@rimu@mastodon.nzoss.nz avatar

@phil_stevens Too often he was the only one saying anything sensible. Gutted.

rimu, to lemmy
@rimu@mastodon.nzoss.nz avatar

Not sure if you noticed but half the is memes. They're not my thing but I enjoyed putting together the best meme consumption experience I could.

Check it out in this video https://www.youtube.com/watch?v=IXVhb4sVZV4 or go to https://piefed.social/topic/chilling/memes?layout=masonry_wide&sort=hot to use it yourself. Click/tap on any image for a full screen lightbox-style image gallery that you can move through by swiping or using the arrow keys.

Can you think of any improvements?

rimu,
@rimu@mastodon.nzoss.nz avatar

@slumberingcat Yes, great graphic there. N Masonry is what PieFed has because it's very quick and easy to code - but it is the worst for the user.

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

“Just have a glass hammer ready”
These don’t work with laminated security glass found in many cars now.

“Just read the manual”
Let’s see if you do when you’re sitting in the dark in ice-cold water and you’re about to drown.

“Just don’t put the car in reverse”
Tesla S chooses gear by itself.

You know what hat we should “just” do?
Just regulate the fucking tech bro car industry to not ship death traps.

rimu,
@rimu@mastodon.nzoss.nz avatar

@thomasfuchs The unbreakable glass was a major selling point...

https://www.drive.com.au/news/tesla-patents-unbreakable-armour-glass/

rimu, to fediverse
@rimu@mastodon.nzoss.nz avatar
rimu, to PostgreSQL
@rimu@mastodon.nzoss.nz avatar

Added full-text search to #PieFed today.

After reading a massive tome about #ElasticSearch earlier this week I realised it was complete overkill and just used the full-text capabilities of #PostgreSQL instead.

Currently PieFed has 46,000 posts and results are fast. It'll be interesting to see how well it copes when there are more posts. Anyone want to make a guess when it'll bog down?

https://piefed.social/post/48889

rimu,
@rimu@mastodon.nzoss.nz avatar

@kopper Sonic looks amazing, thanks!

rimu,
@rimu@mastodon.nzoss.nz avatar

@sanityinc I think there's GIN involved - the module I'm using mentions them in the code... Line 239 https://github.com/falcony-io/sqlalchemy-searchable/blob/master/sqlalchemy_searchable/

rimu, to fediverse
@rimu@mastodon.nzoss.nz avatar
rimu, (edited )
@rimu@mastodon.nzoss.nz avatar

PieFed is a link sharing platform so every post has a 'url' field. By embedding the post url into the RSS feed entry, we get images in our feed if the posts have images. The example I gave in the earlier toot uses images but it could be anything, including video or audio.

Podcasts are just RSS feeds with audio files. This means is also a federated platform - every community is also a podcast, if the things you post in the community are just links to mp3 files.

💥 🔥 🎵

youronlyone, to fediverse
@youronlyone@c.im avatar

If you haven't heard, sadly, , one of the popular “groups” platform, is shutting down “probably” on February 29th.

In an email they sent to admins, the owner and developer can no longer support https://chirp.social financially as they failed to find a new job after they were laid off by last year.

So, if you have a Chirp.Social groups, either move to (https://a.gup.pe) (as suggested by Chirp.Social), or if I may, to (https://fedia.io), an [flagship] instance.

This reminds us the importance of having a built-in groups feature, and one where the groups feature actually federates.

Back in 2008, when the was born, we did have a built-in federated groups in / (today known as ). We used bang (!) instead of at (@). A built-in groups feature is more stable as established instances can host them.

Today, we have and (as well as -based instances) to fill in that, as groups is a built-in feature in those software products. It's just a matter of finding an instance that's open to hosting groups for any topic for the ActivityPub protocol.

That said, any Friendica, Hubzilla, Streams-based instances you suggest for groups?

rimu,
@rimu@mastodon.nzoss.nz avatar

@youronlyone Give https://piefed.social a try. It federates with Lemmy and Mbin.

Edent, to fediverse
@Edent@mastodon.social avatar

🆕 blog! “ActivityPub Server in a Single PHP File”

Any computer program can be designed to run from a single file if you architect it wrong enough! I wanted to create the simplest possible Fediverse server which can be used as an educational tool to show how ActivityPub / Mastodon works. The design goals were: Upload a single PHP file to the server. No […]

👀 Read more: https://shkspr.mobi/blog/2024/02/activitypub-server-in-a-single-file/

rimu,
@rimu@mastodon.nzoss.nz avatar

@Edent I enjoyed the little jokes in the comments :)

Looks like you've got the hang of it. It's all just learning the quirks of different implementations, now!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • kavyap
  • everett
  • thenastyranch
  • magazineikmin
  • ngwrru68w68
  • DreamBathrooms
  • hgfsjryuu7
  • Youngstown
  • slotface
  • PowerRangers
  • InstantRegret
  • khanakhh
  • rosin
  • Leos
  • Durango
  • vwfavf
  • tacticalgear
  • mdbf
  • tester
  • GTA5RPClips
  • ethstaker
  • osvaldo12
  • modclub
  • cisconetworking
  • normalnudes
  • cubers
  • provamag3
  • All magazines