0

Mesures identitaires | Fréchette veut prioriser l’accès à certains services aux « Québécois »

La Presse Mesures identitaires | Fréchette veut prioriser l’accès à certains services aux « Québécois » www.lapresse.ca
preview

- Venez pour l’élection on joue à qui est le plus raciste ?
- Ah ouais trop bien !
🫠

- Venez pour l’élection on joue à qui est le plus raciste ?
- Ah ouais trop bien !
🫠

0

Une voiture fonce (seule ?) sur la foule lors de la manifestation pour le climat à Clermont-Ferrand, le conducteur en garde à vue

France 3 Auvergne-Rhône-Alpes Une voiture fonce dans la foule lors de la manifestation pour le climat à Clermont-Ferrand, le conducteur fait l'objet d'une expertise psychiatrique france3-regions.franceinfo.fr
0

TikTok, Meta and YouTube All Won't Run Ads for Musk Doc

The Hollywood Reporter The Major Social Media Platforms Are All Rejecting Paid Ads for Alex Gibney’s ‘Musk’ (Exclusive) www.hollywoodreporter.com
preview

Media consolidation, working as intended 😡.

UPDATE: avclub.com/meta-and-google-walk-back-decision-not…

Media consolidation, working as intended 😡.

UPDATE: avclub.com/meta-and-google-walk-back-decision-not…

0

Video - Blackouts Can’t Stop This Havana Movie Night

play · peertube.world
PeerTube.world Blackouts Can’t Stop This Havana Movie Night peertube.world
preview

Duration - 2:37

[a video on Peertube about Cuba from the news collective Belly Of The Beast]

Mobile cinemas first brought films to rural Cuba in the 1960s, when the revolutionary government sent trucks mounted with projectors across the island.

Today, Cuban documentary filmmaker Gloria Rolando Casamayor honors that tradition in Havana’s Colón neighborhood. Every weekend, she gathers her neighbors and sets up a portable projector for movie night, even when there is a blackout.

Duration - 2:37

[a video on Peertube about Cuba from the news collective Belly Of The Beast]

Mobile cinemas first brought films to rural Cuba in the 1960s, when the revolutionary government sent trucks mounted with projectors across the island.

Today, Cuban documentary filmmaker Gloria Rolando Casamayor honors that tradition in Havana’s Colón neighborhood. Every weekend, she gathers her neighbors and sets up a portable projector for movie night, even when there is a blackout.

0

'Significant majority' of Republic of Ireland players voted to play Israel game

the Guardian Republic of Ireland’s Gavin Bazunu boycotts Israel match ‘as a person of principle’ www.theguardian.com
preview

Apparently ‘something’ is being organised for the Ireland vs Austria game to allow the fans to express their opinions on this decision. But I haven’t heard any more.

Ireland players vote to go ahead with Israel matches despite ‘different views’

  • Scheduled press conference and training session delayed

  • Irish FA admits ‘players shared different views

The Republic of Ireland’s Nations League fixtures with Israel will go ahead after players voted on Saturday for the matches to be played.

The scheduled press conference before Sunday’s first game – which is being played in Debrecen in Hungary – was delayed until Saturday afternoon, raising doubts as to whether the match would be cancelled.

However, the Football Association of Ireland confirmed it will be played. “The Association made this decision following consultation with the Republic of Ireland players who shared different views and a majority expressed that the fixtures should be played. The Association respects the views of all players involved and appreciates the level of sensitivity concerning these fixtures.”

A group of players were believed to have held a meeting in the team hotel after missing the initial press conference, which was scheduled for 10.15am local time, and scheduled training at the Nagyerdei Stadium 45 minutes later.

Uefa officials were unsure of the reason behind the delay, although players had announced they would meet on Friday to discuss the situation. There were reports a player statement would be released before the originally scheduled press conference and speculation on Saturday morning that a player had refused to play in the match. Teams who do not meet obligations can be subject to warnings or fines from Uefa.

After Thursday’s 1-0 defeat to Kosovo in Pristina that began the Republic’s Nations League campaign, the midfielder Jason Knight said: “It’s difficult. I don’t think the game should be going ahead, but it is going ahead. We’ll have a deeper talk about it and what that means, we’ll get our thoughts as a group and go from there.

“None of us have gone through this scenario before, but I’d like to think I’m experienced, thick-skinned and I can get through most things and that is what I will try to do.

