freamon

joined 1 year ago
[–] freamon@endlesstalk.org 1 points 7 months ago

Just posting to nag you about this: can !tails@lemmon.website be added as an exception to the automod?

[–] freamon@endlesstalk.org 1 points 8 months ago

One of the reasons it's inconsistent is that Lemmy tries to balance the media it serves locally vs. the media it lets remote hosts serve. Also it's a bit naïve about image conversion. So if you link to an actual GIF at giphy.com (for example), it works consistently across the most the most platforms if Lemmy leaves it alone. If it doesn't, it'll bring it in and convert it to a WebM file, which not all clients know what to do with. Even if they do though, looping isn't always on by default for video, so the effect of a GIF that relies on looping might be nullified.

It's probably best to focus on the clients with the biggest user-base, rather than try to target them all. For lemmy.world/c/gifs, the most popular posts have been uploaded to imgur.com - which convert most GIFs to MP4s - and the post's author has linked to the inline version at i.imgur.com.

[–] freamon@endlesstalk.org 5 points 8 months ago (5 children)

No settings page (as far as I'm aware), but you can use the API to get everything (posts, comments, etc):

step 1: get login token -

curl --request POST \
     --url https://lemmy.ml/api/v3/user/login \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "username_or_email": "2br02b",
  "password": "YOUR-PASSWORD"
}
'

step 2: use login token (big long string starting with 'ey') to get data -

curl --request GET \
     --url 'https://lemmy.ml/api/v3/user?username=2br02b&page=1' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR-JWT'

Increment page number until you have everything. source: https://lemmy.readme.io/reference/get_user

[–] freamon@endlesstalk.org 2 points 8 months ago

Edited to account for blahaj updating to 0.19.3 ... hopefully that's the last big instance to change.

It's been about a week since sh.itjust.works and lemmy.world updated, so results from those instances will start appearing again soon.

[–] freamon@endlesstalk.org 4 points 8 months ago (1 children)

Bit mad, as in a bit strange - e.g. "it's a bit mad to take a single word out of its obvious context for such a desperately cheap shot".

[–] freamon@endlesstalk.org 3 points 8 months ago

!quickanimalfacts@lemm.ee - yeah, go on then. subbed.

[–] freamon@endlesstalk.org 5 points 8 months ago (1 children)

(sorry to intrude). This has had a few cross-posts on Lemmy. The link that goes to !tails@lemmon.website is attributed to the author of the image, so you can reply to them via that community if you wish.

[–] freamon@endlesstalk.org 3 points 8 months ago

The crawler at lemmyverse.net has picked up on an ngrok URL I've used for messing around with Lemmy. I was using it last night to play with PieFed, and saw it make about 20 attempts to read an API that isn't there. I thought - oh, I wonder if that will break it - and sure, enough, there wasn't a 6:00 update from it this morning. Ho hum.

[–] freamon@endlesstalk.org 2 points 8 months ago (1 children)

In my mind, 'Ripley' is Sigourney Weaver in Alien. Whereas I don't think this guy will stand a chance against a Xenomorph.

[–] freamon@endlesstalk.org 3 points 8 months ago (1 children)

4 floppy disks: 1.44 MB x 4 = 5.76 MB for 2 versions of a web browser
This image: 12.7 MB

This post neatly replicated the one-line-at-time loading of a pic from back then, though!

 

This is probably just me, but I found INSTALL.md to be a bit confusing.

So, for a fresh install of Ubuntu in a Windows Hyper-V VM, this is the list of steps I took to get something that at least looks like it might be the right thing:

remove unattended-upgrades, and clean up after OS install

(nothing to do with PieFed, just some necessary Ubuntu weirdness)

sudo systemctl stop unattended-upgrades
sudo apt-get purge unattended-upgrades
sudo apt autoremove

install postgresql 16

sudo apt install ca-certificates pkg-config
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install libpq-dev postgresql

install python libs

sudo apt install python3-pip python3-venv python3-dev python3-psycopg2

install redis server

sudo apt install redis-server

install git

sudo apt install git

set up database

sudo -iu postgres psql -c "CREATE USER pyfedi WITH PASSWORD 'pyfedi';"
sudo -iu postgres psql -c "CREATE DATABASE pyfedi WITH OWNER pyfedi;"

clone PieFed

git clone https://codeberg.org/rimu/pyfedi.git

cd into pyfedi, set up and enter virtual environment

cd pyfedi
python3 -m venv ./venv
source venv/bin/activate

use pip to install requirements

pip install wheel
pip install -r requirements.txt

edit .env file

cp env.sample .env
nano .env (change SECRET_KEY to some random sequence of numbers and letters)

initialise database, and set up admin account

flask init-db

run the app

