1
3
submitted 4 months ago by PumpkinDrama@reddthat.com to c/videos@lemmy.ml
1

To automatically open output in a pager when it exceeds the screen height in Zsh, you can use a shell function that wraps commands and pipes their output to a pager if necessary. Here's how you can implement this:

  1. Add the following function to your .zshrc file:
auto_pager() {
  local cmd="$1"
  shift
  $cmd "$@" | {
    if [ $(tput lines) -lt $(/usr/bin/env wc -l) ]; then
      $PAGER
    else
      cat
    fi
  }
}
  1. Create aliases for commands you want to automatically page:
alias ls='auto_pager ls'
alias grep='auto_pager grep'
alias tree='auto_pager tree'
# Add more aliases as needed

This solution works as follows:

  1. The auto_pager function takes a command and its arguments.
  2. It runs the command and pipes its output to a subshell.
  3. Inside the subshell, it compares the number of lines in the output to the terminal height.
  4. If the output exceeds the terminal height, it uses the pager defined in the $PAGER environment variable (usually less).
  5. If the output fits within the terminal, it simply uses cat to display it.

To ensure the pager behaves correctly, you can set the following options in your .zshrc:

export LESS="-FXR"

This configures less to:

  • Exit if the entire file fits on one screen (-F)
  • Not clear the screen when exiting (-X)
  • Display ANSI colors (-R)

By using this approach, you can automatically page output that exceeds the screen height while still displaying shorter output directly[1][2]. Remember to restart your Zsh session or source your .zshrc file after making these changes.

Citations: [1] https://stackoverflow.com/questions/15453394/would-it-be-possible-to-automatically-page-the-output-in-zsh/15488779 [2] https://www.reddit.com/r/bash/comments/jbcp5x/how_to_automatically_display_the_output_in_a/ [3] https://github.com/ohmyzsh/ohmyzsh/issues/3016 [4] https://github.com/sharkdp/bat/issues/749

4
1

A new AI horror film competition has been announced. Here is the one from last year: https://youtu.be/tCa-9ik5ffA

0
submitted 4 months ago* (last edited 4 months ago) by PumpkinDrama@reddthat.com to c/random@reddthat.com

Tarta de Yogur y Manzana

Ingredientes:

  • 2 manzanas
  • 5 huevos
  • 80 g de maicena (aproximadamente 6,5 cucharadas)
  • 500 g de yogur griego (sin azúcar)
  • 150 g de azúcar (puedes usar azúcar moreno o el edulcorante de tu preferencia)
  • 200 ml de nata (crema de leche)
  • Masa de hojaldre (comprada o casera) para un molde de 24 cm
  • Mantequilla (opcional, para engrasar el molde)

Instrucciones:

  1. Preparar el molde: Engrasa ligeramente el molde de silicona (si es necesario) y forra la base con la masa de hojaldre. Recorta el exceso de masa y pincha la base con un tenedor para evitar que suba durante la cocción. Lleva el molde al refrigerador mientras preparas el relleno.

  2. Preparar el relleno: En una cacerola a fuego medio, mezcla el yogur griego y el azúcar. Remueve bien hasta que se integren.

  3. Agregar las manzanas: Lava y corta las manzanas en trozos medianos (puedes dejarlas con piel para dar color). Añádelas a la mezcla de yogur y azúcar.

  4. Incorporar los huevos y la maicena: En un bol aparte, bate los 5 huevos y la maicena. Luego, añade esta mezcla a la cacerola con el yogur y las manzanas. Remueve constantemente hasta que la mezcla espese (aproximadamente 5 minutos).

  5. Añadir la nata: Una vez que la mezcla esté espesa, retírala del fuego y añade la nata. Mezcla bien hasta que esté completamente integrada.

  6. Hornear: Vierte la mezcla en el molde preparado con la masa de hojaldre. Precalienta el horno a 175 ºC (347 ºF) y hornea durante 45 minutos, o hasta que la parte superior esté dorada y la mezcla esté firme.

  7. Enfriar: Una vez horneada, retira la tarta del horno y déjala enfriar a temperatura ambiente. Luego, refrigérala durante al menos 2 horas antes de desmoldar.

  8. Desmoldar y servir: Con cuidado, desmolda la tarta utilizando un plato o un utensilio adecuado. Sirve fría y disfruta de esta deliciosa tarta de yogur y manzana.

