gutza / octave-daemon Goto Github PK
View Code? Open in Web Editor NEWThe PHP network daemon for GNU Octave
Home Page: http://projects.moongate.ro/octave-daemon/
License: GNU Affero General Public License v3.0
The PHP network daemon for GNU Octave
Home Page: http://projects.moongate.ro/octave-daemon/
License: GNU Affero General Public License v3.0
starting the daemon throws an uncaught exception:
root@vagrant-ubuntu-trusty-64:# sudo octave-daemon -d -c /etc/octave-daemon.conf&# PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Configuration error: Invalid group name in run_as (nobody)' in /usr/bin/octave-daemon:32
[1] 11669
root@vagrant-ubuntu-trusty-64:
Stack trace:
#0 {main}
thrown in /usr/bin/octave-daemon on line 32
My php script runs an octave script through the daemon. works well.
I added a urlread webservice call inside the octave script (just returns hello world).
s=urlread("localhost:8000/hello");
the browser hangs until I kill the daemon.
any clues why?
Thanks Gutza
Hi Gutza,
Is there an example around handling structures returned from Octave?
for example,
function x = fn()
x.a = 1;
x.b = [1, 2; 3, 4];
x.c = "string";
endfunction
thanks
Can you please create a new release, for example 1.1.0 or something?
Notice: Undefined offset: 0 in /opt/lampp/htdocs/vendor/gutza/octave-daemon/include/classes/Octave_controller.php on line 317
Fatal error: Maximum execution time of 100 seconds exceeded in /opt/lampp/htdocs/vendor/gutza/octave-daemon/include/classes/Octave_controller.php on line 369
this error is obtained when we try to run a php file through localhost (xampp)
help!!!!reply asap. :)
Can you add a composer.json
file to this project and than add it to packagist.org so library can be installed via composer?
If composer is black box for you I can prepare a sample file if you need.
When I am starting the service from the terminal with:
service octave-daemon start
the errors I am facing are
/etc/init.d/octave-daemon: line 14: /etc/rc.d/init.d/functions: No such file or directory
Starting GNU Octave daemon (octave-daemon): /etc/init.d/octave-daemon: line 29: daemon: command not found
The first error occurring at line 14 is related to the call " source /etc/rc.d/init.d/functions ". Such directory has not been created during the installation.
the following returns zero array size
$i = self::$octave->getMatrix("eye(3)");
$octave_sum = sizeof($i);
Has anyone tested this library with Octave 4?
I'm receiving a strange error at https://github.com/Gutza/octave-daemon/blob/master/include/classes/Octave_controller.php#L315
with message
[ErrorException]
Undefined offset: 0
I'm new to github, so tell me if this isn't the right spot for this post. I am using the octave-daemon in a web thing right now. I've been trying to grind through the different classes in http://projects.moongate.ro/octave-daemon/ to figure out if there is a way to use a simple function like ->run('plot(1:10)') or ->query('plot(1:10)') to output a plot for some diagnostics im running, and possibly just output the files onto a window. Wondering if this is accounted for.
Can you please create a web hook for Packagist, so the github will automatically tell when the new release?
The manual for doing this is here https://packagist.org/about#how-to-update-packages
Check section "GitHub Service Hook".
Hi,
I am running a vagrant box.
the following works fine:
nohup octave-daemon -d -c /etc/octave-daemon.conf&
from the quick start examples, the following works great in /var/www/html/test.php without even starting the daemon:
require "Octave_lib.php";
$octave=new Octave(false);
echo "Result=".$octave->query("1+2");
however, the following fails:
$octave=new Octave("127.0.0.1);
the same code fails when placed in a php class (symfony Controller). says Command did not run successfully on line "new Octave"
what are the fixes?
It looks like the max_instances configuration value is ignored and octave-daemon always launches 3 children.
is this the right way to access a matrix element? i get an error:
$result = $octave->getMatrix("eye(3)");
$octave_sum = $result[0][0];
I am having an experiment, I need to run the same command like 30 times at the same time (coming in via multiple requests). How this daemon will be able to handle this? Should I configure 30 child instances in the config file for this? What if I send in more requests like 40 requests while the max child is 30?
Installing on Centos 6.2 gives me the following error:
-bash: ./install: /usr/lib/php: bad interpreter: Permission denied
Changing the first line in the install script to #!/usr/local/bin/php let me install the daemon.
However, running the service has the same error.:
service octave-daemon start
Starting GNU Octave daemon (octave-daemon): /bin/bash: /usr/bin/octave-daemon: /usr/bin/php: bad interpreter: No such file or directory
There should really be an option to select WHERE your PHP installation is located.
I'm trying to use octave daemon (https://github.com/Gutza/octave-daemon) with php on my CentOS. I downloaded and run the install. The daemon was installed to usr/bin. When I want to start the daemon service, it complain error posix missing. I solved the error by doing yum install php-process. I restarted my apache and tried again. Now, I get error
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Failed starting controllers! Check the system logs for more information.' in /usr/bin/octave-daemon:32 Stack trace:
0 {main}
Please advice what I can do. It's urgent. Thanks!
i have a .m file which contains the octave code.i want to run this .m file through php.
how shld i call this file?? exec() function doesnt help>
[root@VM_42_179_centos ~]# cd octave-daemon-1.0.1/
[root@VM_42_179_centos octave-daemon-1.0.1]# cd install
[root@VM_42_179_centos install]# sudo php install
Octave daemon now available in /usr/bin/octave-daemon
Installation successful. You can start the daemon with service octave-daemon start
[root@VM_42_179_centos install]# octave-daemon
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Octave-daemon requires POSIX functions; please see http://www.php.net/manual/en/book.posix.php' in /usr/bin/octave-daemon:32
Stack trace:
#0 {main}
thrown in /usr/bin/octave-daemon on line 32
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.