this post was submitted on 03 Feb 2024
823 points (97.4% liked)

Programmer Humor

19551 readers
945 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] M500@lemmy.ml 4 points 9 months ago

I’m the same way. I think it’s just a matter of being conditioned to manually save for the majority of my computing life.

[–] alphacyberranger@lemmy.world 3 points 9 months ago

The same can be applied for editors as well

[–] explodicle@local106.com 3 points 9 months ago (5 children)

Ok here's a question I should have asked like way sooner.

In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.

[–] SorryQuick@lemmy.ca 4 points 9 months ago

If you’re using X11, you can use xkill: https://en.m.wikipedia.org/wiki/Xkill

You can bind it to a key in gnome/kde (not sure how they handle custom keybinds. Otherwise add a call to xbindkeys to your .bashrc or equivalent). It kills any window you want, responsive or not.

As for the terminal, I don’t think you can send SIGKILL, but ctrl + \ will result in a core dump if you’re using bash.

[–] Vanshaj@lemmy.world 4 points 9 months ago

I use a process manager like btop for this.

[–] GentriFriedRice@lemmy.world 1 points 9 months ago

CTRL-C -- SIGINT CTRL-\ -- SIGQUIT CTRL-Z + kill -9 %1 -- SIGTSTP + SIGKILL

load more comments (2 replies)
[–] janabuggs@beehaw.org 3 points 9 months ago (1 children)
[–] MonkeMischief@lemmy.today 3 points 9 months ago

LOL good point about just not releasing Ctrl.

The chances are non-zero that somebody out there attempts to release and press ctrl+s at the exact same time over and over like they're hammering out Beethoven's 5th. XD

[–] devfuuu@lemmy.world 2 points 9 months ago

Intellij being a good guy amd autosaving every few seconds. No more worrying about crtl+s.

[–] pkill@programming.dev 2 points 9 months ago

autosave is no good if you have live reload imo

[–] McArthur@lemmy.world 2 points 9 months ago* (last edited 9 months ago)

I was never really aware I did this until I had to program something with hot reloading (I don't remember what) and it was so insufferable...

And now my pain is with rustfmt. Just because I saved before filling in the struct fields does not mean I want you to format the struct accordingly!!!

[–] Lmaydev@programming.dev 2 points 9 months ago

I just do a full rebuild. Saves all files.

[–] resin85@lemmy.ca 1 points 9 months ago

Meanwhile, me over here with the self-doubt slamming ctrl-z

[–] AVeryCleverName@lemmy.one 1 points 9 months ago

Excuse me i think you mean ctrl+c:w

[–] warling@lemmy.world 1 points 9 months ago

Except the autosave in BBEdit. I trust that with my life. It’s never lost ANYTHING in 30 years.

[–] cupcakezealot@lemmy.blahaj.zone 1 points 9 months ago

i just store everything in google drive and let chance take over

[–] darklamer@lemmy.dbzer0.com 0 points 9 months ago (3 children)

Why would you ever use an editor that could lose your work unless you save? Vim users will never understand that.

load more comments (3 replies)
load more comments
view more: ‹ prev next ›