1

I came across a statement that claims, "Biden/Harris have just pushed through DoD Directive 5240.01 giving the Pentagon power — for the first time in history — to use lethal force to kill Americans on U.S. soil who protest government policies." This sounds incredibly alarming and reminiscent of the dystopian government tactics depicted in V for Vendetta.

I always thought the CIA was already involved in actions against Americans, with or without permission. So, is there any truth to this claim about the Pentagon's new authority? What does DoD Directive 5240.01 actually say, and does it really grant such power? I’d appreciate any insights or clarifications on this topic!

https://rumble.com/v5jxz85-world-war-3-incoming-north-korea-send-troops-to-russia-as-brics-prepares-to.html?start=2444

0

To compare the ANBERNIC RG556 and the Steam Deck, let's examine their key specifications:

Processing Power

ANBERNIC RG556:

  • CPU: Unisoc T820
  • GPU: Mali-G57
  • RAM: 8GB

Steam Deck:

  • CPU: Custom AMD Zen 2, 4 cores/8 threads, 2.4-3.5GHz
  • GPU: AMD RDNA 2 with 8 compute units, 1.0-1.6GHz
  • RAM: 16GB LPDDR5[1][4]

The Steam Deck has a more powerful custom APU designed specifically for gaming, while the RG556 uses a more general-purpose mobile processor.

Display

ANBERNIC RG556:

  • 5.4" AMOLED touchscreen
  • 1920x1080 resolution (1080p)

Steam Deck:

  • 7" LCD touchscreen (original model)
  • 1280x800 resolution
  • 7.4" HDR OLED touchscreen (newer model)
  • 1280x800 resolution, up to 90Hz refresh rate[1][4]

The RG556 has a higher resolution but smaller AMOLED screen, while the Steam Deck offers a larger display with HDR capabilities in its OLED model.

Storage

ANBERNIC RG556:

  • 128GB internal storage

Steam Deck:

  • Options range from 64GB eMMC to 512GB or 1TB NVMe SSD
  • MicroSD card slot for expansion[1][4]

The Steam Deck offers more storage options and expandability.

Battery

ANBERNIC RG556:

  • 5000mAh battery
  • Approximately 8 hours of average use

Steam Deck:

  • 40Whr battery (LCD model)
  • 50Whr battery (OLED model)
  • 3-12 hours of gameplay depending on usage[1][4]

Both devices offer similar battery life, with the Steam Deck potentially lasting longer for less demanding tasks.

Operating System

ANBERNIC RG556:

  • Android-based system

Steam Deck:

  • SteamOS 3.0 (Arch Linux-based)
  • KDE Plasma desktop environment[1][4]

The Steam Deck's custom OS is optimized for PC gaming, while the RG556 uses a more familiar Android environment.

Price

ANBERNIC RG556:

  • Approximately $185

Steam Deck:

  • Ranges from $399 to $649 depending on the model[2]

The RG556 is significantly less expensive than the Steam Deck.

In summary, while the ANBERNIC RG556 offers a compact and more affordable option with a high-resolution AMOLED screen, the Steam Deck provides superior processing power, a larger display, more storage options, and a custom-built gaming-focused operating system. The Steam Deck is better suited for running more demanding PC games, while the RG556 is more oriented towards emulation and Android gaming.

Citations: [1] https://www.steamdeck.com/en/tech [2] https://www.tomshardware.com/reviews/steam-deck-valve-gaming-handheld [3] https://retrododo.com/anbernic-rg556-review/ [4] https://en.wikipedia.org/wiki/Steam_Deck

3
submitted 4 months ago* (last edited 4 months ago) by PumpkinDrama@reddthat.com to c/sharegpt@reddthat.com

To play Magic: The Gathering (MTG) against a computer opponent on Manjaro Linux, you have a few options:

Magic: The Gathering Arena

Magic: The Gathering Arena is the official digital version of the game, which allows you to play against computer opponents and other players online. While it's not natively supported on Linux, you can run it using Wine or through Steam:

Using Wine

  1. Install Wine and its dependencies:
sudo pacman -S wine jq curl
  1. Clone the mtga-launcher repository:
