HackerTrans
TopNewTrendsCommentsPastAskShowJobs

_TwoFinger

no profile record

Submissions

Pagan Origins of the Christ Myth

pocm.info
13 points·by _TwoFinger·قبل 3 سنوات·4 comments

comments

_TwoFinger
·قبل 3 سنوات·discuss
Not PP, but I used to work for an automotive subcontractor company, and I've heard a few stories about fatal car accidents that lead to lawsuits, which proved that the car design was the reason for the accident, yet the car manufacturer just payed "damages" to the relatives (or settled out of court, maybe) and never bothered to change the design. Apparently, it was more expensive to reconfigure their production pipelines than pay for an occasional death.

That said, this is probably what any big enough company would do. So your point still stands, maybe car manufacturers are no different.
_TwoFinger
·قبل 3 سنوات·discuss
Your Indonesian is pretty good, sir. Have an upvote.
_TwoFinger
·قبل 3 سنوات·discuss
For prose, it probably is the best, but have you tried it for programming? I find that my keyboard usage is dominated by text-editing shortcuts and punctuation characters. Not sure how well stenography would fit in.

On a similar note, though, I have amassed a "dictionary" of 50+ bash aliases, 1-, 2-, or 3-characters long.

Some "theories" emerged as well - I have groups of aliases whose names follow a pattern and depend on what subcommand (e.g. in git or kubectl) or options are included in the alias. This is good for mnemonics.

For extremely common commands, I ditch mnemonics and just choose a 1- or 2-character name that has no connection to the name of the command. For example r='cd -'. I chose "r" simply because it's on the opposite side of Enter, and I get to alternate my hands. (I guess this is a "brief".)

What got me into the alias hoarding business was the discovery of complete-alias[1] and, later, the progcomp_alias bash option. Turned out, you don't have to choose between aliases and programmable completion, you can have both.

[1]: https://github.com/cykerway/complete-alias
_TwoFinger
·قبل 3 سنوات·discuss
Just want to mention sticky keys[1], as it seems often overlooked.

Instead of holding the modifier key(s) when activating a shortcut, you can press and release each modifier sequentially.

It does come with some of the fancy keyboards' firmware, but is also a built-in feature of all major OS-es. You can get it without spending a single dollar.

[1]: https://www.emacswiki.org/emacs/StickyModifiers
_TwoFinger
·قبل 3 سنوات·discuss
Emphasis on "also".

If you optimize a shell feature for general-purpose programming, interactivity will suffer (increased verboseness, usually), and vice versa.

If we try to bring shells closer to the real PLs, instead of just using those PLs when it matters, we'll lose some of things that made shells attractive in the first place.
_TwoFinger
·قبل 3 سنوات·discuss
> So, bash is a programming language, right?

No, it's a shell that lets you interact with the OS. All the "clasical" UNIX shells were created with interactive use in mind and optimized for it, but happen to be good enough at batch processing[1] to be conflated with programming languages (mostly these days, like, 40+ years later).

The focus on interactive use is the reason you don't have to

- surround command argument lists with parentheses

- put commas between command arguments

- put semicolons at EOL

- surround string literals with quotes (unless the content interferes with the syntax, like, sigils or IFS chars, and you want to escape it).

- surround variable names in braces (unless you want to use some advanced substitution)

- call commands to manipulate I/O; it's baked in.

And these are just the things that existed 40 years ago. Bash gives you so much more stuff that makes interactive use a bliss, but I'm not going to dump the man page here.

[1]: https://en.wikipedia.org/wiki/Batch_processing
_TwoFinger
·قبل 3 سنوات·discuss
Ah, we are really just one smart kid away from extinction.

Something something boson something neutron, and the Earth goes kaboom.

Children can be very dangerous.
_TwoFinger
·قبل 3 سنوات·discuss
> Missing semicolon.

It's not missing. PP is making a point about "single-command variables."
_TwoFinger
·قبل 3 سنوات·discuss
> I had to [...] and set my shell to bash/zsh

Most likely a command in your script (or one source-d into it) makes an assumption about your $SHELL or login shell that is true for bash/zsh but not for fish.

Merely adding a shebang won't fix such a script.
_TwoFinger
·قبل 3 سنوات·discuss
> having to retype the whole filepath when using mv can lead to errors.

If you use bash, or any readline-based command line (in emacs mode):

  mv long.file.name |^W^Y^Y
results in

  mv long.file.name long.file.name |
(| is the cursor). Then, you just edit the second copy of the filename. BTW, M-C-b/M-C-f will move by one whole "argument" (even if it contains escaped spaces).

edit: and if your filename has spaces, replace the ^W above with M-C-b C-k
_TwoFinger
·قبل 3 سنوات·discuss
> we effectively have infinite vertical space

It's only infinite if you scroll for infinitely long time.

I think the author's point was about how much code you have on the screen at any given instant. Without having to scroll or jump.
_TwoFinger
·قبل 3 سنوات·discuss
And to https://community.signalusers.org/
_TwoFinger
·قبل 3 سنوات·discuss
I don't use the tiling at all.

I use the multiple desktops feature a lot, though. Some programs are pinned to a dedicated desktop and run all day. Others I start in (or move to, later) a numbered desktop, and switch to them by changing the desktop. Often, most of the desktops contain only one window.

I once used i3 and sway the right way, of course. I guess I had one too many of those programs that were not designed to work at arbitrary window sizes, added the above rule and called it a day.
_TwoFinger
·قبل 3 سنوات·discuss
Just an idea, if you find yourself unable to warm up to tiling:

  for_window [all] floating enable
It's stupid, but I've been using this for a couple of years now.
_TwoFinger
·قبل 3 سنوات·discuss
> If you're talking about Indonesians refererring to Indonesian in an English language context, yeah

yes, my only source for my previous comment was a passport control officer asking me "do you speak bahasa" at the airport :-)
_TwoFinger
·قبل 3 سنوات·discuss
Indonesians themselves call it "bahasa". I guess the user you responded to is either Indonesian, or has been there.
_TwoFinger
·قبل 3 سنوات·discuss
Your command doesn't sort, only inverses the initial order. It's equivalent to

  :1,5 !tac
_TwoFinger
·قبل 3 سنوات·discuss
They mention history expansion, but only briefly. It is a favorite of mine. Learning the full syntax probably doesn't give good ROI these days of mice, but I think the following shortcut notations are worth knowing:

Everything but the last argument:

  % git add -p dir1
  % !!- dir2
  git add -p dir2
Everything but the command:

  % textadept a b c
  % vim !*
  vim a b c
Substitute a string (once):

  % echo helo world
  % ^lo^llo
  echo hello world
First and last arguments:

  % diff path/a/file path/b/file
  % diff !$ !^
  diff path/b/file path/a/file
A cool detail is that even a long quoted string containing spaces is considered a single argument, and it all works fine.

Also, the bangs can be anywhere on the command line, even inside other kinds of expansion; history expansion has highest priority of all.

Edit: the above is csh-style history expansion, available in bash as well.
_TwoFinger
·قبل 3 سنوات·discuss
I think M-C-f and M-C-b do that.
_TwoFinger
·قبل 3 سنوات·discuss
Here is my current keyd configuration (on US QWERTY hardware): https://dpaste.org/aGp3o/slim (I'm not entirely happy with it, though.)

The one thing I wanted the most was to avoid any long presses. Everything that requires holding a modifier, even if I do it touch-typing style, with the opposite hand, is unpleasant (to me). So, besides moving most of the punctuation characters to lowercase positions, I also switched to sticky modifiers. (keyd might have some flaws wrt sticky modifiers, and they... get stuck. Not when I want them to be. I might try to go back to XKB.)

Regarding the home-row modifiers, I've only tried moving Control there. I always ended up triggering it by mistake when typing, because when you are typing fast, there is an almost unavoidable overlap in certain sequences, you press the next key before fully releasing the previous key. Some people advice practicing, other software provides various options with timeouts, it's a rabbit hole of work-arounds. So I settled with sticky modifiers.