rimu

joined 8 months ago
MODERATOR OF
[–] rimu@piefed.social 6 points 5 days ago

Hi Jerry,

All good questions which reveal holes in our documentation! Quite a lot of the contents of .env are optional.

  1. There is no S3 support yet. You might not need it though - after almost 1 year of operation piefed.social only has 14 GB of media saved. I've put a bit of thought into how to minimize disk usage with good results.

  2. Yes if you leave BOUNCE_ADDRESS empty it'll go back to the sender instead.

  3. It's configured in the .env file. You need an IMAP email inbox somewhere, which is outside of piefed's scope to provide. The BOUNCE_* stuff is for logging into that inbox, which you won't need to provide if not using BOUNCE_ADDRESS.

  4. Yes, set MODE='production', case sensitive. AFAIK anything other than 'development' will cause production mode to be used.

  5. That's used to connect to https://sentry.io for debugging purposes. You won't need that.

  6. MAIL_ERRORS=True will cause piefed to send you an email whenever a bug occurs. I don't recommend using this unless you're doing development work. You also need to have MAIL_* all set up nicely for it to work - it needs a SMTP server to connect to.

[–] rimu@piefed.social 3 points 6 days ago

I'm guessing it's a PeerTube thing. It started happening to me after I scrolled past a few dozen videos which makes me think it's a rate limit with a misleading error message.

https://github.com/Chocobozzz/PeerTube/issues/6457

[–] rimu@piefed.social 3 points 6 days ago

There is one community with lots of .mp4 videos - https://piefed.social/c/ukraine@sopuli.xyz. These seem way way more efficient than YouTube so I haven't seen the need to get too clever with lazy loading those, although it's doable if necessary.

[–] rimu@piefed.social 6 points 6 days ago* (last edited 6 days ago) (3 children)

Yes I put a bit of effort into the multiple-video issue, with low powered devices in mind.

The biggest win on that front was lazy-loading the YouTube embeds. Also I found that Chrome can handle quite a lot of videos at once while Firefox gets overwhelmed pretty easily. In my testing with Chrome on my 2012 Macbook https://piefed.social/c/videos@lemmy.world performed okaaay. The tab used only 90 MB of RAM, surprisingly.

Videos in communities are only loaded if running on AC power and the way that is detected is using a fairly recent browser API that is only provided by Chrome (and derivatives). I'm not simply using loading="lazy" on the ``, I'm using JS to add extra logic to do with the battery. Browsers that don't have the battery API (Safari, Firefox, 10 year old Chrome) load an image instead. Even Chrome will use an image instead if running on battery power (e.g. on a phone that is not charging).

I think I've been pretty conservative in this regard.

 

We tried to hold back from coding new stuff in order for things to stabilize but it didn't work out. Maybe next month. Instead, we made a whole bunch of cool things:

rimu

  • Detect offline instances and stop federating to them until they come back. feamon helped a lot with this.
  • Private voting - see https://piefed.social/post/205362 for background.
  • Remove moment.js to ease load on clients. We were using a quite heavy javascript library to format dates on the client side but removing the JS and doing it in Python on the backend instead more than halved the amount of JS we need to send (we're now down to 70 KB, gzipped).
  • Post teaser redesign - the most significant visual change since the beginning. Image posts now have a much larger preview image and video posts can be played without going to the post itself. YouTube videos are lazy-loaded just before scrolling into view but only if running on AC power. Devices running off a battery (or like Firefox which do not support the battery API) will only load the video once you visit the post page, not while scrolling the feed.
  • Use a connection pool for federation - rather than making a new network connection to send an Activity, PieFed will reuse an existing connection where possible. This has less overhead and results in faster federation.

hendrik

  • Better notifications about comments buried deep in a thread

freamon

  • Better federation of bans from remote admins.
  • use HTML portion of Activity instead of Markdown. Lemmy sends Activitys as both Markdown and HTML. For a long time PieFed would use the Markdown and convert it to HTML for display but now it just uses the HTML that Lemmy provides.
  • Image alt text federation
  • Backfilling improvements especially with image posts.
  • Many misc bugfixes

JollyDevelopment

  • New theme - "card shadow" - this quickly became a favorite among the dev team and both freamon and myself use it. It's basically the same as the default except there are shadows behind things, giving a more 3D look to the interface and giving a bit more visual hierarchy. It's nice, try it - https://piefed.social/user/settings
  • Admin page - instance administration - there is a table showing all the instances you're federating with and stats for each instance.
  • Profile export - PieFed has had the functionality to import settings from a Lemmy profile for a long time but now it's possible to go the other way and export settings from PieFed to Lemmy.
  • Add remote form - The form for adding a remote community used to require you to type the community as !whatever@instance.com but now you can give the URL as well, e.g. https://instance.com/c/whatever

--

As a free and open source project, PieFed receives no funding and developers are not paid. Any donations you can spare will help cover server and infrastructure costs - https://piefed.social/donate. Thanks!

[–] rimu@piefed.social 11 points 1 week ago (1 children)

This is over 4x longer than the longest undersea cable in the world

HVDC transmission losses are quoted at 3.5% per 1,000 km

So 15.75% of the electricity would just vanish. That takes the shine off it a bit although if the price difference is big enough it would still be worth doing.

[–] rimu@piefed.social 2 points 1 week ago* (last edited 1 week ago)

I probably should have phrased it as "have less children" :)

My list was based on the book "How Bad Are Bananas" which goes into depth about the carbon emissions from various things, including children.

I'm not 100% sure that attributing the emissions of a child to their parents is correct 'accounting'. Maybe only their emissions until age 18? Still, all the emissions caused by that child and it's descendants would not have happened if it wasn't for the decision their parents made to create it. Accounted for this way, there is no doubt this is the most impactful decision someone in a developed country can make (that was the framing the OP used so I went with that) but it is not the most likely to happen, most practical or most moral option.

