When I try to open a file in Rstudio, it shows me some chinese characters - rstudio

I was trying to open a file which is sended from my teac. When try to open with Rstudio, it gives me a page full of chinese characters. Why it could be? I have never took this error before for 4 years of using.
Thanks for now ~
I thought it'd be coz of new version of R, but I did update. So I don't know why.

Related

Problem with integrated terminal in PhpStorm

I'm learning Laravel, and also I started learning it with(for me) new editor - PhpStorm. I want to edit my terminal(not colors, fonts, etc.). I integrated the gitbash instead of factory terminal that comes with PhpStorm.
The problem is that I'm having some'? ' with a number, usually '32m' before the statements in my terminal. To explain it better, here's a screenshot:
And for example, everyone that I've seen on google, using PhpStorm have 'normal' editor without those symbols and numbers before each line in the terminal.
My terminal atm :
Tried searching JetBrains FAQ, googling and ofc here on StackOverflow, but no luck for me.
What would I like my terminal to look like https://i.stack.imgur.com/oh3Vv.jpg
What it's missing is the ANSI support for color codes. As a result you see those strange characters as these aren't parsed and therefore displayed as output.
Maybe you could try with a little utility like ansicon. For further details take a look at this article (outdated but might work anyway)

Applescript not working for pages on new computer

Running a brand new mac (OS 10.10.4) with Pages 5.5.3
I have always used Word for typing, but i'm going to try to get by with pages for now.
I often have to convert docs to PDF in batch and have always relied on applescript - not only can I not create a script to do that with pages, it seems Pages will not understand anything beyond 'open'/'activate':
tell application "Pages"
activate
set myDoc to front document
end tell
Returns:
error: "Pages got an error: Can't get document 1."
I have tried numerous other very simple scripts posted by others (who claim to use them successfully) to no avail. Is this a known issue? Am I missing something horribly simple?
In case anyone runs into this same problem, I updated OS X software (which I hadn't done since I bought the computer) and it now works.
#CRGreen above points out that it works for him with 10.10.4, mine is at 10.10.5 and works fine (don't think it's the version that was the issue, but perhaps some app support that didn't come preinstalled? who knows)
Also as a sidenote for anyone interested, the batch convert to PDF that works for pages is
open myFile
export document 1 to pdfFile as PDF
close document 1 saving no
If anyone can shed some light as to what was actually going on & post as an answer it'd be very welcome.

why is there an unexpected unicode control character in windows 8.1 filepath

I'm coding a md5 program . The program works well for the string ,so i went to md5 file test.Then everything went beyond my expectation. I copyed the the file path with these steps:
select the file and right click
open the property tab the switch to the security tab
copy the filepath to my code ,edit the backslash stuff
But the program said that it couldn't find the file .When i moved the file to the current workspace and manually type the filename ,the program sometimes worked while complained for the file not found . It worked ,i don't why.It didn't work, i don't know why .
Confused as i was,i tried to figure out what's wrong and that wasted my day.The i asked someone for help .I sent the source file to my friend .He opened it with vim ,found some suspicious character in the filepath. The suspicious character is :<202a> .After deleted the <202a>, my program worked .Holy crap!
I asked him to get the filepath as i did. But the program still worked .This time i felt like a dumbass. So i get a filepath on my machine as the instruction i just said ,my program reported file not found as before. After some futile trial ,i can see there is an invisible bar at the begin of the path . So that invisible bar was the trouble maker.
So there come the questions:
why there is an unexpected unicode contol character at te begin of path?
why win 8.1 has this issue while win7 doesn't?
how can i disable the nauseous feature on win8.1?
Thank you very much.

Always show file browser in TextMate 2

I've been working for a while with TextMate 2 and there's something I've never been able to solve.
Is it possible to always show the file browser at launch?
I know you can show it with ctrl+alt+cmd+D but I'd like it to always show at launch without having to make this shortcut (as I launch/quit TextMate many times in a day).
I'd be really grateful if anyone had a solution for this problem.
Thanks very much
5 months ago, I contacted Michael Sheets from MacroMates Support and here's his answer:
The file browser is shown when directories are opened or a favorite is open that is a directory. It is not shown when a single file is opened. If you want the file browser shown you should either open the directory itself or take advantage of the Favorite system.
I'm interested to. Did you already find out how to always show the file manager? Maybe it's possible through .tm_properties file?

Files won't upload in PGRFileManager when using a mac

Hi we have been using PGRFileManager for a while with ckeditor but it has just come to light that when using a mac users can't upload files, does anyone know what could be the cause?
Users can get the file browser to appear and select a file but when they click the green arrow to upload the file just disappears.
Does anyone have any knowledge of this or how to fix it.
I was thinking about giving something like the kc finder a go but as users are used to the pgr file manager thought that I should give it a bash to fix it.
I've read around and I'm using a session var to set the location which has worked well.
And it's an absolute location so that's fine. (One of the solutions was to make sure that this was the case)
Has anyone got any further ideas?
Thanks
Richard

Resources