Wednesday, September 17, 2014

Testable code

Wednesday, May 23, 2012

Install Apache Solr 3.6 on Jelastic Cloud Tomcat 6 instance



1. Get Solr 3.6

a. Get Solr 3.6 from http://lucene.apache.org/solr/downloads.html

b. Uncompress the downloaded archive to any folder .. let's say a directory called Solr3_6
These are the contents of the downloaded archive


c. The files we are interested in are inside the example folder which contains an example Solr configuration.


d. We will set up this example configuration to run on a Tomcat 6 instance in Jelastic.

2. Setup Jelastic Environment

a. Get a trial Jelastic account if you do not have a Jelastic account already.

b. Click on Create Environment and Select Tomcat 6 as your Java Server. You can add a database , say MySQL , if you intend to index DB records.

c.Give the Environment a name and click apply.

d.Once the Environment has been created , click on Tomcat config


The webapps folder that you see corresponds to $Catalina.Home/webapps (/opt/tomcat/webapps)
The home folder corresponds to user.home (/opt/tomcat/temp)


e. Create a folder called solr under the webapps folder (1). This is where we will deploy Solr.

f. Create a folder called solr under the home folder (2). This will be Solr.Home with all the config files.

3. Upload Solr Files , Create Env entries, Deploy Solr

a. Click on the upload button under Deployment Manager. Choose solr.war file found inside example/webapps and upload it .


Before we deploy this to Tomcat , we need to do a bit more work.

b. Upload the contents of example/solr/conf to the solr folder created inside home (user.home/solr) .


c. We need to set the Solr.Home environment variable to point to user.home/solr . To do this make the following entry into the variables.conf file

-Dsolr.solr.home=/opt/tomcat/temp/solr





d. Now go back to deployment manager. Hovering the mouse over solr.war will give you the option to deploy or delete the file.



e. Click on Deploy and deploy to solr.



e. Restart tomcat if you need to.

f. Now you'll see solr.war deployed under Tomcat/solr . Click on the "open in browser" button to navigate to Solr.


Jelastic Java Hosting in the Cloud


Had been looking for a Java Hosting Service.
Found Jelastic . Their beta and trial is free .
Impressed with what I've seen so far.


Tuesday, April 3, 2012

Sunday, December 25, 2011

Flexcover - Flex code coverage tool

Flexcover http://code.google.com/p/flexcover/ is a code coverage tool for Flex, Air and AS3.

Download Flexcover : http://code.google.com/p/flexcover/downloads/list

Learn how the modified sdk works : http://code.google.com/p/flexcover-sdk/wiki/HowFlexcoverWorks

Documentation search for CSS , JS, DOM, PHP

http://dochub.io lets you search for CSS, HTML , DOM, Javascript , jQuery, PHO documentation

CSS : http://dochub.io/#css/

HTML: http://dochub.io/#html/

Javascript : http://dochub.io/#javascript/

DOM : http://dochub.io/#dom/

jQuery : http://dochub.io/#jquery/

PHP : http://dochub.io/#php/


Kendo UI - Javascript Framework

Kendo UI is a HTML5, jQuery based javascript framework for building Rich Javacsript Apps.
Apart from rich UI controls, Kendo UI includes a JavaScript DataSource, cross-device Drag and Drop API and Templates.

Download Kendo UI : http://www.kendoui.com/download.aspx

Kendo UI is dual-licensed, Commercial and Open Source (GPLv3). Learn more about Kendo UI licensing : http://www.kendoui.com/faq/licensing.aspx

Demos:
Web / HTML5 : http://demos.kendoui.com/web/overview/index.html
Data Visualization : http://demos.kendoui.com/dataviz/overview/index.html
Mobile : http://demos.kendoui.com/mobile/simulator/

   

Raphaël Javascript Library

Raphaël is a javascript library to create graphic objects like charts or effects like reflection,rotation,etc. The objects created using Raphaël can be operated upon as DOM objects.
gRaphaël , based on Raphaël, can be used to create interactive charts.

Download Raphaël :
Uncompressed source
Minified version

Raphaël Documentation can be found at http://raphaeljs.com/reference.html

Raphaël Discussion group : http://groups.google.com/group/raphaeljs

Tuesday, November 29, 2011

Blackberry DevCon Asia in Singapore

