Why is my Vim crashing on one particular Ruby file? [closed] - ruby

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
The output I'm seeing is,
Vim: Caught deadly signal SEGV3C
Vim: Finished.
Segmentation fault (core dumped)
This happens only when I try to open one particular Ruby source file. Other Ruby source files open just fine, but this one particular one does not.

It looks like there were some strange invisible characters in the file. I tried to remove them with a tr command that removes non-ASCII characters, but that didn't work.
So, I just kind of copied lines over manually to a new file, hoping to exclude the strange characters that were causing the issue, and that seemed to work.

Related

Where does the file ''$'\033\033\033' come from in Linux? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 days ago.
Improve this question
In my directory at a Linux server I have discovered a file with such a strange name.
From the command history I can track that it was probably created by this command:
sudo docker logs <container_id> -n 200000 | less
I suspect I have entered some combination of letters in less (probably starting with s to save a file).
Do you know what exactly has happened?
P.S. If you want to remove such a file, see How to escape the escape character in bash?
I have discovered that such a file is created when you type s in a piped less and then you are asked to enter the log file name. If you type triple Escape and then Enter, you will get such a file.
The command s is actually helpful to save the contents of a piped less.

How to clear MAC bash [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
After installing lots of gems and exporting path in my OS 10 bash appears to be messy and show lots of error. How do I clear these error.
how can i clear this
I think the problem is that source <smth> is on the same line as the if construct.
Open .bash_profile in any text editor, find line 22, press Enter after fi and then save the file.

hidden autosave file error: no such file or directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I was editing an emacs file abc, and prior to saving, had a crash. There is now a file .#abc, and I would like to find out what is in that file, to perhaps recover what I was working on.
I know the file is there because when I type
ls -a
it lists
.#abc
However, when I type
more ".#abc"
or simply
more .#abc
I get the error
.#abc: No such file or directory
The same error occurs with cp in place of more.
How do I see what is in that file? Why does ls list it and then other commands can't find the file?
(Is .#abc actually an alias file? If so, how would I know that? And how, nevertheless, do I see the content of it, even if this is only what it is an alias to?)
[Note: I do not want to use emacs to try to find out what is in the file or restore it, because the situation is somewhat more complicated than described: the above is all occurring inside a Time Machine backup, which I need to access because of an emacs autosave overwrite problem on the primary file. I don't want to have the same problem occur on the backup of the autosave file!]
This is all on Mac OS10.8.4.
Whereas autosave files use a tilde ~, lock-files use a dot number-sign .#:
http://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
Creation of lock-files can be disabled with the following setting:
(setq create-lockfiles nil)
https://stackoverflow.com/a/12974060/2112489

How to use my application in context menu? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I know, that I can write "firefox.exe" in registry command, but when I write my application like "myapp.exe" it doesn't work. If I use full path "C:...\myapp.exe" it works, but application can be installed anywhere else, so how to write short command?
Also, in run utilite when I write myapp.exe it can't find it
When you tell windows to run a program and you don't specify the full path, it looks at the PATH variable, which contains just a string of directories separated by ";" and sees if it finds the program there. There is a more detailed explanation of it on https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them.

Suppress UCM default head scripts from generated webpages [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
By default UCM adds a bunch of JavaScript to the head of each webpage. Is there a way to suppress the insertion of these scripts at the page level?
I found a resolution to the issue. It is Site Studio Designer that automatically inserts scripts into the head of documents you work with. The solution is to write your .hcsp source in another editor (I use Notepad++), then manually check your code into UCM.

Resources