Shalvin Interests

Monday, March 4, 2013

Kodiswaran March 3rd Question and Answers


1. Finger in which  ink in applied after election - left index finger.

2. Musical  instrument associated with Pandit Ravishankar -Sithar.

3. Number of chessmen in a standard chessboard -32.

4. Average body temperature of human being - 37

5. MP from Alappey who became Civil Aviation Minister on Oct 29 2012 - K C

Venugopal

6. ICC Cricket 2015 hosts - Australia and New Zealand

7. Pakshipathalam in Bhahmagiri hills is located at - Vayanad
http://en.wikipedia.org/wiki/Brahmagiri_(hill)

8.   Kerala Sahithya Academy Award recepient for the work 'Or Pidi Nellikka'-

Edasseri

9. Number of Rasas in Navarasas - 9

10. According to Mahabharath Keechakan was killed by - Bhiman







Wednesday, February 27, 2013

SharePoint 2010 Enterprise Databases

Following are the databases that gets created with SharePoint 2010 Enterprise installation:


Application_Registry_Service
Bdc_Service_DB
Managed_Metada_Service
PerformancePointServiceApplication
Search_Service_Application_CrawlStoreDB
Search_Service_Application_DB
Search_Service_Application_PropertyStoreDB
Secure_Store_Service_DB
SharePoint_AdminContent
SharePoint_Config
StateService
UserProfileServiceApplication_ProfileDB
UserProfileServiceApplication_SocialDB
UserProfileServiceApplication_SyncDB
WebAnalyticsServiceApplication_ReportingDB
WebAnalyticsServiceApplication_StagingDB
WordAutomationService
WSS_Content
WSS_Logging
WSS_Search

Monday, December 10, 2012

Drummer jokes


1. A guitarist asked a drummer why he prefers drum over guitar. The drummer answered atleast with drums you can loose cholesterol.

2. A guitarist wanted to torture the drummer, so he hid one of the drummer's sticks. After looking around, the drummer fell to his knees, raised his eyes to heaven, held up his remaining stick, and said, "Thank you Lord, for making me a conductor".


3. Two girls are walking down the road  when they hear, "Ssh! Down here". They looked down and see a frog, who says, "If you kiss me I'll turn into a famous drummer and make you rich and famous". One of the  girls reached down, grabs the frog, and stuffs it in her purse. The other girl says,  "Aren't you going to kiss him"? The first girl says, "No way! A talking frog is worth more than a famous drummer any day".


4. Why is a drum machine better than a drummer?
A. Because it keeps a steady beat and won't try to steal your girlfriend.


5. What's the difference between a drummer and government bonds?
Government bonds eventually mature and earn money.

6.What's the definition of a gentleman?
A. Someone who knows how to play the drums - but doesn't.

Sunday, October 14, 2012

Asp .Net GridView Events

The following events are triggered by GridView Control which can be used to customize the output:

DataBinding
RowCreated
RowDataBound
DataBound.

protected void GridView1_DataBinding(object sender, EventArgs e)
{
    Response.Write("1. Data Binding");
    Response.Write("<br/>");
}
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
    Response.Write("2. Row created " + e.Row.Controls[0].ToString());
       
        Response.Write("<br/>");
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
    Response.Write("3. Row Data Bound");
        Response.Write("<br/>");
}
protected void GridView1_DataBound(object sender, EventArgs e)
{
    Response.Write("4. Data Bound");
}

Tuesday, August 28, 2012

SharePoint Client Object Model


SharePoint Client Object Model is a set of libraries and classes with which you can consume SharePoint data through a specific object model, which can be considered a subset of the SharePoint Object Model.

The client object model exposes a subset of the API that the server object model does, mainly focused on the Site-Collection level and lower.

The design of the client object model is to batch interaction with SharePoint to minimize the number of
round trips that it takes to interact with SharePoint services for common actions.


Multiple platform support :
  Managed Client
  Silverlight
  ECMA


The Client Object Model uses a client runtime proxy that communicates with a Windows Communication Foundation (WCF) service. The service is located at /_vti_bin/client.svc. 
To communicate, the client proxy sends batched XML commands and the WCF services respond with a result formatted using JavaScript Object Notation (JSON).
Because all commands are batched together and the JSON notation is a compact form, the Client Object Model bandwidth use is kept to a minimum.


Assembly Requirements

1.  Managed Client Object Model
  Microsoft.SharePoint.Client.dll
  Microsoft.SharePoint.Client.Runtime.dll
These files are located in the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI folder.


2.  Silverlight Client Object Model
Microsoft.SharePoint.Client.Silverlight.dll
Microsoft.SharePoint.Client.Silverlight.Runtime.dll
These files are located in \Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\ClientBin

The reason for these .dlls being installed in a different location is due to how Silverlight works—
these .dlls are deployed to the same folder that some of the Silverlight building blocks are located in,
which makes it easier to access them from Silverlight.

3. ECMAScript Client Object Model
  A set of .js files
   SP.js
   SP.Core.js
   SP.Ribbon.js
   SP.Runtime.js

JavaScript files that are located in the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS folder

  These .js files are automatically downloaded to the browser when a use browses to SharePoint page.

There are also assemblies for working with REST/OData end points and Windows Phone.



Managed Client Object Model


using Microsoft.SharePoint.Client;

private void Form1_Load(object sender, 

EventArgs e)
{
    ClientContext ctx = new ClientContext

("http://shalvin");
    Site site = ctx.Site;
    ctx.Load(site);

    Web wb = site.RootWeb;

    ctx.Load(wb);

    ctx.ExecuteQuery();

    listBox1.Items.Add(ctx.Url);
    listBox1.Items.Add(site.Url);
}

Saturday, August 18, 2012

Replacing existing button with new Button in SharePoint 2010 with Custom Action

<CustomAction Id="Ribbon.Documents.New.NewFolder.ReplaceButton"
     Location="CommandUI.Ribbon"
     RegistrationId="101"
     RegistrationType="List"
     Title="Replace Ribbon Button">
    
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.Documents.New.NewFolder">
          <Button Id="Ribbon.Documents.New.NewFolder.ReplacementButton"
            Command="MyNewButtonCommand"
            Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png?vk=4536" Image16by16Top="-240" Image16by16Left="-80"
            Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png?vk=4536" Image32by32Top="-352" Image32by32Left="-448"
            ToolTipTitle="Create a New Folder"
            ToolTipDescription="Replaced by XML Custom Action"
            LabelText="Shalvin New Folder"
            TemplateAlias="o1" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
          Command="MyNewButtonCommand"
          CommandAction="javascript:alert('New Folder Replaced by Shalvin');" />
      </CommandUIHandlers>
    </CommandUIExtension>
    
  </CustomAction>

Notification in SharePoint 2010

<CustomAction
  Id="NotificationDemo"
  RegistrationType="List"
  RegistrationId="101"
  Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
         Location="Ribbon.Documents.New.Controls._children">
          <Button
           Id="Ribbon.Documents.New.Controls.NotificationDemo"
           Alt="Notification Button"
           Sequence="30"
           Image32by32="/_layouts/images/PPEOPLE.GIF"
           Command="NotificationDemo"
           LabelText="Notification Demo"
           TemplateAlias="o2"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="NotificationDemo"
         CommandAction="javascript:SP.UI.Notify.addNotification('Hello from Shalvin', false);"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>