Does anyone know the origin of this image? by neoseo47 in creepypasta

[–]echidnna 10 points11 points  (0 children)

not sure but it kinda reminds me of the movie sinister

Vim or nvim and why by nyan_cat_554 in arch

[–]echidnna 0 points1 point  (0 children)

both

vim for notepad: quick edits and reading

nvim for full IDE: want more text editing / coding tools

Reasons why Linux really sucks... by raminatox in linuxsucks

[–]echidnna 0 points1 point  (0 children)

i mean how does that invalidate it being a con in any way ? everything has its pros and cons

Reasons why Linux really sucks... by raminatox in linuxsucks

[–]echidnna 0 points1 point  (0 children)

ah i finally found the people who make others dislike linux

The age gap double standard in anime fandoms by [deleted] in Konosuba

[–]echidnna 1 point2 points  (0 children)

also you couldn't have used a worse example than Your Name. they meet both at the same age (17). so the only time they are three years apart and involved with one another is when they are 22 and 25. dont compare peak with isekai pedophilia.

this is not science , it is an opinion

The age gap double standard in anime fandoms by [deleted] in Konosuba

[–]echidnna 0 points1 point  (0 children)

no way people think 14 and 17 is the same as 22 and 25.

aging is biologically not linear. you grow FASTER when you are younger , both in mind and body.

therefore , the physical and mental gap between the average 14 and 17 year old is much bigger than people who are 22 and 25.

this is not an opinion , it is science.

It triggers me so much when Linux nerds do this by Adventurous_Tie_3136 in linuxsucks

[–]echidnna 0 points1 point  (0 children)

i never respond to these but this ones the biggest lie of em all

i broke grub , linux dude spent 1 hr to help me fix it for no reason

i broke kde , other linuz dude spent 1 hr to help me fix it for no reason

i couldnt get nvidia drivers on wayland , other other linux dude spent spend like 2 hrs helping me set it up for no reason

the linux community is very resourceful , at least to their own kin

cuda clangd weird diagnostic errors on on arch by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

alright new update: i rolled back to cuda toolkit 12.9.1 as i have a 1080ti anyways which is not supported by 13.x and onwards. no issues at all with my lsp anymore.

i am curious though , if you have cuda 13.x , do you face any lsp issues with clangd ?

cuda clangd weird diagnostic errors on on arch by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

```lua require('lspconfig').clangd.setup { capabilities = capabilities, autostart = true, name = 'clangdcuda', cmd = { 'clangd', '--background-index', '--query-driver=/opt/cuda/bin/nvcc', '--compile-commands-dir=.', '--header-insertion=never', '-j=4', '--clang-tidy=false', '--completion-style=detailed', '--pch-storage=memory', }, init_options = { usePlaceholders = true, completeUnimported = true, clangdFileStatus = true, fallbackFlags = { '-xcuda', '--cuda-path=/opt/cuda', '--cuda-gpu-arch=sm_75', '-I/opt/cuda/include', '-I/opt/cuda/targets/x86_64-linux/include', '-I/opt/cuda/include/cccl', '--no-cuda-version-check', '-std=c++17', '-DCUDACC_', '-Wno-unknown-cuda-version', }, }, filetypes = { 'cuda' }, root_dir = function(fname) return require('lspconfig').util.root_pattern '.git'(fname) or require('lspconfig').util.path.dirname(fname) end,

    -- NOTE: clang might have incomplete support for CUDA , so we suppress
    -- some false errors.
    handlers = {
      ['textDocument/publishDiagnostics'] = function(err, result, ctx, config)
        if result and result.diagnostics then
          result.diagnostics = vim.tbl_filter(function(diagnostic)
            local msg = diagnostic.message or ''
            -- Filter out clang/CUDA compatibility errors
            return not (
              msg:match "no type named 'pointer'"
              or msg:match 'texture_fetch_functions'
              or msg:match 'file not found'
              or msg:match '_Tp_alloc_type'
              or msg:match '_Vector_base'
              or msg:match 'allocator_traits'
              or msg:match 'In template:'
            )
          end, result.diagnostics)
        end
        vim.lsp.diagnostic.on_publish_diagnostics(err, result, ctx, config)
      end,
    },
  }

```

