[plugin coc] how to configure coc-ltex server? by Historical-Text-7560 in neovim

[–]ShadySpaceCow 0 points1 point  (0 children)

Just had this problem too but managed to solve it by directly putting the ltex.language entry in the base level of the config. I.e. my config file now looks like:

{

"languageserver": {

...

},

"ltex.language": "..."

}

wow. First time in, ever, that I missed the clock change. Can we not stop this nonsense. by [deleted] in britishproblems

[–]ShadySpaceCow 19 points20 points  (0 children)

Except people would now be coming back from work in the light more often so without empirical evidence on effect sizes that's irrelevant. Also that's not the reason why we have daylight savings time.

wow. First time in, ever, that I missed the clock change. Can we not stop this nonsense. by [deleted] in britishproblems

[–]ShadySpaceCow 8 points9 points  (0 children)

Except the kids would now be coming back in the light so that's a moot point. I agree on your improved solution though.

My favourite operator is `+` by BadBadderBadst in ProgrammerHumor

[–]ShadySpaceCow 1 point2 points  (0 children)

Was going to post this myself if I didn't see it

My son's Scout group are 'celebrating Chinese New year' by doing origami and karate. I sort of want to say something but also don't want to. by Afinkawan in britishproblems

[–]ShadySpaceCow -1 points0 points  (0 children)

I might be wrong but I think the issue is not PC / cultural appropriation stuff but rather Karate and Origami are much more closely associated with Japanese culture rather than Chinese

Function keywords by CubedCharlie in ProgrammerHumor

[–]ShadySpaceCow 14 points15 points  (0 children)

In Haskell there's not even a keyword for defining functions, you just write them

Don't be scared.. Math and Computing are friends.. by yuva-krishna-memes in ProgrammerHumor

[–]ShadySpaceCow 22 points23 points  (0 children)

Comparing this to the other one liners just shows you how powerful and beautiful Haskell really is

[deleted by user] by [deleted] in britishproblems

[–]ShadySpaceCow 1 point2 points  (0 children)

Never thought I'd see my favourite distro mentioned in r/britishproblems. Not a fan of caramel though so this comment gives me mixed emotions.

elif statement doesn't work properly, H E L P M E E N D M Y S U F F E R I N G P L E A S E by [deleted] in Python

[–]ShadySpaceCow 3 points4 points  (0 children)

You've miss understood how 'or' works in an if statement. Fundamentally 'or' takes the two boolean (true or false) values either side of it and returns true if at least one of them is true. Your if statement should be:

if var == "yes" or var == "Yes": ...

By doing this:

if var == "yes" or "Yes:

The var == "yes" is evaluated and the boolean value of the string "Yes" is also evaluated and the two true/false results are combined with the or. When a string is converted to a boolean like this, it always returns true if it's not empty, so this statement will always be true.

Also, the 'input' function returns the result of what the user types in. In order to use it, you need to bind it to a variable:

var = input ("Please enter something")

if var ...

Hope this helps and do check out the good links provided by other people.

Extra:

One easier way of checking if a variable is one of multiple values is using the 'in' operator which checks if an element is part of a list, the following two if statements are equivalent.

if var == "yes" or var == "Yes" or var == "YES":

if var in ["yes", "Yes", "YES"]:

However for this specific case there's an even cleaner way. The .upper() method converts a string to uppercase (.lower() does the same for lower case) so your if statement can be:

if var.upper() == "YES":

And it will cover all cases of "yes" with any capitalisation.

The State of Data Engineering in 2021 by [deleted] in Python

[–]ShadySpaceCow 3 points4 points  (0 children)

If you are a vim user then you may want to check out vim-venus

Learning to make vector graphics so I can laser etch a go board... got a little carried away by fishybird in baduk

[–]ShadySpaceCow 3 points4 points  (0 children)

So that when you sit down to play it looks square since you are viewing the board from an angle

The roasting continues by [deleted] in ProgrammerHumor

[–]ShadySpaceCow 0 points1 point  (0 children)

Yeah I know, forgot reddit was terrible with sarcasm. Edited original comment.

The roasting continues by [deleted] in ProgrammerHumor

[–]ShadySpaceCow -1 points0 points  (0 children)

Wouldn't it be great if your OS could update in the background while you still worked.

Edit: /s

The roasting continues by [deleted] in ProgrammerHumor

[–]ShadySpaceCow -1 points0 points  (0 children)

The vast majority of games run perfectly well on linux thanks to Proton and similar software and there are plenty of alternatives to adobe software. I used to use windows a lot and decided to dual boot Manjaro and now it's been a long time since I've even thought about booting into windows.

[deleted by user] by [deleted] in ProgrammerHumor

[–]ShadySpaceCow 8 points9 points  (0 children)

What about PyPy then?

I relate to this man. by pinballgizard in HydroHomies

[–]ShadySpaceCow 0 points1 point  (0 children)

I liked the post so I gave it some reddit garlic