How do I setup lenskit recommender toolkit to run in a website? - java

I'm using lenskit recommender toolkit in Netbeans 7.4 to build a movie recommendation engine and now I'm finalizing it. So my question is how will I be able to integrate it into Web to build a Movie Recommendation Website?
I've already visit the GitHub getting started site for lenskit here and I've found the keyword web integration, click that but nothing helped me.
Sorry for the vague question but can you help me or give some advice on how to start? Thank you!

There are two main things you need to do:
Create a RecommenderEngine containing your model, configuration, etc. This will be a global object shared between all web requests. You can also build it in a separate program, serialize it to disk, and read it back in.
In each web request, use the createRecommender() method to get a Recommender for that request to use.
You'll need to handle data access; there is some documentation on that here: https://github.com/grouplens/lenskit/wiki/DataAccess
LensKit 2.0 was a bit weak on web integration; LensKit 2.1 makes it significantly easier. Look for a 2.1 milestone release very soon.

Related

Google App Engine backend service(module) with Java

I am a newbie in Google App Engine. I am trying to create a service (previously called "modules") in Eclipse in Java. I didn't find any resources which shows a step-by-step guide to create a service for app-engine in eclipse or any other IDE. What are the configuration files I need to take care of?
I have tried to find docs on cloud platform and everything says about having front-end. There are articles about micro-service architecture and migrate an existing app. But I don't have an existing app. Every tutorial talks about cloning an hello world app and deploying it which shows hello world with appspot url. But didn't found anything for the service(module).
The service I am trying to create does not have a front-end. It just runs in the background and watch the database and sends emails and notifications to the users based on database change. This is not an API and there isn't any request-response architecture.
How can I achieve this?
Any reference material or samples which can guide me to the right direction?
To set up an App Engine project you could have a look at Romin Irani tutorials which are very good (https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.qclm8gyd9).
There is also a free MOOC on Udacity which covers Endpoints with Eclipse: https://www.udacity.com/course/developing-scalable-apps-in-java--ud859
Both cover the building of Endpoints and querying them from front-ends, which I understand is not your goal. But the Udacity course covers Cron jobs and sending of emails (both in Lesson 5), which is what you would use for your needs. See also https://cloud.google.com/appengine/docs/java/config/cron#creating_a_cron_job which is very good Google documentation.
So in a nutshell: I would start by Romin's tutorial to understand Eclipse set-up and main concepts, then follow Udacity MOOC (especially part on Cron and mail) and then dive into the Google doc for the fine tuning of your development.
Last but not least, for sending emails, nowadays, Google advice to use Sengrid. But I think it worth following the Udacity lesson on sending email, even if you switch from native email sending to Sendgrid later on. Again, the doc is complete and clear.
Hope this helps!

Adding e-commerce functionality and blog feature in local java application

I am a student working on college project. A newbie in web development.
I developed a local java application for book management system for a bookstore using JSP/Servlets in eclipse and tomcat server. It has registration screen, login screen etc. I have included session management.
Now, I am asked to include following features in the same project.
Requirement-
Add: a) E-commerce functionality to it (Online Store, Shopping Kart, Payment Gateway). You may integrate the open source code available easily.
b) Add a blog feature (again you may integrate available codes)
I am not sure how we can include these features in local application.
Could you please help?
You've got 3 architectural options to choose from:
1. integrate an open source library into your own server
2. run an open source server next to your Tomcat
3. use a hosted solution and integrate with it
(3) I'm not sure what are the exercise restrictions, but #3 is the easiest by far. You can use Shopify, Magento or even Wix to easily create a store. Wix also have blogs available. The integration should be as easy as adding a link from your JSP to that hosted solution.
(2) If that's not acceptable, you can run use an open source e-commerce/blog solution that you will run next to your Tomcat. OpenCart is the leading solution here.
(1) Now, if you really really need to integrate the source code into your own Tomcat, you're left with small libraries and code fragments available online. I must admit I recommend none of them as the headache of integrating them is usually greater than the good of using them.

projects using Java and MarkLogic

I am new to MarkLogic Server and hence to have some hands on experience on MarkLogic I wished to get some help from the projects already developed using Java and MarkLogic.
On doing google search, I was unable to find suitable examples and hence I am looking forward to all of you.
Please help me.
Have a look at the developer site for resources. This page includes links to a number of java-based projects:
http://developer.marklogic.com/code
You can connect to MarkLogic over HTTP or using XCC, a library that is similar to JDBC. Here's the guide for XCC:
http://developer.marklogic.com/pubs/5.0/books/xcc.pdf
and the javadocs are here:
http://developer.marklogic.com/pubs/5.0/javadoc/index.html
Finally, there's a great archive of discussion from the developer list on MarkMail:
http://marklogic.markmail.org
Kelly
Kelly's answer is good. Drilling into the dev site a little, try some of the interactive tutorials at http://developer.marklogic.com/try/ninja/index
If you are interested in developing a REST-ful interface, try Corona at http://developer.marklogic.com/try/corona/index
For more sample applications, http://developer.marklogic.com/code has a good list: http://developer.marklogic.com/code/boing-boing might be a good one to start with, and its code is on github.

Simple blog written in java for GAE

My website is deployed on google app engine. Now, I'd like to create a new page/section in my web site to add a blog.
I'm wondering if you know a simple blog written in java that could be deployed on Google app engine? I'm not afraid to edit this code...
Many Thanks!
P.S : my subject is not a duplicate. The other solutions are for python and their assume that your deploy ONLY the blog on your google server.
B3log Solo is a very active open source blog system based on GAE/Java, while currently multi-languages are not so well except Chinese-Simple. If you are interested in it, please loop here. I am very welcomed to help with how to config to run it in GAE.

Need help starting with Amazon EC2 for a Java project

I have been googling all day for a good tutorial to help me start with a basic setup for a Java based web application on Amazon Web Services. The popular ones are outdated and the new ones are unclear. Here are a few doubts I have. Primarily I'm looking for a good "Getting started" tutorial.
What to choose to create my custom AMI and what is the best way to build it?
How to configure an EBS volume to store MySQL data and web application project files and how to deploy them from eclipse?
Is there any best practice for setting up an instance for persistence? Specifically, should I use an EBS-backed AMI or use an instance-store AMI and attach an EBS volume to store persistent data?
Please note that I'm looking for the most basic setup as I'm still in development stage but I should be able to scale the system without much trouble.
Any help would be appreciated.
i would suggest to try out grails, it is java (groovy) based, open source, and there are some tools to push your app to the cloud backed by amazon (check out http://www.cloudfoundry.com/ from spring) our to appengine.
http://grails.org

Categories