Scilab - Atoms - how to use it? - scilab

I am new to Scilab. I want to cluster a dataset. I installed the external module 'CLUSTER' & also loaded it. Unfortunately, I don't know how to use it. I can find the description of the module but I could not find how to call it and use it.
Could you please tell me how I can use the atoms module?

Its help can be entered by calling help for one of its functions, for instance
--> help CMeans
Then you can get the module's summary and navigate through its pages with the help path at the top of each page. There are runable examples in the pages.

Related

asterisk PAGI dynamic node interruptable

im developing dialplan using asterisk and PAGI (PHP asterisk gateway interface)
but i cant find a way to create node which can have dynamic number of annoucements depends on result from database.
I found a way to do this by adding annoucements in loop in method called executeAfterRun
but when Im trying to interrupt node by pressing anything it interrupts only current annoucement and going to playing next one.
I want this whole node to be interruptable not just current annoucement.
can anyone help me with this problem ?
thanks in advance for any help
best regards
You have create in your php code string like
announce1&announce2&announce3
using loop. After that you can use that string for Playback command, it will work like one large file.

gracenote c++ wrapper error: gnsdk_taste.h is missed

I'm trying to write simple app based on GNSDK, which will be using c++ wrapper. And I have error - after I including "gnsdk.hpp" compiler could not find gnsdk_taste.h. I was trying to find it in GNSDK folder, but could not. Could someone please help me to solve issue?
Remove gnsdk_taste.h from gnsdk.hpp. You are not going to use gnsdk_taste anyway as the corresponding lib is not included.

Frama-C: access to the cil/src/ext modules data and few others questions as well

first of all, i will explain what i would like to do here : given a C big programm, i would like to output a list of producers/consumers for a data and a list of calling/called-by functions of the function where this data is.
for doing this, i am thinking about using what computes some modules of frama-c, like dataflow.ml or callgraph.ml in my own plugin.
however, as i read the plugin developper doc, i can't manage to see how we can have access to the data of those modules.
is a "open.cyl_type" sufficient here in my own plugin?
moreover, here are my other questions :
i tried using by the way pdg plugin for my purposes but when i call it and it says "pdg graph computed", how can i access it?
is there any more documented thing about "impact" plugin than the official webpage, in depth, how it works fondamentally? (i have to say that i'm in like a pre-project phase, and that i installed frama-c with the apt-get on ubuntu and that i did not get an impact plugin working (i'll see by compiling the sources))
by the way, do you think i'm using the right method to get to my purposes?
Your question is quite unclear, and this answer is thus very generic. As mentioned in the developer documentation, there are two main classes of plugins: static plugins, compiled with the kernel and whose API is exposed in a module (usually of the same name of the plugin) in Db. Dynamic plugins, such as Semantic_callgraph register dynamically their entry points through the Dynamic module.
If you do make doc in Frama-C sources (I'm not sure that there is a corresponding package in Ubuntu) you can access documentation for the Db module in FRAMAC_SOURCE_DIR/doc/code/html/Db.html and the list of functions registered by dynamic plugins in FRAMAC_SOURCE_DIR/doc/code/dynamic_plugins/Dynamic_plugins.html.
I think that, following Virgile's advice, you should get the source code anyway because you will most of the time need to browse the code to find what you are looking for. Beside, you can have a look at the hello_word plug-in (in src/dummy/hello_world) to have an example of a very simple plug-in. You can also find some examples on my web site at https://anne.pacalet.fr/Notes/doku.php?id=notes:0061_frama_c_scripts to find out how to have access to some information in the AST.

JarOutputStream creating a 'bad' jar

http://pastebin.com/qrSCZw3y
I made that so I can create jars whenever I want by doing:
Builder jarBuilder = new Builder("jarname.jar");
jarBuilder.createNewFile();
But, whenever I do that, it creates a jar, and when I click on the jar, I get this message:
http://i.imgur.com/SvPZcZv.png
I want the generated jar to say something like "Hello world" or whatever I define.
Please help me, as I've searched all across the internet, but there were no video tutorials, and the documentations that I found online didn't help me much either.
Thank you,
I know how to create a .jar file, but I don't know how to make it have custom settings user defined from my jframe.

How to programmatically add new nodequeue?

I'm writing an install file for a custom module, that needs to create some new nodequeues. But a drupal and google search are so far turning up empty. Anyone know how to do this?
Drupal 6
The closet thing you come to a API function to save nodes is nodequeue_save, but all you really need to do, is to insert some data to the {nodequeue_queue} table. You can do it yourself with SQL or use the function, but the result will be the same.
You should remember to add the nodequeue module as a dependency in your module's info file and check if it's installed before running your stuff in hook_install.
Some API documentation might help you on the road? http://api.lullabot.com/file/contrib/nodequeue/nodequeue.module

Resources