Issues in running R from Perl - r

I want to include Statistics::R for my program.
The statement I am including is:
use Statistics::R;
Is there something wrong with it?
I tried to run it with just this statement included, the error i got was
Can't locate Statistics/R.pm in #INC(#INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at rperl.pl line 2
By the way I am using perl(v5.14.2) on ubuntu,using remote access to a linux server.

The solution was to install the module as non-root user.
The details are provided in the following link:
http://users.soe.ucsc.edu/~you/notes/perl-module-install.html
After doing the things described here, a couple of small steps are to be completed which are mentioned in the following link:
http://perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations
This worked for me! I hope it would be of help to others too!

Related

Circularity detected when running (vega:load-vega-examples)

When I load the vega-lite data sets using
(vega:load-vega-examples)
I get the following error:
Could not REQUIRE CL-DATE-TIME-PARSER: circularity detected. Please check your configuration
However, the examples appear to have loaded.
Also, before I installed cl-date-time-parser in quicklisp, I was getting an error message similar to:
Do not know how to REQUIRE CL-DATE-TIME-PARSER
Does anyone know how to get rid of these errors?
Many thanks!
The IMDB example requires cl-date-time-parser. I suspect that problem is that (require ...) only works when the library is in a location known to ASDF. In a new installation, this may not be the case. Now reported as issue #19.
Try loading the library with quicklisp and then rerunning load-vega-examples.

Running into issues with Ubuntu geth >> Error: account unlock with HTTP access is forbidden

I am using Ubuntu 18.04-3 and when executing the command >
personal.unlockAccount(web3.eth.accounts[0],null)
I am getting the following error,
enter image description here
I tried some of the suggestions here (enter link description here)
and the suggestions (here) for the internal/ethapi/api.go
I included in the file
--allow-insecure-unlock (//I have add as in the suggestions but does not indicate where and how to place it//)
Appreciate your time in advance
You have places --allow-insecure-unlock at the wrong place. It should be when starting geth instant.
Example:
$ geth {--rpc etc your other flags} --allow-insecure-unlock

Neo4j spatial server plugin fails on withinDistance and closest java.lang.NoClassDefFoundError

I know that the plugin is being loaded properly, as other methods work such as spatial.procedures and spatial.addNode etc.
The error results after a call like this:
CALL spatial.withinDistance('profile_geo', [43.524, 96.7341], 500)
and the error that results is this:
Failed to invoke procedure `spatial.withinDistance`: Caused by: java.lang.NoClassDefFoundError: org/neo4j/cypher/internal/compiler/v3_0/commands/expressions/GeographicPoint
The same error appears when trying to use the closest function as well. Any help would be appreciated.
It looks that you are missing required Jar for GeographicalPoint class.
Please make sure you have this class in your Jars. I know this class exists in neo4j-cypher-compiler-3.0-3.0.3.jar but it is not going to work for you as it is residing in different namespace. If you will not be able to pinpoint the corresponding Jar in your environment please have a look at Maven repository and try to find it there.
short answer: upgrade to 3.0.3 (both neo4j and plugin)
long answer:
I ran into the exact same issue today. I was running version 3.0.2 with server plugin version 3.0.2 and ran the cypher query:
CALL spatial.withinDistance("spatial_records",{lon:20.0,lat:50.0},100000000)
Joran mentioned in the comments above that the REST API was a working alternative. So I tried that out and found he was indeed correct.
I tested this using httpie, with the following command:
cat tmp.json | http :7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance
where tmp.json looks like:
{"layer" : "spatial_records","pointX" :3.9706,"pointY" : 46.7907,"distanceInKm" :10000000000}
While this works, using CYPHER with stored procedures would be nice. So upon further investigation, I noticed that a recent commit contained the following changes:
- <neo4j.version>3.0.1</neo4j.version>
+ <neo4j.version>3.0.3</neo4j.version>
...
-import org.neo4j.cypher.internal.compiler.v3_0.commands.expressions.GeographicPoint;
+import org.neo4j.cypher.internal.compiler.v3_0.GeographicPoint;
So I ended up downloading version 3.0.3 of both neo4j and the spatial plugin. Whatever the issue was before, seems to be fixed in this version. The call to the stored procedure now works as expected!

Configuring Nexus 3 (3.0m7) to run as a Linux Service

Can anyone help me translate the instructions for setting this up as a Linux Service (at http://books.sonatype.com/nexus-book/3.0/reference/install.html#service-linux) into English?
After following them as best I could, I get the following when starting the service:
su: user / does not exist
Here are the parts of the instructions which were unclear:
In the bin/nexus script remove the line below.
INSTALL4J_JAVA_PREFIX="su - $run_as_user -c"
The line in the file is actually
INSTALL4J_JAVA_PREFIX=""
but ok, I can remove that. However, the next instruction is:
Replace the entire link with this line:
exec su - $run_as_user "$prg_dir/$progname" $#
What is meant by "the entire link"? The thing I removed above? That was the first line in the file - therefore the three variables above have not yet been set.... and is probably the reason the script currently fails.
I'll get the book fixed, it shouldn't have this in it anymore.
Download the 3.0 release, this was just a bug in 3.0m7, and it has been fixed. You don't need to make these changes.
https://support.sonatype.com/hc/en-us/articles/217965118
The only things you need to do is edit $NEXUS_HOME/bin/nexus.rc, uncomment the run_as_user line, and set the value for it appropriately. Then just symlink $NEXUS_HOME/bin/nexus to /etc/init.d/nexus, and after that run chkconfig or update-rc.d depending on your Linux version.

Error: Cannot find module 'react/lib/invariant'

Not sure if any one of you have ever faced this issue. I have tried checking various sources online but nothing solved my issue.
I am following a tutorial on how to create a Meteor+ionic+react application from this link
https://medium.com/#SamCorcos/meteor-react-ionic-mobile-app-part-1-the-basic-template-9355ebf3397f#.qtl4fl5st
when i add the line
ReactRouter=require("react-router");
inside app.browserify.js and run the application, i get the following error.
Error: Cannot find module 'react/lib/invariant'
I am using following versions
react 0.14.3
cosmos:browserify 0.9.3
meteorhacks:npm 1.5.0
npm-container 1.2.0+
I am surely missing something thing here. Can anyone help.
Thanks,
Sri TejN
I found the solution myself. Just install the ReactRouter that is present in the meteor packages and do not include the line “ReactRouter = require(“react-router”);” in the file “ app.browserify.js”. But you can use the variable ReactRouter anywhere else in the code.
Just to confirm, in my case the solution also worked and added ReactRouter package:
meteor add reactrouter:react-router
Then commenting out line:
//ReactRouter = require("react-router");
In file lib/app.browserify.js and running Meteor again fixed the problem.
Thanks Sri Tej Narala.

Resources