mrbn

@mrbn@lemmy.ca
1 Post – 10 Comments
Joined 12 months ago

Good one, let me try!

Knock knock

Who's there?

Race Condition

4 more...

Reminds me of the "Op" wars on IRC. All users would be given @ status and the point was to kick everyone before you got kicked. Writing scripts for this was my first "taste" at programming.

Have you tried setting a breakpoint and seeing if it hits? Assuming the app you are debugging is just a Console.WriteLine("Hello World"); and no breakpoints are set, the app will execute, output hello world, and terminate. Which means you wouldn't see anything happen in VS Code.

If you are super new to all this, I would suggest you look for videos/articles on how to debug using visual studio code as they may provide some insights or concepts you may not already know.

After using AI chat stuff like this and chatgpt, ive come to the conclusion that building prompts is akin to building search queries for search engines. Wherein using the right terms leads to better results.

I do not think that this is an existing feature in neovim, however this seems to work :%s/\(.*\)\zs\s*$/\=repeat(' ', 15 - len(submatch(1)))

Change 15 to the column desired. You could probably create a function where you pass the column number you want so that you dont have to type this string all the time.

2 more...

Changing links to add their affiliate codes was enough of a shady thing for me to swear off this browser. No telling what kind of a fast one the company will try to pull in the future.

command! -range -nargs=1 PadColumns call PadColumns(, , )

function! PadColumns(start, end, columns)
    execute a:start.','.a:end.'s/\(.*\)\zs\s*$/\='.'repeat(" ", a:columns - len(submatch(1)))'
endfunction

Use by typing in Normal mode :PadColumns 20. This will add spaces after the line or selected lines to the column you specify (in this case, 20).

You could probably improve this by getting the length of the longest line and so you dont need to specify the specific column to add spaces to (20), and instead just add say 5 spaces after longest line for all lines.

Windows 98 -> Slackware dual boot (with big ol' red grub screen) -> windows up to win 10 -> debian(laptop) win10 (pc)

Gonna try getting a new m.2 drive and dual booting soon to test playing the games I like on Linux. If all goes well, I'll be moving away from windows

(theres a mac version but isn’t the same)

There was a mac version. But it is hitting EOL in August

It's a feature, not a bug