“I’ll try to focus on the football as much as I can. I’ll give my view and my thoughts on it [the Israel games] when I see fit, but I’ll be trying to focus on the football as much as possible.” Continue reading here - theguardian.com/…/ireland-players-vote-to-go-ahea…

Apparently ‘something’ is being organised for the Ireland vs Austria game to allow the fans to express their opinions on this decision. But I haven’t heard any more.

Ireland players vote to go ahead with Israel matches despite ‘different views’

  • Scheduled press conference and training session delayed

  • Irish FA admits ‘players shared different views

The Republic of Ireland’s Nations League fixtures with Israel will go ahead after players voted on Saturday for the matches to be played.

The scheduled press conference before Sunday’s first game – which is being played in Debrecen in Hungary – was delayed until Saturday afternoon, raising doubts as to whether the match would be cancelled.

However, the Football Association of Ireland confirmed it will be played. “The Association made this decision following consultation with the Republic of Ireland players who shared different views and a majority expressed that the fixtures should be played. The Association respects the views of all players involved and appreciates the level of sensitivity concerning these fixtures.”

A group of players were believed to have held a meeting in the team hotel after missing the initial press conference, which was scheduled for 10.15am local time, and scheduled training at the Nagyerdei Stadium 45 minutes later.

Uefa officials were unsure of the reason behind the delay, although players had announced they would meet on Friday to discuss the situation. There were reports a player statement would be released before the originally scheduled press conference and speculation on Saturday morning that a player had refused to play in the match. Teams who do not meet obligations can be subject to warnings or fines from Uefa.

After Thursday’s 1-0 defeat to Kosovo in Pristina that began the Republic’s Nations League campaign, the midfielder Jason Knight said: “It’s difficult. I don’t think the game should be going ahead, but it is going ahead. We’ll have a deeper talk about it and what that means, we’ll get our thoughts as a group and go from there.

“None of us have gone through this scenario before, but I’d like to think I’m experienced, thick-skinned and I can get through most things and that is what I will try to do.

“I’ll try to focus on the football as much as I can. I’ll give my view and my thoughts on it [the Israel games] when I see fit, but I’ll be trying to focus on the football as much as possible.” Continue reading here - theguardian.com/…/ireland-players-vote-to-go-ahea…

0

Andy Burnham rules out giving Wales independence referendum powers

BBC News Andy Burnham rules out giving Wales independence referendum powers www.bbc.co.uk
preview

FFS tied to a sinking ship, that steals our water(which we’re going to need in the coming water wars) and whatever else they fancy

Not that I think it’d be a good idea to hold a referendum yet but the cause is gaining momentum

FFS tied to a sinking ship, that steals our water(which we’re going to need in the coming water wars) and whatever else they fancy

Not that I think it’d be a good idea to hold a referendum yet but the cause is gaining momentum

0

Video - Global South Stands with Cuba at United Nations

play · peertube.world
PeerTube.world Global South Stands with Cuba at United Nations peertube.world
preview

Duration - 3:09

[a video on Peertube about Cuba from the news collective Belly Of The Beast]

While Donald Trump told the United Nations General Assembly this week that Cuba is “failing like never before,” world leaders from across the Global South stood with the island to denounce the U.S. economic war on Cuba.

Listen to what world leaders had to say about Cuba at the UN.

Duration - 3:09

[a video on Peertube about Cuba from the news collective Belly Of The Beast]

While Donald Trump told the United Nations General Assembly this week that Cuba is “failing like never before,” world leaders from across the Global South stood with the island to denounce the U.S. economic war on Cuba.

Listen to what world leaders had to say about Cuba at the UN.

0

Joby Aviation have demoed their self-flying AI tech, by having a converted Cessna fly from the US West to East coast 100% autonomously.

Joby Completes First-Ever Fully Autonomous Flight Across the United States | Joby Aviation www.jobyaviation.com
preview

“The aircraft, a converted Cessna Caravan, performed autonomous taxiing, takeoffs, route navigation, and landings under remote supervision from Joby’s Autonomy Headquarters in California and Shaw Air Force Base in South Carolina, up to 2,323 miles away. The journey demonstrated the operational capabilities of Joby’s autonomy technology across a range of environments, supporting applications in commercial freight, medical transport, disaster response, and defense logistics.”

