Tuesday, March 26, 2013

Install Tombay on Mac

Tombay is a good note-taking application for Linux.After I have changed to Mac, I was looking for a similar note-taking application. At the end, I installed Tombay on my Mac Mountain Lion/Lion.

Here are the quick steps I have followed to install Tombay.

1. Make sure you have n't installed Mono library. If your system has any previous installation, uninstall it.

2. Download and install Mono. Why we need Mono library? - Since tombay is written in C#, system needs Mono runtime to build and run on mac.

3. Get the latest source code from repository.

git clone git://git.gnome.org/tomboy

4. Build and Open the application. Go to the source code directory(tombay)

$ xbuild Tomboy-mac.sln
$ ./bundle-mac-app.sh
$ open Tomboy.app

After the above step, Tombay application is successfully installed and available on spotslight search. I hope these steps helpful to install Tombay on Mac Mountain Lion/Lion.

Monday, March 18, 2013

Install instruction for Tomcat 7 on Mac

To install Tomcat 7 you should have Java 1.6+, so make sure version of java on your Mac by using "java --version" command.
Here are the quick steps to install Tomcat 7 on Mac. I believe it may take few minutes to install

1. Download a Core Binary file from here. The link of the binary file looks like this http://apache.techartifact.com/mirror/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.tar.gz
2.Extract the downloaded binary file tar -xzvf ~/Downloads/apache-tomcat-7.0.37.tar.gz
3.Create or make sure you have local folder.If you don't have it then create it sudo mkdir /usr/local Then move the extracted binary files to /usr/local sudo mv ~/Downloads/apache-tomcat-7.0.37 /usr/local
4.Soft link the installed folder to Mac's library folder. To maintain easily the installed application sudo ln -s /usr/local/apache-tomcat-7.0.37 /Library/Tomcat7
5. Change the ownership and executable permission to application folder sudo chown -R YOUR_MAC_USER_NAME /Library/Tomcat7 sudo chmod +x /Library/Tomcat7/bin/*.sh
6. Installation is done, now you can start/stop the Tomcat7 Service /Library/Tomcat7/bin/startup.sh /Library/Tomcat7/bin/shutdown.sh
7. Open your browser and type the URL to see welcome message of tomcat7 application server - http://localhost:8080

Thursday, March 14, 2013

Spring Roo commands - Database setup

Spring Roo is a next-generation rapid application development tool for Java developers. Developing domain models for application with support of Hibernate or any other provider is very easy. I was planning to explain different commands and purpose further post. This post is for simply database setup.

I believe you have setup of Spring Roo tool or STS editor which supports Spring Roo. If not please download and install it from here - http://www.springsource.org/spring-roo.

Then create a new Spring/Spring Roo project. Refer this tutorial for more information - http://static.springsource.org/spring-roo/reference/html/beginning.html

Now coming back to database setup, I generally use hibernate, so here is the command to create  Hibernate provider for database PostgreSQL with username, password, database name and host name which i provide on the command. command which looks like this

roo> jpa setup --provider HIBERNATE --database POSTGRES --hostName localhost --userName user --password password --databaseName foo

If you want to change the provider, database. you can do it easily. For instance if your opted database is  MySQL then change the part command like --database MYSQL

After the execution of this command, Config files and postgres artifacts for database support will be created automatically. Further post, I'll give more details about how to create a model, fields for the model and relations.

TextMate bundles/plugins - Ruby on Rails application development

As we know the best choice of editor to develop Ruby on Rails application on Mac is TextMate. As a developer we always think application quality and easiest way of development. As we know developing rails application is fun. I think some of the TextMate plugins help developing Ruby on Rails application even more fun.

Ruby on Rails - It's one of the nice bundle for rails application development. Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2

PeepOpen - It's a file navigation application. It helps to search a file in your project with just typing few characters of the file name.

JavaScript Tools - It contains Essential Tools for developing Javascript in TextMate

jQuery - It's a jQuery bundle for TextMate