HN user

MrMetric

39 karma
Posts0
Comments13
View on HN
No posts found.

I've had to batch-rename files many times over the years. That means:

1. I do it manually over however many minutes. Works if there aren't too many (especially if the pattern is too complex to trivially automate).

2. I make a Python script for it. No way I'm renaming a thousand files by hand.

3. I don't do it. Too much work. The problem lingers forever.

Or these days,

4. I make an AI datacenter eat another town's water supply.

I've never used Emacs. I tried vi(m) nonconsensually and had to google how to exit. A while later, I tried it intentionally and hkjl navigation didn't work because I use a custom keyboard layout, so I never touched it again. Sublime Text and its many cursors for the win!

I'd love a way that isn't miserable to do such a common basic task.

Yes, they're way better now! The quality was poor because they were using decades-old original IBM tooling, and injection molds don't last forever D:. But, they made new molds in, I think, 2020? I bought a New Model M in 2021. Mine has a custom-printed layout, and it looks stock, not just some one-off. The plastic chassis is sturdy and doesn't need any sort of filing. It's been my daily driver ever since and is my favorite keyboard I've ever used, so I happily recommend them to any typing enthusiast. Sooo much better than Cherry switches (or, dog forbid, "office" keyboard rubber domes).

An internal combustion engine may be complex, but it's not fancy. I can see and touch and understand every part of it. I can maintain and modify and repair it. This is not true for fancy electronics and certainly not locked-down proprietary firmware.

Change your network name. When the TV prompts you to connect, join the renamed network. Then, rename it back so everything else can connect again and the TV can't. I can think of a few potential problems with this, but, it might work?

Or blacklist the TV's MAC address in your router settings. Didn't think of that first for some reason.

Simple: A version specifier, or feature specifiers. Backward compatibility concerns vanish when I can opt-in to a newer spec. Old code keeps working, and new code doesn't suffer for legacy nonsense.

For example, the Circle compiler extends C++ with its `#feature` directive: https://github.com/seanbaxter/circle/blob/master/new-circle/...

Sadly, the closest I've personally seen to this sort of thing in widespread use is `"use strict";` in JavaScript, which is only a single binary switch. You can't, say, turn on a new keyword, disable a keyword, switch to a different incompatible version of some browser API, etc.

I encourage all language designers to include a feature mechanism in a forward-compatible way. Don't overthink the difficulty: It doesn't need to do anything at first, it just needs to not be a parsing error. Treat it like a comment. FYI, this is the same as having a version number or header size in a binary file format's header, which all sane formats have (there are a lot of insane formats out there...).

The 512KB Club 9 months ago

My mobile phone's data connection isn't free. I'd prefer it not be wasted on sloppily-made websites.

You... what? You can't be serious. Simply putting "exercise and adhd" into Google® got me multiple studies which say that exercise helps, along with many other websites (some reputable and others possibly not) all saying essentially the same thing. You can easily find licensed physicians giving this same advice to their patients, and they observe that it works. And, off the top of my head, exercising elevates dopamine and some other neurotransmitters, which are well-known to be deficient in people with ADHD. That's one of the reasons the drugs work: stimulants raise the levels of those neurotransmitters. Personally speaking, I've found that any activity or action that raises my dopamine level has the same effect on my executive function as a stimulant drug, although this can be a very short-lived improvement (worst case, it comes and goes entirely within ~5 minutes).

You may also consider this from an evolutionary angle. Mammals such as us are not meant to sit inside at a desk all day (whether that's school or any other menial work), so it's no surprize that doing that alters and impairs development versus the conditions we evolved to live in. It's really easy to encounter the biological equivalent of undefined behaviors and invalid state in modernity. If you don't know what I mean, here's an easier to see example: It's well-known in recent years that myopia (shortsightedness) is predominantly caused by insufficient exposure to sunlight as a child. As an aside, I find it very interesting that the reason sunlight exposure matters is it elevates dopamine in the retinas, and eyes with dopamine deficiency don't develop correctly.

Another angle is mental exercize: It's more difficult to physically exercize with ADHD, but it's possible, so mentally pushing past the difficulty (or, more likely, having someone encourage you and help you) can train you to do that with other things and teach you how to self-manage your symptoms with mental decisions / willpower. This is a pretty poor solution on its own, but it's a great force multiplier when combined with other strategies.

It's unfortunate that I had to scroll to the bottom of the page to see any mention of ADHD or executive dysfunction, when the linked post describes what is clearly a form of executive dysfunction! Instant temporary treatment is a stimulant such as caffeine (which has annoying side-effects) or amphetamine salts (commonly known as adderall). Long-term treatment is exercize, which can be as simple as balancing on one leg for ten minutes every day or using an elliptical machine. Running outside is a decent option, but take care to avoid damaging the knees, which will happen by running on hard surfaces.

Dr. Russell Barkley has good explanations of what different prescription ADHD drugs do, which I find gives insight into what's going wrong when you have an executive dysfunction: https://www.youtube.com/watch?v=LnS0PfNyj4U

In particular, the emotional blunting effect of stimulants erases the thought that what you do might not be good enough. You no longer care about what others think, so you can just do what you want to do. I personally find this also makes me a callous asshole if I'm not careful, which I believe is related to the modern epidemic of coffee zombies.