photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

246
active users

#less

0 posts0 participants0 posts today
David Boles<p>Here is my latest Human Meme podcast episode!</p><p><a href="https://humanmeme.com/less-than-vs-fewer-than-the-difference-explained-with-examples" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">humanmeme.com/less-than-vs-few</span><span class="invisible">er-than-the-difference-explained-with-examples</span></a></p><p><a href="https://boles.xyz/tags/language" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>language</span></a> <a href="https://boles.xyz/tags/English" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>English</span></a> <a href="https://boles.xyz/tags/fewer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fewer</span></a> <a href="https://boles.xyz/tags/less" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>less</span></a></p>
Matthias Schmidt<p>Wow, after 25 years of <a href="https://infosec.exchange/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> / <a href="https://infosec.exchange/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> experience, I learned that you can filter output in <a href="https://infosec.exchange/tags/less" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>less</span></a>.</p><p>Press ampersand (&amp;) and enter a regex to show only lines matching the regex.</p><p>Press ampersand (&amp;) and then exclamation mark (!) to apply an inverse filter.</p>
Bruce Heerssen<p>Linux tip: you can edit files from within less by pressing "v". This will launch your default editor.</p><p>If you do not have a default editor specified, you can specify one by adding the following lines to your .bashrc:</p><p># set default editor<br>EDITOR=/usr/bin/vim</p><p>Substitute vim for whatever editor you prefer. (Which is obviously vim :)</p><p><a href="https://darkmoon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://darkmoon.social/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> <a href="https://darkmoon.social/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a> <a href="https://darkmoon.social/tags/less" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>less</span></a> <a href="https://darkmoon.social/tags/LinuxTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LinuxTips</span></a></p>
🌈 ☯️Teresita🐧👭<p>The <a href="https://techhub.social/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> tool called <a href="https://techhub.social/tags/more" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>more</span></a> lets you browse <a href="https://techhub.social/tags/text" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>text</span></a> files but you can't go backwards so there's another tool called <a href="https://techhub.social/tags/less" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>less</span></a> that has more options, on the theory that less is more. Now there's still another tool called <a href="https://techhub.social/tags/most" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>most</span></a> that has even more features than less! I'm holding out for least. <a href="https://techhub.social/tags/G3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>G3</span></a></p>
Replied in thread

@JdeBP

While I agree with all of this in theory, I think it's probably reasonable for people writing shellscripts today to assume the presence of `less`. It was even in SunOS 5...

`more` may have been improved over time, but to the best of my knowledge it still doesn't do everything `less` can, like switching to tail mode with `F` while viewing a log file. FreeBSD doesn't even ship `more` anymore (anyless?), I don't think - `man more` shows the manpage for less. So I think this is a case where literally, "less is more".

I confess I haven't used `pg`. Debian doesn't even provide it.

Including bash-isms in a supposedly portable script is definitely beyond the pale, though 😉

(Possibly relevant to @b0rk 's interests)

So I hit a flag in diff, --unchanged-group-format. It does not show up in the manpage. It does not show up in --help. You can search both those channels for that string and you will not find it.

You know where it shows up first? If you Google it, you'll get an example in gnu.org/software/diffutils/man.

So why doesn't it show up in the manpage? Well, it does! If you read the entire manpage. With your eyes.

  -D, --ifdef=NAME                output merged file with '#ifdef NAME' diffs                                                                                                                                                                                                                                                                                                              
--GTYPE-group-format=GFMT format GTYPE input groups with GFMT
--line-format=LFMT format all input lines with LFMT
--LTYPE-line-format=LFMT format LTYPE input lines with LFMT
These format options provide fine-grained control over the output
of diff, generalizing -D/--ifdef.
LTYPE is 'old', 'new', or 'unchanged'. GTYPE is LTYPE or 'changed'.

"What do you mean it isn't documented? Of course it's documented. You did read every line and do some template-substitution in your brain, didn't you?"

This isn't advocating for not reading the manpage. If you really want to understand how the tool works, you read the whole manpage. And probably the source code. 😉

... but I don't want to understand how the tool works. I want to diff two files and not have the lines that are the same get emitted.

And I think a lot of application- and solution-generating computer people, most of the time, in most of their careers, are operating on that level of depth. Problems come in too fast and with too much variety. You absolutely go deep on some things. There is no time to go deep on everything.

So how do we address this (other than throw up our hands and say "Relying on Google's fuzzy search of the whole Internet and vibe-coding LLMs is the future actually")? I don't have magic bullets, but a "fuzzy search" mode in something like less that could take an input like --unchanged-group-format and twig that it if there's no exact match, it might be related to --GTYPE-group-format would be nice.

Maybe I should mock that up in emacs. Actually, I bet someone already put it in emacs. ;)

www.gnu.orgLine Group Formats (Comparing and Merging Files)Line Group Formats (Comparing and Merging Files)

With the sound of pursuit approaching, they reined in at a fork in the trail.

"Which way?" asked the barbarian.

The rogue pointed left. "This one. #Less of them'll follow."

"That's wrong," snapped the seer.

"Okay, you should know." The barbarian trotted right.

The rogue glanced at his remaining companion with suspicion. "Why was I wrong?"

"You meant 'fewer', is why."

The #MastoPrompt for Thursday 5 December 2024 is:

#less

The poem or story can include the prompt word or be about the prompt word.

@ me, if you like, or just include the #MastoPrompt tag (to allow people to follow or filter their feeds), or keep your work to yourself - all the options are good as long as you're writing.

If you're including an image please do include alt-text so I can boost your post.
#Writing
#SmallPoem
#Poetry
#Fiction
#MicroFiction
#SmallStories

Just lovely warm glow of the #Moon's orb, backlighting the silhouetted blades of a few #tree #leaves, against a #black #nightsky. Stunning minimalist composition shows us how very much #less can be.

#MoonPhoto retooted from Murray GM - Paperposts (@Paperposts). [Is it "missed-it" or "miss-edit"?]

🔗 zirk.us/@Paperposts/1128504243 25 Jul 2024

zirkusMurray GM - Paperposts (@Paperposts@zirk.us)Attached: 1 image A bay #moon from last week

Compiling the latest release of less so I can get that sweet, sweet wordwrap feature.
#Less #Debian #ThatDebianLife #CompileIt!

Umm... can someone who has the spoons handy log an issue that their latest release (non-beta) tarball is double-gzipped? (github.com/gwsw/less/issues)

#SpoonTheory -- I'm doing fine, but dealing with github REALLY DOES cost a couple extra spoons even when you're having a good day, lol. Stop using that MSFTy GPL-violating crap, my peeps! :P~

GitHubIssues · gwsw/lessLess - text pager. Contribute to gwsw/less development by creating an account on GitHub.

I spent the last three days cleaning up and refactoring one of DokuWiki's core dependencies - the LESS compiler:
github.com/splitbrain/lesserph

It will probably take a few more days before it can be swapped in.

Personally I would love switching from #LESS to #SCSS but doing that without breaking hundreds of plugins and templates isn't easily done.

Maybe we can skip using a pre-processor completely in the future when #CSS nesting is approved and in major browsers...

GitHubGitHub - splitbrain/lesserphp: LESS compiler written in PHPLESS compiler written in PHP. Contribute to splitbrain/lesserphp development by creating an account on GitHub.

me: okay, setting LESS=-J breaks `git diff` (it shows raw escape codes instead of colors)

me: shouldn't options set in $LESS be _combined_ with those Git sets?

me: sets LESS=

git diff: still borked

me: looks at ps while git diff is running to see what it actually calls

ps: /usr/bin/pager
ps: no options

me: traces the symlinks, look fine

me: checks his .gitconfig for pager nonsense, nothing

me: reads git-config(1)

Git: I pass my options using $LESS, but only if it's unset

🙄