Thursday, December 30, 2010

Key Concepts of Object Orientation



Difference between Interface and Abstract Class:

    * Interfaces are closely related to abstract classes that have all members abstract.
    * For an abstract class, at least one method of the class must be an abstract method that means it may have concrete methods.
    *  For an interface, all the methods must be abstract
    * Class that implements an interface much provide concrete implementation of all the methods definition in an interface or else must be declare an abstract class
    * In C#, multiple inheritance is possible only through implementation of multiple interfaces. Abstract class can only be derived once.
    * An interface defines a contract and can only contains four entities viz methods, properties, events and indexes. An interface thus cannot contain constants, fields, operators, constructors, destructors, static constructors, or types.
    * Also an interface cannot contain static members of any kind. The modifiers abstract, public, protected, internal, private, virtual, override is disallowed, as they make no sense in this context.
    * Class members that implement the interface members must be publicly accessible.

Monday, December 27, 2010

Add the Glitter Effect Mouse Pointer to your Site



The code for this tweak is javascript. All you need to do is to add the javascript code to your template but only within the head () tag


script type="text/javascript">
// starv[i]=0;
tinyv[i]=0;
var rats=createDiv(5, 5);
rats.style.backgroundColor="transparent";

rats.style.visibility="hidden";
var rlef=createDiv(1, 5);
var rdow=createDiv(5, 1);
rats.appendChild(rlef);
rats.appendChild(rdow);
rlef.style.top="2px";
rlef.style.left="0px";

