মঙ্গলবার, ২৪ ডিসেম্বর, ২০১৩

git installation in centos

 http://www.unixmen.com/how-to-install-latest-git-on-rhel-6-centos-6/



So you want to setup a GIT Repository for your developers on RHEL 6/CentOS 6, but notice Red Hat Enterprise Linux 6 contains 1.7.1 in the repositories, which is well behind the current 1.8.3 that is available for GIT at http://git-scm.com.
Well no need to worry, it is easy enough to download and install the latest on a typical RHEL/CentOS installation.
First let’s download all the files that are required for GIT installation:
$ wget http://git-core.googlecode.com/files/git-1.8.3.4.tar.gz
$ wget -O git-manpages-1.8.3.4.tar.gz http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.3.4.tar.gz&can=2&q=
Next, install all required libraries before building GIT:
$ sudo yum install zlib-devel perl-CPAN gettext
Now let’s untar and build and install GIT in the /usr directory:
$ tar xvfz git-1.8.3.4.tar.gz
$ cd git-1.8.3.4
$ ./configure
$ make
$ sudo make prefix=/usr install
$ git --version
git version 1.8.3.4
That’s all you need and now you are ready to configure your repository for access and start developing!
Now if you want to update GIT you can do that using GIT itself:
$ git clone git://git.kernel.org/pub/scm/git/git.git

শনিবার, ১৬ নভেম্বর, ২০১৩

Advantage of @Repository stereotype in Spring

Advantage of @Repository stereotype in Spring

1. @Repository is also a @Component and thus you can use component scanning to automatically detect your @Repository annotated beans and register them in the ApplicationContext.

2.  will get automatic exception translation not mere logging.

3. The exceptions for all persistence exceptions are converted to the consistent spring DataAccessException hierarchy so that  you only need to handle 1 kind of exception even you use  multiple strategies (often you mix hibernate/jpa with plain jdbc)

4.  Need less configurable.

বুধবার, ৩১ জুলাই, ২০১৩

Replacement of jquery toggle


 Use

var buttonLiveHelpClicks = true;
                $("#buttonLiveHelp").click(function () {
                    if (buttonLiveHelpClicks) {
                        $("#buttonLiveHelp").hide();
                        buttonLiveHelpClicks = false;
                    } else {
                        $("#buttonLiveHelp").show();
                        buttonLiveHelpClicks = true;
                    }
                });

instead of
  $("#buttonLiveHelp").toggle();


সোমবার, ২২ এপ্রিল, ২০১৩

মঙ্গলবার, ৫ মার্চ, ২০১৩

EJB3.1


সোমবার, ৪ মার্চ, ২০১৩

Spring 3 session level Model Attributes with Multi Tab browsers

http://marty-java-dev.blogspot.com/2010/09/spring-3-session-level-model-attributes.html

মঙ্গলবার, ২৬ ফেব্রুয়ারী, ২০১৩

What is SuppressWarnings annotation

The @SuppressWarnings annotation tells the compiler to suppress the warning messages it normally show during compilation time. It has some level of suppression to be added to the code, these level including: all, deprecation, fallthrough, finally, path, serial and unchecked.











package org.algobd.code.example.annotation;
 
import java.util.Date;
 
public class SuppressWarningsExample {
    @SuppressWarnings(value={"deprecation"})
    public static void main(String[] args) {
        Date date = new Date(2013, 2, 26);
        System.out.println("date = " + date);
    }
}
In the example above if we don't use @SuppressWarnings annotation the compiler will report that the constructor of the Date class called above has been deprecated.













source: http://www.kodejava.org/examples/350.html

সোমবার, ২৫ ফেব্রুয়ারী, ২০১৩