• 0 Posts
  • 42 Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle
  • If you want a second attempt, this might help.

    To get USB devices working inside a container, you need to map the device into the container, which can be tricky—especially if you’re running rootless containers.

    If you’re on Linux and want to avoid complicated setups with user namespaces, groups, or messing with udev rules, the easiest way to start is by manually recreating the device node inside a folder you control (like where your config is stored) using mknod.

    For example, if your USB device is /dev/ttyUSB0:

    1. Run ls -l /dev/ttyUSB0 You should see output like: crw-rw---- 1 root dialout 188, 0 Jan 1 1970 /dev/ttyUSB0

    2. Note the major (188) and minor (0) numbers.

    3. Change directory to the folder where you want to create the “clone” device node, then run: sudo mknod -m 666 ttyUSB0 c 188 0 (Use the major/minor numbers from your device — they differ by device.) This will create a device readable and writeable by anyone on the system so perhaps consider changing the mode from 666 to 660 and/or chown the file afterwards to your user and group. As I said, this is HACKY and not a secure solution.

    You will now have a device file you can then pass into your container with the Docker/PODMAN option: –device /path/to/your/folder/ttyUSB0:/dev/ttyUSB0

    I realize this is a pretty hacky and insecure workaround—feel free to downvote or ignore if you want something cleaner. But it’s a quick way to get your USB device accessible inside the container to get started. Later on, you can look into proper handling with udev or other methods if security is important.

    If you use Windows, you are on your own unfortunately, I do not have experience with podman/docker in Windows environments.


  • Subtitles are not always simple text files in the source. They can come in various formats like SRT, WebVTT, Teletext, and VobSub—if they are present at all.

    To integrate them into WebM, you must first determine if they exist, ensure they have the correct language tags (and tag them properly if they don’t), then extract them, convert them into a format compatible with the player, and finally remux them alongside the video and audio. This process can easily fail in an automated workflow if any of these conditions are unmet or if the subtitle format is incompatible.

    Given this complexity, it’s understandable why many choose to avoid the effort rather than addressing whether WebM supports subtitles.

    I am not defending anyone, but the process of it all makes it understandable, at least for me.




  • y0din@lemmy.worldtoMildly Infuriating@lemmy.world[Deleted]
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    I know this doesn’t directly solve your issue, and it might not help much now, but I wanted to share my experience just in case it’s useful.

    When I had a similar problem after switching phones, what ended up helping was that I had 2FA enabled beforehand. In that case, after selecting the option to recover my account suddenly allowed me to receive a verification code via SMS—something that didn’t appear on the usual login screen, it was greyed out before selecting this option.

    It probably won’t work if 2FA is disabled, but maybe it’s still worth checking if any recovery options that shows up helps. There might be a choice there that helps you resolve your problem as well.

    In any case, good luck—I hope you’re able to get it sorted soon!



  • Were you using Windows XP Home, by any chance?

    That tool was only included with Windows XP Professional, and even then, it was a command-line utility—so unless you were specifically looking for it or browsing through the %windir%\system32 directory, you probably wouldn’t have noticed it.

    The article I referenced didn’t specify exactly which 32-bit versions it came with or when it was removed—it just mentioned that it was still included in 32-bit Windows after the DOS era. I didn’t write the article myself, so I can’t really speak to its accuracy.

    Personally, I used that edline a lot back in the DOS days starting around 1985, until I switched to Notepad in Windows 95 and later to VIM when I moved to Linux after Windows 98. I never really checked for it in newer versions of Windows after that. A quick Google search confirmed it wasn’t included in XP Home, which would explain why you never saw it.

    Link to the forum I found this information about XP in: http://murc.ws/forum/hardware/general-hardware-software/49698-omg-edlin-still-lives-in-xp#post755768

    (edit: fixed a typo, added reference link)




  • sorry, since you asked a question I just felt the need to clarify 🙂

    The ISP products you mentioned really don’t seem consumer-friendly. I understand that ISPs might benefit from setting byte limits, since they incur costs for both inbound and outbound traffic to transit providers. However, from a consumer perspective, it’s a poor deal—especially since most people don’t have the tools to manage their usage effectively and can burn through their quota far too quickly, just like you pointed out.

    It all comes down to costs and earnings in the end for all products unfortunately.


  • I do not work there, just referenced the terms of conditions from their website, so you need to ask them the questions, but I think having a 1Gb connection with 30TB of seeding will eat up that pretty fast either way and also cause a mayhem of incoming connections, so it can hardly be considered private use (based on their definition)

    Again, I have no reference to the company, so all questions should be forwarded to them not me. I simply gave a possible reasoning of the ban from their terms.

    edit: added info about their definition of private use




  • that one was made in Russia according to the printed text…and in October 2022 if I read the date stamp correctly? and LEDVANCE is a company name, not product name, it was splitted out of OSRAMS LED division in 2016.

    Ledvance GmbH, headquartered in Garching bei München, Germany, is a general lighting and smart home technology company. It was established in 2016 as a spin-off from Osram Licht AG. Since April 2018, Ledvance has been wholly owned by Chinese lighting company MLS.[3] …

    In April 2015, it was announced that Osram would divest its general lighting lamp business, which accounted for just over one-third of its workforce. In June 2015, the supervisory board of Osram Licht AG agreed to the divestment of their lamp division with products such as LED lamps, halogen lamps, and compact fluorescent lamps.[4][5] This divested division has been operating as a legally independent company under the name Ledvance since April 2016.

    At the end of July 2016, Osram announced that Ledvance would be sold for more than €500 million[8] to a Chinese consortium consisting of investor IDG Capital, LED packaging manufacturer MLS, and Yiwu. The sale was completed on 3 March 2017, with economic effect as of 1 March 2017.[9][10][11] Due to the takeover, MLS gained distribution networks in Europe and the United States.[12][13] Since April 2018, MLS has been the sole owner of Ledvance

    https://en.m.wikipedia.org/wiki/Ledvance

    not sure you can make OSRAM responsible for what a Chinese company does in Russia?

    edit: should have updated the text on thought, but perhaps not the first priority or something considered important in Russia.




  • does gentoos emerge --rageclean count?

    [–unmerge, -C WARNING: This action can remove important packages! Removes all matching packages following a counter governed by CLEAN_DELAY. This does no checking of dependencies, so it may remove packages necessary for the proper operation of your system. Its arguments can be atoms or ebuilds. For a dependency aware version of --unmerge, use --depclean or --prune. For a version with CLEAN_DELAY=0, use --rage-clean.

    (edit, added context from “man emerge”, rageclean mentioned the last sentence)




  • Alright, let’s get into the nitty-gritty of Duckpower.

    First, let’s settle the “waddling vs. flying vs. swimming” debate. Horses aren’t big on flying, so we’re talking waddling power here. Until someone locates a Pegasus, we’re limited to the traditional land-bound horsepower. If you want swimming power, I guess you’d need to measure a seahorse?

    Now, here’s where it gets serious: according to the brilliant minds at Art of Engineering, we can calculate Duckpower using a clever formula. They took the mass of a duck, compared it to a horse, and ran it through Kleiber’s Law. The answer? One horsepower = 131.2 Duckpower. So, back to our math:

    3 horsepower = 3 x 131.2 Duckpower = 393.6 ducks waddling their hearts out.

    But wait! We probably don’t need all 393.6 ducks if we give them some solid shift schedules. Horses only get 3 HP so two can rest; following this logic, we’d only need around 100 well-rested ducks, provided they get naps and stay hydrated.

    So, let’s optimize our duck workforce with a shift schedule. Assuming we only need 100 ducks, here’s the plan:

    Duckpower Shift Schedule:

    Total Ducks: 100

    Working Ducks per Shift: 25

    Shift Duration: 2 hours on, 6 hours off (plenty of time for snacks and naps)

    In a day, we’d run 4 shifts like this:

    1. Shift 1: 25 ducks start strong at 8:00 AM, waddling with purpose.

    2. Shift 2: Fresh 25 ducks take over at 10:00 AM while Shift 1 ducks hit the ducky lounge for snacks and a nap.

    3. Shift 3: At 12:00 PM, another 25 ducks clock in to keep those wheels turning.

    4. Shift 4: Finally, at 2:00 PM, the last 25 ducks take over while the others catch up on R&R.

    With this cycle, each duck works only 2 hours out of every 8, staying energized, waddling at peak efficiency, and ready for action.

    TL;DR: 3 horsepower = 393.6 ducks waddling but if we set up a 4-shift system, we can pull this off with only 100 ducks working 2 hours each, plus snack breaks.