I am looking for a solution which will allow me to call get and set SNMP commands for SNMPv3 in Ruby. From what I have found, there only appears to be the snmplib, which only supports versions 1 and 2c. Does anyone know of an alternative gem or library that I can use?
If you're using JRuby, you could use SNMP4J:
http://www.snmp4j.org/
If you're using MRI and have the net-snmp library installed, this might work (haven't tried it):
https://github.com/mixtli/net-snmp
Related
I'm working on building a GUI for my checkers implementation. I'm utilizing a GUI framework that only works with Ruby 1.8, yet my game engine, which I have packaged as a gem, only works with Ruby 1.9.
I can't change the code for the GUI framework and reworking my game engine to make it compatible with 1.8 is undesirable, to say the least.
I'm using RVM though, and it looks like you can write RVM scripts to change Ruby versions on the fly.
Does anyone have any experience with that or what the script might look like?
You could run it in two processes. Give the GUI a 1.8 process and talk to it via a shared db or an API on the other side. That's how I'd do it. The good part about that is you can have on online version of your game as well because other clients will be able to talk to it as well.
You can't run one app with two versions of Ruby. How do you imagine this?
RVM has an ability to automatically change current ruby when you cd into a directory. Just create in that directory a file called .rvmrc with content like
rvm use 1.8.7
How can I use the QtConcurrent Qt module in Ruby?
I'm developing a small app that uses Qt (through the qtbindings binary gem) in Windows (Ruby 1.9.3 mingw-32) but I couldn't find a way to use threads (or use simple concurrent methods calls).
Any help and any example would be very helpful.
Thanks in advance.
I have a feeling that its no different than PyQt4, where QtConcurrent is not available because they can't easily wrap it. If its not being built with your Ruby bindings, its probably not available. You would need to stick to QThread and its siblings.
I want to run in the browser a ruby application using ncurses.
To do that, I can use JRuby; but what do I replace ncurses with ?
I am thinking of running JRuby as an applet as decribed here. I have also found some Jave
code 1 that does ncurses-like interface but I do not know how do I integrate it with JRuby.
I think it will be very hard to get something similar to ncurses in JRuby due to this particular issue that's been plaguing Java for ages. Please post in this thread if you'd like to see this fixed in the future.
http://bugs.sun.com/bugdatabase/view%5Fbug.do?bug%5Fid=6351276
I've been using Win32OLE extensively with MRI to automate MS Office. It works great, but I'm thinking of switching to JRuby to simplify installing apps on users' systems.
With Win32OLE officially in JRuby 1.6, how well does it work? Should I be able to port my MRI-based app straight to JRuby without modification? Any hitches I should look out for?
Thanks.
We do have a win32ole extension built into JRuby. In fact, we also sport the only 64-bit version.
If you do find a bug or missing method or feature, please file an issue at http://bugs.jruby.org/ .
Does anyone know if there is a full XenServer API implementation in ruby floating around out there? I found this: http://github.com/rubiojr/pangea/tree/master but its read only and not fully built out.
Libvirt is an abstraction layer that can work with different kinds of VMs, like xen, kvm, virtualbox, ...
http://libvirt.org/
It has ruby bindings
http://libvirt.org/ruby/
I also found using libvirt itself to be an enormous gain.
You can find unofficial ruby bindings for XenAPI here.
N.B: It only supports http/network based sessions only. Support for unix sockets is not included, which shouldn't be an issue as ruby isn't part of the XenServer distribution.