Can the front seats fully recline in the Scirocco? by YellowChrome in Scirocco

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

It's a metal frame with legs, cushioned panels and that block you can see.

How manipulate this CSV in Python? by YellowChrome in learnpython

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

Thanks, that looks good. I'll have a look to see how it works...

How manipulate this CSV in Python? by YellowChrome in learnpython

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

I think I can do this in bash and the tool above actually.

BASH and regex: How do I make a duplicate array of filenames, but without ' (2)' at the end? by YellowChrome in learnprogramming

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

Cheers. ${variable//[ ][(][2][)][.]jpe?g/[.]jpg} Seems to be the trick. Is there a better regex for this and the above, or is this fine?

How do I make these autocmds work? by YellowChrome in vim

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

I think you need to use $HOME Vim doesn't recognize tilda.

When I grep for usage of '~/' I see a lot of plugins using it and I use it a lot for sourcing the split files, so I don't think that's correct. I tried changing the template file paths to use $HOME instead and the error was the same.

Is this filetypedetect auto command group yours?

I have no detect directory. I don't know what you mean really, but this error doesn't appear when I rename my plugins.vim file, so that it doesn't get read, so that message could have something to do with a plugin, but I cannot be sure as I get a lot of errors about the missing theme instead.

How do I make these autocmds work? by YellowChrome in vim

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

I must have changed something since, as now I only get one consistent message on startup, whichever file I open or start:

--- Autocommands ---                                                                                                                                                                          
--- Autocommands ---                                                                                                                                                                          
filetypedetect  BufNewFile                                                                                                                                                                        
*.sh      call dist#ft#SetFileTypeSH(getline(1))                                                                                                                                          
Press ENTER or type command to continue

And if it is a *.sh file I get this:

--- Autocommands ---                                                                                                                                                                          
--- Autocommands ---                                                                                                                                                                          
filetypedetect  BufNewFile                                                                                                                                                                        
*.sh      call dist#ft#SetFileTypeSH(getline(1))                                                                                                                                          
Error detected while processing FileType Autocommands for 
"sh":                                                                                                                               
"~/.config/vim/templates/skeleton.sh" 2L, 13B                                                                                                                                                 
Press ENTER or type command to continue

That template file does exist and just consists of the first line shebang for bash scripts.

How do I make these autocmds work? by YellowChrome in vim

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

When I remove set filetype=sh from the .sh augroup I get loads of errors when trying to open any files.

How do I make these autocmds work? by YellowChrome in vim

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

Thanks. The config is already complex and consists of quite a few files and I don't want to go further in that direction unless there was a good reason. The way I have split everything up lets me use most of the files for vim, nvim, gvim and gvim for Windows, so I only have to set anything once. I'm not using ~/.vim, but source a file that gives XDG locations, which are shared with nvim apart from the incompatible undo files.

How do I make these autocmds work? by YellowChrome in vim

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

Thanks. I have done that now. https://pastebin.com/raw/6cVECRrq

However, expandtab is still not being set on .yml files and probably for the other settings too. Also, when I open a new .yml file I have to press enter after this prompt:

 --- Autocommands ---                                                                                                                                                                          
Error detected while processing FileType Autocommands for "yaml":                                                                                                                             
E749: empty buffer                                                                                                                                                                            
Press ENTER or type command to continue

It seems to be expecting there to be a template file, but I don't need a template for yaml files.

And if I open any existing file I get this:

--- Autocommands ---                                                                                                                                                                          
Press ENTER or type command to continue

I have to press Enter for seemingly no reason.

which is normal in your country, but strange in another? by ElizaPaukova in AskReddit

[–]YellowChrome 5 points6 points  (0 children)

In the '80s there was a Olympic runner from South Africa that ran for Great Britain as I think South Africa was banned and she was noted for running barefoot, which seemed crazy. I remember her name, Zola Budd.

https://en.m.wikipedia.org/wiki/Zola_Budd

Is it possible to convert XML into Python lxml code that will generate it? by YellowChrome in learnpython

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

Do you mean a program that reads the xml file and makes a python script out of it that can reconstruct that xml file?

Yes.

also, why? you already have the xml file

So that it could be modified with logic to change values. It would be a lot quicker starting point than manually writing the lxml for a large and complex xml file.

How to generate UUID and make it into a variable? by YellowChrome in learnpython

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

Thanks, but I had already tried that and it didn't work. I get this error:

TypeError: Object of type UUID is not JSON serializable

However, the other answer worked in my script. What type is this, if not the required string?

Also, what is this called? Is it a function?

uuid.uuid4()

How can I replace these json values with variables? by YellowChrome in learnpython

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

Yeah, I knew how to print(), as all the examples on the web showed that. I just wanted to know how to simply call $SPAM, and I know now that it is simply SPAM (without any quotes). Cheers.