Monday, November 15, 2010

WSO2 Stratos - an update

WSO2 Stratos is not a stranger to the world of SOA Middleware enterprise. Rather it deploys the WSO2 Carbon platform as-a-Service on cloud infrastructure. Hence Stratos by default provides all the products that are built on top of WSO2 Carbon as services, while managing your underlying cloud infrastructure,  handling the scalability demands of your applications seamlessly. You just sign up once and use the entire WSO2 middleware platform without worrying about installing or configuring them. Single sign-on made it easy, where you just have a single account with a manager to manage all the services.

* You can either deploy Stratos as a private cloud for your organization, so that client organizations, project teams, or departments can run in an independent environment, sharing the same middleware platform utilizing your resources.
* Or simply register your domain in the WSO2's public cloud Stratos deployment (https://cloud.wso2.com), and start experimenting with the services now!

The last couple of days WSO2 team was energized in shaping up the most powerful PaaS (Platform as a Service) it has to offer. Stratos is a complete middleware platform as a service. Standing as the backbone of WSO2 Stratos, WSO2 Carbon is a complete SOA middleware platform. Stratos - 1.0.0 was released today and it has become yet another impressive and creative piece of work from WSO2.
For the last couple of weeks, both the Stratos team lead by Azeez and Shankar and the QA team lead by Charitha were in action shaping up the young Stratos.  Not just the Stratos team, but the entire team of WSO2 was there for Stratos. I'd say nightly coding is stylish. You would love it if you give it a try in a perfect environment for coding. After the hackathon and war modes, the Stratos team has got to celebrate it. It was a nice experience being at WSO2, when the Stratos 1.0.0 was deployed for the public, replacing its predecessor stratos-alpha. It was like Dec 31st Night, and it worthed the celebration!

Haven't you signed up yet for WSO2 Stratos Services? Sign up an account for your organization free in the public cloud

Download Stratos from here.

Stratos Community and Product home.

Samisa's post on Stratos explains why is Stratos so special.

Friday, October 15, 2010

oh! crap!!

Have you ever noticed some innocent guy or a girl sharing a crappy video or links in their Facebook profile? This often leads to curiosity and make you too visit the page. Now you are gone! Your friends will get notified that you are watching *that* video in their home page. Here once you proceed into the page, without your knowledge, you will be tricked to share the link to the page in your profile.


Let's look at some such tricks played to make you share the link to the page/video or make you like it, without even knowing that.
 
In this page, once you click 'play', a link to the page will be shared on your profile. It is actually a 'share' and 'like' options engineered to have a video look!
Here, both the 'Confirm' and 'Cancel' work as the 'share'.

If you really want to see what is inside the video, just log out and try to click the link. Sometimes it will ask you to login, and sometimes it will try to redirect you to some crappy survey, which will lead you to a no-where-zone.
Facebook has a rigid censor policy. It doesn't allow any 18+ material in it. Don't be fooled by such claims, and avoid further embarrassment of sharing all the craps over your profile. These tricks are, of course used to spread rumors and hoaxes too.

A better option would be, go elsewhere anonymous and try, not in a social networking site, where you have proven your identity. Google is always your friend, and public image matters!

Friday, September 24, 2010

Over the road of flowers..

The last two weeks were really interesting and most remarkable. Our Advanced Database (CS4420) Module research paper "Horizontal Format Data Mining with Extended Bitmaps," got accepted for International Conference of Soft Computing and Pattern Recognition - SoCPaR-2010 (Paris, France. December 7th - 10th, 2010), under the category "Pattern Recognition," as a short paper. We got to know this exciting news on 11th of September. After a few days, on 16th, we were announced that our Mooshabaya paper too has been accepted to the 8th International Workshop on Middleware for Grids, Clouds and e-Science - MGC-2010 (Bangalore, India . November 29th - December 3rd, 2010), as a full paper, to double our joy. It should also be noted that both the projects were from us - the same 4 member team Mooshabaya, who are currently Software Engineers at WSO2.

Our job at WSO2 started with a remarkable week. The new building at #50 was opened the very same day (September) we joined. The next two days we had the WSO2Conf marking the 5 years of excellence of WSO2. The first week ended with the 5 years party at the Waters Edge. Walks between the forts of 50 and 59 over the road of flowers⚘. Loving these days... ♥ ♥ Cloud/Could Duality ;) And I am into WSO2 Stratos! I got into the Stratos (WSO2 Carbon Middleware Platform as a Service) team - Stratos Manager Component and Stratos Security as the first tasks. Finally completing one of the most remarkable fortnights with this post.

Friday, September 10, 2010

With Llovizna, 2010..

It is really a nice time to have a blog post on the recent past, looking back at 2010 and the yesteryears. 2010 has been one of the most remarkable years I have faced so far. Some events worth mentioning since the beginning of the year. First interesting event was the rebirth of my blog as 'Llovizna'. I feel it was a major face-shift for my blog. Followed was the completion of the L4S1 exam along with quite a good results. CSE IT seminar was one of the events those add some spice to 2010. It was really nice to see the effort of Sri Lankan undergraduates for their younger brothers island-wide. I joined the team that went to Jaffna, and it was really an excellent learning experience - learning the school kids, and the outcome was really successful.

The first highlight of 2010 was obviously my GSoC 2010 with OMII-UK, with the project OGSA-DAI. An interesting point to note is, even last year I had an interest in applying to OMII-UK project, where I later applied to Abiword as I loved to join the Abiword community due to my personal interest in the word processor as a user, as well as a developer. At that moment, I decided that, if a GSoC 2010 is possible, it should be with OMII-UK for me. So that goal was successfully met. OGSA-DAI project is one of the best FOSS communities for an enthusiastic developer.

The successful completion of the final year project 'Mooshabaya' must always be mentioned, when recalling 2010. Special thanks goes to my team mates, who are simply the best. The final semester exam followed after. It went pretty well too. After the exam followed the CS&ES Conference marking the 25 years of excellence of CSE, along with the ExMo Exhibition of University of Moratuwa, Faculty of Engineering. Sep 6th hence marked the completion of our undergraduate life. Apart from that, we are blessed to join the dream job that we are passionate about. My sincere thanks goes to WSO2 Team at this moment recalling 2010 so far, awaiting the remarkable 13th of September 2010.

Monday, August 16, 2010

Deploying Resources - OGSA-DAI/CXF/Linux/Ant/Tomcat/mysql

A random post on deploying the resources. :)

Set an OGSADAI_HOME environment variable
export OGSADAI_HOME=/home/pradeeban/ogsa-dai/ogsa-dai/trunk/release-scripts/ogsa-dai/cxf/build/ogsadai-4.1-cxf-2.2.6-src/build/ogsadai-4.1-cxf-2.2.6-bin

Set the CLASSPATH
cd $OGSADAI_HOME
source setenv.sh

Checking for too long path issue
After setting the environment using setenv.sh, make sure that your classpath hasn't exceeded the maximum allowed length. If it had exceeded, as a quick fix, you can consider moving your OGSADAI_HOME to somewhere upwards towards the root directory.


Creating a sample MySQL database 'ogsadai' using ogsa-dai's createTestMySQLDB class with the table 'littleblackbook' and 10000 entries.

java uk.org.ogsadai.dbcreate.CreateTestMySQLDB -host coal.epcc.ed.ac.uk -port 3306 -database ogsadai -username mysqlUser -password 123456 -rootusername ogsadairootuser -rootpassword ogsadairootpassword

java -cp $CLASSPATH:/home/pradeeban/ogsa-dai/third-party/dependencies/mysql/mysql-connector/5.0.4/mysql-connector-java-5.0.4-bin.jar:/home/pradeeban/gsoc2010/data/build/lib/ogsadai-4.1-sampledata-1.0.jar uk.org.ogsadai.dbcreate.CreateTestMySQLDB -host localhost -port 3306 -database ogsadai -username root -password root -rootusername root -rootpassword root
MySQL Settings:
    MySQLDriverClass:        org.gjt.mm.mysql.Driver
    MySQLHostName:           localhost
    MySQLPortNumber:         3306
    MySQLDatabaseName:       ogsadai
    MySQLUserName:           root
    MySQLPassword:           root
    NameOfTableToCreate:     littleblackbook
    NumberOfRowsToCreate:    10000
    MySQLRootUserName:       root
    MySQLRootPassword:       root
Opening connection to MySQL system database
Creating 'ogsadai' database in MySQL if it does not already exist
Creating user 'root' with password 'root' in MySQL if it does not already exist
User 'root' already exists within MySQL
Dropping table if it already exists
Creating littleblackbook table in database
Preparing insert statement
Adding 10000 entries to 'littleblackbook' .............
Test database created successfully!


Deploying the database to ogsa-dai
DeployResource deployMySQL MySQLResource jdbc:mysql://localhost:3306/ogsadai Login permit MySQLResource ANY
DeployResource deployMySQL MySQLResource jdbc:mysql://localhost:3306/ogsadai Login permit MySQLResource ANY ogsadai root



getVersion method
java -cp $CLASSPATH:/home/pradeeban/gsoc2010/core/client/build/lib/ogsadai-4.1-client-1.0.jar:/home/pradeeban/gsoc2010/core/common/build/lib/ogsadai-4.1-common-1.0.jar:/home/pradeeban/gsoc2010/core/clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c getVersion


java -cp $CLASSPATH:/home/pradeeban/gsoc2010/core/client/build/lib/ogsadai-4.1-client-1.0.jar:/home/pradeeban/gsoc2010/core/common/build/lib/ogsadai-4.1-common-1.0.jar:/home/pradeeban/gsoc2010/core/clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c getVersion

java uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c getVersion


How to show the server version
java uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c listResources

java -cp $CLASSPATH:/home/pradeeban/gsoc2010/core/client/build/lib/ogsadai-4.1-client-1.0.jar:/home/pradeeban/gsoc2010/core/common/build/lib/ogsadai-4.1-common-1.0.jar:/home/pradeeban/gsoc2010/core/clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c listResources

java -cp client/build/lib/ogsadai-4.1-client-1.0.jar:common/build/lib/ogsadai-4.1-common-1.0.jar:clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -c listResources


java -cp client/build/lib/ogsadai-4.1-client-1.0.jar:common/build/lib/ogsadai-4.1-common-1.0.jar:clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.ServerClient -u http://localhost:8080/dai/services/ -r MySQLDataResource -t uk.org.ogsadai.DATA_RESOURCE -c getLifetime


DB Query
pradeeban@pradeeban-laptop:~/ogsa-dai/ogsa-dai/trunk/extensions/basic/client$ ant jar
pradeeban@pradeeban-laptop:~/ogsa-dai/ogsa-dai/trunk/extensions/relational/client$ ant jar

mySQLResourceConfig.txt
DeployResource deployMySQL MySQLResource jdbc:mysql://localhost:3306/ogsadai Login permit MySQLResource ANY
DeployResource deployMySQL MySQLResource jdbc:mysql://localhost:3306/ogsadai Login permit MySQLResource ANY ogsadai root


Deploy the above DeployResource script with:
ant -Dtomcat.dir=$CATALINA_HOME -Dconfig.file=mySQLResourceConfig.txt configure

java -cp /home/pradeeban/ogsa-dai/ogsa-dai/trunk/extensions/relational/client/build/lib/ogsadai-4.1-relational-client-1.0.jar:/home/pradeeban/gsoc2010/core/client/build/lib/ogsadai-4.1-client-1.0.jar:/home/pradeeban/gsoc2010/core/common/build/lib/ogsadai-4.1-common-1.0.jar:/home/pradeeban/gsoc2010/core/clientserver/build/lib/ogsadai-4.1-clientserver-1.0.jar uk.org.ogsadai.client.toolkit.example.SQLClient -u http://localhost:8080/dai/services -d MySQLResource -q "SELECT * FROM littleblackbook WHERE id <  10"
*DRER ID: DataRequestExecutionResource
Data Resource ID: MySQLResource
Base Services URL: http://localhost:8080/dai/services
SQL-Query: SELECT * FROM littleblackbook WHERE id <  10