Can we use Ruby gems in our Rhomobile (rhode) application? - rhodes

Is it possible to use Ruby gems (like authlogic, devise) in our Rhomobile application?

Yes. There are different ways you can include external libraries, including RubyGems and custom extensions. Please refer to the link below for information.
http://docs.rhomobile.com/rhodes/extensions

Related

setting up ZEND framework for php informix

Our organization builds web applications using PHP/Informix.
Currently we do not have any frameworks and use our own libraries and modules.
Now we set up a new apache web server so that we could install and configure a framework where all brand new web applications can be developed.
I was thinking of setting up the Zend Framework.(Will it go with informix backend?). I have googled and looked around for information , but I thought would get some expert opinions from the experts here.
I need some advice as how to go about from scratch the correct way.
Installing,configuring,setting up a version control and writing a script to test all basic MVC features.
Any suggestions and references would be helpful.
If you are using Informix Dynamic Server as your backend, then yes you can use Zend Framework's native database classes and adapter for communicating with your Informix server.
Your requirements will be that PHP must be compiled with PDO support (enabled by default since PHP 5.1). You then need to download, compile, and install the PDO_IBM Pecl package.
In order to successfully build the PDO_IBM extension, you must have the DB2 client (9.1+) installed on your system already. When you compile the extension module, you must tell it the path to where those files are installed.
More information on PDO_IBM, and Zend_Db_Adapter talks a little bit about the available adapters (including PDO_IBM).
There is also a Pecl package PDO_INFORMIX for talking to Informix servers, but Zend_Db does not support this package. You will only be able to use Zend_Db_Adapter with PDO_IBM to communicate with IDS servers.
Hope that helps.

Can trinidad (running as a daemon) cope with multiple versions of rails (and rack)?

Forgive me if this is a silly question!
But to run trinidad as a daemon does it need to be in the system gems?
Or can you install just the daemon extension to the system gems?
If the former is true is it still possible to run different versions of rails?
My thinking is that Trinidad requires JRuby-Rack which requires Rack and naturally each version of Rails uses a differen version of Rack!
To put this into context i am considering using bundler's --deployment option to manage different versions of gems for each application.
I ended up emailing David Calavera (the project lead) about this.
TL;DR Yes ya can!
Here's his response:
Yes, you can. Trinidad uses different runtimes for each application, what in other servers is called "workers", and so each application runs in its own isolated jruby runtime.
Check the wiki to know how to load your apps:
https://github.com/trinidad/trinidad/wiki/advanced-configuration

How do I create a build for a legacy system?

We are currently maintaining a Perl web application and we are slowly trying to bring it into the modern age.
We want to be able to build our application so that when a new developer comes along we can just give them a copy of the build and they can have a local copy of the application with minimal fuss.
Does anyone have any experience of creating a build for a legacy web application that could offer some pro tips?
Start by authoring an ordinary CPAN distribution, Perl modules go into lib etc. This is described in perlnewmod and the documents referenced in its section titled See also.
Use Module::Build as the build system. You extend it for the extra stuff you want to install, for example template files, this is described in the cookbook.

Multiple App Support Using APN on Rails Gem

I have a couple iPhone apps talking to one ruby on rails server. I have been using the apn_on_rails gem by mark bates/PRX (http://github.com/PRX/apn_on_rails) to offer push notifications to both apps.
The README specifies how to support one app, but I need to support two apps. Not only that, but I would like to send out these notifications in batches using the included rake task, as recommended in the README.
Any help would be most appreciated!
The new gem by prx now supports multiple apps.
https://github.com/PRX/apn_on_rails

Packaging/Deploying web applications in rpm format

Is it a good or a bad idea to package and deploy web applications in rpm format. Did anyone experiment with this. ?
Thank you
It is a good idea, especially if your application relies on specific packages/libraries. It is also relatively easy to do, since httpd config usually just scans /etc/http.d on RPM-based distributions.
It is also much easier for people to try out your application versus having to go through a usually multi-step install HOWTO's.
You can look at RedHat's webalizer RPM for a sample on how to package web apps as RPM's.