I'm looking for a full example using the glib dbus support suggested by Freedesktop.org here (http://www.freedesktop.org/wiki/Software/DBusBindings/), and dbus-binding-tool.
I looked here, https://developer.gnome.org/gio/2.26/GDBusServer.html, but this isn't using a server header file generated by dbus-binding-tool and also looked here, http://dbus.freedesktop.org/doc/dbus-tutorial.html#glib-server, but this tutorial is using the deprecated dbus-glib interface...
It looks like you need gdbus-codegen, for which there is a full tutorial in the man page.
Related
How can I make a plugin like mosquitto-auth-plug for authorization, or one for storing message payloads or other usages?
Should I write it in C or can I use python?
Any plugin for mosquitto is going to have to be written in something that can be compiled to a native shared library that can be loaded by mosquitto. This would normally mean C or C++
There are hooks in place for the authentication plugin, but none for message storage or anything else so that is unlikely to work without modifying mosquitto directly.
You should examine the code for the auth-plugin and for mosquitto for details.
You could look into C (works for me)
https://github.com/hadleyrich/mosquitto-auth-plugin-http
and In Python
(not tested , but working for other folks)
https://github.com/mbachry/mosquitto_pyauth
I'm new to openstack, I have just installed and configured Swift using vmware. Followed this instruction: http://docs.openstack.org/developer/swift/development_saio.html
Right now SAIO uses tempauth to authenticate, I am able to access the cloud using cURL and swift commands. But I'm trying to use jclouds to do the job instead: https://jclouds.apache.org/guides/openstack/#install
However, I can't make the tempauth work, some said its not supported.
I tried to find guides to install keystone auth instead, but to no avail; I already messed up the configuration of SAIO a few times.
Is there any good guide that follows the installation of SAIO?
Do yourself a favour and skip SAIO, use DevStack instead.
Follow the instructions in this blog post
http://blog.phymata.com/2014/04/18/devstack-icehouse-on-the-rackspace-cloud/
It works just as well in a VMWare VM as in a Rackspace Cloud Server. If you really only want Swift+Keystone, delete all of the ENABLED_SERVICES lines except for
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,horizon
I left Horizon in there as it can be helpful to have the dashboard handy.
You'll also want to delete the IMAGE_URLS lines. They won't be used.
I wrote a driver on linux, now i want to port it to freeRTOS, here i am getting trouble.
such as file handling API like fseek, opendir, readdir, fopen, fwrite, ftell how to find alternate in freeRTOS.
Take a look at this: FreeRTOS+IO.
But as you are referring to opendir(), readdir, etc, i suppose you need a File System library, and if it's the case, this is an excellent one : FatFs.
Should not be difficult to make FatFs work with FreeRTOS+IO.
viTables only seems to work with python 2.5. I have downloaded HDFView, but when I try to open a table I created following this tutorial, I get the following error message:
Failed to open file C:\tutorial.h5
java.io.IOException: Unsupported fileformat - C:\tutorial.h5
Any ideas for getting HDFView to work?
Is there something I need to do when I'm using pyTables from python to make the format more generic?
Any other good HDF viewers?
Btw, I've just discovered PyTables, and I'm really excited about it.
ViTables works for me with python 2.6 on windows. It is supposed also to work with 2.7.
However the version on the official site did not work for me and crashed. In a mailinglist posting I found the link to the berlios ftp server where I got a version that works like a charm.
Have you seen ViTables?
http://vitables.berlios.de/
I'd like to utilize an etherpad interface on my website. Two questions:
1) is there any site with an etherpad api that I could just call remotely?
2) if not, how much trouble is it to install scala and have the two run concurrently?
Thanks
Check out http://piratepad.net and http://ietherpad.com
And you can embed those etherpad instances using a simple iframe as suggested here: http://etherpad.com/ep/blog/posts/embedding-etherpad
There doesn't seem to be a proper API yet for more robust interactions.
The original etherpad.com has now gone away but at that link there is a list of clones.
The instructions for embedding etherpads seems to have gone away with the rest of etherpad.com but I believe it's as simple as this:
<div id="ep">
<iframe src="http://etherpad.com/foo?fullScreen=1"></iframe>
</div>
Replace "etherpad.com" with whatever clone you're using, "foo" with the name of your pad, and you may or may not want to change that fullScreen=1 to fullScreen=0 (or leave it off altogether).
Installing scala might mean a few things:
Installing the SDK (i.e. scalac)
Installing the runtime
Assuming you mean the runtime, scala runs entirely on the Java Virtual Machine (JVM) so assuming you have 1.5+ JVM installed, you can run scala programs on it easily (Scala just compiles down to bytecode, after all). All a scala program requires is a few JARs on the classpath (scala-library and scala-compiler)
Now there is a better solution Etherpad Lite it is easily installable and embedable. See http://etherpad.org