We can see 2 ways future air travel may get much cheaper now that electric powered flight is becoming a reality for smaller/mid-sized planes. Cheap fuel (electricity) & much lower staffing costs thanks to self-flying tech.

Will there one day be an airline that is 100% electric and only self-flying? Probably. This strikes me as a great option for people who live in more sparsely populated areas. They are not economical for the big airlines, but they may be for an all-electric self-flying airline.

Joby Completes First-Ever Fully Autonomous Flight Across the United States

“The aircraft, a converted Cessna Caravan, performed autonomous taxiing, takeoffs, route navigation, and landings under remote supervision from Joby’s Autonomy Headquarters in California and Shaw Air Force Base in South Carolina, up to 2,323 miles away. The journey demonstrated the operational capabilities of Joby’s autonomy technology across a range of environments, supporting applications in commercial freight, medical transport, disaster response, and defense logistics.”

We can see 2 ways future air travel may get much cheaper now that electric powered flight is becoming a reality for smaller/mid-sized planes. Cheap fuel (electricity) & much lower staffing costs thanks to self-flying tech.

Will there one day be an airline that is 100% electric and only self-flying? Probably. This strikes me as a great option for people who live in more sparsely populated areas. They are not economical for the big airlines, but they may be for an all-electric self-flying airline.

Joby Completes First-Ever Fully Autonomous Flight Across the United States

0

The 8 Best Vampire Anime, Ranked | Den of Geek

Den of Geek The 8 Best Vampire Anime, Ranked | Den of Geek www.denofgeek.com
preview

Of the anime I’ve seen on this list, I agree with their rankings. I’ll definitely be checking out the ones I haven’t seen.

Hellsing Ultimate and Vampire Hunter D: Bloodlust are amazing. Definitely watch them if you can.

Of the anime I’ve seen on this list, I agree with their rankings. I’ll definitely be checking out the ones I haven’t seen.

Hellsing Ultimate and Vampire Hunter D: Bloodlust are amazing. Definitely watch them if you can.

0

Devlog: two Lemmy posts brought 23 first time players and none of them came back. What the data said, and what I changed.

LA ÚLTIMA LUZ LA ÚLTIMA LUZ, the last light of the internet ultimaluz.com
preview

Short version: the channel worked and the game did not retain a single person. Here is the autopsy, because the numbers turned out to be more specific than I expected.

The game is a shared 256x256 pixel canvas where an AI adversary erases what people paint. Free, browser, no account. Two posts, one in a pixel art community and one in a web games community, brought 150 arrivals, 38 sessions and 23 people who actually painted. That is more than the project had seen in its entire life. Of those 23, one came back to look and zero painted on a second day.

What the sessions looked like:

  • 18 of 23 lasted two minutes or less. Median time from first pixel to last: 41 seconds.
  • Median 19 pixels painted. 9 of 23 spent all 30 charges (the bucket refills one charge every 30 seconds).
  • In 14 of 23, most of their cells were cells taken back from the adversary. They were not decorating, they were fighting her.
  • In 18 of 23 she erased cells while the player was still there, and between 126 and 423 more in the 25 minutes after they left.
  • Nobody used undo. Zero comments on either post.

What I read from that: the first session is 30 pixels long, it ends when the charges end, and nothing happens at that moment. No closure, no name, no reason to come back. The adversary was already reacting to them, but she is forbidden from touching any pixel younger than 72 hours, so her answer always landed somewhere they were not looking.

What shipped since, in two passes.

First, making her legible in the first minute:

  • When your bucket hits zero she speaks to you, by name, once in your life. The zero stops being a bare number and becomes a state with a countdown.
  • Her answer to the cells you took back travels signed, so you can tell it was aimed at you.
  • The identity prompt stopped interrupting the burst.
  • Her blitz finally respects the 72 hour protection on young pixels, which the code promised in writing and did not do. That single bug had eaten 238 of the 403 cells that cohort painted.
  • Instrumentation for the whole first session, so the next wave is measured instead of guessed.

