Wednesday, June 23, 2010

Sharepoint

I got a chance to discuss some sharepoint things with my friends. I feel some of the points discussed are worth sharing.

Below are the points.

Difference Between Sharepoint and DotNetNuke:
· SP offers full-text indexing of the documents you store in it, and so you can search inside the documents in its libraries. DNN doesn't offer this.

· SP stores its documents very securely in the SQL database; DNN stores them as files, which means if someone knows the right path, the site's security could be bypassed and the documents downloaded directly.

· WSS was designed to integrate with Active Directory, DNN was designed to work with anonymous users and Forms Authentication.
· SP is basically used for Intranet applications. DNN is used basically for Extranet applications.

Ghosting:
Page ghosting, is a key factor in allowing a WSS farm to scale out to tens of thousands of pages across all the sites within a farm. Let me provide a quick example to
illustrate how page ghosting works.

Imagine that you have just created 100 new WSS sites from the Blank Site template. If none of these sites requires a customized version of its home page (default.aspx), would it still make sense to copy the exact same page definition file into the content database 100 times? The answer to this
question is obviously no. Fortunately, pages within a WSS site such as default.aspx are based on page templates that live on the file system of the front−end Web server. Page templates are used to provision page instances within the context of a site, such as the page that is accessible through a specific URL like http://litwareinc.com/default.aspx.

When a page instance is initially provisioned from a page template, WSS doesn’t need to store a copy of it in the content database because WSS can load the page template from the file system of the Web server and use it to process any request for an uncustomized page instance. Therefore, you can say that page ghosting describes the act of processing a request for an uncustomized page instance by using a page template loaded into memory from the file system of the front−end Web
server.

Page ghosting is valuable because it eliminates the need to transfer the contents of a page definition file from the SQL Server computer with the content database to the front−end Web server computer. Page ghosting also makes it possible to process the home pages for thousands of different sites by using a single page template that is compiled into an assembly DLL and loaded into memory in the IIS worker process just once per Web application. Both of these optimizations are key factors in the scalability of WSS in high−traffic environments running thousands or tens of thousands of sites.

Tuesday, June 22, 2010

.NET 4.0

.NET 4 has IsNullOrWhitespace added to String class !!!

The blog was written by one of my friend, Sarang. I am publishing it here again for the reference of my friends....


Any string input can have these many possible states
1) String is null
2) String is empty
3) String contains nothing but white space
4) String has some content

Till now, .NET had static method for string bool string.IsNullOrEmpty() which handled first two conditions for us. Now with .NET 4 we have another static method
bool string.IsNullOrWhitespace()
Basically it is equivalent to the following code,
return String.IsNullOrEmpty(input) input.Trim().Length ==0 ;
but has performance improvement because white-space characters are defined by the Unicode standard. The IsNullOrWhiteSpace method interprets any character that returns a value of true when it is passed to the Char.IsWhiteSpace method as a white-space character.

We must have implemented logic for this condition everywhere in our applications but addition of this useful inbuilt function is nice to have with some performance improvement !

Saturday, September 15, 2007

Chak De India

I don't know whether it is an effect of recent movie Chak De India!, but India suddenly has started to perform well in Sports. And the examples are - Winner of Nehru Cup Football, Winner Of Asia Cup Hocky, Winner of Cricket Test Series vs England, Sania's improved rank in Tennis (Sorry if I am missing anything).
Its really a good time for Indian sports. Indian people have started taking interest in sports other than Cricket. And everyone of us should keep this spirit up. We should encourage other sports also.
And I firmly believe that People of Country can help in improving the status of any sport in that country. So let us encourage other sports also and hope that India brings a lot of medals in Olympics.

India Pakistan T20 World Cup Match- Unforgettable

People say that Twenty20 is the game of batsmans, and not the Bowlers. But India Pakistan Match proved it wrong.
Indian batsmans did not give a good start to India. They did not respect the pitch conditions. And paid for it. Mohammad Asif bowled so well to keep the indian batsmans restricted. But in the end, India managed to score 141 runs which was a competitive score, thanks to Uthappa, Dhoni, Pathan. Robin really showed the confidence in very bad conditions.
Pakistan inning started and showed some consistancy. But again the Pitch and Indian Bowlers did not prove good for the Pak Batsmans. At one stage, it seemed that india won. But 19th over from Agarkar was turning point. Last over - 12 runs from 6 balls. Sreesanath bowled so well in such a pressure, it helped india to tie the match.
And here comes the creation of history. Bowled Out Rule.
Indian nominees for bowled out - Sehwag, Bhajji, Uthappa, Sreesanath, Pathan. And the rest is history. Thanks god, i was one of the lucky persons to watch those moments.
And this Bowled out rule proved, 20T is not a game of only Batsmans, Bowlers have a big role to play!
Will Be Posting soon