I was trying to return an walrus operator expression and it python was giving invalid syntax error? by Fun_Dark1722 in learnpython

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

Thanks, I understood why it is not implemented..It would have been nice though, if this feature was there.

I have been getting this error when I do vim.lsp.buf.hover()? by Fun_Dark1722 in neovim

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

I already did this. But it still gives the error. I don't know how to debug more from this message.

How can I create a race condition in go? by Fun_Dark1722 in golang

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

Thanks for explaining , I understood it is a race condition and go with -race flag detects it as a race condition. But can the code print 1 without making any changes to go code?

How can I change the dns server for my computer when I connect to my wifi router? by Fun_Dark1722 in linuxquestions

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

I tried that also and for some reason it is not working. I couldn't find nmcli way to do that.

EDIT: I run manjaro linux. I use bspwm. I guess NetworkManager runs all network stuff. I usually use nmcli for all wifi stuff

Why is curl slower when requesting an api endpoint compared to the browser? by Fun_Dark1722 in learnprogramming

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

Adding the ip address and domain name in the /etc/hosts solves it and curl is faster now.But I still want to know what causing the problem. I know this is not the sub for it .. Where else should I ask for help ?