git clone https://github.com/otti358/mtga-launcher.git
cd mtga-launcher/
  1. Run the launcher:
./mtga-launcher

Using Steam

To install and play "Magic: The Gathering Arena" (MTGA) on Manjaro Linux using Steam's Proton compatibility layer, follow these updated steps:

Step-by-Step Instructions:

  1. Install Steam on Manjaro: Open a terminal and run the following command to install Steam:

    sudo pacman -S steam
    
  2. Launch Steam: After installation, launch Steam from your application menu.

  3. Enable Steam Play for Windows games:

    • In Steam, click on "Steam" in the top-left corner and select "Settings."
    • In the Settings menu, click on "Steam Play" in the left sidebar.
    • Check the box for "Enable Steam Play for all other titles."
    • Select the latest Proton version from the dropdown menu.
    • Click "OK" and restart Steam to apply the changes.
  4. Install "Magic: The Gathering Arena":

    • Use the search bar in the Steam store to find "Magic: The Gathering Arena."
    • Click on the game in the search results and then click the "Play" button to install it.
    • Follow the prompts to complete the installation.
  5. Launch the game:

    • Once the installation is complete, go to your Library.
    • Find "Magic: The Gathering Arena" in your game list and click "Play."
    • Steam will automatically use Proton to run the game on Manjaro.

Additional Tips:

  • Check Game Compatibility: Before playing, you can check the compatibility of MTGA on ProtonDB to see if there are any specific tweaks or settings recommended by other users.

  • Try Different Proton Versions: If you encounter issues while playing, you may need to try different Proton versions:

    • Right-click on "Magic: The Gathering Arena" in your Library.
    • Select "Properties."
    • Go to the "Compatibility" tab.
    • Check the box for "Force the use of a specific Steam Play compatibility tool" and select a different Proton version from the dropdown menu.
  • Non-Steam Games: If you want to add non-Steam games to Steam and use Proton, you can do so by:

    • Clicking "Add a Non-Steam Game" in the Steam Library.
    • Selecting the game's executable file.
    • Setting the compatibility layer (Proton version) in the game's properties.

Alternative Options

If you're having trouble running MTG Arena, consider these alternatives:

Forge

Forge is an open-source MTG simulator that runs natively on Linux:

  1. Install Java if not already installed:
sudo pacman -S jdk-openjdk
  1. Download Forge from its official website.
  2. Extract the archive and run the launcher script.

Forge offers single-player modes against AI opponents and allows you to play against yourself.

XMage

XMage is another open-source MTG client that supports playing against AI:

  1. Install Java if not already installed.
  2. Download XMage from its official website.
  3. Extract the archive and run the launcher.

XMage provides a rules engine and AI opponents, allowing you to play against the computer or set up games against yourself.

Citations: [1] https://github.com/otti358/mtga-launcher [2] https://forum.garudalinux.org/t/installing-magic-the-gathering-arena-fails-using-lutris/34461 [3] https://www.reddit.com/r/archlinux/comments/1cbk7k2/dockerized_magic_the_gathering_arena_for_arch/ [4] https://forum.manjaro.org/t/how-to-install-magic-the-gathering-arena-on-manjaro-arch/122546

2

To boot your Lenovo laptop from a USB drive with Windows 11, follow these steps:

Accessing BIOS/Boot Menu

  1. Restart your Lenovo laptop.

  2. As soon as the Lenovo logo appears, repeatedly press the F12 key to enter the Boot Menu[1][5]. On some models, you may need to press Fn+F12 instead[6].

  3. If F12 doesn't work, try F1, F2, or F10 to access the BIOS settings[7].

Preparing BIOS Settings

  1. Once in BIOS, navigate to the "Security" tab and disable "Secure Boot" if it's enabled[1].

  2. Go to the "Startup" tab and enable the "F12 Boot Menu" option[2].

  3. In the "Configuration" tab, ensure USB support is enabled[2].

  4. Save changes and exit BIOS (usually by pressing F10).

Booting from USB

  1. Plug in your bootable Windows 11 USB drive.

  2. Restart your laptop and press F12 to enter the Boot Menu.

  3. Use the arrow keys to select your USB drive from the list of boot devices[5][6].

  4. Press Enter to boot from the selected USB drive.