Then, a deeper problem: subtraction is invisible. Nobody notices what is no longer there. A tower sixteen storeys tall, which costs 24 charges of attention, vanished in one hit that cost her exactly what a flat pixel costs. So:

  • Height is now resistance. One hit takes one storey off a tower; only a flat light goes out in a single blow. A first session is still as fragile as it was, because nobody builds storeys in their first minute, but what you invested in now holds.
  • And she does not only erase, she converts: every storey she takes she raises as her own cold cube in the void cell beside it, and the ring of a siege now rises a storey, so you watch the cage close around a work before the blow lands. Her towers fall in one pixel when you reclaim the cell. Hers is brittle, yours is stubborn.
  • And the welcome screen stopped being eight paragraphs nobody read. It is now a four step animation that shows how to build, what her hit does and how to take a cell back, with one line of text under it.

This post is part of the second wave. The success criterion was written down before publishing so I cannot move it afterwards: at least one in five of the people who reach zero charges spends a second batch, and at least 3 of the new painters paint again within 72 hours. Baseline is 0 and 0.

The thing itself, if you want to look: ultimaluz.com/r/lemmy-gamedev

One critique I would genuinely like: is a hostile adversary the wrong shape for a first session, or is the shape fine and what was missing is an ending?

Short version: the channel worked and the game did not retain a single person. Here is the autopsy, because the numbers turned out to be more specific than I expected.

The game is a shared 256x256 pixel canvas where an AI adversary erases what people paint. Free, browser, no account. Two posts, one in a pixel art community and one in a web games community, brought 150 arrivals, 38 sessions and 23 people who actually painted. That is more than the project had seen in its entire life. Of those 23, one came back to look and zero painted on a second day.

What the sessions looked like:

  • 18 of 23 lasted two minutes or less. Median time from first pixel to last: 41 seconds.
  • Median 19 pixels painted. 9 of 23 spent all 30 charges (the bucket refills one charge every 30 seconds).
  • In 14 of 23, most of their cells were cells taken back from the adversary. They were not decorating, they were fighting her.
  • In 18 of 23 she erased cells while the player was still there, and between 126 and 423 more in the 25 minutes after they left.
  • Nobody used undo. Zero comments on either post.

What I read from that: the first session is 30 pixels long, it ends when the charges end, and nothing happens at that moment. No closure, no name, no reason to come back. The adversary was already reacting to them, but she is forbidden from touching any pixel younger than 72 hours, so her answer always landed somewhere they were not looking.

What shipped since, in two passes.

First, making her legible in the first minute:

  • When your bucket hits zero she speaks to you, by name, once in your life. The zero stops being a bare number and becomes a state with a countdown.
  • Her answer to the cells you took back travels signed, so you can tell it was aimed at you.
  • The identity prompt stopped interrupting the burst.
  • Her blitz finally respects the 72 hour protection on young pixels, which the code promised in writing and did not do. That single bug had eaten 238 of the 403 cells that cohort painted.
  • Instrumentation for the whole first session, so the next wave is measured instead of guessed.

Then, a deeper problem: subtraction is invisible. Nobody notices what is no longer there. A tower sixteen storeys tall, which costs 24 charges of attention, vanished in one hit that cost her exactly what a flat pixel costs. So:

  • Height is now resistance. One hit takes one storey off a tower; only a flat light goes out in a single blow. A first session is still as fragile as it was, because nobody builds storeys in their first minute, but what you invested in now holds.
  • And she does not only erase, she converts: every storey she takes she raises as her own cold cube in the void cell beside it, and the ring of a siege now rises a storey, so you watch the cage close around a work before the blow lands. Her towers fall in one pixel when you reclaim the cell. Hers is brittle, yours is stubborn.
  • And the welcome screen stopped being eight paragraphs nobody read. It is now a four step animation that shows how to build, what her hit does and how to take a cell back, with one line of text under it.

This post is part of the second wave. The success criterion was written down before publishing so I cannot move it afterwards: at least one in five of the people who reach zero charges spends a second batch, and at least 3 of the new painters paint again within 72 hours. Baseline is 0 and 0.

The thing itself, if you want to look: ultimaluz.com/r/lemmy-gamedev

One critique I would genuinely like: is a hostile adversary the wrong shape for a first session, or is the shape fine and what was missing is an ending?

0

Anyone used a counter top induction hot plate for boiling?

preview

I’m not able to dedicate time to 5 gal batches anymore. I’m thinking about getting a hot plate and brewing 1 or 2 gals. Anyone tried that?

