freamon

joined 1 year ago
MODERATOR OF
[–] freamon 1 points 9 months ago* (last edited 9 months ago)

doesn't come up on mastodon?
[email protected]
link

[–] freamon 2 points 9 months ago (4 children)

No, I'm not sure, tbh. It's a concept I'm struggling with, and I reliant on others to correct/question me. I was trying to answer the question of whether things get passed by value or not, and I wanted to say yeah, loads of things do (anything who's size is known at compile-time) and to caution against thinking too much in C terms.

Here's where my thinking is now: a variable without a & in front is passed by value. A primitive type (i.e. something who's size is known) will be copied. So if a=4 and you pass it to a function, you can still refer to a later. A variable-length type (e.g. a String) can't be copied, so it is moved, and referring to it later will be an error.

A variable with a & in front is indeed a reference. It's a memory address, so it's of fixed size. For either a primitive or a variable-length type, the address can be copied when passed to a function, so it can be referred to again later without issue.

This feels more correct to me, so hopefully it is. If not, I'm sure someone will have a better answer soon (this community is growing well!).

[–] freamon 1 points 9 months ago* (last edited 9 months ago)

MBIN (moist): Table looks like garbage, but a ! link will resolve to a '/search?q=', so it can find something it hasn't heard about before ([email protected])


Lemmy (Jerboa): Can resolve known, and unknown on refresh ([email protected]).


Lemmy (Boost): Can resolve known, and unknown on refresh ([email protected]).


Lemmy (Connect): Can resolve known, and unknown - no posts until refresh ([email protected]).


Lemmy (Eternity): Can resolve known, and unknown - no posts until refresh ([email protected]).


Lemmy (Sync): Has a separate pop-up for 'Show Table', but handles unknown stuff really well with no refresh required (minipcs)


Lemmy (Thunder): Handles unknown stuff really well with no refresh required (let's talk about games)


Lemmy (Voyager): Table is rubbish. Unknown worked on refresh though (palworld)



[–] freamon 1 points 9 months ago* (last edited 9 months ago) (1 children)

Link Format Testing

Unknown to endlesstalk.org

[email protected], 中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected], 中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected], Europe, up 16.3% to 39, (651 posts)
[email protected], Mini PCs, up 16.3% to 39, (651 posts)
[email protected],, Let's talk about games, up 16.3% to 39, (651 posts)
[email protected]|中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected], 中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected]|中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)

Known to endlesstalk.org
Link Description
[email protected] 中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected] 中国的最新发展, A place to learn about China, Chinese and China's latest developments, (Reddit's Sino), up 16.3% to 39, (651 posts)
[email protected] Shorter Description, up 16.3% to 39, (651 posts)
[–] freamon 5 points 9 months ago (1 children)