[–] rimu@piefed.social 60 points 1 week ago (1 children)
[–] rimu@piefed.social 8 points 1 week ago* (last edited 1 week ago) (9 children)
  • Don't have children
  • Don't build a house with concrete (incl foundation)
  • Public transport and cycling
  • No beef and minimize dairy products
[–] rimu@piefed.social 14 points 2 weeks ago

Osama Bin Laden got what he wanted

[–] rimu@piefed.social 5 points 2 weeks ago

You need to install some things ("build dependencies") before installing this app. Examine the documentation to see what those things are.

[–] rimu@piefed.social 1 points 2 weeks ago

Story by a game dev who gave up on Rust after 3 years https://loglog.games/blog/leaving-rust-gamedev/

[–] rimu@piefed.social 1 points 2 weeks ago

[For CO2 storage to make a difference] the envisaged CO2 storage industry is comparable to the current scale of the hydrocarbon industry

lol, what.

70% of the projects proposed to be operational by 2020 were not implemented

only around 9 Mt yr−1 of a total capture capacity of 45 Mt yr−1 is injected for dedicated storage, with the rest used for enhanced oil recovery

So most of the time they just do it when it means they can get more oil.

 

A new contributor, "JollyDevelopment" made some improvements:

  • Fixed a very annoying bug where enabling the markdown editor emptied the text input field
  • Changed the home page so there are now separate sorting and filtering options, making the 'Popular' and 'All' home pages obsolete. They have been removed from the main menu.
  • Added a 'dev tools' page so developers can easily create large amounts of dummy content to test with
  • Added a suggest a topic form

"wakest" created a very efficient SVG icon for PieFed that is 5x smaller than the old .png icon.

Also I did a few things:

  • Made wide tables scroll rather than overlap the sidebar
  • Communities can be blocked. Good if you regularly browse posts by 'All' which is bit of a firehose.
  • Some mastodon integration bugs
  • Wrote a guide about how to install the PieFed mobile app

As you can see we don't have a lot of really big news to share, lately. It nearly feels like a good time to call an end to the beta test phase of PieFed's development and formally release a version. With that in mind, over the next little while, we will focus on stability and bug fixes so the first release is something people can stick with without immediately getting back on the dev branch treadmill.

 

Just a quick note to recognize that the first lines of PieFed code were published on the 28th July 2023, just over a year ago. Since then there have been 1400+ changes made by 9 people, involving adding 88,000 lines of code and removing 28,000 lines. The issue queue has 98 open and 99 closed issues.

While join.piefed.social went live in October 2023, it wasn't until time off work over the christmas holidays enabled a big push to get it ready that piefed.social went live on 4th January 2024.

Since then piefed.social has federated 190k posts, 2.3M comments and 19M votes with 1900 other instances of various types. Besides piefed.social there are 5 other PieFed instances that I know of.

What a year it's been! I've grown significantly as a developer, had a lot of fun and hopefully contributed something meaningful to whatever the fediverse is becoming. Long may it continue!

 

NASA’s Scientific Visualization Studio has released a video showing how wind and air currents pushed CO2 emissions around Earth’s atmosphere from January to March 2020. The video’s high-resolution zooms in and sees individual sources of CO2, including power plants and forest fires.

This global map of carbon dioxide was created using a model called GEOS, short for the Goddard Earth Observing System. GEOS is a high-resolution weather reanalysis model, powered by supercomputers, that is used to represent what was happening in the atmosphere — including storm systems, cloud formations, and other natural events. This model pulls in billions of data points from ground observations and satellite instruments – and has a resolution is more than 100 times greater than your typical weather model.

More at https://www.universetoday.com/167872/our-carbon-dioxide-emissions-have-a-mesmerizing-side/

 

In this paper the author highlights how both engineers and social scientists misinterpret the relationship between technology and society. In particular he attacks the narrative, widespread among engineers, that technological artifacts, such as software, have no political properties in themselves and that function or efficiency are the only drivers of technological design and implementation.

 

Move the dots until none of the lines overlap.

 

CSS Grid support has been widely available since March 2017 in all major browsers. Yet, here we are in 2024, and I still see few people using the grid template areas feature.

It’s no surprise that many avoid template areas as making sense of the grid is challenging enough. In this interactive article, I aim to shed light on this feature and, hopefully, convince you to use it more often. Once you see the simplicity and power of template areas, you may reach for them much more frequently.

 

Porting from Django+React to a Django+HTMX based stack

 

Over the last 3 weeks there have been significant contributions from h3ndrik and myself.

H3ndrik

  • Many many under the hood improvements. Simplifying code & improving performance.
  • Better lightbox
  • Improve post teaser layout

Rimu

12
submitted 3 months ago* (last edited 3 months ago) by rimu@piefed.social to c/piefed_meta@piefed.social
 

A new contributor, h3ndrik, has made significant improvements to the filtering options for NSFW/NSFL content and I've also added some options to the same form which control when comments are collapsed or hidden.

Previously, NSFW was a yes or no option but now you can choose to have it unblurred, blurred, semi-transparent or entirely hidden.

The defaults values for collapse and hide are:

  • when a comment has a score of -10 it is shown but in a collapsed state. You can click on it to expand it and read it. This has always been the case but now you can change that threshold.
  • a score of -20 means the comment will not be shown. There is no way to make it visible and no indication that it was ever posted and no temptation to click on it.

You might want to review those settings to make sure they're suitable for you: https://piefed.social/user/settings/filters. If you don't want comments hidden then remove the -20 from that field or set it to -1000.

view more: next ›