java.awt.HeadlessException error running maxent in "dismo" through rJava - error-handling

I am trying to run the maxent function in the dismo package on macOS through rJava and keep getting this error message.
Error in rJava::.jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", : java.awt.HeadlessException
Has anyone seen it before and know how to fix it? Thank you so much!

I am working as a dev for EcoCommons (https://app.ecocommons.org.au)
I was having this issue with building out our coding cloud, which is a jupyterhub k8s deployment (https://analysis-tools.app.ecocommons.org.au/coding-cloud). We are using Rstudio Server, but I would imagine the issue is similar perhaps.
RStudio sets the DISPLAY env variable. What you will need to do is unset this high up in your script.
sys.unsetenv('DISPLAY')

Related

Using vue.js with Phoenix failed so far

I follow this tutorial to learn to use vue.js in a Phoenix web app.
So far I made until I should get the word Vuechat in browser, but I didn't. Instead I got error message in iex console like below:
05 May 13:19:52 - info: compiling
05 May 13:19:54 - error: Resolving deps of web\static\js\app.js failed. Could not load module 'my-app.vue' from 'c:\Users\sadmin\Documents\Elixir\vuechat\web\static\js'. Possible solution: add 'my-app.vue' to package.json and `npm install`.
I thought I did everything according to that tutorial, but still not getting it works. I don't know much about using brunch or npm too, so please help
Location of my-app.vue is shows in below image
P.S. I'm working under Windows 10 os and using Visual Studio Code
Thanks.

Error while upgrading sensu puppet module: Invalid parameter prefetch on sensu_rabbitmq_config

I'm trying to upgrade the sensu-puppet module and im getting an error when i run puppet now: the error is:
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Invalid parameter prefetch on Sensurabbitmqconfig[<(hostname
is here, removed for this post on ask puppet)>] at
/etc/puppet/environments/staging/modules/sensu/manifests/rabbitmq/config.pp:123
Warning: Not using cache on failed catalog Error: Could not retrieve
catalog; skipping run
I have no idea what's going wrong or how to fix it. I looked in the pathway at the rabbitmq config and found this:
prefetch => $sensu::rabbitmq_prefetch
But I'm not sure what the issue is. Anyone know what might be causing this?
Where did you get the puppet module and what way?
Did you use puppet module install or a git pull?
Make sure sure that the parameter you want to use is in
modules/sensu/lib/puppet/provider/sensu_rabbitmq_config/json.rb
and also
modules/sensu/lib/puppet/type/sensu_rabbitmq_config.rb

Not able to get Multiple Node Webkit apps started: Broken pipe error

For some reason, I am not able to start the same node-webkit application more than once. If I try to, I get the following error:
[37518:0100/000000:ERROR:zygote_linux.cc(546)] write: Broken pipe
Has anyone been able to do this? Thanks in advance
Solved my problem. Added
"single-instance": false
to the package.json file. Now I am able to start several instances of the same app.

AIX 7.1 missing Xm/Xm.h header

I've written a sample c file which includes Xm/Xm.h. When compile it, I have the following error, "fatal error: Xm/Xm.h: No such file or directory"
I'm using AIX 7.1. What package do I need to install to fix this problem and where can I find it? I was not able to find anything online regarding this issue. Thank you.
I just got the same error message.
You need to install (with installp on Aix):
either openmotif (and openmotif-dev)
or lesstif2-dev (smaller then openmotif, and can be enough)
(as mentioned in this answer)

File upload issue in CI

I am using CI and facing a problem while uploading file.
It gives a message mentioned below.
==================================================
Severity: Warning
Message: escapeshellarg() has been disabled for security reasons
Filename: libraries/Upload.php
Line Number: 1066
In some answers, I found that it is a server issue and CI has nothing to do with it. Now, is there any way to upload file bypassing the escapeshellarg() or is there any libraries I can use that doesn't require escapeshellarg()?
Please help.
I'm not sure which specific version of CI you're using, but the latest version does a check for that function before using it.
Take a look at the code here:
$cmd = function_exists('escapeshellarg')
? 'file --brief --mime '.escapeshellarg($file['tmp_name']).' 2>&1'
: 'file --brief --mime '.$file['tmp_name'].' 2>&1';
I'd say either upgrade or update the code manually.