I need to convert between UTF-8, UTF-16 and UTF-32 for different API’s/modules and since I know have the option to use C++11 am looking at the new string types. It looks like I can use string, u16string and u32string for UTF-8, UTF-16 and UTF-32. I also found codecvt_utf8 and codecvt_utf16 which look to…
Bash: multiple redirection
Early in a script, I see this: And later: My understanding of this looks something like this: Create fd 3 Redirect fd 3 output to stderr (Upon app execution) redirect stdout to fd 3, then redirect stderr to stdout Isn’t that some kind of circular madness? 3>stderr>stdout>3>etc? I’m esp…
Error installing r packages (Linux Mint 17.1) “error: C preprocessor “g++ -E” fails sanity check”
I have transfered to a Linux system (previous OSX user) and I am trying to get my R packages installed. The first issue I ran across was: but I got around that by launching R using: If someone has a more permanent solution to using ‘sudo’ (because I will be using RStudio in the future), I would be…
How are all files and directories created as root:root in smb mount ( RHEL)? [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 …
Amazon AWS EC2 Key Pair Denied
I have scoured the Internet for answers and had little luck. All I have been trying to do is connect to my AWS EC2 Linux server via SSH. The.pem file is on my computer, but it has not been accepted. I have tried several FTP clients, including FileZilla and the native Terminal on my Mac. In FileZilla, my error…
Cannot launch R help document from terminal R
My working platform is: I have installed vim-r-plugin for editing and running R programs. Everything looks fine but launch some R help document such as: Does somebody know what’s the reason and how to fix it? Answer If you type getOption(“help_type”) it will be either “html” or &…
install latest version of R 3.2.1 (World-Famous Astronaut) on Linux Mint 17.1 (MATE)
I just switched from Mac to Linux, so while I have a basic understanding of Linux structure, there are still some things Im trying to clear up. This is one of them. I have tried multiple ways (referencing multiple forum posts) to install the latest version of R (3.2.1 “World-Famous Astronaut”) on …
Unix /Linux – several applications using the same environment variables but different values?
I am looking for some advice on the following below: I have several applications and tools on a server that requires the environment to be set up with variables etc for them to run. Many of these applications use the same environment variables to run but with different values. Some of these applications have …
pthread_getspecific(key) get not NULL result, but not call pthread_setspecific(key), why?
.h file : .cc file Why is if ( client != NULL ) evaluating as true when first called in this function? I thought if I haven’t-yet called pthread_setspecific for the current thread, NULL would be returned from pthread_getspecific and therefore the result would be false ? What am I missing? Answer pthread…
readdir function is not reading the whole directory on linux system
On my hosting provider i have a directory called hosts that has a structure like this the content of hosts.php file is this when i run hosts.php i get this output so php doesn’t show ma_women_com.php ! if i removed this useless line from hosts.php the output goes fine and it can read ma_women_com.php in…