I’m not able to dedicate time to 5 gal batches anymore. I’m thinking about getting a hot plate and brewing 1 or 2 gals. Anyone tried that?

0

Airbnb hosts are already evicting seniors ahead of the 2028 Olympics [Video Short]

preview

Landlords in LA are evicting tenants to convert apartments into Airbnbs ahead of the 2028 Olympics.

They’re using a legal loophole to evict people who should be able to stay in their homes, and upending countless lives in the process.

Landlords in LA are evicting tenants to convert apartments into Airbnbs ahead of the 2028 Olympics.

They’re using a legal loophole to evict people who should be able to stay in their homes, and upending countless lives in the process.

0

Outrage as East German town bans Holocaust ‘stumbling blocks’ | CNN

preview

A small town in eastern Germany banned the installation of new Holocaust memorial plaques that mark the last known residence or workplace of Jews and other victims of the genocide.

The motion was proposed by the far-right Alternative for Germany (AfD) and the centre-right Christian Democratic Union (CDU)…

A small town in eastern Germany banned the installation of new Holocaust memorial plaques that mark the last known residence or workplace of Jews and other victims of the genocide.

The motion was proposed by the far-right Alternative for Germany (AfD) and the centre-right Christian Democratic Union (CDU)…

0

Did newer Android versions sabotage the bottom navigation bar?

preview

I never used to have issues with this bar, but when I got my current phone it’s using a version of Android that defaults to that newer bar-less gesture based control scheme. I hate that new system so I changed it back to the bar.

But now I have this problem where I frequently get accidental presses on the nav bar while typing. It’s a daily occurrence that I will accidentally hit the home button while typing anything, which is annoying as hell. This never used to happen before.

Is it maybe just the particular phone I have, or has anyone else noticed the same issue? It’s obnoxious enough that I keep looking into getting a device with physical keyboard.

I never used to have issues with this bar, but when I got my current phone it’s using a version of Android that defaults to that newer bar-less gesture based control scheme. I hate that new system so I changed it back to the bar.

But now I have this problem where I frequently get accidental presses on the nav bar while typing. It’s a daily occurrence that I will accidentally hit the home button while typing anything, which is annoying as hell. This never used to happen before.

Is it maybe just the particular phone I have, or has anyone else noticed the same issue? It’s obnoxious enough that I keep looking into getting a device with physical keyboard.

0

Ireland players vote to play Israel match after boycott debate

preview

The Republic of Ireland will play Sunday’s Uefa Nations League match against Israel in Debrecen, Hungary, after the squad voted by a significant majority to go ahead with the fixture, Football Association of Ireland CEO David Courell said Saturday.

The vote followed reports that some players, including custodian Gavin Bazunu, had considered refusing to play in protest at Israel’s actions in Gaza, the Telegraph reported.

The team had spent several hours at its hotel, with players having a meeting to decide whether to boycott the match.

A pre-match press conference and training session scheduled for earlier were delayed before the players emerged from the meeting and the FAI confirmed the game would go ahead.

Courell added: "The vote was passed by a significant majority and manager Heimir Hallgrimsson and FAI Director of Football were also present at the subsequent news conference.

The Republic of Ireland will play Sunday’s Uefa Nations League match against Israel in Debrecen, Hungary, after the squad voted by a significant majority to go ahead with the fixture, Football Association of Ireland CEO David Courell said Saturday.

The vote followed reports that some players, including custodian Gavin Bazunu, had considered refusing to play in protest at Israel’s actions in Gaza, the Telegraph reported.

The team had spent several hours at its hotel, with players having a meeting to decide whether to boycott the match.

A pre-match press conference and training session scheduled for earlier were delayed before the players emerged from the meeting and the FAI confirmed the game would go ahead.

Courell added: "The vote was passed by a significant majority and manager Heimir Hallgrimsson and FAI Director of Football were also present at the subsequent news conference.

0

Could I have accidentally made thermite?

preview

Hi everyone,

A few years ago I tried to melt aluminium using an old steel fire extinguisher as crucible. This was done in a homemade foundry using coke as fuel.

Me having no patience, I tried getting the temperature up as fast as possible and a hole was melted in the crucible, producing a very bright light.

Could the molten aluminum have reacted with the rusty steel fire extinguisher to produce thermite?

Hi everyone,

A few years ago I tried to melt aluminium using an old steel fire extinguisher as crucible. This was done in a homemade foundry using coke as fuel.

