siipale

joined 1 year ago
[โ€“] siipale@sopuli.xyz 0 points 3 weeks ago (2 children)
[โ€“] siipale@sopuli.xyz 1 points 1 month ago (1 children)

Happy cake day! I just also recently had mine. There must be dozens of us who joined this time last year. Unfortunately RiF never became a Lemmy client but Connect for Lemmy is good.

[โ€“] siipale@sopuli.xyz 2 points 2 months ago (1 children)

At first I read SIMD bucks and I thought they must take optimizing code seriously.

 

I had forgotten about SDF but seeing SDF instance on Lemmy caught my attention. I used to use SDF for a while about 10 years ago and now it would be interesting to see if I have left anything interesting there.

I found my notes from ten years ago so I know what my username was. I don't remember my password though. I tried to log in but to no avail. Is there any way to know whether my account still exists? Do accounts get removed if they're not used for long periods of time?

[โ€“] siipale@sopuli.xyz 0 points 3 months ago (1 children)

Can you give an example how that would happen?

 

Although Linux is just used to run superior OS in VM. Same as using Internet Explorer to download Firefox.

[โ€“] siipale@sopuli.xyz 0 points 9 months ago (7 children)
[โ€“] siipale@sopuli.xyz 1 points 11 months ago

I've always thought that macros in vim are slow and clumsy to use. You have to think about getting back to initial state as you record if your intent is to repeat the macro several times. If you make a mistake you have to either record an action that corrects the mistake or edit the macro later after recording. You have to know beforehand how many times you want to repeat the macro or run it one at a time which is clumsy at least with Finnish keyboard layout.

Norm command is much faster to use for my purposes because I can use it for several lines at a time without thinking about the state. I can use it with ranges or with g/re/ and v/re/ commands. If I make a mistake I just delete it. Only thing on the plus side I can think of for macros is it's WYSIWYG approach. You have to have a visual editor in your mind when you write long norm commands.

Here's a tip for you: use :%norm @a to run the macro in register a for every line of the file.

 

Most of you might know already but I just found out about this today because I needed it. I had thought there's just no way to use escape in norm commands. So I had this file with list of items which were mostly separated by newlines but some of them were separated by spaces so I had to clean it up. It looked something like this:

begin A
begin B begin C
begin D
begin E begin F begin G
begin H

and I needed it to be like this:

begin A
begin B
begin C
begin D
begin E
begin F
begin G
begin H

The beginning of every item was the same string of characters which was helpful. So I had an idea but it required the use of escape in a norm command. I was about to think of some other way that doesn't require escape but then decided to google it and find out if there was a way to use escape. To my surprise it was possible! Why I haven't thought of this before? So this is what I came up with:

:g/.*begin/norm /begin^[hr^M

So the ^[ is an escape and you get it with C-v Esc. Simple as that. The command to organize my list isn't perfect though as it has to be run few times to go through every item but it was enough for my purposes.

TL;DR: Press C-v Esc in command line mode to get escape.

 

Right now I can't use sopuli via Connect for Lemmy app but the website seems to work fine. Any ideas whether this is a problem with the server or the client? The app just says that sopuli.xyz is not responding.

 
 

I was thinking of this because in my country there's an institute which determines correct language and therefore many people speak or write their native language incorrectly. Whereas in English there's no central authority which would write the rules.

So when I look at linguistics videos on Youtube and hear descriptivism being the popular opinion, I'm wondering whether it's because that's just how most linguists are or it's the influence of anglophone mindset where nothing is written in stone and they would rather investigate and describe whatever phenomena occurs in the language naturally.

 

Testing

1
Test post (kahvipiiri.fi)
submitted 1 year ago* (last edited 1 year ago) by siipale@sopuli.xyz to c/test_community@sopuli.xyz
 

Body text here.

EDIT: tried to post an image but it gave an error message. At least linking url to an image works.