fool

joined 2 years ago
[–] fool 1 points 4 months ago

Ty for feedback :>

Your paragraph read well. I definitely agree -- grammar with risks, outside of hyper-formal sitches, is just stylized diction. ChatGPT could scarcely come up with an e.e. cummings poem (just tested now, it never gets the style about right), nor dare to abuse parentheses, nor remove cruft for conciseness (e.g. to start a sentence with "Kind of changed" instead of "This kind of changes" for compression (woot)). It's a "wrong" but not quite "wrong", and I'm glad that "riskless" manages to carry that feeling

And I edit a lot too :) it's the "post-email-send clarity" effect

[–] fool 24 points 4 months ago (1 children)

Make your data useless or wrong.

More passively, there's probably an oddly large amount of John Does born on January 1, 2000 ;)

More offensively, anti-image-gen data poisoning such as Nightshade exists. It's well-defended against IIRC so hopefully someone can Cunningham's Law correct me. And this is also more solo of a movement (as opposed to gaining mass support for something)

[–] fool 40 points 4 months ago* (last edited 4 months ago) (4 children)

https://www.explainxkcd.com/wiki/index.php/327:_Exploits_of_a_Mom

SQL sanitization joke. Won't affect most databases today.

[–] fool 3 points 4 months ago* (last edited 4 months ago)

edit: updated accordingly for clarity

Ah, I mean proper grammar as in formal, largely riskless grammar. For example, AI wouldn't connect

monolingual + educated + have access to technology

with pluses, like a human would.

Not sure how I'd phrase that though. Maybe "perfect, risklessly formal grammar" as I just tried to call it? (i.e. if AI trainers consider using +'es a "risk", as opposed to staying formal and spick n' span clean).

Perfect grammar is humanly possible but there is some scrutiny that can be applied to GPT-style grammar, especially in the context of the casually-toned web (where 100%ed grammar isn't strictly necessary!).

[–] fool 4 points 4 months ago (1 children)

I believe Inkscape has some interaction with tkinter, which binds python to Tcl/tk

https://github.com/flathub/org.inkscape.Inkscape

[–] fool 3 points 4 months ago* (last edited 4 months ago)

Subdermatoglyphi--

the resistance shoots me. I am revealed to be a Terminator despite misreading the question

[–] fool 1 points 4 months ago* (last edited 4 months ago) (2 children)

You're right. Looking back I confused a lot of ( with [!

Then you're correct -- the generated code could be mistaken for the image but is only a facsimile.

[–] fool 7 points 4 months ago* (last edited 4 months ago)

Alpine: musl + Christmas 💪🎄🎁🎉

[–] fool 14 points 4 months ago* (last edited 4 months ago)

I... I put effort in...

Edit: What about an ivory leg?

[–] fool 5 points 4 months ago* (last edited 4 months ago) (1 children)

I'm not sure I agree but I'm happy to discuss! :)

Why are you calling my statement "selective memory" (am I intentionally excluding something?), and what do you mean by "way worse"? Do you consider unskilled art as not art at all (i.e. "so-called")?

What I was trying to say, is that on social media, skilled artists formerly dominated attention (likes, upvotes) because viewers wanted well-constructed, pleasing-to-the-eye artwork. I wasn't trying to say that they were the only art posters (sorry for my wording!). Continuing, now that AI is in the arena, "technically-decent" art is no longer the lower bound for pleasurable-to-see -- now, viewers are more partial to knowing that a human was vulnerable when they expressed themselves with art.

It's an intensification of internet-ugly aesthetic, which Douglas (2014) called "an imposition of messy humanity upon an online world of smooth gradients, blemish correcting Photoshop, and AutoCorrect” (p. 314). Now, online, handmaking art at all is a declaration of humanity, because you could corporately fake something full-colored and intricate, but arguably soulless, with lower effort.

Of course, I'll try to take it from your perspective. I've seen really bad human art (I like art!), and I've seen less-artifacted AI art (have you ever seen Even_Adder's generations on lemmy.dbzer0? they don't have the overshading issue at all). Of course, some may disagree that the latter is art (is art only human expression?), but supposing I do consider the latter art, my point still stands -- viewers are more on the lookout for genuineness now.

Happy to see what you think!

References

[–] fool 21 points 4 months ago* (last edited 4 months ago)

Disclosure: I've done very little UI/UX.

Google's Material Design (wikipedia) is much more widely-adopted across OSes/Flutter/the web (see how many websites have that dropshadow topbar and ≡?); Microsoft's Fluent (wikipedia) is Windows-first, but is usable anywhere.

Both are based on responding to user actions. Fluent uses lightup acrylic (translucent) canvases (e.g. hover? border glowy.)

while Google's Material uses paper-esque whitespace, navbars, dropshadows, and round corners. (e.g. scrolling? dropshadow appears on nav)

Think Microsoft Teams vs. Google Drive.

They're both full-fledged but Material You is way more common judging by places such as the F-Droid ecosystem on Android. As for which is "better", Material You supposedly has better colorscheme flexibility since it 'wants' to adapt to e.g. user wallpapers. But other than that it's really just preference (or whether relevant tooling exists :P). I know some devs use Material You for a predictable, unified look across Android apps, while others bend them to their will to reduce animations or whatnot.

If you're designing something, make sure you keep your own self in the mix too. Breezy Weather uses Material Design, but it's more customized to have a unique feel than, say, TrackerControl (which also uses Material).

[–] fool 1 points 4 months ago* (last edited 4 months ago) (4 children)

They ~~turned the Galactic Script code into English code~~, probably via OCR and a "approximate this into English" prompt. Not sure if it's exactly the same tho (what 'main function call' was in the image?)

Edit: It's only a facsimile, see Hoimo's reply

573
submitted 7 months ago by fool to c/programming
 

Git cheat sheets are a dime-a-dozen but I think this one is awfully concise for its scope.

  • Visually covers branching (WITH the commands -- rebasing the current branch can be confusing for the unfamiliar)
  • Covers reflog
  • Literally almost identical to how I use git (most sheets are either Too Much or Too Little)
79
submitted 7 months ago* (last edited 7 months ago) by fool to c/[email protected]
 

What was your last RTFM adventure? Tinker this, read that, make something smoother! Or explodier.

As for me, I wanted to see how many videos I could run at once. (Answer: 60 frames per second or 60 frames per second?)

With my sights on GPUizing some ethically sourced motion pictures, I RTFW, graphed, and slapped on environment variables and flags like Lego bricks. I got the Intel VAAPI thingamabob to jaunt by (and found that it butterized my mpv videos)

$ pacman -S blahblahblahblahblahtfm
$ mpv --show-profile=fast
Profile fast: 
 scale=bilinear
 dscale=bilinear
 dither=no
 correct-downscaling=no
 linear-downscaling=no
 sigmoid-upscaling=no
 hdr-compute-peak=no
 allow-delayed-peak-detect=yes
$ mpv --hwdec=auto --profile=fast graphwar-god-4KEDIT.mp4
# fucking silk

But there was no pleasure without pain: Mr. Maxwell F. N. 940MX (the N stands for Nvidia) played hooky. So I employed the longest envvars ever

$ NVD_LOG=1 VDPAU_TRACE=2 VDPAU_NVIDIA_DEBUG=3 NVD_BACKEND=direct NVD_GPU=nvidia LIBVA_DRIVER_NAME=nvidia VDPAU_DRIVER=nvidia prime-run vdpauinfo
GPU at BusId 0x1 doesn't have a supported video decoder
Error creating VDPAU device: 1
# stfu

to try translating Nvidia VDPAU to VAAPI -- of course, here I realized I rtfmed backwards and should've tried to use just VDPAU instead. So I did.

Juice was still not acquired.

Finally, after a voracious DuckDuckGoing (quacking?), I was then blessed with the freeing knowledge that even though post-Kepler is supposed to support H264, Nvidia is full of lies...

 ______
