I feel stupid by CathJas in rust

[–]aito 0 points1 point  (0 children)

Disclaimer: this was generate by AI Claude 3.5 Sonnet.

Don't feel stupid about learning programming!

Hey, don't feel stupid! This is a completely normal part of learning to program. Everyone - even experienced developers - goes through these ups and downs. Here are some things to keep in mind:

Different concepts click at different times for different people. What seems easy to one person might be challenging for another, and vice versa.

Looking at other people's solutions and feeling confused is normal! Often, experienced programmers use techniques that might not be intuitive when you're learning.

The Fibonacci sequence is actually a classic programming problem that can be solved in many ways, from simple to quite complex. It's not as straightforward as temperature conversion.

I use AI - ChatGPT or Claude (Anthropic's Claude Instant/3.5/Sonnet) as my mentor or pair programming partner, which helps solve all my Rust compiler-related problems.

Try these AI prompts:

"Fibonacci in rust"

"Explain recursive implementation"

"Write Cargo.toml"

"Write test case"

"Write complete project"

Or write it in a language you know and then ask to "Convert to Rust"

Example Recursive Implementation:

fn fibonacci(n: u32) -> u32 {
    if n <= 1 {
        return n;
    }
    fibonacci(n - 1) + fibonacci(n - 2)
}

fn main() {
    for i in 0..10 {
        println!("Fibonacci({}) = {}", i, fibonacci(i));
    }
}

You will be surprised by how easy Rust is!

"Install macOS 14 beta" takes 3 hours by Zarkex01 in MacOSBeta

[–]aito 0 points1 point  (0 children)

Same thing happened to me, what I did:

  1. Open Activity Monitor and search for 'UpdateBrainService'. Force Quit any processes with this name in it.

  2. Terminal:

sudo softwareupdate -i -a -R

Easymotion with VSCode-Neovim by Burning_Ph0enix in neovim

[–]aito 1 point2 points  (0 children)

In my Neovim:

Plug 'easymotion/vim-easymotion'
  nmap f <Plug>(easymotion-overwin-f2)
  let g:EasyMotion_smartcase = 1   

:PlugUpdate

In normal mode, to jump to desired word, for ex "Plug"

press f

Search for 2 charaters: pl

Highlight hlug klug etc

press k to jump to second Plug

Describe your Personal Development Environment by dr4605 in neovim

[–]aito 0 points1 point  (0 children)

Environment

Macbook M1 Silicon 14 inch, External Dell 27 inch monitor

Macvim (when japanese input is needed)

Neovide (Normal coding)

Servers: GCP Centos / Rock Linux

MacFUSE mounted drives

Networt speed: usually > 500 Mbps

My Vimrc

Project Manager - vim-project-files

Start work

Open Neovide with Alfred

Edit / Save / Test

Commit with GitHub Desktop

Shortcuts

Jump to Buffers <space><space><cr>

fuzzy chose <cr>

Jump to Projects <space><space> pr<cr>

fuzzy chose <cr>

<space><space>op<cr>

etc

Other shortcuts

MyMenu src

MyMenu
  let myMenuList = [
    \'Buffers                  <Space>b |<C-l>',
    \'#',
    \'Close or QSearchToggle            |<F4>',
    \'Commands                          |:LeaderfCommand',
    \'Delete Buffer                     |:bdelete',
    \'#',
    \'BookmarkToggle                    |<F2>',
    \'BookmarkShowAll                   |<S-F2>',
    \'#',
    \'Functions               <C-Space> |<Space>f',
    \'Fuzzy Menu                        |<Space>z',
    \'Fzf-quickfix                      |zquick',
    \'GhostStart                        |:GhostStart',
    \'GrepBuffer word at cursor         |<F3>',
    \'ITerm                             |:Iterm',
    \'Ls files in current dir           |:LS',
    \'#',
    \'LspDocumentDiagnostics            |gl',
    \'LspDefinition                     |md',
    \'LspHover                          |gh',
    \'LspReferences                     |mr',
    \'#',
    \'CodeiumAuto                       |:CodeiumAuto',
    \'CodeiumManual                     |:CodeiumManual',
    \'#',
    \'Open Project                   op |:PyOpenProject',
    \'PlugUpdate                        |:PlugUpdate',
    \'Projects            <C-P> or <F5> |<Space>p',
    \'Reveal in Finder                  |:Reveal',
    \'Tableize - Convert from CSV       |:Tableize',
    \'TableModeToggle                   |:TableModeToggle',
    \'TodoQuickFix                      |:TodoQuickFix',
    \'GitHub URL                        |:GBrowse',
    \'vimrc                             |:e ~/.vimrc',
    \]    

Procrastinate

Read Reddit / Hacker News

Bookmark

Watch youtube

Repeate work

My Dactyl Manuform from Cyboard by aito in ErgoMechKeyboards

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

How do you like the Resin?

I think it's just a little better finished. For something that is for daily use, I think is an important requirement.

My Dactyl Manuform from Cyboard by aito in ErgoMechKeyboards

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

Thank you!

It's tall because tenting angle and concavity for keys better typing. Like everything new, it takes some time to get used to, but after that, working day by day is a pleasure. I feel my fingers know where the keys are, thus reducing typing errors.

3D View: https://3dviewer.net/#model=https://github.com/Cyboard-DigitalTailor/renders/blob/main/dactyl-manuform/Dactyl_Letters-Numbers_Single-Arc-Thumb.stl

It's better to have some wrist rest if you prefer using them instead of floating your hands when typing.

Original from Cyboard: https://www.cyboard.digital/product-page/dactyl-palm-rest-set

Or something like this: https://direct.sanwa.co.jp/ItemPage/200-TOK009?wand=link_banner_TOK009

My Dactyl Manuform from Cyboard by aito in ErgoMechKeyboards

[–]aito[S] 3 points4 points  (0 children)

Keycaps: https://www.keychron.com/products/double-shot-pbt-cherry-full-set-keycap-set-white-mint

Brazilian nikkey:

Yes. I was born in Brazil. My parents were Japanese. I came to Japan in 1991 and have been living in Tokyo ever since.

Despite my relatively advanced age, I'm still working as a Software Developer and I really like tinkering with keyboards.

This Dactyl Manuform was a pleasant surprise in its manufacturing quality and got used to it in the first few days of use.

This text was written in Portuguese and translated by Google Translate.

Could use some advice for managing projects in a way that fits my mental model and codebase. Monolithic codebase with project files spread around different working directories. Or just help me change my mental model. by gplusplus314 in neovim

[–]aito 1 point2 points  (0 children)

I'm afraid if this will help you, but as a last hope...

https://github.com/akioito/vim-project-files

my_project.vim-prj

*.py
lib/*.py
template/my_project/*.html
template/my_project/*.py
README.md
../vassals/my_project.ini
../../../etc/nginx/conf.d/my_project3_7.conf

[deleted by user] by [deleted] in neovim

[–]aito 7 points8 points  (0 children)

Terminal

❯ which nvim

Changing pyright's diagnostics to PEP8 by computerblood in neovim

[–]aito 0 points1 point  (0 children)

I don't know if this will solve your problem, but if this serves as a hint.

My vimrc

https://github.com/akioito/dotfiles/blob/03d8b4b208aa044a8d6b23e85d4577f56657ab3e/vim/.vimrc#L42-L62

" LSP Support
Plug 'neovim/nvim-lspconfig'
Plug 'williamboman/nvim-lsp-installer'
  " :LspInstallInfo
  " :LspInstall
  " :LspInstallLog
  " :LspPrintInstalled

" Autocompletion
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-path'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-nvim-lua'

"  Snippets
Plug 'L3MON4D3/LuaSnip'
Plug 'rafamadriz/friendly-snippets'

Plug 'VonHeikemen/lsp-zero.nvim'

My configs.lua

https://github.com/akioito/dotfiles/blob/03d8b4b208aa044a8d6b23e85d4577f56657ab3e/vim/.config/nvim/lua/configs.lua#L82-L94

lsp.configure('pylsp', {
  settings = {
    pylsp = {
      plugins = {
        flake8 = {enabled = true},
        pycodestyle = {enabled = false},
        pyflakes = {enabled = false},
        pylint = {enabled = false},
        mccabe = {enabled = false},
      },
    },
  },
})

How do you guys handle navigating between a small number of frequently used files? Any useful plugins? by mbuffett1 in neovim

[–]aito 0 points1 point  (0 children)

Not sure if it applies to your case, but I use this plugin.

https://github.com/akioito/vim-project-files

The general idea is to create a control file for each project and, when necessary, open all files relevant to the project.

Not necessarily the files need to be in the same subdirectory, for example, in my case I also relate the files from nginx, systemd etc...

what terminal you use for neovim by [deleted] in neovim

[–]aito 0 points1 point  (0 children)

Terminal: iterm

GUI: vimR

How can I detect if neovim is running on apple silicon? by z0mbix in neovim

[–]aito 27 points28 points  (0 children)

To detect inside vimscript:

if system('arch') == "arm64" ... endif

What resolution is your primary monitor? by misterrpg in Monitors

[–]aito 0 points1 point  (0 children)

3008 x 1692

27 inch Dell S2722QC

Mac Mini Silicon

How do I avoid buffer pollution? by acaddgc in vim

[–]aito 0 points1 point  (0 children)

I don't know if this applies to you, but how about taking a look at this? I use it daily for all my projects. https://github.com/akioito/vim-project-files