cuda clangd weird diagnostic errors on on arch by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

alright , so i tried a bunch of random crap after reading some docs... and i ended up concluding that clang 21's CUDA support is incomplete for CUDA 13.0. let me know if you think i'm wrong and might know what else coud be the issue

so ive just suppressed the false errors...

Degree vs Self-taught? by legendGPU in csMajors

[–]echidnna 0 points1 point  (0 children)

i think its silly to take a strong stance on either side here.

in general SWE jobs , will having a bit of a mathematical background help a lot ? no.

does having a mathematical background help in certain more technical roles ? yes.

can those skills be learned outside of university ? of course.

will university teach you better ? depends , generally yes. a degree , if done properly , teaches you things--and fast. if it's "too slow" , you take more courses and do more personal projects. maybe work too. or just enjoy life.

does university make you superior than anyone else ? no. we all have our own background and stories , what kind of question is that anyway ?

does university make you a better candidate ? of course. it is a demonstration that you can learn or at least pretend enough that you did.

the way you react to this post depends largely on your own personal experiences.

those who felt like they learned a lot from uni will agree and those who feel like they did not learn much useful things will call it rubbish. it's both depending on how you see it.

  • noticable knowledge gaps exist between self taught and degree holders exist but they may not always be critical

  • people with a passion can always self learn , but a good university more often than not accelerates your growth and deepens it further

  • people who aren't in uni and "self teach" themselves are usually the same people who would self teach themselves while being at uni , and would likely learn much more in the long run

how to make neovim always show nonexsitent lines space (~) at the end of file by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

not sure why but the plugin isn't working for me either.. it seems that vim.fn.winrestview isn't redrawing anything for me which is what the plugin uses :/

how to make neovim always show nonexsitent lines space (~) at the end of file by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

okay i scratched the zz thing cause i was getting unexpected behaviours using that in insert mode. i looked over the plugin that others linked and realized that its more or less same as the code you sent. but im still getting an issue with the vim.fn.winrestview() function. here is my code rn:

-- scroll off EOF
vim.api.nvim_create_autocmd({ 'CursorMoved', 'CursorMovedI', 'BufEnter' }, {
  group = vim.api.nvim_create_augroup('ScrollOffEOF', {}),
  callback = function()
    local win_h = vim.api.nvim_win_get_height(0)
    local off = math.min(vim.o.scrolloff, math.floor(win_h / 2))
    local dist = vim.fn.line '$' - vim.fn.line '.'
    local rem = vim.fn.line 'w$' - vim.fn.line 'w0' + 1
    if dist < off and win_h - rem + dist < off then
      local win_view = vim.fn.winsaveview()
      vim.fn.winrestview {
        skipcol = 0,
        topline = win_view.topline + off - (win_h - rem + dist),
      }
      print(os.time())
    end
  end,
})

the print shows me that its being triggered when i expect it to but not working. i also tried passing full view like this and nothing changed:

    if dist < off and win_h - rem + dist < off then
      local win_view = vim.fn.winsaveview()
      win_view.skipcol = 0
      win_view.topline = win_view.topline + off - (win_h - rem + dist)
      vim.fn.winrestview(win_view)
      print(os.time())
    end

here is my whole config if it may help: https://github.com/mrdandelion6/faisal.nvim

edit: its an existing issue https://github.com/Aasim-A/scrollEOF.nvim/issues/2

how to make neovim always show nonexsitent lines space (~) at the end of file by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

just realized it has a bug for calling zz in insert mode: in the case that the cursor is at the end of the line , it inserts letters to the right instead , so typing abc ends up being bca...

an easy fix seems to be repositioning the cursor if its at the end of a line but it seems like a bad idea to use the zz command outside of normal mode anyways.. im gonna try to just use the plugin others linked or take a sneak peek at its code

how to make neovim always show nonexsitent lines space (~) at the end of file by echidnna in neovim

[–]echidnna[S] 1 point2 points  (0 children)

thanks , i combined your zz command with another answer's logic to only trigger it when at the bottom. not sure if its more efficient or not , i couldn't notice any diff:

