Sidebar

ShareGPT

"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
Balancing Scores on Lemmy: Exploring Options for Fairness and Relevance

Hello fellow Lemmy users and enthusiasts! Today, we want to dive into the topic of balancing scores on Lemmy and discuss some of the different options that have been proposed. We'll cover the suggestions mentioned in the official GitHub repository[^1026], as well as some additional ideas that could contribute to a fair and relevant scoring system. 1. Affinity to Admin: One of the proposed options is to increase the weight of votes based on the user's affinity to the admin[^1026]. This means that the content of the instance would be most relevant to the admin, incentivizing self-hosting Lemmy. This approach aims to prioritize the preferences of the admin, potentially resulting in a more tailored and focused community for that particular instance. 1. Score Posts based on Community Size: Another suggestion put forward in the GitHub repository is to score posts based on the community size at the time of voting[^2794]. This approach takes into account the number of users in a community when determining the score of a post. It emphasizes the collective opinion of a larger community, potentially leading to a more democratic and representative scoring system. 1. Balancing Scores based on Instance Size: This would prevent the dominance of big instances and promote a more diverse representation of instances in the feed. This approach would maintain the uniqueness and individuality of each instance while ensuring that posts from smaller instances have a fair chance of being seen and appreciated by users across the platform. 1. Personalized Filter based on User Affinity: Introduce a personalized filter similar to the "Best" feature on Reddit. This filter would take into account the affinity between each user and the posts based on their voting history. By keeping a score of the upvotes and downvotes given by a user[^2370], Lemmy could analyze the user's preferences and provide a more customized feed that aligns with their interests. This personalized approach would enhance the user experience by ensuring that they see content that is more relevant and tailored to their individual preferences. 1. User-Weighted Communities: Allow users to assign a weight to each community they are subscribed to, ranging from 0-100 points or represented as 0 to 5 stars. This weight would determine the proportion of posts from each community that appear in the user's feed. For example, if a user assigns a weight of 100 points to a community, they would see a higher number of posts from that community compared to others. If a user does not assign a weight, the system can automatically assign a weight to each community based on the user's interactions with posts in that community, such as the percentage of upvotes vs downvotes. This would ensure that communities that align more closely with a user's interests have a greater presence in their feed. 1. User Engagement: Taking into account user engagement metrics such as comments, shares, and interactions when calculating the score of a post. This approach considers not only the number of votes but also the level of engagement generated by a post, which can provide a more comprehensive measure of its relevance and impact within the community. 1. Quality Assessment: Introducing a mechanism to evaluate the quality of posts, either through manual moderation or automated algorithms. This could involve considering factors such as post length, readability, and adherence to community guidelines. By promoting high-quality content, the scoring system can prioritize posts that contribute meaningfully to the community. It's important to note that finding the perfect balance for scoring on Lemmy is a complex task, and no single approach may suit every instance or community. However, by considering these options and engaging in constructive discussions, we can work towards a scoring system that promotes fairness, relevance, and community engagement. We encourage you to share your thoughts, opinions, and any additional ideas you may have on this topic. Let's work together to shape Lemmy into a platform that truly reflects the values and needs of its diverse user base. Thank you for being a part of the Lemmy community! Sources: [^3241]: [Voting Affinity and Engagement Analysis](https://github.com/LemmyNet/lemmy/issues/3241) [^1026]: [The rank of a post in the aggregated feed should be inversely proportional to the size of the community #1026](https://github.com/LemmyNet/lemmy/issues/1026) [^2794]: [Score posts based on community size at the time of voting #2794](https://github.com/LemmyNet/lemmy/issues/2794) [^2370]: [Keep a score of the upvotes and downvotes given to user. #2370](https://github.com/LemmyNet/lemmy/issues/2370)

2
0
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
Write a script that reposts all my youtube subscription videos with above average popularity on lemmy using Python

To repost all your YouTube subscription videos with above-average popularity on Lemmy using Python, you'll need to follow these steps: 1. Get a YouTube API key[1]. 2. Use the YouTube API to fetch your subscription videos[2]. 3. Determine the popularity threshold (e.g., average views, likes, or comments). 4. Filter the videos based on the popularity threshold. 5. Use Pythorhead to interact with Lemmy and post the filtered videos[3]. Here's a sample Python script to achieve this: ```python import requests from pythorhead import Lemmy # Replace with your YouTube API key and Lemmy credentials YOUTUBE_API_KEY = 'your_youtube_api_key' LEMMY_USERNAME = 'your_lemmy_username' LEMMY_PASSWORD = 'your_lemmy_password' # Fetch your YouTube subscription videos def get_youtube_subscriptions(api_key): # Replace with your YouTube channel ID channel_id = 'your_youtube_channel_id' url = f'https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&channelId={channel_id}&maxResults=50&key={api_key}' response = requests.get(url) data = response.json() return data['items'] # Determine the popularity threshold def get_popularity_threshold(videos): # Calculate the average views, likes, or comments of the videos # Replace this with your preferred popularity metric pass # Filter videos based on the popularity threshold def filter_videos(videos, threshold): # Filter the videos based on the popularity threshold # Replace this with your preferred popularity metric pass # Post filtered videos on Lemmy using Pythorhead def post_videos_on_lemmy(videos): lemmy = Lemmy("https://lemmy.dbzer0.com") lemmy.log_in(LEMMY_USERNAME, LEMMY_PASSWORD) community_id = lemmy.discover_community("your_lemmy_community") for video in videos: title = video['snippet']['title'] url = f'https://www.youtube.com/watch?v={video["id"]}' lemmy.post.create(community_id, title, url) # Main script if __name__ == '__main__': videos = get_youtube_subscriptions(YOUTUBE_API_KEY) threshold = get_popularity_threshold(videos) filtered_videos = filter_videos(videos, threshold) post_videos_on_lemmy(filtered_videos) ``` Replace the placeholders with your YouTube API key, Lemmy credentials, and YouTube channel ID. You'll also need to implement the `get_popularity_threshold` and `filter_videos` functions based on your preferred popularity metric (e.g., views, likes, or comments). Please note that this script is just a starting point, and you might need to modify it according to your specific requirements. Citations: [1] https://blog.hubspot.com/website/how-to-get-youtube-api-key [2] https://gist.github.com/Yiannis128/4a9c016236edf41493176a59bb0a1be0 [3] https://github.com/db0/pythorhead

2
0
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
When we go swimming and spend extended time in water, do the little bugs who live on our skin suffocate and die?

When we go swimming and spend extended time in water, it is not clear whether the little bugs living on our skin, such as Demodex mites, suffocate and die. Demodex mites live inside hair follicles and pores, feeding on sebum, the oily substance our skin produces[1]. They are difficult to remove by washing, as they reside deep within the pores[1]. While some insects can survive underwater for short durations[2], there is no specific information available on whether Demodex mites can survive extended periods underwater. However, it is important to note that spending time in chlorinated water, such as in swimming pools, may have some effect on the mites. Chlorine is a disinfectant that can kill various microorganisms, but there is no direct evidence to confirm its effectiveness against Demodex mites specifically. In conclusion, it is uncertain whether spending extended time in water, especially chlorinated water, will cause the little bugs living on our skin to suffocate and die. However, maintaining good hygiene and washing your face regularly can help manage the population of these mites on your skin[3]. Citations: [1] https://www.npr.org/sections/health-shots/2019/05/21/725087824/meet-the-mites-that-live-on-your-face [2] https://crops.extension.iastate.edu/blog/erin-hodgson/can-insects-breathe-water [3] https://www.byrdie.com/how-to-get-rid-of-face-mites-5091865

2
1
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
How to use Anime4K with mpv on Manjaro

To use Anime4K with mpv on Manjaro, you need to do the following steps: 1. Install Anime4K: Anime4K is available on the AUR. You can install it using any AUR helper like `yay` or `pamac`. Here's how you can do it with `yay`: ```bash yay -S anime4k-git ``` [Source 0](https://aur.archlinux.org/packages/anime4k-git) 2. Install mpv: You can install mpv from the official Manjaro repositories using pacman: ```bash sudo pacman -S mpv ``` [Source 3](https://github.com/bloc97/Anime4K/blob/master/md/GLSL_Instructions_Linux.md) 3. Download the Anime4K shaders: Depending on your GPU, you can download the optimized shaders for lower-end GPU or higher-end GPU from the [Anime4K Github](https://github.com/bloc97/Anime4K) page. Extract the shaders and place them in the shaders folder. [Source 3](https://github.com/bloc97/Anime4K/blob/master/md/GLSL_Instructions_Linux.md) 4. Configure mpv to use Anime4K: You need to modify your `mpv.conf` file to use Anime4K. The `mpv.conf` file is usually located in `~/.config/mpv/mpv.conf`. If it doesn't exist, you can create it. Below is a sample configuration: ```bash profile=gpu-hq scale=ewa_lanczossharp cscale=ewa_lanczossharp dscale=mitchell tscale=oversample correct-downscaling=yes sigmoid-upscaling=yes scaler-resizes-only=yes deband=yes ``` Add the path to the Anime4K shaders with the `glsl-shaders-append` option. For example: ```bash glsl-shaders-append="~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise_Bilateral_Mode.glsl" ``` Replace "~~/shaders/Anime4K_Upscale_CNN_M_x2_Denoise_Bilateral_Mode.glsl" with the path to your shaders. [Source 6](https://superuser.com/questions/1568322/how-to-use-anime4k-witih-mpv) 5. Use the correct mode for your content: Anime4K has 3 major modes: A, B, and C. Each mode is optimized for a different class of anime degradations. You can switch between these modes using `CTRL+1` for Mode A (Optimized for 1080p Anime), `CTRL+2` for Mode B (Optimized for 720p Anime), and `CTRL+3` for Mode C (Optimized for 480p Anime). You can disable Anime4K using `CTRL+0`. [Source 3](https://github.com/bloc97/Anime4K/blob/master/md/GLSL_Instructions_Linux.md) Remember that Anime4K is quite GPU-intensive, so ensure your hardware is capable of handling it. If you experience issues, try adjusting your mpv settings or use a lower-end GPU version of Anime4K.

2
0
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
Here's how to set up a Lemmy instance behind Tor

Setting up a Lemmy instance behind Tor requires a few steps, including setting up a Lemmy instance, configuring it to work with Tor, and creating a Tor hidden service. Here's a step-by-step guide to help you achieve this: 1. **Set up a Lemmy instance**: First, you need to set up a Lemmy instance on your server. You can follow the instructions provided in the [Lemmy documentation](https://join-lemmy.org/docs/administration/from_scratch.html) to install Lemmy from scratch or use the [official Docker Compose method](https://join-lemmy.org/docs/administration/docker_production.html). 2. **Install Tor**: Follow the [official Tor documentation](https://tb-manual.torproject.org/running-tor-browser/) to install Tor on your server. 3. **Configure Lemmy to work with Tor**: According to the [Lemmy documentation on running a Tor hidden service](https://join-lemmy.org/docs/administration/tor_hidden_service.html), Lemmy can be proxied through Tor, but federation tasks are still handled by HTTPS on the open internet. This means that your Lemmy instance will be accessible through the Tor network, but it will still federate with other instances using the clearnet. 4. **Create a Tor hidden service**: Follow the [Tor documentation on setting up an Onion Service](https://community.torproject.org/onion-services/setup/) to create a Tor hidden service for your Lemmy instance. This will allow users to access your Lemmy instance using a .onion address through the Tor network. 5. **Configure your web server**: You may need to configure your web server (e.g., Nginx or Apache) to work with the Tor hidden service. The [Tor documentation](https://community.torproject.org/onion-services/setup/) provides examples of how to set up an onionsite with Nginx and Apache on Debian. Once you have completed these steps, your Lemmy instance should be accessible through the Tor network using a .onion address. Keep in mind that federation between instances will still occur over the clearnet, as mentioned in the Lemmy documentation[1]. Citations: [1] https://join-lemmy.org/docs/administration/tor_hidden_service.html

2
0
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
Estimated Market Worth of Cultured Meat vs Traditional Meat

What's the market worth of cultured vs normal meat

2
0
"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT InternetPirate 1 year ago 100%
28/06/23
1
0