flask run
(open web browser at http://127.0.0.1:5000)
(log in with username and password from admin account)

Maybe this will help someone else (or maybe someone has spotted something that I missed - like I say: it looks right when loaded in a browser, but I'm not 100% sure)

[–] freamon@endlesstalk.org 12 points 8 months ago

The episode was directed by the same guy who directed all of "It's a Sin", another incredible bit of telly.

[–] freamon@endlesstalk.org 14 points 8 months ago (1 children)

I re-watched Chappie recently. I'd already read someone say that The Creator gave them Elysium vibes, and then realized - there's a fair bit of Chappie in The Creator too. Add that to the fact that Rogue One was supposed to 'the District 9 of Star Wars', and it suggests that Edwards' strange goal is to be Britain's version of Neill Blomkamp.

He's already tried to re-invent VFX-led film-making once - Monsters looks like a 10M, but it was made for about half a million. The people involved in that film thought it would change the industry. It didn't, because there's more things going on that balloon blockbuster budgets up, until they all cost around 200M.

As for The Creator, he may have saved 120M from the production budget, but a few million spent on pre-production script development was what it really needed.

 

From my nginx access log:

your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"
your.ip.address - - [21/Feb/2024:06:50:09 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.sdf.org"

2 of the entries are "https://lemmy.sdf.org/activities/like/88bc5b6d-f11f-4245-90aa-908e43befe97" being sent twice,
the other two are "https://lemmy.sdf.org/activities/like/437327e5-a262-46bc-8ce7-1c2c5bd440b3" being sent twice

I've reported this problem to other affected servers that I've seen:
the lemmy.ca post suggests the problem was something to do with running multiple containers with the same index number;
the endlesstalk.org post suggests that re-starting the backend containers is a fix
(their answers will likely more sense to you than to me, as I don't run lemmy).

Thanks!

 
 

Hi. Just looking at what lemmy.ca sends my server:

From nginx log:

your.ip.address - - [20/Feb/2024:03:48:47 +0000] "POST /inbox HTTP/1.1" 200 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"               
your.ip.address - - [20/Feb/2024:03:48:49 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"         
your.ip.address - - [20/Feb/2024:03:48:57 +0000] "POST /inbox HTTP/1.1" 400 0 "-" "Lemmy/0.19.3; +https://lemmy.ca"              

Dumping the JSONs reveals 3 duplicate files, all containing:

"id": "https://lemmy.ca/activities/create/0968bf93-ac05-4178-bf3f-28cdc65fc338"
"actor": "https://lemmy.ca/u/HairyOldCoot"
"object": {
  "id": "https://lemmy.ca/comment/7454502"            
  "content": "That was an episode of Sliders."
  "published": "2024-02-20T03:48:45.810068Z"

These are 3 Creates, not 1 Create and 2 Updates or anything. I've chosen a comment 'cos that's public info, but it's the same for all other activity too (Votes, Deletes, etc).

lemmy.ca isn't alone in this. endlesstalk.org sends everything twice (info posted here), as does lemmy.sdf.org and mander.xyz, but lemmy.ca is the only one I've seen send stuff 3 times. Other instances (e.g. aussie.zone, feddit.nl, lemm.ee, lemmings.world, lemmy.world, programming.dev, reddthat.com, sh.itjust.works, slrpnk.net) don't, but there's nothing obvious like lemmy version numbers to indicate the difference.

Whilst I'd prefer you didn't send me stuff 3 times, I'm mostly mentioning it because I doubt it's good for your own resources to send every activity by every lemmy.ca user out multiple times. Also, the OPs of my community are from Mastodon, so I imagine you're sending them the same message 3 times too ...

9
submitted 9 months ago* (last edited 9 months ago) by freamon@endlesstalk.org to c/learningrustandlemmy@lemmy.ml
 

I'll reply in the comments with a example of what lemmy sends for each thing you can do (I think I've thought of everything, but you can probably guess the format if not, or I can always add it).

So, the setup for these is:
Our instance is called 'local.com'
Our user is called 'freamon'
The other instance is called 'remote.com'
The community on that instance is called 'interesting'

For many of these, remote.com will receive them, and rewraps them in an Announce to send out to all the other instances with a copy of the community, so everyone stays in sync.

Sort by 'Old' for the best hope of these making sense.
I'll follow this post up with a script, that can be used to send these activities from the command-line, as I think it can help to understand Lemmy if you're using something much simpler than Lemmy to do some of things Lemmy does.

EDIT: As nutomic as mentioned, a better list is in the docs. It's the kind of thing I should read first, I guess.

 

An introduction to the Rust language basics.

What Rust is and why you might want to learn it
Examining a simple program
Learning about the types of variable you can have (numbers, strings, tuples, arrays)
Introducing control flow with if, for, while and loop
Talking about functions and expressions

Preparing ourselves for the next video, which is about memory management

If you'd like to learn more about Unicode and character sets, try my video Interesting Characters where I share how surprisingly interesting this whole area is.

Links:

Florian Gilcher on "Why Learn Rust?": https://youtu.be/l8Qk5Nh6qsg
Slides: http://artificialworlds.net/presentations/rust-101/A1-intro-to-rust
Exercises: https://101-rs.tweede.golf/A1-language-basics/mod.html

Rust 101 is a series of videos explaining how to write programs in Rust. The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the Creative Commons Attribution Share Alike 4.0 International license.

This series of videos is copyright 2023 Andy Balaam and the tweede golf contributors and is released under the Creative Commons Attribution Share Alike 4.0 International license.


This project is on-going, is hosted on PeerTube, and we aren't too far behind, so I thought it might be of interest.
Playlist so far: https://diode.zone/w/p/xesbWmNanEHNBfJCZFQRUm

 

Introducing the Rust 101 series and how to install Rust.

Rust 101 is a series of videos explaining how to write programs in Rust.

How to install Rust: https://rustup.rs/
Slides: http://artificialworlds.net/presentations/rust-101/0-intro
Exercises: https://101-rs.tweede.golf/0-install/mod.html

Follow the "Exercises" link to find the other tools you might want to install to follow along.

The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the Creative Commons Attribution Share Alike 4.0 International license.

This series of videos is copyright 2023 Andy Balaam and the tweede golf contributors and is released under the Creative Commons Attribution Share Alike 4.0 International license.

Duration: 9min 44sec


This project is on-going, is hosted on PeerTube, and we aren't too far behind, so I thought it might be of interest.
Playlist so far: https://diode.zone/w/p/xesbWmNanEHNBfJCZFQRUm

 

An important list of exactly how long you have to wait until Jason Statham punches someone in one of his films.

 

Original dislike:

{
  "actor": "https://lemmy.ml/c/asklemmy",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "object": {
    "id": "https://endlesstalk.org/activities/dislike/e1f82f6a-d49b-4dab-b444-36c382f13c5a",
    "actor": "https://endlesstalk.org/u/freamon",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1",
      { ... },
        ...
      }
    ],
    "object": "https://midwest.social/post/7242862",
    "type": "Dislike",
    "audience": "https://lemmy.ml/c/asklemmy"
  },
  "cc": [
    "https://lemmy.ml/c/asklemmy/followers"
  ],
  "type": "Announce",
  "id": "https://lemmy.ml/activities/announce/dislike/6896b8ce-026d-463a-a223-ec1a1d444e5c"
}

Undo of Dislike:

{
  "actor": "https://lemmy.ml/c/asklemmy",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "object": {
    "id": "https://endlesstalk.org/activities/undo/a9377c0b-074c-41de-ba99-51eeca323810",
    "actor": "https://endlesstalk.org/u/freamon",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1",
      { ... },
        ...
      }
    ],
    "object": {
      "actor": "https://endlesstalk.org/u/freamon",
      "object": "https://midwest.social/post/7242862",
      "type": "Like",
      "id": "https://endlesstalk.org/activities/like/1f0b6132-547e-4fb5-8313-6f7b7f31be6b",
      "audience": "https://lemmy.ml/c/asklemmy"
    },
    "type": "Undo",
    "audience": "https://lemmy.ml/c/asklemmy"
  },
  "cc": [
    "https://lemmy.ml/c/asklemmy/followers"
  ],
  "type": "Announce",
  "id": "https://lemmy.ml/activities/announce/undo/feedfdca-3392-4f7b-a3ce-2306d8981c5c"
}

The original Dislike activity (https://endlesstalk.org/activities/dislike/e1f82f6a-d49b-4dab-b444-36c382f13c5a) has a record at endlesstalk.org, but the Like object's activity that's been undone doesn't (https://endlesstalk.org/activities/like/1f0b6132-547e-4fb5-8313-6f7b7f31be6b just returns 'No record found')

I got the same results when I tried this from lemmy.world (but I thought I'd try again from a 0.19 instance)

I found some references to this at the GitHub, but they were issues that were closed off as being fixed, so I don't know what the situation is with this now.

 

From Deadline

The Idol is one and done at HBO.

The controversial series from Euphoria creator Sam Levinson and Abel Tesfaye, better known as The Weeknd, will not be returning for a second season.

It’s not a huge surprise given the critical and commercial reception of the show, which starred Tesfaye and Lily-Rose Depp. It also came after extensive reshoots following the departure of director Amy Seimetz, as revealed by Deadline in April 2022, and a reduced order taking its total number of episodes to five.

Some of the cast did mention the possibility of a second season during interviews, though show insiders said that creators did not come into the production process with a plan for a multi-season arc.

Da’Vine Joy Randolph, who played one of the managers of Depp’s pop star Jocelyn, previously said that the first season was left intentionally open-ended for the possibility of a second.

“The Idol was one of HBO’s most provocative original programs, and we’re pleased by the strong audience response,” said an HBO spokeswoman. “After much thought and consideration, HBO, as well as the creators and producers, have decided not to move forward with a second season. We’re grateful to the creators, cast, and crew for their incredible work.”

(article continues with some viewing figures, etc)


My opinion on this show is entirely out-sourced (I never watched it), so my snarky title might not be warrented

view more: next ›