How to fix vim's default setting that enables visual mode on mouse click

A few years ago vim started to go into "visual" mode whenever I tried to copy text via the right click menu. Eventually I thought I had fixed it by setting up a /etc/vim/vimrc.local file like this:

source $VIMRUNTIME/defaults.vim
set mouse=

But then the issue cropped up again. Today I finally found the right GitHub issue with the information needed to fix it. You add the let line in the following code:

 by david.reagan on
Picking Sides 2024

It is only a few more days until November 5th, 2024, when the USA will finish choosing our next President.

If you've already picked a side, this post is not for you.

But if you're still unsure, or are just not wanting to vote for either, then read on.

 by david.reagan on
2024 USA Election Fraud

We need to pray for the election. Specifically we need to pray that God will prevent fraud, that if any fraud happens, it is exposed, and that any allegations of fraud are either proven, or dis-proven.

Why?

I, honestly, do not trust our election system. And I've seen a lot of people online expressing similar sentiment.

Much of the Left still believes Trump stole the 2016 election. Even with the investigations that proved he didn't.

 by david.reagan on
Another Little Project - FLAC TO MP3

A few days ago my phone ran out of space. 

Looking into it, well, part of the problem is that I rip my cd's to FLAC. Then sync those files over to my phone. 

So, rather than manually use an audio conversion program every time I want to convert my FLAC files to mp3, I decided to just script it using bash and ffmpeg.

The end result is FLAC TO MP3.

Now, all I need to do, is run a single command in my terminal and wait a bit.

 by david.reagan on
Waterdrop - A Drupal in Docker Quickstart

I experiment with Drupal a lot. Enough that I created a template project a while back to get me up and running quickly. The thing is, I included the composer.json file in the repo, and that quickly got out of date. So I'd end up doing a lot of resetting of things every time I needed a new instance of Drupal.

I finally got tired enough of that that I decided to do a better job.

Thus, I created Waterdrop

 by david.reagan on
Why isn't my Drupal 9 sub theme pulling in styles.css?

Just a quick note for my own records.

When you're having trouble getting your sub theme's styles.css file to show up, and you've read over the official docs until your eyes bleed, and you've double-checked that your .libraries.yml file and .info.yml files match what they're supposed to match, here's one more thing you can check:

Does the parent theme have any schema or settings to install? As in theme/config/schema/theme.schema.yml and theme/config/install/theme.settings.yml.

 by david.reagan on
The Value Of Being Quiet

I haven't posted much in the opinion section of this site for quite a few years now. If you look at my posts, you can see I've had opinions about many topics and haven't been afraid to share them. So what changed?

Well, several things, but all of them combined are in the process of bringing me to a place where I value being quiet more than I value speaking out.

 by david.reagan on
Pardon my formatting
For reasons you can find in the issue queue, the Drupal Markdown module does not have a version released for Drupal 9. Since I want to upgrade, I have had to remove that module. The end result is that a lot of my posts are no longer well formatted. I'm having to manually edit them to make sure they are readable. If you spot one you really think I should get to sooner than I might otherwise, drop me a line at me@davidreagan.net.
 by drmeister on
MySQL Access Denied From Within Docker Containers

A few days ago I ran into some very odd behavior. Even though I was setting my usernames and passwords via Docker secrets (so the same file on the db container and the app container), MySQL was throwing Access Denied errors at me. Thankfully all the frustrating details of my troubleshooting have left me, but I thought I would share both the problem, and the solution.

The Setup

Be running multiple MySQL containers, and their associated application containers, on the same Docker network.

 by david.reagan on
Follow posts via RSS: