Trying to run r-code and show its output on a php.web page - shell-exec

Operating system: Mac OS Monterey,
MacBook Pro: 14 inches, chipset M1
My problem is the following. I´m using XAMPP 8.2.0 as a web server on OS Monterey. I´m trying to execute an r script through a php web page using shell_exec with Rcript.
The code is the following for running the php web page
And the code in RStudio is the following
datos <- rnorm(100, 0, 1)
png(filename = "h.png", width=500, height=500)
hist(datos)
dev.off()
write(toJSON(datos), file = "hist.JSON")
When I run the code within the php file, it doesn't work, no graph or file are created in the web page and the directory. Is there a solution for it ? Friends have do it in windows operating system without problems. However in Mac is not running.
Any guess ?

Related

Ubuntu genome session is broken by an linux application build by pyinstaller when it's running by desktop shortcut and closed

I have built an linux application by python, pyqt5, django and pyinstaller and I have added desktop shortcut to lunch from start menu. When I run the app on command line there is no problem. But when I run the app by desktop shortcut and exit it then the app close everything on genome session and log out.
The app is working well. Only the problem is happening when I exit the app.
My system is Ubuntu 18.04 and I keep latest upgraded.
The app use QWebEngineView on pyqt5.

Oracle SQL Developer (4.1.1) Mac OSX install issues (El Capitan)

I am attempting to install Oracle SQL Developer Version 4.1.1. onto my MacBook Pro after installing OS X El Capitan. After I download the application and attempt to click on the icon to install it, the application's loading prompt appears and the "loading" bar moves about 5% to the part where it says "registering extensions" right above the loading bar. The application then crashes (no crash report, or anything appears afterwards).
After searching online I cannot find anyone else having this issue.
On a possibly related note - I attempted to install Oracle SQL Developer 4.1.1 on my Parallels Windows 8.1 Virtual Machine and had the same issue. Not sure if this stems from the same reason that my OS X install fails.
Help? suggestions? Im running out of ideas.
Run in terminal:
/Applications/SQLDeveloper.app/Contents/MacOS/sqldeveloper.sh
to view errors.
My error was
mkdir: /Users/gs/.sqldeveloper/4.1.0: Permission denied"
Solution:
sudo mv ~/.sqldeveloper ~/sqldeveloper.old
Open the contents of your /Applications/SQLDeveloper.app
Edit /Contents/MacOS/sqldeveloper.sh
Add export JAVA_HOME pointing to your latest Java 1.8 version.
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
This helped me.
Full sqldeveloper.sh file for SQL Developer 4.1.1.
#!/bin/bash
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
here="${0%/*}"
cd "${here}"
cd ../Resources/sqldeveloper/sqldeveloper/bin
bash ./sqldeveloper >>/dev/null
I had a similar problem, I had to download the JDK for the install to work. http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
In my case it was an issue related to attached external monitor. I had moved my primary display to an external monitor and then disconnecting external displays allows me to start the app. Plugging the external display in and the application moves to the primary external monitor.
Got info after googling and read that posts from oracle community

Pycharm 4.5 CE crashes on launch on OS X 10.8.5

I upgraded from Pycharm 4.0 (which worked fine) to 4.5 community edition on Mac OS 10.8.5.
It crashes on launch after bouncing a bit in the dock.
The log files, console, all show nothing.
I'm running java 1.6.0_65, and have Python 2.7, Jython, PyPy via Macports.
Any ideas?
Make sure you've installed Apple's Java for OS X 2014-001 (at least).
Try to delete ~/Library/Java/Extensions, see the issue IDEA-137147.
Similar to the answer for IntelliJ IDEA, if you can't delete ~/Library/Java/Extensions, i.e., because you need it's contents (likely JAI jars) as part of other applications, you can create a file, pycharm.vmoptions in ~/Library/Preferences/PyCharm40 with contents:
-Djava.ext.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
to override OSX Java 6's default behavior of checking the user's ~/Library/Java/Extensions directory in addition to the system's extensions on application start up; but only for PyCharm.

Installing ColdFusion 11 on Mac OS X Yosemite

I have been trying to install ColdFusion 11 on Mac OS X 10.10, 64 bit (Yosemite), but it fails. When I open the terminal and type java -version it says:
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
I think that this means that I have the 1.7 jdk?
I download the latest install for Mac OS X yesterday from Adobe, and the first part of the install seems to install (running the app cases no errors), but it does not write anything to the httpd.conf file. I do add the index.cfm to the DirectoryIndex in the httpd.conf file . Then when I go to the admin URL it just downloads the index.cfm file. This is when I use the build in web server (port 8500).
When I try to install on the localhost (port 80) the CFIDE is not written to /Library/WebServer/Documents folder. This is where I want to install CF 11.
As anybody been able to install CF 11 to mac OS X Yosemite?
Thanks,
Johnny
I got this up and running last week. This article describes how I set up my MBP for development with CF 10:
http://iknowkungfoo.com/blog/index.cfm/2013/2/27/Installing-ColdFusion-10-on-OSX-108-Mountain-Lion
I uninstalled CF 10 and installed CF 11 in its place. Only had a few hiccups with the installation.
Make sure you choose the Tomcat / Apache setup. Use /private/etc/apache2 as the config folder. Once you hit the Admin URL, you may hit a NullPointerException error. If so, take a look at this article for how to fix it. CF will install CFIDE where it needs it, not where you want it. You can create a map to it in your vhosts.conf file.

Xcode 6.1 Yosemite Debug Area no output

I'm trying to run a working library on a different computer. Installed Xcode6.1 and updated from Mavericks to Yosemite OS and the Debug area opens and closes quickly with no output. No output in terminal either. Installed the latest command line tools. Working fine on my other machine, anyone else having this issue?
You have to activate manually, view->Debug Area->Activate Console or with the icons at the right

Resources