terça-feira, 22 de novembro de 2011
Comparison of issue-tracking systems
Hi,
Studing tracking systems and having doubt's on chosing whats the best for you ?
Check this.
JIRA rules!
quinta-feira, 17 de novembro de 2011
JIRA Workflow Enhancer
Found out a very promising JIRA plugin!
More detail can be found here!
I'm going to test it and i will let you now my verdict!
More detail can be found here!
I'm going to test it and i will let you now my verdict!
quarta-feira, 9 de novembro de 2011
JIRA Gantt-Chart Plugin
One of those plugins that everyone should use good for planning and you can goo on and support charity!
You can find more details in here
segunda-feira, 7 de novembro de 2011
Install Postgres in CentOS
Later we had installed a CentOS server on a VMware workstation.
Inicialize de cluster
Started the service a
Make sure in every boot the service start automaticly
Lets now install a database on it my choice is no Postgres 8.2 database.
[centosuser@localhost ~]$ su - root
List PostGres available versions:
[root@localhost ~]# yum list postgres\*
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: ftp.up.pt
* extras: ftp.up.pt
* updates: ftp.up.pt
Available Packages
postgresql.x86_64 8.4.7-1.el6_0.1 updates
postgresql-contrib.x86_64 8.4.7-1.el6_0.1 updates
postgresql-devel.i686 8.4.7-1.el6_0.1 updates
postgresql-devel.x86_64 8.4.7-1.el6_0.1 updates
postgresql-docs.x86_64 8.4.7-1.el6_0.1 updates
postgresql-jdbc.x86_64 8.4.701-3.el6 base
postgresql-libs.i686 8.4.7-1.el6_0.1 updates
postgresql-libs.x86_64 8.4.7-1.el6_0.1 updates
postgresql-odbc.x86_64 08.04.0200-1.el6 base
postgresql-plperl.x86_64 8.4.7-1.el6_0.1 updates
postgresql-plpython.x86_64 8.4.7-1.el6_0.1 updates
postgresql-pltcl.x86_64 8.4.7-1.el6_0.1 updates
postgresql-server.x86_64 8.4.7-1.el6_0.1 updates
postgresql-test.x86_64 8.4.7-1.el6_0.1 updates
[centosuser@localhost ~]$ yum install postgresql-server
========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
postgresql-server x86_64 8.4.7-1.el6_0.1 updates 3.3 M
Installing for dependencies:
postgresql x86_64 8.4.7-1.el6_0.1 updates 2.7 M
postgresql-libs x86_64 8.4.7-1.el6_0.1 updates 193 k
Transaction Summary
========================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total download size: 6.1 M
Installed size: 28 M
Is this ok [y/N]: y
.....
Complete!
[root@localhost ~]#
Inicialize de cluster
[centosuser@localhost ~]$ service postgresql initdb
Started the service a
[centosuser@localhost ~]$ chkconfig postgresql on
Make sure in every boot the service start automaticly
[centosuser@localhost ~]$ service postgresql start
Install JIRA 4.4.3 (Database Conf)
I'm a JIRA fan and soo in the next posts i will take you in a tour for installing JIRA in a centosOS server.
We have already created a development enviroment later on with a centOS server and postgres database.
In this post we are going to create and database user!
Well that was fast :)
You can have more detail here about how to do it in linux and windows.
Now lets go to database
First lets see if database is running..
Hum...no it will need some extra work!
Ok, soo we inicialize de cluster, started the service and make sure in every boot the service start automaticly
Now we can create our user and database..
We have already created a development enviroment later on with a centOS server and postgres database.
In this post we are going to create and database user!
Well that was fast :)
You can have more detail here about how to do it in linux and windows.
Now lets go to database
First lets see if database is running..
[root@localhost ~]# /etc/init.d/postgresql status
postmaster is stopped
[root@localhost ~]# /etc/init.d/postgresql start
/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first. [FAILED]
Hum...no it will need some extra work!
[root@localhost ~]# service postgresql-8.4 initdb
postgresql-8.4: unrecognized service
[root@localhost ~]# service postgresql initdb
Initializing database: [ OK ]
[root@localhost ~]# service postgresql start
Starting postgresql service: [ OK ]
[root@localhost ~]# chkconfig postgresql on
[root@localhost ~]# /etc/init.d/postgresql status
postmaster (pid 2995) is running...
Now we can create our user and database..
[root@localhost ~]# su - postgres
-bash-4.1$ createuser -P jira
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
-bash-4.1$
-bash-4.1$ exit
logout
[root@localhost ~]# su - jira
[jira@localhost ~]$ createdb jiradb
[jira@localhost ~]$ psql jiradb
psql (8.4.7)
Type "help" for help.
jiradb=>
And were done, you now have a jira system / database user and a new fresh postgres database witch we called jiradb!
You will have to edit your pg_hba.conf file to add permissions to jira user to connect to jiradb using password autentication mode..if you don't do this you will probabily have
FATAL: Ident authentication failed for user "jira"
sábado, 22 de outubro de 2011
How to Install CentOS 6 in a VMware Workstation 8
This first post takes us to install the CentOS linux distriubuição 6 (Community Enterprise Operating System). This distribution is regarded as one of the most stable in the world of Linux servers.
Step 1: Download CentOS ISO's.
Acess CentOS download center and chose your distribution
I choosed download the 64 bits version, but you can choose whatever it fits better for you.
Step 2:VMware workstation
I'll assume you already have it installed.
If don't have it already and have any doubt's on installing check this .
Step 3: Installation
Step 2:VMware workstation
I'll assume you already have it installed.
If don't have it already and have any doubt's on installing check this .
Step 3: Installation
Open your VMware console and select "Create a New Virtual Machine"
| VMware Workstation |
For this tutorial i will choose "Typical" instalation.
| Wizard - Type of installation |
Choose to install from image file, and browse to your CentOS 6 iso.
| Wizard - Choose installer method |
Now its time to give a name to our machine and set user and root password.
| Wizard - Machine Personalization |
Choose a name and a locationfor your vistual machine
| Wizard - Machine name and location |
Select the size you will give to your new virtual machine
| Wizard - Machine size |
It will be given to you a summary of the machine to be created, review it and if you are happy with the settings press "finish"!
|
Go out take a coffe and you should get something like this on your VMWare console.
sexta-feira, 21 de outubro de 2011
JAVA - Class Modifiers
You have three class modifiers in JAVA:
Can only be used in classes and methods.
If mark a class as strictfp you are saying that any method in the class will folow the IEEE 754 standard rules for floating points.
final
Marking the class with this keyword you are proibing the class to be subclassed.In pratice no one will be able to extend it.Why would you mark a class as final ?Sometimes you want things to be done "your way on no way" :)
Lets see what hapens when you try extend a class marked as final...
Declaring...
package cert;
public final class Beverage {
public void importantMethod() { }
}
Extending...
package exam.stuff;
import cert.Beverage;
class Tea extends Beverage { }
Compiling...
Can't subclass final classes: class
cert.Beverage class Tea extends Beverage{
1 error
abstract
An abstract class cannot be instantiated.Its created you the purpose of being extended.Imagine class Vehicle there is no point in the creation of a instance of vehicle, but it makes a lot of sense in create a Car instance class that extends Vehicle providing Car with all common methods all vehicle have.
An abstract class cannot be instantiated.Its created you the purpose of being extended.Imagine class Vehicle there is no point in the creation of a instance of vehicle, but it makes a lot of sense in create a Car instance class that extends Vehicle providing Car with all common methods all vehicle have.
What no to do... :)
Creating a abstract Class
abstract class Car {
private double price;
private String model;
private String year;
public abstract void goFast();
public abstract void goUpHill();
public abstract void impressNeighbors();
// Additional, important, and serious code goes here
}
Trying to instantiate it...
AnotherClass.java:7: class Car is an abstract
class. It can't be instantiated.
Car x = new Car();
1 error
TO RETAIN:
- You can modify class declarations and use any of these modifiers in conjunction with any access control (public , default).
- You can't always mix these nonacces modifiers! You can't and there is no sense in making a class with final and abstract (i will talk about this later...but its like saying "This class can't and must be extended" it doen't make a lot of sense right ?:) )
- Abstract classes may have implemented methods, there are some methods you might consider give a "default" implementation, and so giving to the subclasses a common implementation.
- If a method is declared abstract you got to set the class as abstract
Subscrever:
Mensagens (Atom)