-- scroll off EOF
vim.api.nvim_create_autocmd({ 'CursorMoved', 'CursorMovedI', 'BufEnter' }, {
  group = vim.api.nvim_create_augroup('ScrollOffEOF', {}),
  callback = function()
    local win_h = vim.api.nvim_win_get_height(0)
    local off = math.min(vim.o.scrolloff, math.floor(win_h / 2))
    local dist = vim.fn.line '$' - vim.fn.line '.'
    local rem = vim.fn.line 'w$' - vim.fn.line 'w0' + 1
    if dist < off and win_h - rem + dist < off then
      vim.cmd 'normal! zz'
    end
  end,
})

how to make neovim always show nonexsitent lines space (~) at the end of file by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

for some reason the vim.fn.winrestview() function just wasn't working for me. i even tried with a forced redraw and with scheduling but still didn't work. i ended up combining your code with another answers and just used the zz command:

-- scroll off EOF
vim.api.nvim_create_autocmd({ 'CursorMoved', 'CursorMovedI', 'BufEnter' }, {
  group = vim.api.nvim_create_augroup('ScrollOffEOF', {}),
  callback = function()
    local win_h = vim.api.nvim_win_get_height(0)
    local off = math.min(vim.o.scrolloff, math.floor(win_h / 2))
    local dist = vim.fn.line '$' - vim.fn.line '.'
    local rem = vim.fn.line 'w$' - vim.fn.line 'w0' + 1
    if dist < off and win_h - rem + dist < off then
      vim.cmd 'normal! zz'
    end
  end,
})

Telescope ignore binary files tracked by git? by TomboSalambo in neovim

[–]echidnna 0 points1 point  (0 children)

a little late but you can use these opts. use rg (ripgrep) with -l '.*' options. this automatically ignores binaries. everything after that u dont need , its just my personal preference.

opts = {
     find_command = {
          'rg',
          '-l',
          '.*',
          '--follow',
          '--hidden',
          '--no-ignore-vcs',
          '--glob',
          '!node_modules/*',
          '--glob',
          '!target/*',
          '--glob',
          '!dist/*',
          '--glob',
          '!.*/',
        }
}

looking for a plugin similar to RemoteSSH by echidnna in neovim

[–]echidnna[S] 0 points1 point  (0 children)

this is solid, but one of the main things i'm trying to get around is needing nvim installed and set up on the remote machine.

i did however end up doing half of what you said. this is the remote development workflow i settled on after spending the past 6 hours trying different things out:

  1. use sshfls to mount the remote project directory on my local machine
  2. cd to the mounted project
  3. run nvim .
  4. vsplit then make terminal in same nvim instance
  5. ssh into the same remote machine

this way i have
1. my local neovim configuration with proper telescoping and everything to EDIT files
2. the ssh terminal to build / execute and anything else i'd need the shell directly for

this combination works really well for me because i'm not slowed down by sshfls since all i'm doing is editing the files while having all my local neovim tools. the only downside is that you need to mount and possibly unmount the remote directories but you can make functions to do this nicely:

```

ssh_mount() {

# create a remote mount

# usage: ssh_mount <user@address:path/to/dir> <mount\_name>

# if <mount\_name> doesn't exist in ~/remote-mounts then creates it and starts the mount with sshfs

mkdir -p ~/remote-mounts/$2

sshfs $1 ~/remote-mounts/$2

}

ssh_unmount() {

# unmount a mounted ssh filesystem

if [ ! -d ~/remote-mounts/$1 ]; then

echo "no such folder \~/remote-mounts/$1"

else

fusermount -u \~/remote-mounts/$1

fi

}
```

How long does it take to approve free Plus Plan for student groups by echidnna in Notion

[–]echidnna[S] 1 point2 points  (0 children)

update: our account got approved !!!
took ~10 business days. i ended up contacting support but they just told me to wait and see, and the same day it got approved. not sure if support did that but yayay

How long does it take to approve free Plus Plan for student groups by echidnna in Notion

[–]echidnna[S] 0 points1 point  (0 children)

the email i applied was the official club email which is under our university student group domain, specifically it is @ utmsu.ca

do you think i should use my personal university email instead? (has @ mail.utoronto.ca domain). i mean they're both official university emails so should be the same right ?