• 0 Posts
  • 40 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle
  • it’s used to verify that OpenGL ES2 works on your system. It’s the variant of 3D graphics drivers that is used on smartphones. Many apps nowadays write their GFX frontend with GLES2 so it uses the same code on phones and PCs, and if they compile the app to run in the web browser, WebGL is also based on GLES2.








  • pelya@lemmy.worldtoLinux@lemmy.mlIs anyone using awk?
    link
    fedilink
    arrow-up
    11
    arrow-down
    4
    ·
    edit-2
    11 months ago

    Grep is fiiiiine.

    sed is okay but a little nasty, when your sed script is longer that one search-replace command you gotta ask yourself what you’re doing really (yes, sed is a full-featured Turing-complete programming language, if you go far enough into the man page).

    When I see awk in any stackoverflow recipe, I just say ‘fuck it’ and rewrite the whole thing in Python. Python is included into the minimal system image in Debian, the same as awk, but is way less esoteric, and you can do python -e 'import os, sys; commands;' for a one-liner console script.

    And if you want to talk about portability, try writing scripts for Android 4.4 ash shell. There’s no [ ] command. You do switch/case to compare strings.




  • pelya@lemmy.worldtoLinux@lemmy.mlWhy do you use the terminal?
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    11 months ago

    I’m sorry, I’m too old to learn emacs over my perfect knowledge of Midnight Commander.

    The point of this topic was to tell why we are using terminal, and emacs is kind of terminal on steroids, there are like 1000 key bindings and the mouse is totally optional, you are proving the point even further.


  • pelya@lemmy.worldtoLinux@lemmy.mlWhy do you use the terminal?
    link
    fedilink
    arrow-up
    21
    arrow-down
    4
    ·
    edit-2
    11 months ago

    To get shit done in general.

    If I need to rename a file, yeah, I can do that by right-clicking it in the file explorer, and selecting ‘rename’ from the menu. Two files? Painful but doable. Three files? Oh hell no, I’m switching to my always-open-in-background terminal window, and write a quick c=1; for f in *.jpeg; do mv "$f" $c.jpeg; c=`expr $c \+ 1` ; done and it takes twice less time than clicking things through with mouse.

    And yes, I wrote that shell command off the top of my head on the first try and without edits.








  • Those abilities from the article are useless for a soldier.

    You don’t feel much stress shooting the enemy. You feel a lot of stress when the enemy shoots back, especially the artillery. So you get less stress when your artillery has more range, because you don’t get shot at.

    Using painkillers is just ignoring the problems with your health. If you want to stay in the army for more than a year, go to the doctor and get a proper treatment.

    The food is not a problem, we got ten thousand variations of canned meat.

    The most pressing problem for soldiers in the field is the lack of hygiene. If you can shower once per month without getting sick, you’ll make a better soldier.

    It’d also help if you’re short and can carry heavy stuff.

    So, I imagine actual super-soldiers to be muscly gypsy dwarves who eat a lot and complain when they get health issues.

    Source: has been in the army.