Saturday, September 17, 2011

Install PostgreSQL 9.0 on Ubuntu 11.04

To install PostgreSQL 9.0

Add already compiled ppa key
$ sudo add-apt-repository ppa:pitti/postgresql

Update you're repo & install postgres
$ sudo apt-get update
$ sudo apt-get install postgresql

Logged as postgres user and create database , user and grant all permission to users for database.

postgres$ psql template1
postgres$ create database testdb;
postgres$ CREATE USER testuser with password 'testuser';
postgres$ GRANT ALL PRIVILEGES ON DATABASE testdb to testuser;

Hope it may help you to install and configure postgres.

Thursday, September 15, 2011

Install issue of sun-java6-jdk - Ubuntu 10.04 (Lucid)

$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate

To fix above install issue, do these steps

$ sudo add-apt-repository "deb lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

Hope this may help you to install java6 on ubuntu 10.04.

Tuesday, September 6, 2011

Issues - Capistrano::ConnectionErr

$ cap deploy   * executing `deploy'
  * executing `deploy:update'
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: (Net::SSH::HostKeyMismatch: fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx does not match for "")
connection failed for: (Net::SSH::HostKeyMismatch: fingerprint xx:xx:xx:xx:xx:xx:xx:xx:xx does not match for "")

To fix this issue go to known_hosts file of the user. Example /home/deployer/.ssh/known_hosts and remove the domain specific entry. In this case domain is "".

Domain specific entry would be like this - ssh-rsa BBBAE5Uz

Hope this may help you

Sunday, September 4, 2011

Fuel - An PHP MVC Framework

Fuel is a simple, flexible, community driven PHP 5.3 web framework based on the best ideas of other frameworks with a fresh start.

It looks interesting. It takes a different approach to many frameworks and strives to be community-driven.

Fuel is released under the MIT license and is currently in its first release candidate with at least one more planned.

Ruby on Rails 3.1 Released

Rails community has been released 3.1.0 version. It has major changes on ActionPack, ActiveModel, ActiveRecord, ActiveResource, ActiveSupport and Railties.

For more information about changes, please see each of the CHANGELOG files checked in to the Rails repository on github.

For an even more detailed list of changes, please see the commit list between Rails 3.0.10 and 3.1.0.