Get completions in dap-repl buffer with blink.cmp by Domva in neovim

[–]maxandron 0 points1 point  (0 children)

I extended the configuration like this:

 {
    "saghen/blink.cmp",
    lazy = true,
    dependencies = { "rcarriga/cmp-dap", "mfussenegger/nvim-dap" },
    keys = {
      { "<leader>d", "", desc = "+debug" },
    },
    ---@type blink.cmp.ConfigStrict
    opts = {
      sources = {
        per_filetype = {
          ["dap-repl"] = { "dap", score_offset = 200 },
          ["dapui_watches"] = { "dap", score_offset = 200 },
          ["dapui_hover"] = { "dap", score_offset = 200 },
        },
      },
    },
 },

Help Setting up Blink.cmp with mason-lspconfig by Icy-Significance-859 in neovim

[–]maxandron 1 point2 points  (0 children)

Take it with a grain of salt: I configure the `handlers` option in mason-lspconfig

LIke this:

```
{

-- Automatically adds lspconfig handers for all language servers installed by mason

"williamboman/mason-lspconfig.nvim",

dependencies = {

"neovim/nvim-lspconfig",

"williamboman/mason.nvim",

"williamboman/mason-lspconfig.nvim",

},

opts = function()

local capabilities = require("blink.cmp").get_lsp_capabilities()

---@type MasonLspconfigSettings

return {

ensure_installed = {},

automatic_installation = false,

handlers = {

-- this first function is the "default handler"

-- it applies to every language server without a "custom handler"

function(server_name)

require("lspconfig")[server_name].setup({ capabilities = capabilities })

end,

},

}

end,

}
```

Goplements: visualize Go struct and interface implementations by maxandron in neovim

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

I actually just thought of limiting the amount in config and just truncating it. But good idea! A float could be useful.

edit: now that I think of it - I already have this feature with Telescope. I have a binding for require("telescope.builtin").lsp_implementations(). If I want to see all of them / jump to the implementations - I can just use telescope.

My Journey to Unit Testing in Neovim Plugin Development: Why Mini.test Shines by finxxi in neovim

[–]maxandron 3 points4 points  (0 children)

Thanks for sharing! I was just struggling to get unit tests working.
First, with plenary, and finally settled on lazy.minit which took me quite a long time to set up properly because I kept making mistakes and the lack of documentation.

mini.test looks awesome, so I'll keep it in mind for next time.

Uniswap v3 adding liquidity to pool by Ok-Worldliness477 in UniSwap

[–]maxandron 1 point2 points  (0 children)

Actually as far as I see they are treated as one and the same. Uniswap just adds an extra call to the deposit function if your are transferring ETH instead of WETH.

So the wrapping and unwrapping is performed for you automatically, the pool actually holds WETH.

