curl command with proxy

curl -x :
To search and replace text within the current document:

Ctrl \


notepad++ htmltidy - unable to find libtidy.dll

Windows 7 x64, Notepad++ 5.9.5 Solution:
It has to do with the libTidy.dll not being included in the current distributions.
However, it was available in earlier versions.
Solution is to download the 5.9 zip, then
copy one of the following folders:
ansi\plugins\Config\tidy or Unicode\plugins\Config\tidy
to your current Notepad++\plugins\Config folder
Also, if you install to the c:\Program Files or c:\Program Files (x86) directories, you will need to adjust the permissions on the tidy folder to allow non-administrator access
For JPA, it should work fine:
String jpql = "from A where name in (:names)";
Query q = em.createQuery(jpql);
q.setParameter("names", l);
For Hibernate's, you'll need to use the setParameterList:
String hql = "from A where name in (:names)";
Query q = s.createQuery(hql);
q.setParameterList("names", l);

Key intellj - eclipse cheat sheet

Local Git repository in Jenkins

Even if you want to run a Jenkins server locally for testing purposes to correctly configure a job Jenkins still needs to fetch the source from a repository. With Git this can be easily done without configuring a Git server. Just specify the path to a local Git repo with file:// protocol 
Ref : link

  1. Create a fresh bare repository on the server:
    git init --bare newrepo.git
  2. Add it as a remote in your local repo:
    git remote add newrepo git://user@server.com/newrepo.git
  3. git push newrepo master to push a particular branch, or
    git push --all newrepo to push all branches

or 

git clone --bare /path/to/repo newrepo.git
Junit 4.11 comes with @FixMethodOrder annotation. Instead of using custom solutions just upgrade your junit version and annotate test class with FixMethodOrder(MethodSorters.NAME_ASCENDING). Check the release notes for the details.
Here is a sample:
import org.junit.runners.MethodSorters;

import org.junit.FixMethodOrder;
import org.junit.Test;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class SampleTest {

    @Test
    public void firstTest() {
        System.out.println("first");
    }

    @Test
    public void secondTest() {
        System.out.println("second");
    }
}
top