[-] freamon@feddit.nl 9 points 1 year ago* (last edited 1 year ago)

Have found it impossible to upload this file directly to Lemmy. It's already a compressed WEBP file, but whatever settings I use, Lemmy insists on copying it and compressing it further, until there's only about 5 pixels left. So the only options left are for the post to be a link to the external url, or for it to look like a comment post, but with an inline image squashed inside. Neither are ideal.

EDIT: My experience with Lemmy:

EDIT 2: Now have something a bit more acceptable, loaded directly to Lemmy.
Lemmy always seems to compress WEBP at 75% - I uploaded an image, it compressed it, I downloaded Lemmy's version and re-up'd that, and it compressed it again. Presumably I could do this forever.

So, I created the original WEBP using the 'lossless' setting (it was about 2.5MB), uploaded that and let Lemmy convert it, and now it doesn't look too bad. The only thing is I had to use the version I tested at enterprise.lemmy.ml, 'cos feddit.nl got confused by the transparent frames. So the trick seems to be: upload the least efficient version imaginable

[-] freamon@feddit.nl 8 points 1 year ago

Example 3: Best, um, Discourse

[-] freamon@feddit.nl 9 points 1 year ago

NSFW'ing stuff isn't a particularly y good way to hide spoilers, btw (it's not the same as it is on Reddit)

It will (probably) blur the image for anyone who's set their account to view NSFW, but the majority of members here just won't see the post at all.

To the extent that spoiler tags are supported, it might be better to include images as an inline link, surrounded by spoiler tags.

Test:

spoiler

[-] freamon@feddit.nl 9 points 1 year ago

I disable them individually as them come up, but it's a pain, and can see why people just Death Star the lot of them (is "death star" a verb?).

As the author of a bot that I hope is useful though, it's kind of a bummer.

[-] freamon@feddit.nl 9 points 1 year ago

Just to mention: if you click a link, and it shows "No Posts", it's just 'cos no-one from your instance has subscribed yet.
If you look at Community on it's own instance, rather than yours - aka "the logged out version" - it'll show the activity.
I don't think I can link to that version though, without getting clobbered by the 'community-link-fixer-bot', and starting Bot War 3.

[-] freamon@feddit.nl 9 points 1 year ago

Thanks. Subscribed.

The Name of the Wind is a brave first recommendation though. A little joke: for George R R Martin's unfinished work after he dies, Patrick Rothfuss has already been selected as the author to also not complete them.

[-] freamon@feddit.nl 9 points 1 year ago

Perlman specifically mentions $27 million, and it's known that Iger's deal with Disney was for $54 over over 2 years. Maybe he's not the only CEO earning that, but he's the one that most people would associate with that figure.

[-] freamon@feddit.nl 8 points 1 year ago

Lists like this should be pinned somewhere IMO. Blocking all bots to hide the output from indiscriminate repost automators is a bit of sledgehammer to crack a nut.

[-] freamon@feddit.nl 9 points 1 year ago

There was a point (only a few days ago really) when browsing All was a way of discovering new communities, but now, if it's not memes it's auto-generated bot content harvesting link from HN or wherever.

[-] freamon@feddit.nl 8 points 1 year ago

You can search on lemmyverse.net or browse.feddit.de

Or see if anything in !newcommunities@lemmy.world takes your interest.

[-] freamon@feddit.nl 9 points 1 year ago

This post is very old, but it's what came up when I googled it, so for anyone else, here's some basic scripts for logging in and then using the authentication to get something that may help you get started in exploring the API.

2
submitted 1 year ago* (last edited 1 year ago) by freamon@feddit.nl to c/linuxscripts@lemmy.zip

Run the "Basic Lemmy API login script" (see here) first to get value for 'jwt'

#!/bin/bash

# Basic get unread replies script for Lemmy API

# CHANGE THESE VALUES
my_instance=""			# e.g. https://feddit.nl
my_username=""			# e.g. freamon
my_password=""			# e.g. hunter2

jwt=""			# run basic login script to get this

########################################################

# Lemmy API version
API="api/v3"

########################################################

# Turn off history substitution (avoid errors with ! usage)
set +H

########################################################

# Get inbox messages
get_unread_replies() {
	end_point="user/replies"
	www_data="auth=$jwt&unread_only=true"

	url="$my_instance/$API/$end_point?$www_data"

	curl "$url"
}

get_unread_replies

Personally, I'd use the 'jq' program to de-serialize the reply, e.g.

get_unread_replies.sh | jq '.replies[].comment.content'

My next plan is to use a script like this with a notification service like PUSHOVER, so it can ding my phone if I've an unread message

For each API method, whether it's GET or POST and end_point can be found here, and then each method has a click-through to see what parameters it can take.

4
submitted 1 year ago* (last edited 1 year ago) by freamon@feddit.nl to c/linuxscripts@lemmy.zip
#!/bin/bash

# Basic login script for Lemmy API

# CHANGE THESE VALUES
my_instance=""			# e.g. https://feddit.nl
my_username=""			# e.g. freamon
my_password=""			# e.g. hunter2

########################################################

# Lemmy API version
API="api/v3"

########################################################

# Turn off history substitution (avoid errors with ! usage)
set +H

########################################################

# Login
login() {
	end_point="user/login"
	json_data="{\"username_or_email\":\"$my_username\",\"password\":\"$my_password\"}"

	url="$my_instance/$API/$end_point"

	curl -H "Content-Type: application/json" -d "$json_data" "$url"
}

login

# Make note of "jwt" from reply

This'll reply with JSON data, that includes a value for "jwt", to be used in other scripts that require you to be logged in.

Personally, I'd use the 'jq' program to de-serialize the JSON data, but I thought I'd keep the script simple for now

52
39
submitted 1 year ago by freamon@feddit.nl to c/memes@lemmy.ml
287
22
62

Obligatory Andor community plug.

1
submitted 1 year ago by freamon@feddit.nl to c/star_wars@lemmy.world

Cassian Andor (or possibly !cassianandor@feddit.nl if you prefer) is a community for discussing both the Andor TV show, and Rogue One the film.
Both feature Diego Luna of course, and I'm hoping that someone in season 2 of Andor will yell "Climb!" at him, so I can start referring to the set as The Climb! Trilogy.
Other projects by any the creatives involved are fair game for discussion too, as long as they're at least tangentially related.

1

Lets hope at least one of these links work:

Cassian Andor

!cassianandor@feddit.nl

[-] freamon@feddit.nl 9 points 1 year ago

In Skyfall, Casino Royale and Quantum of Solace, scenes depicting James Bond defeating men of Chinese origin have been cut - any suggestion that the Chinese people are weak or easily defeated, even by a world class assassin, mean that the government won't approve it.

view more: ‹ prev next ›

freamon

joined 1 year ago
MODERATOR OF