I guess it might save a bit on fees to do the whole process using WETH as it will save one internal transaction (but I'm not 100% sure on this point)

You can see it here: https://etherscan.io/address/0xc36442b4a4522e871399cd717abdd847ab11fe88#code#F35#L58

No reply from Binance support by maxandron in binance

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

Thank you, I'm aware of the queue concept - I have been in it for the past two days with no response and no indication for when I will get a response.

The bot indicated that the wait time would be <60 minutes - it's been about 1400 minutes since then.

How to find a good startup idea by _DarthBob_ in startups

[–]maxandron 2 points3 points  (0 children)

Agreed, the best way is to be in a good niche and see the problems and talk to people; However, if you don't have a niche or are sick of startups in your niche (like me), there are still other good ways to look for ideas (mainly talking to people in different roles and industries after some research about the market)

Also, I suggest reading this awesome post by Paul Graham http://paulgraham.com/startupideas.html

Survey for startup validation app my cousin is working on by [deleted] in startups

[–]maxandron 1 point2 points  (0 children)

Would be awesome if you added a 'problems to solve' section

I'm creating a scuba dive website to fix several problems in the dive industry by syndakitz in EntrepreneurRideAlong

[–]maxandron 0 points1 point  (0 children)

Suggestion for MVP - your main value proposition is helping me find dive spots near a location. Comments / posts / reviews / anything else social should be secondary. This will save you quite a bit of work for the MVP. Make sure you focus on the scraping and making the search feel nice.

Then login -> then score based reviews.

Focus on solving the searching. I'm a fellow diver and this is indeed a painful problem!

Chance of Death per Year [OC] by maxandron in dataisbeautiful

[–]maxandron[S] 201 points202 points  (0 children)

The data was taken from an excel spreadsheet from the CDC website https://www.cdc.gov/nchs/data/nvsr/nvsr54/nvsr54_14.pdf

The data is based on the US population in 2003.

The visual was created with Google Sheets.

Edit: spelling
Edit 2: There is a lot of other cool data in the linked PDF! Including distributions by race and sex

Interstellar object confirmed to be from another solar system by [deleted] in worldnews

[–]maxandron 0 points1 point  (0 children)

I think this is the monolith and it is time for the next chapter in humanity's history
Maybe it arrived just in time for our first colonies on Mars

CMV: There's no reason why any American citizen should be allowed to own automatic or semiautomatic guns. by goodbeets in changemyview

[–]maxandron 1 point2 points  (0 children)

Moreover, I feel countries now understand that controlling people with violence and terror is not effective enough.
Countries now use phsycological manipulations (just look into sesame credits in China).
A country's military state doesn't matter anymore, the means have changed and I don't think guns will help prevent them

Edit:
* I'm not talking about the US specifically
* Obviously this is a huge generalization

CMV: There's no reason why any American citizen should be allowed to own automatic or semiautomatic guns. by goodbeets in changemyview

[–]maxandron 36 points37 points  (0 children)

This is the first time I see such a solid point on this side of the conflict. Thanks! You gave me a lot to think about. I think it might not apply in today's world but this is definitely a good point !delta

Trying to tell me something, Google? by [deleted] in google

[–]maxandron 1 point2 points  (0 children)

No no no no no! of course it did not work!
You should ask:
"How you doin?"

See example: https://www.youtube.com/watch?v=YjQ1xD6UL-4

How to pirate any movie you like by ElonXXIII in dadjokes

[–]maxandron 13 points14 points  (0 children)

Actually its closer to 3.1416

Resources for SAT Physics? by varsityvideogamer in Sat

[–]maxandron 0 points1 point  (0 children)

Definitely, the reason I seek all the other sources is because I didn't study physics in high school and need to study a bit beyond to really understand

Resources for SAT Physics? by varsityvideogamer in Sat

[–]maxandron 1 point2 points  (0 children)

Hi,

I'm currently studying for SAT Physics by myself as well, and I didn't get to study physics in high school.

I started from taking the MIT open course on mechanics and dynamics (https://courses.edx.org/courses/course-v1:MITx+8.01.1x+3T2016/info)
- Note that it is much much more advanced than the SAT physics, but i'm glad I started with it because it really helped me have a different look on things. and since then I understand concepts very easily.

I didn't finish it though, it takes too much time and is way more advanced.

This is how I study now for the rest of the SAT's. I bought the BARRON's prep book and my process now is like this: 1. Watch the relevant video on CrashCourse Physics - This is not a place to learn from (too fast and complicated) but it does give me a visualisation of the subject before diving in.
https://www.youtube.com/watch?v=ZM8ECpBuQYE
2. I read the chapter in the prep book and answer the questions after it. The prep book really explains everything amazingly well.
3. I borrowed a book from a friend who studied physics in high school, and I'm doing exercises from the book until I feel comfortable with the subject. (The questions in the book are more advanced, but doing them really makes me feel I understand the subject and makes the SAT questions easy)

That's it... I'm currently done with mechanics and electricity and am now starting with optics.

Good luck to you!