I’m sharing my gist of ServiceHandler with the new post Android Marshmallow (API 21) HttpURLConnection
Easyrec is an open source recommender engine which can be trained and customized to provide personalized recommendations using REStful Web Service.
Easyrec exposes its functionality through REST API which provides several interaction types:
- other users also viewed
- other users also bought
- items rated good by other users
- recommendations for user
- related items
- action history for user
- most viewed items
- most bought items
- most rated items
- best rated items
- worst rated items
The list of recommendations is returned in XML and JSON notation to be further processed by your web application.
Easyrec API can be accessed from its main website http://easyrec.org/ or could be installed alongside with the web application on your own server. Easyrec require at least Java 1.5 and MySQL server for its functionality.
Download easyrect from: http://easyrec.org/recommendation-engine
When I was studying in the university (more than 10 years ago), I learn how to build and embed Java Applets on web pages using Java 1.0 (after that Java 1.2), the functionality is quite limited since there’s no default 3D support in Java yet. Compared to Flash (then Flash 3.0 during that time), Java Applet is more suitable for math and scientific application, generating graphs and kaleidoscope base on mathematical formula, and everything.
Heck, Netscape Navigator still rules the day during that time. But what about now? With the technology explosion, does anyone here still use Java Applets?
Mobile application developers may have realize that one of the best (and recommended) way to distribute their JavaME/J2ME application is by hosting it on a website. This makes it easier for potential users to navigate and download the .jad or .jar files from their phone browsers and to execute it directly.
However, some web servers are not configured to handle .jar / .jad file requests, eventually leading to failed install response received by the mobile users.
To remedy this, .jad / .jar files need to be associated with the correct MIME type. In Apache, you can do this by creating ‘.htaccess’ file in your web directory, and inserting these lines :
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive .jar
Afterwards, safe the file. The web server should behave accordingly when requests are made to either of these files. For other web servers, please refer to their respective manual or online-help on how to change document MIME type.