rdow.style.top="0px";
rdow.style.left="2px";
document.body.appendChild(star[i]=rats);
}
set_width();
sparkle();
}}
function sparkle() {
var c;
if (x!=ox || y!=oy) {
ox=x;

oy=y;
for (c=0; c
star[c].style.left=(starx[c]=x)+"px";
star[c].style.top=(stary[c]=y)+"px";
star[c].style.clip="rect(0px, 5px, 5px, 0px)";
star[c].style.visibility="visible";

starv[c]=50;
break;
}
}
for (c=0; c
if (starv[c]) update_star(c);
if (tinyv[c]) update_tiny(c);
}
setTimeout("sparkle()", 40);
}
function update_star(i) {
if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";

if (starv[i]) {
stary[i]+=1+Math.random()*3;
if (stary[i]
star[i].style.top=stary[i]+"px";
starx[i]+=(i%5-2)/5;
star[i].style.left=starx[i]+"px";
}
else {
star[i].style.visibility="hidden";

starv[i]=0;
return;
}
}
else {
tinyv[i]=50;
tiny[i].style.top=(tinyy[i]=stary[i])+"px";
tiny[i].style.left=(tinyx[i]=starx[i])+"px";
tiny[i].style.width="2px";
tiny[i].style.height="2px";

star[i].style.visibility="hidden";
tiny[i].style.visibility="visible"
}
}
function update_tiny(i) {
if (--tinyv[i]==25) {
tiny[i].style.width="1px";
tiny[i].style.height="1px";

}
if (tinyv[i]) {
tinyy[i]+=1+Math.random()*3;
if (tinyy[i]
tiny[i].style.top=tinyy[i]+"px";
tinyx[i]+=(i%5-2)/5;
tiny[i].style.left=tinyx[i]+"px";
}
else {

tiny[i].style.visibility="hidden";
tinyv[i]=0;
return;
}
}
else tiny[i].style.visibility="hidden";
}
document.onmousemove=mouse;
function mouse(e) {
set_scroll();
y=(e)?e.pageY:event.y+sdown;

x=(e)?e.pageX:event.x+sleft;
}
function set_scroll() {
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {

sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;

sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
}
window.onresize=set_width;
function set_width() {
if (typeof(self.innerWidth)=="number") {
swide=self.innerWidth;

shigh=self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (document.body.clientWidth) {

swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
}
function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.height=height+"px";

div.style.width=width+"px";
div.style.overflow="hidden";
div.style.backgroundColor=colour;
return (div);
}
// ]]>


Saturday, December 25, 2010

Kaavalan Trailer





Happy christmas!

Im dreaming of white Christmas,
with evry christmas card I write,
May ur dayz b bright,
and May all ur christmases b white.




Happy christmas - Reach360

Friday, December 24, 2010

Vijay Kavalan Wallpapers


Vijay Kavalan Wallpapers Full Size Download

http://www.vijayfansclub.com/wp-content/uploads/2010/12/kaavalan-vijay-wallpapers-01.jpg  http://www.vijayfansclub.com/wp-content/uploads/2010/12/kaavalan-vijay-wallpapers-02.jpg

Vijay Kavalan Wallpaper 01 Full size Download: Download Vijay Kavalan Wallpapers 01
Vijay Kavalan Wallpaper 01 Full size Download: Download Vijay Kavalan Wallpapers 02

Thursday, December 23, 2010

Nil Gavani Sellathey Trailer


How to implement the Business Layer-II


Code Snippet 3: CustomerInfoCollection GetAllCustomers() method
public class CustomerInfo
{
private DataRow m_dr;
private CustomerInfoCollection m_cic;

public CustomerInfo(CustomerInfoCollection coll, DataRow dr)
{
m_cic = coll;
m_dr = dr;
}




Code Snippet 4: CustomerInfo Class & Constructor

    Now, the DataRow object is associated with the DataTable in the Collection class as well as with an object. Now all we have to do is define properties which directly access the columns in the DataRow. In this way, we create a direct conduit into the DataSet and a way to centralise inserts, updates and deletes.
Here is an example:
public string CustomerID
{
get
{
if (m_dr["CustomerID"] == System.DBNull.Value)
return "";
else
return m_dr["CustomerID"].ToString();
}
set
{
m_dr["CustomerID"] = value;
}
}

Implementing Business Rules
So where do those much-talked-about business rules go? Well, we've already implemented one called GetAllCustomers. So all we have to do is implement a Create and Update method:
To create a new Customer, we need to do 3 things:

   1. Instantiate a new DataRow based on the Customer DataTable
   2. Add the DataRow to the Rows collection of DataTable
   3. Instantiate a new CustomerInfo object and add it to the collection.

We will also need our method to return the newly instantiated ClientInfo object so that we can use it in the Presentation Layer.
Here is the method we will implement in the CustomerInfoCollection class:


public CustomerInfo Create()
{
DataRow dr = m_ds.Tables["Customers"].NewRow();
m_ds.Tables["Customers"].Rows.Add(dr);
CustomerInfo ci = new CustomerInfo(this, dr);

this.Add(ci);
return ci;
}

Code Snippet 6: CustomerInfoCollection Create() Method
Note that we have used the Add method instead of adding our object directly to the ArrayList; it is one of the methods you will need to write in order to implement IList.
To implement the update, it is even easier. Since every Info class feeds directly into the collection DataTable, all we have to do is send the entire DataSet to the Data Layer which will deal with the request.

public void Update()
{
DCustomers cust = new DCustomers();
// No try/catch because the Exception will be passed to the calling object in
// the presentation layer
m_ds = cust.UpdateCustomers(m_ds);
}

Code Snippet 7: CustomerInfoCollection Update() Method
    So that was fairly easy. We now have to implement the Delete and, more importantly, the Undo methods.
Because we have a DataRow inside our CustomerInfo object, we need to be able to remove this object from the collection at the same time as we delete the row. We will also need to extend our CustomerInfo class and add a couple of helper properties, notably a Parent property which points back to the collection class (see Code Snippet 4) and a RowStatus property, which send back the DataRow Rowstate.

public CustomerInfoCollection Parent
{
get
{
return m_Parent;
}
}

public DataRowState RowStatus
{
get
{
return m_dr.RowState;
}
}

Wednesday, December 22, 2010

How to implement the Business Layer-I



The Database Model:
   The starting point for any application is the database model. This is the lowest tier and one of the most important. By developing a model which covers all your functional requirements, you build the foundations upon which your whole application relies.
Let's have a look at the database model for this sample application as our data layer is going to connect to it.
   As you can see, a Customer, can have several Orders. Each Orders item is related to one or more Order Details. Every Products item can be related to zero or more Order Details.
That's it. Not really complicated, but complex enough to demonstrate how to navigate through a set of interrelated tables.
Collecting the Business:
   If one thinks of any system, all we are really dealing with is collections of data. For instance, a list of customers is just a collection of customers. Each customer contains a collection of orders, which in turn contains a collection of order detail items.
   Within our business layer, for each major table or set of related tables, we will create a collection class based on the IList interface so that it can be used as a data source. Each Item within the collection will be an "Info" class which encapsulates the information for each table.
   So, for the Customer table in the example above, we will create two classes: CustomerInfoCollection and CustomerInfo which will encapsulate the collection and the detail respectively.
So we end up with this class model:
Not all that complicated, is it?
The next step is to see how these classes are implemented. We will base our collection class around the ArrayList object. It is not the most efficient option since casting to and from another type is relatively slow, but in order not to overcomplicate this implementation it is the most flexible one. For production use, I recommend you write your own or use some of the excellent classes referenced throughout the MSDN or related websites.
So, our basic class definition will look like this:

public class CustomerInfoCollection : IList
{
private ArrayList m_alCustomerInfo;

public CustomerInfoCollection()
{
m_alCustomerInfo = new ArrayList();
}
}

Code Snippet 1: CustomerInfoCollection Class and Constructor
Of course, we will need to implement IList. This can be done quite simply by encapsulating the ArrayList methods and making sure that only the required Info objects are added to it.
Here is a simple example which demonstrates an IList method which ensures that only CustomerInfo objects are added to the ArrayList:


public int Add(object value)
{
if (value is CustomerInfo)
{
return m_alCustomerInfo.Add(value);
}
else
throw new InvalidCastException("Collection only accepts CustomerInfo objects");
}

Interweaving the .NET Framework in our Business
   Well, this is a .NET article, so obviously we're going to leverage as much of the framework as we can. In part 1 of this series, I explained how the data layer would be responsible for communicating with the database or data source. The object resulting from this dialog is the DataSet. Once you realise that this object serializes to XML automatically, it becomes the obvious object to handle communication between the layers. Since it is independent of any data source, we do not compromise our layers.
   So, let's have a look at how we integrate the DataSet object into our classes.
If you look at Figure 2, we can set up a convenient relationship between the DataTable object by using it as a basic data store within the collection and using the DataRow within the Info class. Because the DataSet and not the DataTable is serializable, we will define a DataSet per collection and associate each DataRow with a specific Info item object.
So how will this look on implementation?

public class CustomerInfoCollection : IList
{
private ArrayList m_alCustomerInfo;
private DataSet m_ds;

public CustomerInfoCollection()
{
m_alCustomerInfo = new ArrayList();
}

public void GetAllCustomers()
{
// Instantiate a Data Layer class to fill the DataSet
// The specific method will fill a DataTable named "Customers"
// See Part 3 for further details.
DCustomers cust = new DCustomers();
m_ds = cust.SelectAllCustomers();

// Iterate on all rows and create an Info object per row
foreach (DataRow dr in m_ds.Tables["Customers"].Rows)
m_alCustomerInfo.Add(new CustomerInfo(this, dr));
}
}

Tuesday, December 21, 2010

How to implement the Business Layer


Summary: I explained the difference between the presentation, business and data layer. In this instalment, I will explain how to implement the business layer and the objects you will need to build and how they interact.

Introduction:
I started writing this series in response to what I thought were overcomplicated explanations of a fairly simple subject. I have also noticed that there seems to be a 50-50 split in the newsgroups and forums about how n-tier should be implemented. Should it use ADO.NET as a basis, or should it be implemented in an object-centric way? Each method has its advantages. If you use ADO.NET you get all the pre-implemented advantages the .NET development teams have provided. However, you can't encapsulate functionality into a DataSet or DataTable object. On the other hand, an object-centric approach means that you have to re-implement all the fantastic ADO.NET functionality. In an attempt to bridge the gap, the method I use is a mixture of both approaches. By using ADO.NET in an object-centric way, we could gain the benefits of both.
In the first part, I set the scene by showing the evolutionary process which brought us to the n-tier stage. In this article, I will explain how to implement a simple but non-trivial part of the Customer/Order part of the Northwind database and we will explore what the best way is to implement the Business layer.  In the following instalments, we will look at the data layer and the presentation layer. Finally we'll look at moving our blocks of code onto different physical machines using .NET Remoting and XML Web services. As you will see, many technologies and prerequisites are required in order to understand how this works, including interfaces and ADO.NET.
Although this article is an introduction to .NET architecture, it assumes that you have knowledge of .NET mechanics and the use of OO concepts such as interfaces. If there is enough demand, I'll supplement this article with a series on how these concepts are implemented in .NET. So with this proviso, let's have a look at how to implement an n-tier architecture you can apply to your most complex projects.
Please note that this article does not contain attached code. Full code will be supplied in the 3rd instalment as source code is meaningless without a data layer.

விரை‌வி‌ல் கொடி அ‌றிமுக‌ம் : நடிகர் விஜய்!

''தற்போது அரசியலில் குதிக்க தயாராக இல்லை. விரைவில் ரசிகர் மன்றத்துக்கான கொடியை மட்டும் அறிமுகம் படுத்தப்படும்'' என ஈரோட்டில் நடிகர் விஜய் நற்பணி மன்ற நலத்திட்ட உதவி வழங்கும் விழாவில் நடிகர் விஜய் பேசினார்

விஜய்: ஈரோடு மாவட்ட ரசிகர்களிடம் இருந்து எனக்கு அதிக கடிதம் வருகின்றன. தமிழகத்தில் எனக்கு ஈரோட்டில் தான் முதலில் ரசிகர் மன்றம் துவக்கப்பட்டது. ஆகவே ஈரோடு எனக்கு முக்கிய நகரமாக உள்ளது. இது எனக்கு மகிழ்ச்சியாக உள்ளது.

Saturday, December 18, 2010

New Hindi songs free download



Toonpur Ka Superrherohere
Ajay Devgn, Kajol, Tanuja, Sanjay Mishra

Tera Kya Hoga Johnyhere
Neil Nitin Mukesh, Kay Kay Menon, Soha Ali Khan

Impatient Vivekhere
Vivek Sudarshan, Sayali Bhagat

Yamla Pagla Deewanahere
Sunny Deol, Dharmendra, Bobby Deol

PayBackhere
Munish Khan, Sara Khan

Mirchhere
Shreyas Talpade, Konkona Sen Sharma

Monday, December 13, 2010

Download new Mp3 for free



Naanum En Kadhalum Songs download here
Anand,  & Swetha

Madhuvum Mythiliyum Songs download here
Bhuvan, Sriji, Jeeva, Arthi

Kandaen Songs download here
Santhanu, Rashmi Gautham, Santhanam

Singam Vs Puli Songs download here
Jeeva, Divya Spandana

Ilangyan Songs download here
Pa Vijay, Meera Jasmine

Tuesday, December 7, 2010

Trailer

Kaavalan Songs free download Now

Eesan


Manmathan Ambu

Monday, November 15, 2010

Tuesday, October 19, 2010

Uthamaputhiran



Uthamaputhiran songs download here:


Cast : Dhanush, Genelia D’Souza, K. Bhagyaraj, Vivek, Karunas…
Music Director
: Vijay Antony
Director
: Mithran R Jawahar
Producer
: Mohan Apparao, T Ramesh
Singers
: Vijay Antony, Emcee Jazz, Janani Iyer, Naresh Iyer, Ranjith, Sangeetha, Vinaya, Vijay Prakash, Saindhavi, Ajesh
--------------------------------------------------------------------------------------------------------------
01 Ussumu Laresay – Vijay Antony, Emcee Jazz, Janani Iyer
02 Kan Irrandil – Naresh Iyer
03 Idicha Pacharisi – Ranjith, Sangeetha, Vinaya
04 En Nenju – Vijay Prakash, Saindhavi
05 Thooral Podum – Ajesh, Janani Iyer
06 Ulagam Unnaku – Vijay Prakash

Download  all songs 

Thursday, October 7, 2010

வானம்

காவலன் பிரஸ் மீட்

Tamil Cinema Cine Function Kavalan team interview
Tamil Cinema Cine Function Kavalan team interview
Tamil Cinema Cine Function Kavalan team interview
Tamil Cinema Cine Function Kavalan team interview

Tamil Cinema Cine Function Kavalan team interview

காவலன் Shooting Spot

 

 

 


Wednesday, October 6, 2010

Google soon to launch TV software

Orchestrate App Delivery
  From Demand, Development To Fast App Delivery. Free Whitepaper. www.serena.com/go/App-Delivery

Washington: US search engine giant Google is planning to introduce Android-based television software in May which will enable the users to access television through internet.
The new software, designed to open set-top boxes, TVs and other devices to more content from the internet, is attracting interest from partners that include Sony Corp., Intel Corp. and Logitech International SA, which are expected to offer products that support the software, according to people familiar with the matter.
However, none has so far discussed the efforts publicly, The Wall Street Journal reported.

Google's multiple-access password software 'Gaia' hacked 

    Google, of Mountain View, California, is currently planning on sharing some details about the technology with more than 3,000 developers expected to attend its conference in San Francisco on May 19 and 20.
One person familiar with the matter cautioned that the company could also decide to delay discussing it until the technology is more mature. Google uses the annual conference to showcase a range of technologies of interest to developers.
The decision to address developers suggests that the internet giant may be hoping to kick-start a race to build applications for its TV platform, much in the same way that Google, Apple Inc. and others have courted developers for smartphones.
Google: $1.4M on 1Q lobby on China, other issues

   The app-store approach has already begun to gain traction among some players in the TV market, too, aided by the advent of TVs, Blu-ray players and other hardware with internet connections.
The service, which uses the new Google technology, allows users to access and search across programming from the internet as well as Dish's conventional programming. The test, which began last year, is still limited to a very small number of the company's employees and their families.

Tuesday, September 28, 2010

VIJAY BIOGRAPHY


Full Name: JOESPH VIJAY
Affectionately Called Ilayathalapathy(By fans)
Vassol Chakravarthy(By Film Fraternities)
Profession - Actor and Singer
Date of Birth 22nd June 1974
Mother Tongue - Tamil
Height - 5’-10”
Father - S.A.Chandasekharan(Writer, Producer, Director)
Mother - Shobha Chandra Sekhar(Singer, Writer And Director)
Uncle - S.N Surendar {Play Back Singer And Dubbing Voice for Actor Mohan Over 85 Film}
Education - Bachelor's Degree of Visual Communications at Loyola
Spouse - Sangeetha
Vijay Wedded Sangeetha on - August 25 1999
Son - Jason Sanjay
Daughter - Divya Saasha
Dear Friends - Sajai, Srinath, Sanjeev, Manoj and Ram Kumar
His Best friend in film industry - Vikram, Surya
Debut as child artiste - “Vetri”
As action hero - Nalaya Therpu Directed by S.A.Chandra Shekar
As an Actor - Strengths - Stunts, Dance and Singing, Punch Dialogues.
Aa a person - Intorvert, Famous for on - Line Answers

Favourties
>> Tourist spots - London and Los Angels
>> Food - Non-Vegetrian(Chicken Briyani and Tandoori Items)
>> Clothes - Jeans and T-Shirt
>> Colour - Blue and Black
Crazy About - Cars(Owns a Black BMW)

Monday, September 27, 2010

KAAVALAN

llayathalapathy Vijay is busy these days and working hard on KAAVALAN and VELAYUDHAM simultaneously, with both being handled by experienced directors.

Vijay is right now shooting for KAAVALAN at Kerala, and the team would be back to Chennai for their final schedule and the shooting is all set to be wrapped up in the first week of October, after which Vijay would resume his shoot for Velayudham.

Now expectations are on the upcoming movies that Vijay would work on after these 2 releases and its now confirmed that Vijay would work with Shankar for tamil remake of 3-Idiots. Vijay had already agreed to do the lead role in tamil remake of 3-Idiots , which would be directed by Shankar and the music for the movie would be scored by Harris Jeyaraj and his combo with Vijay for the first time is set to create great expectations. This movie would be produced by Gemini Circuits, who hold the copy rights for the tamil remake of the movie.Talks are with Madhavan to play the same role that he did in Hindi and Jeeva would be the other lead too. But except for Vijay doing the lead role, the other casting details is still under discussions and would be known soon in the coming week.

Vijay s combination with Shankar and Harris Jeyaraj is sure to create history.
So letz all keep our fingers crossed and wait for further official announcements regarding the same.

Tuesday, August 31, 2010

I love my job!




I love my job, I love the pay.
I love it more and more each day.
I love my boss; he is the best.
I love his boss and all the rest.
I love my office and its location.
I hate to have to go on vacation.
I love my furniture, drab and gray,
And the paper that piles up every day.
I love my chair in my padded cell.
There’s nothing else I love so well.
I love to work among my peers.
I love their leers and jeers and sneers.

I love my computer and its software;
I hug it often though it don’t care.
I love each program and every file,
I try to understand once in a while.

I’m happy to be here, I am, I am;
I’m the happiest slave of my Uncle Sam.
I love this work; I love these chores.
I love the meetings with deadly bores.

I love my job-I’ll say it again.
I even love these friendly men,
These men who’ve come to visit today
In lovely white coats to take me away.