Me having no patience, I tried getting the temperature up as fast as possible and a hole was melted in the crucible, producing a very bright light.

Could the molten aluminum have reacted with the rusty steel fire extinguisher to produce thermite?

0

Lemmy data pruning

preview

I host a lemmy instance for just my account. I don’t host any active community or anything, but after 4 years my docker volumes grew to 155GB in total size so I tried to do some cleaning as I don’t care that old content is not viewable anymore and I have limited storage (and no object storate for now).

I wanted to retain only the last year of content, but it turned out to be kind of difficult to achieve.

First of all, I didn’t find any documentation that explains how this should be done so I did a full database and pictrs backup, stopped lemmy (but started PostgreSQL back up), and did some digging myself, with pretty much no prior knowledge whatsoever of how lemmy works internally, but some postgres experience.

Database

Database size was 35GB.

Reviewing the database schema, I found that purging content should be pretty straightforward. Deleting old posts should be enough because the post table has a trigger that handles deleting associated comments.

Set retention to 1 year :

retention=365

Remove posts older than ${retention} :

docker compose exec -it postgres psql -U lemmy -d lemmy -c "DELETE FROM post WHERE published < NOW() - INTERVAL '${retention} days';"

This started computing, but failed after a while because a LIMIT statement within some trigger function ends up having an illegal negative value, probably a bug as far as I can tell. So I revised the above command in order to perform the DELETE by one day steps from 1500 days old onward, in an effort to locate where things start to fail.

for ((age=1500; age>=${retention}; age-=1)); do
    echo "Older than ${age} days:"
    docker compose exec -it postgres psql -U lemmy -d lemmy -c "DELETE FROM post WHERE published < NOW() - INTERVAL '${age} days';"
done

Doing this, I could pinpoint the age of the culprit post because the DELETE statement started failing at “older than 949 days”.

For those posts from this particular time interval, I disabled the triggers and performed the cleanup manually on the post and comment tables form psql.

  • Open a psql prompt on the container :
docker compose exec -it postgres psql -U lemmy -d lemmy
  • Disable the triggers on tables
ALTER TABLE comment DISABLE TRIGGER USER;
ALTER TABLE post DISABLE TRIGGER USER;
  • Delete comments of posts older than 949 days :
DELETE FROM comment 
WHERE post_id IN (
    SELECT id FROM post WHERE published < NOW() - INTERVAL '949 days';
);
  • Delete posts older than 949 days :
DELETE FROM post 
WHERE published < NOW() - INTERVAL '949 days';
  • Re-enable the triggers :
ALTER TABLE comment ENABLE TRIGGER USER;
ALTER TABLE post ENABLE TRIGGER USER;

Running the previous stepped DELETE again, it proceeded to purge the rest of the data without issue, although it took hours to complete on my modest VPS.

This purge deleted lots of rows, but to reclaim the space on filesystem (and rebuild the tables and indices fresh, which doesn’t hurt), I ran a VACUUM FULL on the database :

VACUUM FULL;

Database size is now 8GB. That’s 27GB reclaimed!

Pict-rs

This volume was taking 120GB. While I do know my way around PostgreSQL, Pict-rs is totally foreign to me. I figured I could try to purge files older than a year old based on find’s -mtime, not entirely sure if that would wreck the Pict-rs database or not, but having my volumes safely backed up, I tried it anyways :

  • Set retention to 1 year :
retention=365
  • Delete images older than the set retention :
find ./volumes/pictrs/files -type f -mtime +${retention} -delete
  • Clean up empty directories left behind :
find ./volumes/pictrs/files -type d -empty -delete

This took forever but it cleared up a lot of space, as the pict-rs volume is now 12GB. That’s 108 GB reclaimed!

I started lemmy to check things out, and while there are a few missing images here and there, all content from the last year is fine. My profile picture was gone, but I just uploaded another one.

For purging pict-rs, I realize that this method is kind of dumb but I didn’t know what better to do. I would have liked to remove only images from posts and comment I had just purged from the database, so that things like profile pictures, community thumbnails, profile banners and such are left untouched, but I don’t know how that could be done.

I’m relatively happy with the purge, and I won’t restore from backup. But I can’t help but feel this whole thing I did was pretty janky. Why is it such a massive pain to do housekeeping on lemmy? Are we expected to store everything until the end of time?

