Sunspot Rails and Carrot2 - sunspot

I'm using the sunspot_rails gem for a rails application. Is there a way to integrate the cluster engine carrot2 into a rails app? Obviously carrot2 is part of sunspot as it is commented in the solr configs. But I'd like to know wheather someone has already integrate it.

Related

How to connect the back end and the front end and use the Discovery API in IBM cloud app services?

I am very new to using APIs so please excuse me. I am currently using a Python-Django App service from IBM cloud app services and the IBM Watson Discovery resouce. I have followed all the steps given here:
https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin
I have a machine that has docker and so the app got built successfully. However I am lost as to how I am supposed to get the front end ( which I am writing in bootstrap, javascript ) to connect to the backend and link the API.
EDIT
For example : I want my app to accept documents, feed them in Discovery, extract the keywords and sentiments and display them in the UI. How do I know what to access from the server side code and what to link where in the UI.
It is a very broad question but its a compulsory project I need to do and I am clueless. Pleaassee Help !
Before you try to integrate an API, you will need to be familiar with Python and Django. If that is not the case, then you really need to go through a series of tutorials.
Then before deploying to the cloud, you will be better off running your Django app locally on your laptop. Use pip to install the watson-developer-cloud pypi module and use the API documentation to build the python code in your Django application - https://www.ibm.com/watson/developercloud/discovery/api/v1/python.html?python#query
If none of this makes sense, then you need to brush up on your knowledge of Python, Pip, and Django.
When you have the app running on your machine, then you will be ready to package it up into either a docker image or cloud foundry container and deploy to the cloud.

Best Meteor Host and Full Details

Could any one tell me the detail for Meteor Deployment A-Z. I know about mupx and I've deployed client's Meteor apps to server. But i wanna know about A-Z detail for which server hosting is best for it and how to use it? And what about mongodb? We use local in development. What when we deploy it? What is the limit of it?
Meteor best hosting platform is HEROKU. And Best build package is Meteor Buildpack
And database usage you can integrate mLab in heroku dashboard. Many packages are available depending on your data usage.

How to deploy a scala play 2 app in OpenShift?

Been googling around for some time already.
I have some java, nodejs, php, etc. applications deployed in openshift, and I want to deploy a scala play2.3 app now. I'm starting a new project and I really want to write it in scala with play.
I need either a way to deploy a play 2.3 app in openshift, or another free hosting service that provides the same tools.
Thanks in advance!
Regards
as i know Heroku hosting service let you deploy scala-play application. also it seems that OpenShift also provides the same functionnality.
You may try following QuickStart: https://hub.openshift.com/quickstarts/198-play-framework

Very simple rest webservice on ruby on rails

I am trying to implement very-very simple webservice to practice with my iphone application, for example storing geolocation data and retrieving it from web. I started with Ruby on Rails, read some books and install it on my pc.
I install Ruby installer for Windows, then
gem update --system
gem source -a http://gemcutter.org
gem install rails
*then I install sqlite3*
gem install sqlite3-ruby
*and I even install webservice gem*
All working fine and I wrote some simple applications and can access it all on http://localhost:3000. Then I saw this video - http://www.youtube.com/watch?v=J6r_l3cAS9s in which you can see simple restful webservice. As I understand there are no any additional configuration to apps to be a simple webservice. I did exactly what show in this movie and install Fiddler and another rest test client to test this service. I cant get any xml from my app. Fiddler get me my html from http://localhost:3000/words and this rest client http://code.google.com/p/rest-client/ get my again my html page with content type text/html. How can I get XML to start working with this app as webservice?
I use Rails 3
yes, ruby on rails has RESTful service by default. My error was trying to access url http://localhost:3000/words in rest client. If I connect to http://localhost:3000/words.xml instead I immediately get access to my app via XML.
It shouldn't be difficult to get xml response. You might want to peak into TodoAPI and the client for this app as TodoAPIClient. The client uses HTTParty. You may get the response using Curl for terminal.

Rails 3.0.0 and FASTCGI Deployment Question

I currently have hostingrails.com. But following their tutorial on deploying rails application with FASTCGI is not quite working... So currently I'm hosting one of my apps with them using Thin.
Currently, my host says FASTCGI and Rails3 is not supported is this true?
Besides running mongrel,thin or passenger. What other options do I have with my host? They are telling me to develop in 2.3.8 if I want to use fastcgi, but I'm trying to move away from 2.3.8 and to rails 3.0.0.
Anyone have a better shared host? Basically what I am looking for is a shared host allowing me to host multiple rails 3.0.0 applications. I'm not expecting alot of usage but I'm looking to build like a portfolio of applications that I've made and would like them hosted on.
And with hosting rails i'm spending $7/month. I'm looking for something in this ball park or maybe a few more dollars. Thanks for your help.
I would recommend dreamhost. it is hands down the best shared host I have tried over the years, and they do support rails.
Not rails 3 though. I got it working using this http://blog.joeygeiger.com/2010/05/17/i-beat-dreamhost-how-to-really-get-rails-3-bundler-and-dreamhost-working/
Finally, there are things that you just can't do on a shared host. Keep in mind you can get a pretty decent vps (like linode 512) for 20$/mo