Saturday, February 14, 2015

Steps to install Rails on Windows

Instigation : Currently I am having a training on ROR (Ruby on Rails) for a project which is more concerned on the productivity than the performance. Since Rails is based on Ruby, which is a scripting language, it's productivity is very high. Although, too much memory consumption directly effects for it's performance.

Note:  

  • If you have successfully installed Ruby, you can skip steps 1 and 2.
  • If you have successfully configured Ruby development kit, you can skip steps 3 and 4.


Step 1: Download the required ruby version from the following location.

http://rubyinstaller.org/downloads/

Step 2: Run the executable file and select 3 options while running.

















By selecting those options, it will help you to configure ruby on your environment.

Step 3: Download and run the development kit which is relevant to the ruby installation, from the following link.

http://rubyinstaller.org/downloads/

This will ask you to extract files and it is better to give the same root location where ruby is installed.

Step 4: Open a command prompt and go to the development kit extracted location. Run the following commands.
  1. ruby dk.rb init
  2. ruby dk.rb install
Step 5: Open a command prompt and run following command to install Rails. You can run it from any location. It will find the Ruby installed location and will install Rails into the Ruby. Through this it will install gems which are related to run Rails on Ruby.

gem install rails

Step 6: On the command prompt go to a location where you like to create your Rails project and type:
rails new <ProjectName>

This will create the project with its folder structure.

Step 7: Cd <ProjectName>, run"bundle install". There you might get SSL certificate issue. Open the "Gemfile" file in the project folder and edit the source value's protocol as "http", and run the command again.

Step 8: Cd  <ProjectName>/bin, and run "rails server".

Step 9: Go to the page http://localhost:3000 from your browser. If you are getting following, you have successfully installed the Rails and your server is running successfully.




Monday, June 23, 2014

Switch existing Java versions in Linux

Instigation:
I have installed two Java versions in my machine(6 and 7). I was using Java 6 because of a product which requires it. But later I wanted to switch from Java 6 to Java 7. 

step 1:  Check available versions.

Type following command in CLI: 
 sudo update-alternatives --config java

give the proper selection number as you want.




step 2:  Update your bashrc.

command: vim ~/.bashrc

Set(comment the current one and add new variable) or update(change existing one) the JAVA_HOME and PATH shell variables as follows:
 
export JAVA_HOME="/usr/lib/jvm/java-7-oracle"
export PATH="$PATH:$JAVA_HOME/bin"

Save and exit:
Press Esc  and then press colon(:)
Type "wq!"
Press Enter

step 3:  Verify new Java settings.

command: java -version

Sample output:

bhagya@bhagya-ThinkPad-T530:~$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Friday, March 14, 2014

WSO2 ESB shows the highest performance in the Space....

WSO2 ESB team has published the performance study “ESB Performance Round 7.5″, by comparing following well known open sources ESBs with WSO2 ESB v4.8.1.

 1. AdroitLogic UltraESB v2.0.0
2. Mule ESB Community Edition v3.4.0
3. Talend ESB SE v5.3.1

The following table and graph show the summary results of the performance test.






As shown in the graph, WSO2 ESB 4.8.1 outperforms all the other ESBs except for the security scenario.

Conclusion:  WSO2 ESB is the fastest open source ESB on the Space.


For more information refer http://wso2.com/library/articles/2014/02/esb-performance-round-7.5 .