Rstudio sometimes freezes a few seconds after opening or entering RMD files - r-markdown

Rstudio intermittently freezes a few seconds after opening an RMD file, or (in cases where the RMD file was loaded on startup), after making it the active thing in the viewer. Deleting/replacing the .nd file associated with the rmd does not prevent this. However, opening the RMD in another text editor (such as Sublime) and copying all text to a new file which is then saved as an RMD does. However, as soon as the file is saved in Rstudio and opened again, the problem may recur.
Is there a workaround or solution to this issue?

Related

How to fix encoding issue in sublime text

I'm trying to fix an encoding issue I'm confronted with when using Sublime Text.
If I try to open a c++ file in sublime it displays the file's content as a series of hexadecimal numbers. I've tried to fix this by reopening it with all the various given encoding options ("File --> Reopen with Encoding"). I have also tried the following: "enable_hexadecimal_encoding": false under settings.
Is there something else I can do to fix this problem?
Screenshot when initially opened
Screenshot after reopening with UTF-8 encoding
I think you have opened an object file(.o) with the wrong extension, I have checked it on my machine your file is originally an object file with possibly wrong extension. Read more about object files here.
Try to find the original source file, a c++ source file will have an extension of .cpp(most likely).

Unable to open SAS EG Project

I can't open my SAS EG Project with the error message :
"Unable to open file ...abc.egp as valid project file"
This is happen because when my hard disk is full and I was trying to save the project, so it wouldn't let EG to finish writing the project changes.
I've tried to clear the history but no luck.
Thanks
I suspect your SAS EG file might be irreversibly corrupt, so the focus is then on recovery of the file or its content.
If your disk drive is NTFS based, you might be able to recover the file. Check for previous versions in the file properties.
Also, what was the structure of your file inside? If it was a code driven program, then you can make a copy of the file, change extension to "zip" and then unzip the file or look inside for its contents. SAS EG projects are just ZIP archives with XML maps and related SAS code.
The last option is to see if you have logging enabled in your SAS EG. If you do, then all the code you run on that date would be available in your logs, so you can recover the code from the logs.
Regards,
Vasilij

Not able to save file deployed on jetty server

I have deployed my webapplication on a jetty server, and I am trying to edit those deployed files using WebStorm 8.0.4. But I am unable to save the edited files and getting the following error:
Try turning the 'safe write' feature (Settings/General, 'Use safe writes') off - does it help? It creates a temporary copy of a file: creates a separate temp file, deletes the original and then renames. With this option the original file permissions may be lost, this causes problems, especially when working on remote drives.
Follow these steps.
Open C:\Users\YourUserName\.m2\repository (If you use maven)
Find org folder and Navigate org\eclipse\jetty\jetty-webapp\yourJettyVersion
There will be a .jar file.
Open it with winrar or some program like winrar.
Navigate org\eclipse\jetty\webapp
Find webdefault.xml and Open it with any text editor.
Search useFileMappedBuffer parameter in file
You will see a param value.
Change it to false.
Save and Exit.
I'm sorry for any English mistakes.

Open pdf,txt,doc,jpg etc files in a popup using jQuery and coldfusion

I am working on a small project and I have a file links to download from server. However, instead of downloading the file I want them open in fixed size pop up. I tried facebox but facebox(http://defunkt.io/facebox/) fail to display pdf files and other text files. any one have any idea what I suppose to do in order to accomplish this task.
Thanks you

SQL server 2008 Task Scheduler will not create a file from the program

I am running sql server 2008 and I have a .exe file on it that creates a .txt file which is saved in the same directory. (so, before running just the .exe file exists, after running the .exe, the .exe file and a .txt file exist.) From there, the .exe file sends an email using that .txt file as an attachment.
Here is what works perfectly: If I double click on the .exe file, the .txt file is created and the email is sent. or if a .txt file is already there, it is overwritten with a new one. If I double click on the batch file which runs the .exe, it works too.
Here is what doesn't work: If I try to start either the .exe or the .bat file in the Task Scheduler that is on the server, it will do something very peculiar: The .txt file will not be overwritten or created. If the .txt file doesn't exist, a new one isn't created and no email is sent. If I put an old .txt file there, the email will get sent but with the old file (i.e. the file was not overwritten). So, condensing it all down: The task scheduler will not allow the .exe file to create the .txt file. Just for fun, I modified the program (it was created with C++) so it only creates a .txt file with no email and it still won't create the .txt file.
I'm assuming you are using code like:
if (!File.Exists("logfile.txt"))
{
log = new StreamWriter("logfile.txt");
}
else
{
log = File.AppendText("logfile.txt");
}
I find when running taskscheduler it is better to use the full path like this:
if (!File.Exists("c:\\Program Files (x86)\\Company\\Sales Report\\logfile.txt"))
{
log = new StreamWriter("c:\\Program Files (x86)\\Company\\Sales Report\\logfile.txt");
}
else
{
log = File.AppendText("c:\\Program Files (x86)\\Company\\Sales Report\\logfile.txt");
}
This also applies when reading a file.