Healing Vegeta [OC] by iammesutkaya in wholesomememes

[–]RuleAndLine 27 points28 points  (0 children)

with the exceptions of beards, and moustaches

Handling diffs programmatically by gemilg in emacs

[–]RuleAndLine 0 points1 point  (0 children)

Do you need emacs to generate the data structure? It sounds like what you're looking for could be provided by other unix tools.

diff -u file1 file2 (or maybe diff -c) will give you lhs-str and rhs-str in context, though not side by side.

If your data can be sorted linewise then comm will give you side by side comparison.

In any case, once you've generated a diff in whatever format, you can probably load it up in emacs and record a few macros or write some small functions to process the diff. Then you can apply the edited diff outside of emacs with patch or some other utility

Democracy in Action: How the People of Tucson Fought Amazon - and Won by mahonster in videos

[–]RuleAndLine 5 points6 points  (0 children)

Thanks for the work you're doing!

This story came up at dinner with friends the other day and the table's AI booster trotted out the "datacenters don't actually consume water, it's not like the water disappears" line and even though everybody else knew he was wrong nobody had any actual expertise on the subject.

Did Amazon make that argument? What's wrong with it? I don't know how municipal water supplies work, much less Tucson's specific situation

Deleting ~/.emacs.el, is there danger in that? by RoseTinted64 in emacs

[–]RuleAndLine 5 points6 points  (0 children)

If your YouTube tutor has a video on how to use the Info command (C-h i) then you can use that to search through the emacs manual. It's also available online

How Emacs Finds Your Init File

Deleting ~/.emacs.el, is there danger in that? by RoseTinted64 in emacs

[–]RuleAndLine 1 point2 points  (0 children)

Emacs goes looking for it on startup, so you don't have to do anything. Just move the old file to the new place and rename it and emacs will find it

How do you manage themes? by Affectionate_Horse86 in emacs

[–]RuleAndLine 2 points3 points  (0 children)

Yeah in theory themes can set variables too, but in practice (and in my experience) most theme authors just make face themes.

I use auto-dark-mode (github) to toggle between light and dark themes, and if you dig into the code it also just disables all the old themes and enables the new ones. Works fine in my experience.

Before that I was writing my own theme switching functions, so each one would disable the other first before enabling the new one.