He's not, no. I doubt he's heard of it, tbh. But your comment will have gone to him (it's visible on Mastodon here), so maybe he'll investigate.

His post has appeared on Lemmy, still attributed to him, through the machinations of this particular Community.

[–] freamon 4 points 9 months ago

Wait, what? Bullock's character is actually dead in Gravity? I've been watching that movie way too literally. Kinda messes with her character's arc though, if she karks it halfway through.

[–] freamon 95 points 9 months ago (1 children)

Similar vibe:

[–] freamon 6 points 9 months ago (3 children)

Not to make light of this, but 'meanwhile in Canada...'.

[–] freamon 3 points 9 months ago

Subscribing to his channel from Lemmy never even occurred to me (?!)

Now is as good a time as any though to investigate Lemmy/PeerTube interactions:

The search that lemmy will do:
curl --header 'accept: application/activity+json' https://diode.zone/.well-known/webfinger?resource=acct:[email protected] | jq .
The 'activity+json' links section reveals that the url is https://diode.zone/video-channels/andybalaam_lectures

'Click' on that:
curl --header 'accept: application/activity+json' https://diode.zone/video-channels/andybalaam_lectures | jq .
Interesting parts:
'type' is Group, which is what lemmy uses for communities
there's no 'moderators' link, so that'll be empty on the community page
'outbox' is at https://diode.zone/video-channels/andybalaam_lectures/outbox which lemmy should be able to use to fetch the recent videos. It doesn't work because community outboxes on Lemmy just list the last 20 posts directly, whereas PeerTube (and Mastodon) redirect you to a 'outbox?page=1' url.
'playlists' is at https://diode.zone/video-channels/andybalaam_lectures/playlists, which is what we want really (the Rust 101 playlist)
These are of type Playlist though, which Lemmy doesn't know what to do with.

Following the 'playlist' link:
--> https://diode.zone/video-channels/andybalaam_lectures/playlists?page=1 (posts 1 to 10)
--> https://diode.zone/video-channels/andybalaam_lectures/playlists?page=2 (post 11)

Bash script to get the URLs

#!/bin/bash

curl --silent --header 'accept: application/activity+json' "https://diode.zone/video-playlists/fcec1b54-0908-452e-9d35-84c9627c3b50?page=1" > /tmp/page1.json
curl --silent --header 'accept: application/activity+json' "https://diode.zone/video-playlists/fcec1b54-0908-452e-9d35-84c9627c3b50?page=2" > /tmp/page2.json

for i in {0..9}
do
    item=$(jq -r ".orderedItems[$i]" /tmp/page1.json)
    url=$(curl --silent --header 'accept: application/activity+json' "$item" | jq -r .url)
    sleep 1.1s
    echo $url
done

item=$(jq -r ".orderedItems[0]" /tmp/page2.json)
url=$(curl --silent --header 'accept: application/activity+json' "$item" | jq -r .url)
echo $url

gives us:

https://diode.zone/videos/watch/f8e9baa2-9f19-4061-91f4-2d35fada767e                  
https://diode.zone/videos/watch/6b08bb1f-b3ef-40d4-addf-cf45e1da1a7a                  
https://diode.zone/videos/watch/020c07e6-f124-4b3e-8270-cc2d21bf9c67               
https://diode.zone/videos/watch/9766d1f1-6018-48ec-ad67-e971758f8a3a                 
https://diode.zone/videos/watch/567552a8-34df-4a00-b598-c92d903329fb               
https://diode.zone/videos/watch/8be50e04-2cd1-4e2d-8f27-61dc1dc51170             
https://diode.zone/videos/watch/90e5627c-caa8-47a7-b7b6-74bb79a26977             
https://diode.zone/videos/watch/a1604d25-d0b0-4e2c-baf4-3a2b193708e0             
https://diode.zone/videos/watch/a752daf8-60c2-46d7-a36f-7d7fcda9a0a5           
https://diode.zone/videos/watch/659f9b07-11c7-4f52-9e8e-becce02e40fe           
https://diode.zone/videos/watch/03735b5f-8ace-411c-998e-7c4a58a11914           

I used endlesstalk.org's Search to bring most of these through, before getting bored and using the API. e.g.:

curl --request GET \
     --url 'https://endlesstalk.org/api/v3/resolve_object?q=https://diode.zone/videos/watch/03735b5f-8ace-411c-998e-7c4a58a11914' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer $MY_JWT_TOKIN'

So the bash script could easily be modified to resolve everything as well.

[–] freamon 49 points 9 months ago (22 children)

Coffee filtered through a dead cockroach is about to become the new 'Kopi luwak' (coffee from animal poop).

It's too disgusting now, but soon it'll be both too disgusting and too expensive.

[–] freamon 3 points 9 months ago

He's had wildly eventful life. Shocking to hear though, that were I to go looking for him in LA, I'd find him at neither the parties nor the beach.

[–] freamon 84 points 9 months ago (4 children)

Just to say, I massively prefer the name 'microblogmemes' over 'whitepeopletwitter'. That was always a weird one - posts didn't always involve white people, didn't always come from Twitter (which - technically - doesn't even exist anymore) and seemed based on a petty misunderstanding of what Black People Twitter was.

FWIW, I agree with you about the Denny's post. I'm also the moderator of a community that Stamets has quit, so I know that losing him is a blow, because he posts a lot of content. But I also know that he's a complicated human.

view more: ‹ prev next ›