Code Monkey home page Code Monkey logo

octave-daemon's Issues

outputting plots with octave-daemon

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.

calling .m file thorugh php

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>

RuntimeException' with message 'Failed starting controllers! Check the system logs for more information.' in /usr/bin/octave-daemon:32 Stack trace:

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!

array size zero

the following returns zero array size

$i = self::$octave->getMatrix("eye(3)");
$octave_sum = sizeof($i);

Best practice for 30-40 concurrent commands

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?

daemon hangs

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

PHP location error

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.

Composer.json

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.

daemon uncaught exception

starting the daemon throws an uncaught exception:

root@vagrant-ubuntu-trusty-64:# sudo octave-daemon -d -c /etc/octave-daemon.conf&
[1] 11669
root@vagrant-ubuntu-trusty-64:
# PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Configuration error: Invalid group name in run_as (nobody)' in /usr/bin/octave-daemon:32
Stack trace:
#0 {main}
thrown in /usr/bin/octave-daemon on line 32

PHP Fatal error:can you help me?

[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

from php class

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?

calling php code through localhost

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. :)

ERROR on service octave-daemon start. Ubuntu 12.04, octave-daemon v1.0.1 unzipped and successfully installed.

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.

matrix access

is this the right way to access a matrix element? i get an error:

$result = $octave->getMatrix("eye(3)");
$octave_sum = $result[0][0];

Octave structures

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.