< fudj >
 ------
          \   ‘^----^‘
           \ (◕(‘人‘)◕)
              (  8    )        ô
              (    8  )_______( )
              ( 8      8        )
              (_________________)
                ||          ||
               (||         (||

and then right before posting this, gut feeling: I can't read.

$ lspci | grep -i nvidia
... NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
# ArchWiki says that GM108 isn't supported.
# Facepalm

SO. What was your last RTFM adventure?

61
submitted 11 months ago* (last edited 10 months ago) by fool to c/[email protected]
 

I have a little helper command in ~/.zshrc called stfu.

stfu() {
    if [ -z "$1" ]; then
        echo "Usage: stfu <program> [arguments...]"
        return 1
    fi

    nohup "$@" &>/dev/null &
    disown
}
complete -W "$(ls /usr/bin)" stfu

stfu will run some other command but also detach it from the terminal and make any output shut up. I use it for things such as starting a browser from the terminal without worrying about CTRL+Z, bg, and disown.

$ stfu firefox -safe-mode
# Will not output stuff to the terminal, and
# I can close the terminal too.

Here’s my issue:

On the second argument and above, when I hit tab, how do I let autocomplete suggest me the arguments and command line switches for the command I’m passing in?

e.g. stfu ls -<tab> should show me whatever ls’s completion function is, rather than listing every /usr/bin command again.

# Intended completion
$ stfu cat -<TAB>
-e                      -- equivalent to -vE                                                                                                                                                     
--help                  -- display help and exit                                                                                                                                                 
--number            -n  -- number all output lines                                                                                                                                               
--number-nonblank   -b  -- number nonempty output lines, overrides -n                                                                                                                            
--show-all          -A  -- equivalent to -vET                                                                                                                                                    
--show-ends         -E  -- display $ at end of each line                                                                                                                                         
--show-nonprinting  -v  -- use ^ and M- notation, except for LFD and TAB                                                                                                                         
--show-tabs         -T  -- display TAB characters as ^I                                                                                                                                          
--squeeze-blank     -s  -- suppress repeated empty output lines                                                                                                                                  
-t                      -- equivalent to -vT                                                                                                                                                     
-u                      -- ignored  

# Actual completion
$ stfu cat <tab>
...a list of all /usr/bin commands
$ stfu cat -<tab>
...nothing, since no /usr/bin commands start with -

(repost, prev was removed)

EDIT: Solved.

I needed to set the curcontext to the second word. Below is my (iffily annotated) zsh implementation, enjoy >:)

stfu() {
  if [ -z "$1" ]; then
    echo "Usage: stfu <program> [arguments...]"
    return 1
  fi

  nohup "$@" &>/dev/null &
  disown
}
#complete -W "$(ls /usr/bin)" stfu
_stfu() {
  # Curcontext looks like this:
  #   $ stfu <tab>
  #   :complete:stfu:
  local curcontext="$curcontext" 
  #typeset -A opt_args # idk what this does, i removed it

  _arguments \
    '1: :_command_names -e' \
    '*::args:->args'

  case $state in
    args)
      # idk where CURRENT came from
      if (( CURRENT > 1 )); then
        # $words is magic that splits up the "words" in a shell command.
        #   1. stfu
        #   2. yourSubCommand
        #   3. argument 1 to that subcommand
        local cmd=${words[2]}
        # We update the autocompletion curcontext to
        # pay attention to your subcommand instead
        curcontext="$cmd"

        # Call completion function
        _normal
      fi
      ;;
  esac
}
compdef _stfu stfu

Deduced via docs (look for The Dispatcher), this dude's docs, stackoverflow and overreliance on ChatGPT.

EDIT: Best solution (Andy)

stfu() {
  if [ -z "$1" ]; then
    echo "Usage: stfu <program> [arguments...]"
    return 1
  fi

  nohup "$@" &>/dev/null &
  disown
}
_stfu () {
  # shift autocomplete to right
  shift words
  (( CURRENT-=1 ))
  _normal
}
compdef _stfu stfu
view more: ‹ prev next ›