- LDAP is the Lightweight Directory Access Protocol, is an application protocol for accessing and maintaining distributed server directory information services over an TCP/IP network.
- LDAP Servers - Netscape Directory Server, Microsoft Active Directory (AD), Novell Directory Services (NDS), Sun Directory Services (SDS), ucent's Internet Directory Server (IDS)
- LDAP uses a client server model, with clients sending LDAP request over TCP/IP to the server.
- Stores attribute based data information. Stores these entries in a hierachial structure (i.e., Directory Information Tree(DIT)), based on the unique identifier (Distinguish Name(DN)).
- Designed to be read data more than written, such as No transactions or rollback.
Thursday, July 28, 2011
LDAP
Friday, June 10, 2011
ISNULL VS COALESCE
For example Production.Product table records
| Class | Color | ProductNumber |
| cl1 | Null | Null |
| cl2 | Null | Null |
| Null | co3 | Null |
| Null | co4 | Null |
| Null | Null | pn5 |
| cl6 | co6 | Null |
| cl7 | co7 | pn7 |
Sunday, May 8, 2011
Debug Directive
If the code is only for development environment not in the live or release environment use Debug Directive or Conditional attribute For exmple, Some of the code only run while in debugggin mode, but you don't want to shift to production server or code to run while in live
If the application/compilation running in the debug mode, then the debug code will execute, but if you complied the same code in the release mode, then debug code will not execute.
In Debug environment, output is
If Debug
No If
Conditional Debug
No Conditional
If the application/compilation running in the debug mode, then the debug code will execute, but if you complied the same code in the release mode, then debug code will not execute.
In Debug environment, output is
If Debug
No If
Conditional Debug
No Conditional
Sunday, April 3, 2011
Eclipse PHP Development Tools (PDT)
Eclipse is a Java development environment IDE, but it extensions to other languages are C, C++, and JavaScripts.
- Go to Help menu -> select Instal New Software
- Checked the 'Hide items that are already installed'
- Select '--All Available Sites--' list from the 'Work with:' list box.
- Go to Web, XML, and Java EE Development checkbox item, Click + sign.
- Checked the 'PHP Development Tools(PDT) SDK Feature' checkbox item,
press Next, and than press Finish button.
Monday, March 21, 2011
JAVA String
- Convert to String
//Integer to String
int number = 1234;
String strtoint = Integer.toString(number); //1234
strtoint = "" + number; //1234
//Double to String
strtoint = Double.toString(number); //1234.0
//Long to String
strtoint = Long.toString(number); //1234
//Flot to String
strtoint = Float.toString(number); //1234.0
//Binary to String
strtoint = Integer.toBinaryString(number); //10011010010
strtoint = Integer.toString(number,2); //10011010010
//Hexadecimal to String
strtoint = Integer.toHexString(number); //4d2
strtoint = Integer.toString(number,16); //4d2
Sunday, February 27, 2011
Checkstyle 5.3
- CheckStyle is a tool to help programmers to write JAVA coding standard.
- Download and unzip checkstyle-5.3 into a convenient directory.
- It is a program to inspect your JAVA source code and list/point out errors that deviate from a defined set of JAVA coding standard.
- By default it supports the Sun JAVA Code Conventions (sun_checks.xml), and also support any customize coding standard.
- It can be invoked with an ANT task, a command line program and integrated into IDE (Eclipse, IntelliJ, NetBeans) and other tools (TextPad).
Sunday, February 20, 2011
Eclipse and Tomcat Confirguration, Create War.
1)Download and extract Eclipse IDE for Java EE Developers
2)Download and extract or install Apache Tomcat
3)Open your browser, type http://localhost:8080 and verify tomcat is running.

2)Download and extract or install Apache Tomcat
3)Open your browser, type http://localhost:8080 and verify tomcat is running.
Sunday, February 13, 2011
Java Servlet CRON job through Tomcat
Apache Tomcat server won't support to run servelt automatically (Resin will support through <run-at> tag). So i created time scheduler job to perform cron job through Tomcat.
1) Create Schedular Servelt
package com.dns.blog;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* Parser Schedular to run every one hour to parse the file.
*
* @author Daynight
* @version 1.0 02/23/2011
*/
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* Parser Schedular to run every one hour to parse the file.
*
* @author Daynight
* @version 1.0 02/23/2011
*/
Monday, December 27, 2010
Publish & Add Web Part an Excel Spreadsheet in SharePoint
Add a trusted file location
- Go to 'Central Administration' home page -> click 'Application Management' tab -> in the 'Office SharePoint Server Shared Services' section, click 'Create or configure this farm's shared services', You're in the 'Manage this Farm's Shared Services' Page.
- Click 'SharedServices1(Default)', it takes to the 'Shared Services Administration: SharedServices1' home page, in the 'Excel Services Settings' section, select 'Trusted file locations' and click 'Add Trusted File Location'.
Saturday, October 16, 2010
Subscribe to:
Posts (Atom)