Why does CreateProcess give error 193 (%1 is not a valid Win32 app)
The most likely explanations for that error are: The file you are attempting to load is not an executable file. CreateProcess requires you to provide an executable file. If you wish to be able to open any file with its associated application then you need ShellExecute rather than CreateProcess. There is a problem loading one of the dependencies of the … Read more
How to avoid “Error in stripchart.default(x1, …) : invalid plotting method” error?
The issue is because plot() is looking for vectors, and you’re feeding it one data.frame and one vector. Below is an illustration of some of your options.
R multiple conditions in if statement
Read this thread R – boolean operators && and ||. Basically, the & is vectorized, i.e. it acts on each element of the comparison returning a logical array with the same dimension as the input. && is not, returning a single logical.
reading v 7.3 mat file in python
Try using h5py module
How to change the Jupyter start-up folder
Jupyter Notebook and JupyterLab < 3.0 For old Jupyter Notebook interface installed with notebook package and run as jupyter notebook (see the next section for the identical interface installed with nbclassic and run with jupyter nbclassic, and for JupyterLab): Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. Browse to the file location and open it in an Editor Search … Read more
Loading a file with more than one line of JSON into Pandas
From version 0.19.0 of Pandas you can use the lines parameter, like so:
How to interactively (visually) resolve conflicts in SourceTree / git
From SourceTree, click on Tools->Options. Then on the “General” tab, make sure to check the box to allow SourceTree to modify your Git config files. Then switch to the “Diff” tab. On the lower half, use the drop down to select the external program you want to use to do the diffs and merging. I’ve … Read more
Android Studio: Unable to obtain result of ‘adb version’
Found the solution thanks to @user3109468, Android Studio had the directory for the Android SDK wrong. In File>Project Structure make sure the directory for the SDK is correct; mine was C:\Users\[user]\AppData\Local\Android\sdk (Google had given sdk a capital “S” for some reason…)
Run R script from command line
If you want the output to print to the terminal it is best to use Rscript Note that when using R CMD BATCH a.R that instead of redirecting output to standard out and displaying on the terminal a new file called a.Rout will be created. One other thing to note about using Rscript is that it doesn’t … Read more