• 0 Posts
  • 17 Comments
Joined 6 months ago
cake
Cake day: March 3rd, 2024

help-circle

  • My favorite tips are:

    You can filter the output of a command. Most commands return parameters like (output, error) so you can filter them by number like 1>/dev/null will filter the output and only show the errors, and 2>/dev/null will filter the errors and only show the output. Also if you want a command to run silently but it doesn’t have it’s own built-in quiet mode you can add &>/dev/null which will filter everything.

    Bash (and other shell’s I assume) can be fully customized. In addition to the .bashrc file in your home directory, there are also a few common files that bash will look for like .bash_aliases, .bash_commands, .bash_profile or you can create your own and just add to the end of the .bashrc file ./YOUR_CUSTOM_BASH_FILE_NAME

    Inside that file you can add any custom commands you want to run for every bash shell like aliases and what not.

    I personally often use a simple update command like so alias up='sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y' which just makes running updates, upgrades, and clean-up so much easier. Just type up and enter your password. I have previously added in things like &>/dev/null to quiet the commands and echo Fetching updates... to make some commands quieter but still give some simple feedback.

    There’s also the basics of moving around a terminal command as others have pointed out. The easiest and the one I use the most is if you hold CTRL+LEFT_ARROW the cursor will move entire words instead of one character at a time. Very helpful if you need to change something in the middle of a command.



  • ShaunaTheDead@fedia.iotoLemmy Shitpost@lemmy.worldLets Help Adobe
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    1 month ago

    Cool animation! 10/10 style points!

    For those unaware, Adobe changed their terms of service recently to say that if you agree to the terms then they officially own anything you create using their software and can use it however they want. Specifically this line:

    you grant us a non-exclusive, worldwide, royalty-free sublicensable, license, to use, reproduce, publicly display, distribute, modify, create derivative works based on, publicly perform, and translate the Content.

    This probably means that Adobe has built some kind of backdoor into their programs to access your files and send it off to their servers. Pretty shitty of them!






  • Reminds me of an early application of AI where scientists were training an AI to tell the difference between a wolf and a dog. It got really good at it in the training data, but it wasn’t working correctly in actual application. So they got the AI to give them a heatmap of which pixels it was using more than any other to determine if a canine is a dog or a wolf and they discovered that the AI wasn’t even looking at the animal, it was looking at the surrounding environment. If there was snow on the ground, it said “wolf”, otherwise it said “dog”.







  • I don’t really get the appeal of strongly typed languages. Can’t you just use try/catch blocks, and/or use functional programming and return early if the data structure of whatever you’re working with isn’t what you expected?

    I guess it can help older code easier to maintain because the expected data structure is right there, but you could also just include it in a comment above the function.

    I personally find TS slows down initial production of a project and raises so many unnecessary errors.

    Is there some huge benefit that I’m missing? Because I don’t really get the appeal. I mean, I do on some level, but I don’t really understand why so many people are absolutely obsessed with TS.



  • I’m not super familiar with VLC but I asked a chatbot, does this help at all?

    1. Open your video with VLC.
    2. Navigate to the scene that you want to capture. You can use VLC’s frame-by-frame feature to access a specific frame in your video.
    3. Capture the screenshot by pressing Shift+S (Windows and Linux) or Command+Alt+S (Mac).
    4. Alternatively, from VLC’s menu bar, select Video > Take Snapshot.
    
    If you’d like to use advanced controls to capture the screenshot, then from VLC’s menu bar, select View > Advanced Controls to enable those controls. Then, in VLC’s bottom-left corner, click the camera icon to take a snapshot1.
    
    Your screenshot is now captured and saved in a folder on your computer. The default location for the screenshots is as follows:
    
    1. Windows: C:\\Users\\username\\Pictures
    2. Mac: Desktop/
    3. Linux: ~/Pictures
    
    If you’d like to change where VLC stores your screenshots, or you’d like to change the file format, then select Tools > Preferences from VLC’s menu bar. On the “Simple Preferences” window that opens, select the “Video” tab. To change the default screenshot directory, then in the “Video Snapshots” section, click “Browse” next to “Directory.” Then, choose the new folder that you want to set as the default for your screenshots. If you’d like to use a different image format (the default is PNG) for your snapshots, then click the “Format” drop-down menu and choose a new format. Your options include PNG, JPG, and TIFF. After you’ve made the changes, at the bottom of the “Simple Preferences” window, click “Save” to save your changes.