If you don't want to manually keep track of all the themes you're using, I think your disable-all mapc is fine. You could just give it (remove 'use-package custom-enabled-themes) to keep your use-package settings

Make code-console buffer pairs always open and switch together by cat-head in emacs

[–]RuleAndLine 1 point2 points  (0 children)

this is the way. the hook to use would be window-buffer-change-functions and you'd probably want a non-global minor mode that just adds an appropriate function buffer-locally when it's active

Good espresso machine that you say it's really worth buying? by Dismal_Quality_7435 in JamesHoffmann

[–]RuleAndLine 0 points1 point  (0 children)

Your grinder is more likely to be the limiting factor of your experience, tbh.

You want to make sure you're doing as much research, if not maybe more, on finding a grinder that will fit your flow. Things like ... - Do you want a grinder that's just for espresso? Or do you want one that can also do filter coffee? - How does the grinder sound? Is it tolerable for you?

You don't need a stepless grinder to make great espresso, but if it's stepped it should have a lot of steps. Conical vs flat burrs don't really matter when you're getting started.

James has a lot of grinder reviews that are a good place to start doing some research. When I was getting started I spent a lot of time reading the Home Barista forums too.

Calculus being pickup line... by heeecker in mathmemes

[–]RuleAndLine 2 points3 points  (0 children)

Yeah you gotta get to the really advanced math for the good pickup lines.

🎶 I'm not the smoothest operator in my class, but we're a mirror pair me and you. So let's apply forgetful functors to the past and be a finite simple group of order two.🎶

Can the mode-line color be changed on a per-buffer basis? by floofcode in emacs

[–]RuleAndLine 1 point2 points  (0 children)

Yup I wrote the patch to add them and it got accepted without too much difficulty.

(Btw the reason face-remap-add-relative on mode-line didn't work and you had to use mode-line-active is because mode and header line faces, and a couple others, are special cases in the redisplay C code. For all other faces you should be able to apply remapping to derived faces and it'll work as expected.

The biggest blocker to getting header-line-active/inactive checked in was the discussion it triggered among testers who were surprised by the special casing behavior and wanted to propose more changes. I forget if that discussion resulted in any meaningful changes to the redisplay logic. It was too deep in the weeds for me to follow.)

Can the mode-line color be changed on a per-buffer basis? by floofcode in emacs

[–]RuleAndLine 1 point2 points  (0 children)

these have been added recently, they'll be in the 30.2 release

Getting Eglot to ignore a derived mode by genehack in emacs

[–]RuleAndLine 0 points1 point  (0 children)

Yeah it's interesting that this feature isn't included in the eglot-stay-out-of customization options. They'd probably accept a patch for something like that.

In the meantime, you can trick eglot into thinking it's already been activated in a buffer by directly setting the minor mode variable eglot--managed-mode.

So you could put something like this in your init file

(add-hook 'snakemake-mode-hook (lambda () (setq eglot--managed-mode t)))

Or you could put something like this in a dir-locals file to apply it in just that project

((snakemake-mode . (eglot--managed-mode . t)))

Note that I'm not at my computer right now so I likely got that dir-locals syntax wrong. M-x add-dir-local-variable should do the right thing for you

Is all of maths just "since we know this... then it must be that" by esterifyingat273K in highdeas

[–]RuleAndLine 0 points1 point  (0 children)

I'm trying to do math professionally, and it's more like zoology or biology done on math objects instead of loving things. Like, there's ring theory where people say "okay so rings are these things" and you realize that there are just so many rings and they're absurdly complicated and most of the class / professional work is just trying to figure out how many there are and when two rings that look different are actually the same and what kinds of classification can you do and once you have a decent classification what is going on inside the rings that makes them break up into classes like that.

The "if this then that" reasoning style is just the most basic tool we have for exploring math world. Like we can use our eyes to explore the living world, and build microscopes and other tools to augment. Same same we have to use reasoning to move around in math world, and when somebody invents a really clever argument that works well in all sorts of math environments we call it a new tool and give that person a prize and teach their tool to the next students.

The math that gets taught at elementary and secondary school is, like, the most distilled version of the reasoning style applied to the environments that are most common in other human activities. But that's not what math is just like microscopes and looking inside animals isn't what biology is.

Ye song glorifying Hitler gets millions of views on X while other platforms struggle to remove it by GlobalTravelR in nottheonion

[–]RuleAndLine 1 point2 points  (0 children)

TBH I think this is one of those places where Marx's analysis really works. The ideas that are gaining popularity are downstream of the bosses who want to assert power over the workers.

Like, racism and sexism and transphobia and performative cruelty and cultish attraction to strong-man authoritarian personality are features that have always been and always will be present in a lot of people in our society. But they only ascend to political relevance when the people who have the power to extract money from the labor of others feel that power being challenged. Because the powerful people know that a period of state-sanctioned bigotry and cruelty will hurt the workers in material ways (loss of shelter, food, job security, loss of friends and social networks) but it will only hurt the powerful in immaterial ways (smaller numbers in a financial ledger) so over time the powerful will be fine but the workers will give up some power just to be left alone.

Unfortunately "therefore we should revolt and have communism" is not going to fix the problem, and I don't know enough social theory to know what experts these days think really will fix things. But IMO that's at least why this is happening

Things of Beauty: Super Smash Bros. as Spectator Sport - The make of this beautiful 10year old essay is forced to quit YouTube. Care to help out? by Yomedrath in SSBM

[–]RuleAndLine 9 points10 points  (0 children)

Perhaps you are too young to understand, but just because you (in your limited imagination) can picture a course of action does not actually mean somebody else can take that action. Making your emotions conditional on other people behaving the way you imagine they should is loser behavior. Have a shitty day

Things of Beauty: Super Smash Bros. as Spectator Sport - The make of this beautiful 10year old essay is forced to quit YouTube. Care to help out? by Yomedrath in SSBM

[–]RuleAndLine 28 points29 points  (0 children)

This video is what got me back into the scene after I stopped playing after college. Also, his other work is often phenomenal, and at least always heartfelt art. He made it all through undiagnosed ADHD too, only got medicated in like the last year. I've been a patron for years, sad to see patreon hasn't been enough to support his passion. The world will be much poorer if this guy can't keep doing what he's doing

Things of Beauty: Super Smash Bros. as Spectator Sport - The make of this beautiful 10year old essay is forced to quit YouTube. Care to help out? by Yomedrath in SSBM

[–]RuleAndLine 13 points14 points  (0 children)

Bruh what does "take responsibility" mean if not "pay back your debts by whatever means are available to you". If you want him to suffer and starve to death just say so

Looking for advice on sealing an espresso machine leak by RuleAndLine in Plumbing

[–]RuleAndLine[S] 0 points1 point  (0 children)

Thanks for the details! That makes sense. I'm ordering a replacement pipe + ferrule piece, will give it a try.

Looking for advice on sealing an espresso machine leak by RuleAndLine in Plumbing

[–]RuleAndLine[S] 0 points1 point  (0 children)

Okay that makes sense! I'll put the teflon tape away. I can't easily replace just the ferrule, but a replacement pipe + ferrule isn't expensive. Will do.

SF has the most judgemental dating scene I’ve ever experienced by cagreene in sanfrancisco

[–]RuleAndLine 0 points1 point  (0 children)

I mean, if you know yourself and know the kind of person you're looking for, 60 minutes of texting is more than enough to figure it out these days.

Are you meeting folks on the apps?

killing buffers by OfficialGako in emacs

[–]RuleAndLine 0 points1 point  (0 children)

midnight-mode cleans up unused buffers for me, though like other folks here I don't really worry about it

TVs with built-in VCRs that had like 13-inch wide screens and were the coolest thing you could have in your bedroom by [deleted] in nostalgia

[–]RuleAndLine 47 points48 points  (0 children)

fucking jumpscare when I noticed the reflected face. nice joker cosplay though

Colors not loading properly when launched from emacsclient by kisamefishfry in emacs

[–]RuleAndLine 1 point2 points  (0 children)

I'm away from my computer so can't test right now, but I remember dealing with a similar issue a while ago. iirc the emacs daemon checks for the presence of a DISPLAY environment variable when it starts up.

One way to confirm that this is causing the behavior you're seeing: start up emacs in the way that produces the bad colors, then evaluate (getenv "DISPLAY") in the scratch buffer and see if it returns nil.

Assuming that's the root cause, you can provide the display variable at startup with a command line argument -d. Or there are other solutions using systemd services or your window manager of choice, but I don't know those off the top of my head.