How to setup WSO2 Stratos 1.6.0 Local Instance:

How to setup WSO2 Stratos 1.6.0 Local Instance:


  1. Go through README file located in <<STRATOS_HOME>>/README

  2. will setup mysql database, user accounds and grants. if everything is goes well then you will see “Creating user accounts and grants .. [DONE]” message on your console. You can also verify that all the user accounts exists or not.


Here is list of newly created users (rss_db, hive_user, shopping_cart_db, billing, bps, registry and userstore) :


  1. Now you are ready to execute startup script. Execute start <<list of services>> for instance:  ./ start ‘manager as_mgt’ this will start two servers stratos manager and application server. You can look into log file for status of execution.

    for above command you will have to browse



if everything is ok then you will see WSO2 Carbon started in xx sec


  1. How to access management dashboard:
    Stratos manager:

    Application Server:


if you are lucky then you will reach at

    SAML 2.0 based Single Sign-On

    RealyState is not present in the request.

    This request will not be processed further.


It mean ELB server is not started. You have to start ELB server along with manager. Both manager and ELB server is mandatory. ELB server will run separately. This is not part of Stratos script. ELB server is located in <STRATOS_HOME>/wso2elb-2.0.2


WSO2 team will update README for the same.


  1. Start ELB Server

  2. Browse

  3. Thats it.


Posted in Extra | Tagged , , , | Leave a comment

Scala Notes

 Step By Step

  1. The name Scala stands for “scalable language”.
  2. Scala is pronounced skah-lah.
  3. It runs on the standard Java platform and interoperates seamlessly with all Java libraries.
  4. Scala is a blend of object-oriented and functional programming concepts in a statically typed language. (Static typing can find type errors reliably at compile time. This should increase the reliability of the delivered program. However, programmers disagree over how commonly type errors occur, and thus disagree over the proportion of those bugs that are coded that would be caught by appropriately representing the designed types in code. Static typing advocates believe programs are more reliable when they have been well type-checked, while dynamic typing advocates point to distributed code that has proven reliable and to small bug databases.)
  5. Scala comes with a standard library. Sometimes you might not agree with “one size fits all” philosophy, because you need to control the properties of the some libraries such as maps you use in your program in a more fine-grained way. Scala gives you this fine-grained control if you need it. For more information, you can also consult the library’s Scaladoc documentation, which is available in the distribution and online at
  6. Scala is much more like a bazaar than a cathedral, in the sense that it is designed to be extended and adapted by the people programming in it. (Eric Raymond introduced cathedral and bazaar as two metaphors of software development. The cathedral is a near-prefect building that takes a long time to build. Once built, it stays unchanged for a long time. The bazaar, by contrast, is adapted and extended each day by the people working in it. The bazaar is metaphor for open source software development.)


  1. Programming in Scala, Second Edition
  2. Static and Dynamic types
  3. Cathedral and Bazaar :

Posted in Scala | Tagged , , , , | 2 Comments

Root User ( Super User ) in Ubuntu

Warning: Enabling root is not recommended. If possible, you should always try to perform all administrative tasks using sudo.

#01: unable to login

$ su -
su: Authentication failure

Enable super user account password on Ubuntu

$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Posted in ubuntu | Tagged , , , , | Leave a comment

Speeding Up Firefox DNS Look-up

Speeding Up Firefox DNS Look-up

For anyone who uses Firefox, you can do the following to speed up DNS hostname (website address in layman talk) lookup: -

  1. Enter about:config in the address bar and click the button that appears.
  2. Type network.dns
  3. Right-click an empty area, then select New, Boolean.
  4. For the preference name enter network.dns.disablePrefetch.
  5. For the preference value select false.
  6. Right-click an empty area, then select New, Integer.
  7. For the preference name enter network.dnsCacheEntries.
  8. For the preference value enter 512.
  9. Repeat step 6.
  10. For the preference name enter network.dnsCacheExpiration.
  11. For the preference value enter 3600.
  12. Restart Firefox.
  13. Enjoy!
Posted in Tips | Tagged , , | 2 Comments

Wireless Network Problem- Lenovo E420

ubuntu block some services by default so we have to enable that manually wireless network is one of them. You can resolve that by executing following commands.

sudo service network-manager stop
sudo rmmod acer_wmi
sudo modprob acer_wmi
sudo rfkill unblock all
sudo service network-manager start
sudo rmmod -f acer_wmi

Posted in ubuntu | Tagged , , | 1 Comment

Java Video/Audio Encoding Frameworks

  • The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project. Developers can take take advantage of JAVE to transcode audio and video files from a format to another. In example you can transcode an AVI file to a MPEG one, you can change a DivX video stream into a (youtube like) Flash FLV one, you can convert a WAV audio file to a MP3 or a Ogg Vorbis one, you can separate and transcode audio and video tracks, you can resize videos, changing their sizes and proportions and so on. Many other formats, containers and operations are supported by JAVE
  • The Java Media Framework is the module that handles audio and video files in Java. It is used by many programs to integrate music and movies into a user interface. Included with the programming tools is a simple media player called Java Media Studio (JMStudio) Although JMF supports a number of video and sound file types, inevitably you will eventually hit the “Unable to handle format:…” error message. That is where Jffmpeg comes in.
Posted in Popular Frameworks | Tagged , , , , , , , , | Leave a comment


A bookmarklet is an applet, a small computer application, stored as the URL of a bookmark in a web browser or as a hyperlink on a web page. The term is a portmanteau of the terms bookmark and applet.

Bookmarklets are saved and used as normal bookmarks. As such, they are simple “one-click” tools which add functionality to the browser. For example, they can:

  • Modify the appearance of a web page within the browser (e.g., change font size, background color, etc.).
  • Extract data from a web page (e.g.hyperlinksimagestext, etc.).
  • Remove redirects from (e.g. Google) search results, to show the actual target url.[1]
  • Submit the current page to a blogging service such as Posterous, link-shortening service such as, or bookmarking service such as Delicious.
  • Query a search engine, with search term(s) provided by previously selected text, or by a dialog box.
  • Submit the current page to a link validation service, or translation service.
  • Set commonly chosen configuration options when the page itself provides no way to do this.


“Installation of a bookmarklet” is performed by creating a new bookmark, and pasting the code into the URL destination field. Alternatively, if the bookmarklet is presented as a link, under some browsers it can be dragged and dropped onto the bookmark bar. The bookmarklet can then be run by loading the bookmark normally.



Posted in Extra | Leave a comment