I host a lemmy instance for just my account. I don’t host any active community or anything, but after 4 years my docker volumes grew to 155GB in total size so I tried to do some cleaning as I don’t care that old content is not viewable anymore and I have limited storage (and no object storate for now).

I wanted to retain only the last year of content, but it turned out to be kind of difficult to achieve.

First of all, I didn’t find any documentation that explains how this should be done so I did a full database and pictrs backup, stopped lemmy (but started PostgreSQL back up), and did some digging myself, with pretty much no prior knowledge whatsoever of how lemmy works internally, but some postgres experience.

Database

Database size was 35GB.

Reviewing the database schema, I found that purging content should be pretty straightforward. Deleting old posts should be enough because the post table has a trigger that handles deleting associated comments.

Set retention to 1 year :

retention=365

Remove posts older than ${retention} :

docker compose exec -it postgres psql -U lemmy -d lemmy -c "DELETE FROM post WHERE published < NOW() - INTERVAL '${retention} days';"

This started computing, but failed after a while because a LIMIT statement within some trigger function ends up having an illegal negative value, probably a bug as far as I can tell. So I revised the above command in order to perform the DELETE by one day steps from 1500 days old onward, in an effort to locate where things start to fail.

for ((age=1500; age>=${retention}; age-=1)); do
    echo "Older than ${age} days:"
    docker compose exec -it postgres psql -U lemmy -d lemmy -c "DELETE FROM post WHERE published < NOW() - INTERVAL '${age} days';"
done

Doing this, I could pinpoint the age of the culprit post because the DELETE statement started failing at “older than 949 days”.

For those posts from this particular time interval, I disabled the triggers and performed the cleanup manually on the post and comment tables form psql.

  • Open a psql prompt on the container :
docker compose exec -it postgres psql -U lemmy -d lemmy
  • Disable the triggers on tables
ALTER TABLE comment DISABLE TRIGGER USER;
ALTER TABLE post DISABLE TRIGGER USER;
  • Delete comments of posts older than 949 days :
DELETE FROM comment 
WHERE post_id IN (
    SELECT id FROM post WHERE published < NOW() - INTERVAL '949 days';
);
  • Delete posts older than 949 days :
DELETE FROM post 
WHERE published < NOW() - INTERVAL '949 days';
  • Re-enable the triggers :
ALTER TABLE comment ENABLE TRIGGER USER;
ALTER TABLE post ENABLE TRIGGER USER;

Running the previous stepped DELETE again, it proceeded to purge the rest of the data without issue, although it took hours to complete on my modest VPS.

This purge deleted lots of rows, but to reclaim the space on filesystem (and rebuild the tables and indices fresh, which doesn’t hurt), I ran a VACUUM FULL on the database :

VACUUM FULL;

Database size is now 8GB. That’s 27GB reclaimed!

Pict-rs

This volume was taking 120GB. While I do know my way around PostgreSQL, Pict-rs is totally foreign to me. I figured I could try to purge files older than a year old based on find’s -mtime, not entirely sure if that would wreck the Pict-rs database or not, but having my volumes safely backed up, I tried it anyways :

  • Set retention to 1 year :
retention=365
  • Delete images older than the set retention :
find ./volumes/pictrs/files -type f -mtime +${retention} -delete
  • Clean up empty directories left behind :
find ./volumes/pictrs/files -type d -empty -delete

This took forever but it cleared up a lot of space, as the pict-rs volume is now 12GB. That’s 108 GB reclaimed!

I started lemmy to check things out, and while there are a few missing images here and there, all content from the last year is fine. My profile picture was gone, but I just uploaded another one.

For purging pict-rs, I realize that this method is kind of dumb but I didn’t know what better to do. I would have liked to remove only images from posts and comment I had just purged from the database, so that things like profile pictures, community thumbnails, profile banners and such are left untouched, but I don’t know how that could be done.

I’m relatively happy with the purge, and I won’t restore from backup. But I can’t help but feel this whole thing I did was pretty janky. Why is it such a massive pain to do housekeeping on lemmy? Are we expected to store everything until the end of time?

0

Favorite "Cozy" RTS?

preview

cross-posted from: lemmy.zip/post/72186385