Troubleshooting

If you're still having issues:

  • Try a different USB port on your laptop[3].
  • Ensure your USB drive is properly formatted and contains a valid Windows 11 installation[3].
  • Check if your Lenovo model supports Windows 11 and meets the minimum system requirements.
  • Update your BIOS to the latest version, as this can sometimes resolve boot issues[3].

If all else fails, you may need to perform a clean installation of Windows 10 first and then upgrade to Windows 11 using the installation assistant[3].

Remember, the exact steps may vary slightly depending on your specific Lenovo model. If you continue to experience difficulties, consult Lenovo's support documentation for your particular laptop model.

Citations: [1] https://recoverit.wondershare.com/usb-tips/lenovo-boot-from-usb.html [2] https://www.youtube.com/watch?v=CxtWvo-DU4I [3] https://answers.microsoft.com/en-us/windows/forum/all/how-to-install-windows-11-on-new-lenovo-ideapad3/1ab8b0dd-3e8c-4d63-b7e4-94ace917603c [4] https://www.reddit.com/r/MDT/comments/13flzxu/creating_a_bootable_windows_11_usb_for_lenovo/ [5] https://support.lenovo.com/us/en/solutions/ht118361-how-to-boot-from-a-usb-drive-thinkpad [6] https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/yoga-series/yoga-11-notebook-ideapad/2696/solutions/ht500207-how-to-boot-from-usb-disk-in-the-bios-boot-menu-windows-8-windows-10-ideapadlenovo-laptops [7] https://www.easeus.com/partition-manager-software/boot-lenovo-laptop-from-usb.html [8] https://pcsupport.lenovo.com/us/es/products/laptops-and-netbooks/ideapad-l-series-laptop/l3-15iml05/solutions/ht500207-how-to-boot-from-usb-disk-in-the-bios-boot-menu-windows-8-windows-10-ideapadlenovo-laptops

36
submitted 4 months ago* (last edited 4 months ago) by PumpkinDrama@reddthat.com to c/pcmasterrace@lemmy.world

I'm considering upgrading my laptop and giving my current one to someone else. I'm looking for a device with a 15.6" FHD display, at least 8GB of RAM, a 256GB SSD, HDMI, USB 3.0, and an audio jack, all within a budget of under 500€.

I've found some refurbished options at a good price, and these two seem like the best choices:

  1. Lenovo ThinkPad L590: 15.6" i5 8365U, 8GB RAM, SSD 256GB, Full HD, Grade A
  2. Lenovo ThinkPad T580: 15.6" i5 8350U, 8GB RAM, SSD 256GB, Full HD, NVIDIA GeForce MX150 2GB, Grade A+

Which one would you recommend?

1

Open source projects often face challenges in securing adequate funding, donations, and contributions for several reasons:

Limited Awareness and Visibility

Many open source projects struggle to gain visibility among potential users and contributors[1]. Without a large user base or strong marketing efforts, it can be difficult to attract donations or financial support.

Misconceptions About Open Source

There's a common misconception that open source software should be entirely free, including development costs[2]. This leads to a reluctance among users to financially support projects they benefit from.

Funding Models and Sustainability

Traditional funding models often don't align well with open source development:

Donation Challenges: Relying solely on donations is rarely sustainable for most projects[5]. Only a small percentage of users typically contribute, and amounts are often insufficient to support full-time development.

Venture Capital Complications: While VC funding can provide initial boosts, it often leads to pressure for monetization that may conflict with open source principles[3].

The "Free Rider" Problem

Many companies and individuals use open source software without contributing back, either financially or through code contributions[2]. This creates an imbalance where projects provide value but don't receive proportional support.

Your Proposed Solution

Your idea of a self-hosted project with a demo featuring ads presents an interesting middle ground:

Potential Benefits:

  • Provides a steady revenue stream without compromising the open source nature of the project.
  • Allows users to try the software before committing to self-hosting.
  • Could generate enough income to support full-time developers.

Considerations:

  • Ensure the ad implementation doesn't compromise user privacy or experience.
  • Be transparent about how ad revenue is used to support the project.
  • Consider offering an ad-free option for users who prefer to donate directly.