Blackberry Devcon Asia , originally scheduled to happen in Bangkok, Thailand has been relocated to Singapore .

Special offers include a 16GB BlackBerry® PlayBook™ tablet as well as a free copy of Adobe® Flash® Builder® 4.5 Premium for all attendees http://www.blackberrydevcon.com/asia/registration/special-offers.

Sessions catalogue : https://devcon.blackberryconferences.net/asia2011/scheduler/newCatalog.do

Tuesday, August 16, 2011

Free online courses on Database and Machine Learning

Stanford School of Engineering is offering two more free online courses in addition to the AI course that I mentioned in the previous post.

Introduction to Databases : http://www.db-class.com/

Machine Learning : http://www.ml-class.org/

Monday, August 8, 2011

Free Artificial Intelligence Course

A free, online version of "Introduction to Artificial Intelligence", taught by Sebastian Thrun and Peter Norvig http://www.ai-class.com/

Play Framework

Play framework is a java based framework for creating web applications.

Download play framework from http://www.playframework.org/download

Documentation and tutorials can be found at http://www.playframework.org/documentation/1.2.2/home

This screencast shows how to create a web app with the play framework : http://vimeo.com/7087610

Saturday, April 23, 2011

Solr 3.1 released

Version 3.1 of Apache Solr has been released.

Solr 3.1 is based on Lucene 3.1 .

The index structure is different from that in version 1.4

DataImportHandler jars are no longer included in the Solr WAR file.

Solr 3.1 includes support for Spatial search

You can now send updates to the index in JSON format via JsonUpdateRequestHandler

In addition the default XML formatted results and JSON Response Writer for responses in JSON format, there's the CSVResponseWriter for getting results in CSV format.

The Solr UIMA contrib library enables analysis of unstructured data.

Read more about this release at http://lucene.apache.org/solr/#March+2011+-+Solr+3.1+Released

Tuesday, March 15, 2011

Wallaby : Convert Adobe Flash files to HTML

An experimental technology from Adobe codenamed 'Wallaby' enables you to convert Adobe Flash(FLA) files to HTML.

Learn more about Wallaby at http://labs.adobe.com/technologies/wallaby/

Download Wallaby from http://labs.adobe.com/downloads/wallaby.html

Installation instructions for Wallaby are at http://labs.adobe.com/wiki/index.php/Wallaby#Installer

The release notes shed more light on supported features and cross browser issues.

fxSpy : inspect properties and styles of visual flex 3 components

fxSpy allows you to inspect and dynamically change properties and style of flex 3 display components.

Download fxSpy from http://code.google.com/p/fxspy/downloads/list

Installation instructions can be found at http://code.google.com/p/fxspy/wiki/InstallationInstructions

Kalileo: Flex data visualization component from Kap IT

Kap Lab has released version 2.0 of its data visualization component. Kalileo is compatible with Flex sdk 3.5 onwards and is available as a community edition in addition to the licensed versions. Learn more about Kalileo at http://lab.kapit.fr/display/kalileo/Kalileo

Kap IT has also packaged all its reporting components under the Kolbert reporting package. Of particular interest to me was the Elastic Search inspired by Moritz Stefaner's work on elastic lists .

Sunday, December 5, 2010

ReflexUtil : Flex debug Utility

ReflexUtil is an open source utility that allows a developer to debug and alter properties of components in a flex application during runtime.

Flex 4.5 to have size report

Flex SDK 4.5 will have a new option to summarize what contributes to the size of a swf file. use -size-report=<filename> in the compiler options (-size-report <filename> also works in Flash Builder) to generate a summary of the size of each type of data within the swf file.

There's more information at http://opensource.adobe.com/wiki/display/flexsdk/Size+Report

Tuesday, October 19, 2010

Adobe Labs - ActionScript Code Coverage Plug-in for Flash Builder

ActionScript Code Coverage Plug-in for Flash Builder , now in its prerelease version, is a tool that enables Flex developers identify which portions of code are executed (and which parts are not) while an application is executing.

Download ActionScript Code Coverage Plug-in for Flash Builder from http://labs.adobe.com/downloads/ascode_coverage.html

Documentation for this tool can be found at http://labs.adobe.com/wiki/index.php/ActionScript_Code_Coverage:Using