Wednesday, 27 August 2008

The Difference Between CSS and XSLT

Cascading Style Sheets or CSS were developed a few years ago to define the look and feel of markup languages. Extensible Style Sheet Language for Transformations or XSLT were created to transform documents. They are both style sheets, but they serve vastly different purposes.

What CSS Can Do

  • Modify the font size, color, family, and style of text in markup
  • Define the location and size of an element
  • Change the background image and color of elements
  • Create a new look and feel for markup pages to display on the Web

What CSS Cannot Do

  • Change the order of elements in a document
  • Make computations based on the content of the document
  • Add content to the document
  • Combine multiple documents into one

XSLT is a powerful language for transforming documents. It was created to allow developers the ability to create data and then transform it to various different formats. It is meant to keep the distinction between content and design separate.

What XSLT Can Do

  • convert data in a standard XML format to SQL statements, tab-delimited text files, or other database formats for data sharing
  • transform XSLT style sheets into new style sheets
  • turn Web pages (written in XHTML) to VoiceML or XHTML Basic for handheld devices
  • add CSS style sheets to XML documents for view in a browser

If all you're looking for is a style sheet to manipulate the way your content looks in a document, then you should use CSS. But if you're looking to actually transform one document into another, then XSLT is your tool.

Tuesday, 13 May 2008

Difference between abstract class and interface

A class implementing an interface must implement all of the
methods defined in the interface, while a class extending an
abstract class need not implement any of the methods defined
in the abstract class. Additionally, a class extending an
abstract class can implement an infinite number of it's own
methods.

another key difference between abstract class and interface
is that , in abstract class we can put sharable code, but
that is not possible in case of interface.

Another key difference between abstract class and interface
is that,

We can use interface as marker, ( we can use abstract class
also as abstract but then we can't extends any oter class,
so it is better always use interface as marker)

Marker===> An interface having no methods is called as a
Marker Interface।


In abstract class aleast one method must be abstract(only
declared not define).we can create object of abstract class.
if we want to use this class then we have to inherit it.


In interface all the method must be abstract(only define).
using interface we can achieve multiple inheritence.
we use interface where one class cannot extend more than


and in Inheritance all methods should be abstract.means not
defined..but where as in Abstract class methods can be both
Abstract n defined...but one of the method should be Abstract.
one class(in java).



Directory Harvest Attacks

Collecting Proprietary Email Addresses and Increasing Spam

Spammers today use sophisticated techniques to bypass typical email server checking mechanisms in order to retrieve valuable information, such as a list of valid email addresses. One of these techniques is called a Directory Harvest Attack, or DHA.

During a DHA, spammers attempt to deliver messages to multiple addresses, such as johndoe@yourcompany.com, jdoe@yourcompany.com, and john@yourcompany.com. Addresses that are not rejected by the receiving mail server are determined as valid. These addresses are compiled and sold to other spammers worldwide. Within hours, a brand new email box can be full of unsolicited, junk email.

A successful DHA can net a spammer thousands of corporate email addresses in just a few minutes. The results force unprotected corporations to incur higher email system costs, face increased breaches in security and decrease their email system's reliability.

Sunday, 24 June 2007

PARAG DON OF PHP

ASK ANY QUESTION IN PHP AND MYSQL. YOU WILL GET THE ANSWER OF THAT. THAT'S SURE 100%.

- PARAG