HackerTrans
TopNewTrendsCommentsPastAskShowJobs

WizardClickBoy

no profile record

comments

WizardClickBoy
·2 jaar geleden·discuss
I actually laughed out loud at how different this is to the usual "be yourself and to hell with what people think" advice. Can you elaborate on why it's so important to care if people like you?
WizardClickBoy
·2 jaar geleden·discuss
Hopefully stupid question but were you replacing the pen nibs? My screen has been solidly responsive for several years of heavy usage, but the fiber nibs do get worn down and need replacing every few weeks/months (by design) or the pen starts exhibiting this behaviour.

I have to admit I have also switched back to real paper for a lot of tasks but I still like the remarkable as an e-reader, and enjoy writing on it occasionally, so I wouldn't say it's a big regret.
WizardClickBoy
·2 jaar geleden·discuss
Thanks! Gippity did suggest the xargs approach as an alternative, but I found that

find [...] - exec [...] {} +

as opposed to

find [...] - exec [...] {} \;

worked fine and was performant enough for my use-case. An example command was

find . -type f -name "*.html" -exec sed -i '' -e 's/\.\.\/\.\.\/\.\.\//\.\.\/\.\.\/\.\.\/source\//g' {} +

which took about 20s to run
WizardClickBoy
·2 jaar geleden·discuss
It's a case of convergent evolution - I don't know where I heard it first, but I asked GPT if it minded and it said "Of course, you can call me Gippity!", so I do, because it's more fun.
WizardClickBoy
·2 jaar geleden·discuss
Primeagen is some kind of Youtuber? I am not familiar and don't understand what you are trying to convey here.
WizardClickBoy
·2 jaar geleden·discuss
There's undoubtedly a setting but if you don't want it on all the time you can always add \c at the end of the search term, like /foo\c to denote case insensitivity
WizardClickBoy
·2 jaar geleden·discuss
100% agree. I'm currently preparing several 10s of GBs of HTML in nested directories for static hosting via S3 and was floundering until Gippity recommended find + exec sed to me. I'm now batch fixing issues (think 'not enough "../" in 60000 relative hrefs in nested directories') with a single command rather than writing scripts and feel like a wizard.

These tools are things I've used before but always found painful and confusing. Being able to ask Gippity for detailed explanations of what is happening, in particular being able to paste a failing command and have it explain what the problem is, has been a game changer.

In general, for those of us who never had a command line wizard colleague or mentor to show what is possible, LLMs are an absolute game changer both in terms of recommending tools and showing how to use them.
WizardClickBoy
·2 jaar geleden·discuss
Also just realised while looking at the docs it works for search as well as replacement, with:

:S/textToFind

matching all of textToFind TextToFind texttofind TEXTTOFIND

But not TeXttOfFiND.

Golly!
WizardClickBoy
·2 jaar geleden·discuss
This reminds me of the substitution mode of Tim Pope's amazing vim plugin [abolish](https://github.com/tpope/vim-abolish?tab=readme-ov-file#subs...)

Basically in vim to substitute text you'd usually do something with :substitute (or :s), like:

:%s/textToSubstitute/replacementText/g

...and have to add a pattern for each differently-cased version of the text.

With the :Subvert command (or :S) you can do all three at once, while maintaining the casing for each replacement. So this:

textToSubstitute

TextToSubstitute

texttosubstitute

:%S/textToSubstitute/replacementText/g

...results in:

replacementText

ReplacementText

replacementtext
WizardClickBoy
·2 jaar geleden·discuss
Curious if you have any examples of these pains? I'm not familiar with the late Python 2 era but I've been writing Ruby for a long time and wonder if I'm doing some of these as well.
WizardClickBoy
·2 jaar geleden·discuss
I feel like there's a misunderstanding here of there being a choice for victims of complex trauma to make between "suffering" and "coping". It is not as binary as this and I know people to whom this advice would be not only unhelpful but actively destructive.

> What else can you even say?

Try: nothing.
WizardClickBoy
·2 jaar geleden·discuss
Telling victims of trauma that they are "allowing something external to defeat you daily" comes perilously close to blaming the victim, doesn't it?