This approach aligns with the concept of "open core" models, where the core functionality remains open source while additional features or services generate revenue[1]. It could potentially address some of the funding challenges while maintaining the project's open source ethos.

Balancing Open Source and Sustainability

Your proposal represents a pragmatic approach to the open source funding dilemma. By generating revenue through non-intrusive means, the project can maintain its open source nature while working towards financial sustainability. This model could potentially:

  1. Attract more contributors by demonstrating a path to sustainable development.
  2. Provide resources for marketing and outreach, increasing the project's visibility.
  3. Allow for consistent maintenance and feature development, benefiting the entire user community.

While not a perfect solution, this approach offers a promising compromise between open source ideals and the practical needs of sustainable software development.

Citations: [1] https://fundingopensource.com/funding-open-source-projects/ [2] https://stackoverflow.blog/2021/01/07/open-source-has-a-funding-problem/ [3] https://www.builder.io/blog/oss-consequences [4] https://www.infoworld.com/article/3557846/how-do-we-fund-open-source.html [5] https://www.cs.cmu.edu/~ckaestne/pdf/icse20-donations.pdf [6] https://www.karllhughes.com/posts/open-source-companies [7] https://opensource.com/education/11/9/how-build-sustainable-nonprofit-open-source-way

[-] PumpkinDrama@reddthat.com 7 points 4 months ago* (last edited 4 months ago)

The decentralized nature of Lemmy, while appealing in theory, creates significant frustration in practice due to widespread instance blocking. Finding an ideal instance becomes a daunting task, as users must navigate a complex web of inter-instance politics and restrictions. This challenge is further compounded for those who prioritize factors like low latency or specific content policies. Lemmy's architecture heavily favors instance-level configurations, leaving individual users with limited control over their experience. The only reliable solutions seem to be either hosting a personal instance—a technical hurdle for many—or simply hoping that your chosen instance's admins align with your preferences and don't block communities you enjoy. This politicking ultimately undermines the platform's potential.

[-] PumpkinDrama@reddthat.com 10 points 4 months ago

There were several issues on GitHub regarding proposals on how to solve the low visibility of small instances. However, after the Scaled Sort was implemented, all those issues were closed, yet the problem persists. I continue to use Reddit the same as before because I primarily used it for niche communities, which are lacking here. The few times I've posted to a niche community here, I've either received no answers or been subject to drive-by downvotes, likely from users not even subscribed to the community. As a result, I now only post on Lemmy when the post is directed to a large community, and I use Reddit for the rest.

[-] PumpkinDrama@reddthat.com 9 points 4 months ago

Dynamic Linking System:

  • A system that automatically links related posts across different communities and instances.
  • Allow users to see all related discussions in one place, regardless of where they were originally posted.
[-] PumpkinDrama@reddthat.com 7 points 9 months ago

Indeed, most people I know IRL still use the same passwords for everything.

[-] PumpkinDrama@reddthat.com 7 points 10 months ago

It certainly doesn't help that Lemmy had and still has absolutely no sensible way to actually surface niche communities to its subscribers. Unlike Reddit, it doesn't weigh posts by their relative popularity within the community but only by total popularity/popularity within the instance. There's also zero form of community grouping (like Reddit's multireddits) - all of which effectively eliminates all niche communities from any sensible main view mode and floods those with shitty memes and even shittier politics only. This pretty much suffocated the initially enthusiastic niche tech communities I had subscribed to. They stood no chance to thrive and their untimely death was inevitable.

There are some very tepid attempts to remedy this in upcoming Lemmy builds, but I fear it's too little too late.

I fear that Lemmy was simply nowhere near mature enough when it mattered and it has been slowly bleeding users and content ever since. I sincerely hope I'm wrong, though.

@PurpleTentacle@sh.itjust.works https://sh.itjust.works/comment/4451602

[-] PumpkinDrama@reddthat.com 7 points 1 year ago

Making movies from a single prompt.

[-] PumpkinDrama@reddthat.com 8 points 1 year ago* (last edited 1 year ago)

I've considered Odysee but I've settled for Rumble. PeerTube has stringent upload limits. Now I'm looking for a platform to share the videos not upload them.

view more: ‹ prev next ›

PumpkinDrama

joined 1 year ago
MODERATOR OF