Sometimes I like to get high and play a bunch of Starcraft 64. Something about the chunky graphics and CRT vibes just puts me in a good headspace and makes the stress of the world melt away.

What RTS do you turn to when you are just vibing?

cross-posted from: lemmy.zip/post/72186385

Sometimes I like to get high and play a bunch of Starcraft 64. Something about the chunky graphics and CRT vibes just puts me in a good headspace and makes the stress of the world melt away.

What RTS do you turn to when you are just vibing?

0

All of this has happened before, and all of this will happen again

preview

Actual dialog:

_Stargate SG-1_ S7E1 "Fallen"

Daniel gets kicked out of ascension land and is lying in the middle of a field or something. Just before a group of villagers stumble across his naked human body, the eldest one is telling parables:
> SHAMDA: The new animal took a look around and immediately went and chose a place next to the laziest, greediest beast in the stable. When the master saw this, he put a yoke on him at once and took him back to the merchant.
> KHORDIB: We’ve heard this one already.
> SHAMDA: Has it lost its meaning?
> KHORDIB: I mean you told it just now, on the way down to the waterhole.



_Stargate SG-1_ S10E20 "Unending"

While the team is stuck in a time bubble, Cameron starts going a bit senile:
> CAMERON: When I said that I wanted to get the team back together, work with you guys, learn from you… I did not mean every waking moment for the next fifty years.
> DANIEL: You said that yesterday.
> CAMERON: I did?
> TEAL’C: And the day before.
> VALA: And the day before that.
> CAMERON: Oh, sorry. I’ll just… shut up now.

Actual dialog:

_Stargate SG-1_ S7E1 "Fallen"

Daniel gets kicked out of ascension land and is lying in the middle of a field or something. Just before a group of villagers stumble across his naked human body, the eldest one is telling parables:
> SHAMDA: The new animal took a look around and immediately went and chose a place next to the laziest, greediest beast in the stable. When the master saw this, he put a yoke on him at once and took him back to the merchant.
> KHORDIB: We’ve heard this one already.
> SHAMDA: Has it lost its meaning?
> KHORDIB: I mean you told it just now, on the way down to the waterhole.



_Stargate SG-1_ S10E20 "Unending"

While the team is stuck in a time bubble, Cameron starts going a bit senile:
> CAMERON: When I said that I wanted to get the team back together, work with you guys, learn from you… I did not mean every waking moment for the next fifty years.
> DANIEL: You said that yesterday.
> CAMERON: I did?
> TEAL’C: And the day before.
> VALA: And the day before that.
> CAMERON: Oh, sorry. I’ll just… shut up now.

0

What are some of your favourite rock/punk bands around the world?

preview

I’m currently listening to BTR (Bulgarian), Kino (Russian), Luke (French), the pillows (Japanese), Bjornarna (Swedish), Nova Koma (Latvian), Melt-Banana (Japanese), Republika (Polish), Ornatos Violeta (Portuguese), Starshooter (French), Chewie (Irish), Jufkamental (Bosnian), Kult (Polish), Die Toten Hosen (German), Die Artze (German), and Ska-P (Spanish)!

In my opinion, it’s better to listen to all the best bands from everywhere rather than a mixed bag of American and British ones. Plus, they all have their own unique flavour on top of the traditional rock/punk styles, so it’s fun to listen to them!

What are some of your favourite rock/punk bands outside of the U.S. and England? I would also like to listen to some from outside Europe (I have a few Japanese ones, but that’s about it)

edit: Chewie is Irish, not Scottish! Sorry!

I’m currently listening to BTR (Bulgarian), Kino (Russian), Luke (French), the pillows (Japanese), Bjornarna (Swedish), Nova Koma (Latvian), Melt-Banana (Japanese), Republika (Polish), Ornatos Violeta (Portuguese), Starshooter (French), Chewie (Irish), Jufkamental (Bosnian), Kult (Polish), Die Toten Hosen (German), Die Artze (German), and Ska-P (Spanish)!

In my opinion, it’s better to listen to all the best bands from everywhere rather than a mixed bag of American and British ones. Plus, they all have their own unique flavour on top of the traditional rock/punk styles, so it’s fun to listen to them!

What are some of your favourite rock/punk bands outside of the U.S. and England? I would also like to listen to some from outside Europe (I have a few Japanese ones, but that’s about it)

edit: Chewie is Irish, not Scottish! Sorry!