smach, to mastodon
@smach@fosstodon.org avatar

Any suggestions on how to re-create my existing Mastodon lists on my new personal instance @smach , either using curl or the rtoot R package?
I was hoping to use the list migration tool at https://www.eliotlash.com/masto-list-importer/ but I get various errors (rate limit, cached user not found, odd HTML errors)
Thanks!
@feditips

CA7746,
@CA7746@masto.ai avatar

@smach Skimmed docs for fun, untested.

Setup: Req client id & secret (any client_name)
https://docs.joinmastodon.org/methods/apps/#create
curl -sSf --compressed -d "client_name=MyApp&redirect_uris=urn:ietf:wg:oauth:2.0:oob&scopes=read" -D result_headers.txt "HOST/api/v1/apps"

Req auth code (depends on client_id)
https://docs.joinmastodon.org/methods/oauth/#authorize
curl -sSf --compressed -d "response_type=code&client_id=ID&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=read" -D result_headers.txt "HOST/oauth/authorize"
1/2

simeon, to django
@simeon@indiehackers.social avatar

Hey hive mind: suppose you have a model that you always need to filter by e.g. a team. Do you

A) create a custom Manager (e.g. for_team) and call Model.for_team(team).all() to get the team's objects

B) explicitly filter by team on every call i.e. Model.objects.filter(team=team)

C) leverage roles, groups and permissions (if at all possible) to get the team's objects?

I like B) as it's explicit and easier to setup. Adding more filters, however, wil make it verbose.

yakky,
@yakky@mastodon.social avatar

@simeon Create a queryset with specific filters and build a manager out of it See https://docs.djangoproject.com/en/4.2/topics/db/managers/#create-manager-with-queryset-methods

deaconstable, to Minecraft

Relaxed-Play with DknBluez - Episode 49 | Health Update & Coffee | I know I have been away a fair bit, so let's catch up this morning. 9am start this morning only on http://twitch.tv/deaconstable

mretka, to ruby

TIL: I'm learning how to do driven development using Pry and pry-remote

https://github.com/pry/pry
https://github.com/Mon-Ouie/pry-remote

It's possible to run FactoryBot and Rspec straight from IRB/Pry with:

require 'rspec/expectations'  
include RSpec::Matchers # use RSpec matches and expectations

require 'factory_bot'  
# For usage in Rails console  
# require 'factory_bot_rails'  
FactoryBot.find_definitions # load factories  
include FactoryBot::Syntax::Methods # loads FB methods like #create and #build  

Then you can do stuff in Pry/IRB like:

pry(main)> expect(1).to eq(1)  
=> true  
create(:post, title: 'Cool post')  
A_Passion_for_Jazz, to music

♪♫ "You have to on the spot, the essence of this ."

ram, to selfhost in [Question] External access for my network
@ram@lemmy.ca avatar

You could use Cloudflare Tunnels. If you want to be the only one with access to them, you could set it in your private networks, which are only accessible to you on any device with the WARP client installed.

lamp, to random

https://docs.joinmastodon.org/methods/statuses/#create How tf u post "array" in form data? I tried -d "media_ids=$media_id" and -d "media_ids=[$media_id]", neither of which are working

ajsadauskas, (edited ) to tech
@ajsadauskas@aus.social avatar

So Google is now preventing people from removing location data from photos taken with Pixel phones.

Remember when Google's corporate motto was "don't be evil?"

Obviously, accurate location data on photos is more useful to a data mining operation like Google.

From Google: "Important: You can only update or remove estimated locations. If the location of a photo or video was automatically added by your camera, you can't edit or remove the location."

It's enshitification in action.

Source: https://support.google.com/photos/answer/6153599?hl=en&sjid=8103501961576262529-AP

#technology #tech @technology #business #enshitification #Android #Google @pluralistic #infosec

sohkamyung,
@sohkamyung@mstdn.io avatar

@KelsonV

I use the OsmAnd app to take waypoint photos (with GPS info) for iNaturalist. These shots don't get uploaded to Google Photos unless I want them to. I usually copy them to my Download folder for later uploading to iNat.

So I could turn off GPS in the Photo app, and keep personal and iNat shots separate.

https://osmand.net/docs/user/plugins/audio-video-notes/#create-waypoints

@ajsadauskas @technology @pluralistic

I_Like_Books, to HowTo

Creating Rape Culture in Twelve Steps

1 ) Tell girls they exist solely for male pleasure

2 ) Tell boys that the more sex they have and girls they exploit, the more masculine they are.

3 ) Tell girls they cannot actually have sex before marriage or they are impure, unlovable and equatable to a chewed up wad of gum

4 ) Tell boys that they cannot control or make choices about their won sexual urges

5 ) Never mention or give accurate information about consent.

6 ) Never mention or give accurate information about contraception

7 ) Call sexually active girls "sluts"

8 ) Call sexually active boys "players"

9 ) Blame girls for getting pregnant or infected with an STI

10 ) Blame girls when they get raped

11 ) Remind boys that they are not fully responsible for their actions

12 ) Deny rape culture exists

#RapeCulture #HowTo #Create #Meme #Quote #Feminism

thomasreggi, to art

Here's what making a painting every day for all of March looks like in couple of seconds. Read more about the practice on Substack: https://reggi.substack.com/p/my-daily-art-practice. Here's the (static) archive: https://art.reggi.com.

every painting in march 2023

JenniferJorgenson, to gardening
@JenniferJorgenson@mstdn.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines