There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

jaybone ,

You noobs. I just use combinations of cat piped to sed to edit my files, which are mainly lisp code.

WrenHavoc ,

Amateur! I write my code down on a piece of paper, scan it in, send it to my computer through email, then make a custom-built AI read the paper and print it in the terminal!

thevoidzero ,

M-x M-c butterfly

sundray ,

Link.

lemmesay ,
@lemmesay@discuss.tchncs.de avatar
IndustryStandard ,

Micro for the win

Sonotsugipaa ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

No, Micro for the linux

PseudoSpock ,
@PseudoSpock@lemmy.dbzer0.com avatar

Nah, win can have it.

AeonFelis ,

I just use this:


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;">keep_generating=1
</span><span style="color:#323232;">while [[ $keep_generating == 1 ]]; do
</span><span style="color:#323232;">    dd if=/dev/random of=$1 bs=1 count=$2 status=none
</span><span style="color:#323232;">    echo Contents of $1 are:
</span><span style="color:#323232;">    cat $1
</span><span style="color:#323232;">    echo
</span><span style="color:#323232;">    read -p "Try generating again? " -s -n1 answer
</span><span style="color:#323232;">    while true; do
</span><span style="color:#323232;">        case $answer in
</span><span style="color:#323232;">            [Yy] )
</span><span style="color:#323232;">                echo
</span><span style="color:#323232;">                break
</span><span style="color:#323232;">                ;;
</span><span style="color:#323232;">            [Nn] )
</span><span style="color:#323232;">                keep_generating=0
</span><span style="color:#323232;">                break
</span><span style="color:#323232;">                ;;
</span><span style="color:#323232;">            *)
</span><span style="color:#323232;">        esac
</span><span style="color:#323232;">        read -s -n1 answer
</span><span style="color:#323232;">    done
</span><span style="color:#323232;">done
</span>
thevoidzero ,

Just ask if it’s correct. If not destroy the universe. Only The correct will survive, it’s O(1)

AeonFelis ,

What if there is no correct answer?

thevoidzero ,

It’s not fun when you have to explain it. But basically it is based on the infinite multiverse theory. Since the multiverse splits whenever you make choices, in this case the program would spawn a large number of multiverses each with different combinations of those bits, which means at least one of them would have the exactly the combination we want. If the program destroys the multiverse it is in after it determines it is not correct, only reality that remains is the one with correct combination of bytes. Making it that we will get the code we want on the first try.

AeonFelis ,

You are assuming here that I know what I want. What if there is no obviously correct answer, and even in the Everett branch that generates the optimal content for the file I’ll still think it can be improved and tell it to destroy the universe?

thevoidzero ,

I guess yeah. In that condition the algorithm would probably destroy all universe. Although you might be able to set a threshold and not destroy when it is over the threshold.

But situation where you don’t know the answer is not for this algorithm as this one came from sorting problem.

kubica ,

My problem with those are that I always manage to get lost on where the program has its focus/what kind of instruction is expecting.
And while trying to go back to normal I end up messing it more and more.
Maybe some day I will get there, but it is still not the day.

psycho_driver ,

nano friends rise up!

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Looks like you only got one so far.

ipkpjersi ,

There are dozens of us!

scorp ,

nah you’re wrong

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Why do you all say that? There were no replies when I added mine so that’s why I said what I said.

lemmesay ,
@lemmesay@discuss.tchncs.de avatar

I too use nano.

alias nano=“vi -y”

Mwa ,
@Mwa@thelemmy.club avatar

kwrite and gedit friends rise up :)

pedz ,

How do you use these when you are connecting via SSH? You enable X forwarding?

It’s fine when you have a graphical environment, but what do you do when you dont have one?

Mwa ,
@Mwa@thelemmy.club avatar

ohh yeahh then nano

Malgas ,

A similar argument is what finally caused the value of the vi family of editors to click in my brain:

They are designed to be fully functional over even the shittiest possible* remote connection. You can’t always count on ctrl, alt, or even the arrow keys being transmitted in a way that is understood by the remote machine.

*Well, I guess the worst possible terminal would be something like an actual teletype, and in that case you’d probably want to fall back to ed or its descendants. To save paper, if nothing else.

blazeknave ,

I spent the weekend failing to make my civ mods work, with a thousand lines of notes… 2/3 in, I think “damnit blazeknave. You spend months perfecting this stupid fucking obsidian setup, and you’ve been here in notepad+ like a fucking jabroni.”

linearchaos ,
@linearchaos@lemmy.world avatar

I do the same all the time with anytype.

I dropped notes into sublime and then go back and put them neatly into any type. I don’t really know why I do it either It takes any type a total of three or four seconds to start up and I have to enter in a passcode. But I only have to do it once. I guess I do have to think about where I’m going to put the document and making sure that it’s tagged correctly, it’s a lot easier just a scribble something into a random text window to forget about for a decade.

Steamymoomilk ,

Micro is where its @ <3

lennivelkant ,

Butterfly gang

PseudoSpock ,
@PseudoSpock@lemmy.dbzer0.com avatar

There is always the Joe editor, if you like good ol’ Wordstar. :)

pedz ,

Sometimes you don’t even have the luxury of nano. Any moderately advanced Linux user should probably learn the basics of vi. Just knowing how to insert text and save it can fix a system that’s stuck in recovery. Even if it’s just to add a comment in front of a line in a config file.

Trantarius ,

When does that even happen? If you have nano installed, wouldn’t it work too?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines