Monday, April 8, 2013

List all indices in Elastic Search


    Client client = createClient();
    Collection getIndices() {
        Map indicesStatus = client.admin ().indices().prepareStatus().execute().actionGet().indices();
        return indicesStatus.keySet();
    }

Thursday, March 21, 2013

XML Schema Design Patterns

Recently I got few nice posts from Stephen Kaufman's WebLog on schema design pattern. Nice reading:

Tuesday, October 23, 2012

SQL Express with JDBC : Connection refused

By default SQL Server Express 2012 is installed with protocol TCP/IP disabled. Follow the steps to enable JDBC connection:

Step 1:
 
Open SQL Server Configuration Manager. Navigate to SQL Server Nework Configuration, then Protocol for SQLEXPRESS. Double click the TCP/IP protocol at right hand pane.


Change the Enabled property to Yes.

Go to tab IP Address.


Scroll all the way to the bottom. Clear the TCP Dynamic Ports. Specify 1433 in TCP Port.
Restart SQL Express.
Done.

Wednesday, February 22, 2012

LDAP Basics

LDAP Entry
dn: cn=Tridib Samanta,dc=sample,dc=com
cn: Tridib Samanta
givenName: Tridib
sn: Samanta
telephoneNumber: +1 111 222 3333
telephoneNumber: +1 444 555 6666
mail: tridib@example.com
manager: cn=Swarnali Kumar,dc=sample,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top

dn - Distinguished Name
dc - Domain Component
cn - Common Name
sn - Surname