This is probably a stupid question, but I can't find an answer.
%bookmark dl 'C:/Users/user1/Downloads' works, but %bookmark md 'C:/Users/user1/my documents' doesn't work, throwing error:
"UsageError: %bookmark: too many arguments"
How to fix this?
Using "double-quotes" fixed it for me.
Have a go with: %bookmark md "C:/Users/user1/my documents"
Related
To give a simple example. Having a variable or function misspelled, the LS gives a suggestion "Cannot find name 'voteings'. Did you mean 'votings'?
Is there a way to quickly accept those suggestion?
In VS-Code you can use cmd + p to quickly open a file.
Very often I copy a ruby class name from a stacktrace or from the code, which usually is something like MonduleName::ClassName (for example Admin::User), which by convention is located under module_name/class_name (in the example, would be admin/user.rb).
The problem is that the separator :: is not in the file path and VS-Code does not find it, so I have to
to delete those :: every time, which turns pretty annoying very quickly.
So the question here is pretty obvious, is there a way to tell VS-Code to ignore the : when performing the file search?
No, it is not possible.
I have added an issue in the VS Code project, which sounded reasonable to some maintainer, but it did not get enough upvotes from the community to be implemented and got closed/discarded.
I still miss this feature, so if somebody decides to reopen it, I would be glad to get a comment here.
I am getting error while running the C++ code in Visual Studio Code, I am not able to run any code in my editor, here there is the image of the error I had search many time about this but not get anything. I tried to use '|' in place of '&&' but still there is no improvement. My VS Code is up to date. would anyone like to share some fix for this. It seems that there is error in the '#include <bits/stdc++.h>' file as it says that there is error in line 1 and char 46, char 51 etc ...
Any information regarding this will be appreciated, thank you for your time ...
&& is not the way to execute multiple command in PowerShell, replace it by ;
"&&" may not be distinguished by "AND" by the compiler. You should use ";" instead of it.
I'm wondering if it was possible to raise syntax error (or at least warning) in eclipse environment when a specific regex is find ? (Like for example, each time there is the world "dummy" in the code, an error is risen)
Thanks in advance !
Julien.
The short answer is "no". At least, not without some non-trivial tinkering.
I have an infected website, and I am trying to clean it out using sed. Unfortunately I am unable to escape the question mark sign in the URL and I am really stuck here. I've searched over the web for a possible solution, but unfortunately I didn't found a proper way to do so.
Just an explanation:
The injected code is similar to this one:
< iframe src=http://test.com/index.html?i=23123>< /iframe>
Note that I am not a pro, and there is why I need your help!
so my way to clear the code is :
sed -i '/< iframe src=http:\/\/test.com\/index.html\?i=23123>/,/< \/iframe>/d' index.html
Unfortunately that didn't help as well as all others.
All help will be gratefully appreciated.
echo "< iframe src=http://test.com/index.html?i=23123>< /iframe>" \
| sed 's#< iframe src=http://test.com/index.html?i=23123>< /iframe>##'
Produces no output, which to me means this is successfully deleting your problem string.
Note that most seds will accept an alternate regex-replacement character, here I am using # because there are no #s in the search target. On some seds, you have to tell it 'hey I'm using an alternate, and escape the char, like s\#.....##.
I don't see why your attempt to quote the ? is failing. Did you try [?] and (worst case) [\?]. Are there 2nd level evaluations happening by the shell that you're not mentioning here? Does my simple example also fail?
As others will certainly tell you, your approach is strictly a bandaid, you need to figure out what the security hole is in your system and fix it. Your pages will get corrupted again. :-(
IHTH