Saturday, June 20, 2009

SharePoint tools for developers

There are very important tools that you can use while you are working with SharePoint development work.

I thought of putting down very important tools that you can use when comes to developing SharePoint projects.Those tools are really handy on reducing your development time as well as troubleshooting time.

WSP Builder – This is a VS extension which is fully cable of deploying sharepoint solutions.This is a dream tool you can think of the problem you are facing when comes to deploying SharePoint solutions.

Hats off to Carsten Keutmann

SharePoint Manger – This is a very useful tool to explore the every item in your SharePoint installation.

BareTail – This is also very important tool that can be used to view the SharePoint log files which lies in the 12 Hive.And you can use this tool to monitor any log file for that matter

Interesting article on Murali

Image Copy right : © Ashish Padlekar

Very interesting article on Murali.

Read it here.

Tuesday, June 16, 2009

Document Template Management in SharePoint

Very good article on SharePoint document template management.

Read it here.

Sunday, June 14, 2009

Terminator Salvation

I watched the move today @ Colosseum in Oslo.It was a great experience in that cinema.It is one of the few cinemas which has got THX CERTIFIED.Unbelievable sounds and high quality images.Truly a great cinema experience.It felt like you are a part of the film because of these surround sounds and high quality pictures.

More details on THX can be found at here.

You can view THX trailers here.First one is the one Colosseum showed before starting the movie today.

As a fan of Terminator film series I loved this one and it is indeed a action packed movie.Every time after watching a Terminator film, I am thinking in mind that there will be another one.Time will tell you.It becomes a reality in 3 times so far.

Sunday, May 31, 2009

French Open 4th Round match - Rafael Nadal Vs Robin Soderling

What a match it turning out to be.I am watching World no. 1 taking on Swede(23 seeded) on Star Sports.I am sure no one has bet against Nadal for this match.To date he has won 32 straight matches in Roland Garros in doing so won four French open titles consecutively(2005-2008).

At the time of writing this entry Nadal was 2 sets to 1 down (6-2,6-7,6-4)against the Swede and 2 all in 4th set and Nadal to serve.This could well be go down to the fifth set if Nadal do manage to win this set and if that happens it will be the first time Nadal has played a five setter in Roland Garros.That shows you how tougher customer the world no. 1.

It will take some doing against the Swede who is so powerful in serve as well as ground stokes.His display of ground strokes is amazing to watch and normally I have seen such serenity only from Nadal himself.Nadal has done that to so many opponents here in Roland Garros.But today its his turn to face the music from Swede.

But still Nadal is hanging out there with Swede.Now 4 all in 4th set and Nadal to serve.Absolutely fantastic game to watch.

Now the 4th set is in the tiebreaker and things not looking good for Nadal, 2-0 down with Swede serivng.2-1 Nadal to serve.Breath taking stuff out there.

Now the score is 6-1 in the tiebreaker and the 4 times defending champion is about to bow out from the 2009 French Open.Oh my god , Swede has done it.He has defeated the king of clay Rafeal Nadal who has never been beaten here in Roland Garros.What a major upset in French open 2009.Well played Swede.

Match statistics

Saturday, May 23, 2009

Localization of web parts in SharePoint

My colleague Sanjaya has posted a fantastic article on localizing SharePoint web sites and web parts.

One of the major problem when comes to localizing web parts is that you have to have all translations relates to the locale you are using, if you are to build the embedded resources.

So I would prefer let the customer do the translations rather than we do it.In that case if you can send the set of resources files ( *.resx ) to the customer he can easily open those files and he can do the translation as he needs.

What my colleague mentioned in his article is totally alright but it is not entirely to my likings when comes to localizing web parts because of the above mentioned reason.

So I just used the resources files (*.resx) but not deployed them as embedded resources.

How to do it ?

  • Add the relevant resource files in to your web part.
  • Use the following fragment of code to access the resource strings from the resource files as required in your controls.
  • HttpContext.GetGlobalResourceObject("<resource file name>", "<resource key>").toString()
  • Make sure to have the resource files in the “App_GlobalResources” directory of the corresponding web application project.

More can be read from the following references :

http://tomblog.insomniacminds.com/2008/02/25/sharepoint-internals-resources/

http://www.mikhaildikov.com/2007/03/sharepoint-resources-types-use-and_2163.html

Wednesday, May 20, 2009

One Flag One Sri Lanka - The dream of united land becomes a reality

After 30 years of sufferings the Sri Lanka has become a terror free nation of the world.There are lots of celebrations going on SL these days.Yes it is indeed something to cheer about at this moment.We all know how we, as Sri Lankans ( Not only Sinhalese but also Tamils , Muslims as well ) suffer due to this terrorist activities.

IMHO now SL will face the real WAR of uplifting the standard of living of the civilians who caught up in this war.There are thousands of internally displaced people out there and the utmost thing to be done is to relocate them and let them live peacefully.

If we are to keep the ever lasting peace in SL it is paramount to address the issues they are having. And without doing that I don’t think we will ever live peacefully in our country.

Tuesday, May 12, 2009

SharePoint and Women

I read a very interesting blog entry published by Bjørn Furuknap and I should definitely share this with you.Read it here.

Thursday, April 23, 2009

Sri Lanka cricket At The High Table

Currently I am reading the book of “Sri Lanka Cricket At The High Table” by Mahinda Wijesinghe none other than who proposed the concept of 3rd umpire to ICC.Read more about him from here.

I found there were so many unheard stories plus the records we have achieved so far from this book and it is worth reading.I recommend this book to all of the Sri Lankan cricket lovers.Not only cricket lovers but others too.

It is indeed unbelievable what Sri Lanka have achieved during the last 27 years after getting the Test status in 1982.

Friday, April 17, 2009

8 Characteristics of successful UIs

Read a very very good article on things to consider when designing user interfaces.

8 characteristics are :

1. Clear
2. Concise
3. Familiar
4. Responsive
5. Consistent
6. Attractive
7. Efficient
8. Forgiving

Read the full article here.

Thank you very much Uchitha for sharing this wonderful article with us.

Friday, April 03, 2009

Fiddler to capture request from Firefox

Fiddler to capture requests from Firefox you need to do a small configuration in Firefox.

In Firefox 3.0.8 (one I am using) follow the steps bellow

  • Go to Tools > Options > Advanced > Settings
  • Set the “Automatic proxy configuration URL” to “C:\Users\<user name>\Documents\Fiddler2\Scripts\BrowserPAC.js”.(NOTE : change the BrowserPAC.js path accordingly)
  • Click Ok
  • Close the Fiddler and open if you have already opened the fiddler.

Reference : http://www.fiddlertool.com/Fiddler/help/hookup.asp

Behind the scene :

What happens here is that , when you open the fiddler, the function “FindProxyForURL” in the “BrowserPAC.js” will change to this

function FindProxyForURL(url, host){
return 'PROXY 127.0.0.1:8888';
}

When you closes the fiddler it will change to

function FindProxyForURL(url, host){
return 'DIRECT';
}

Since you have configured the Firefox to look at this file, it will pick the proxy configuration automatically.

Problems I encountered :

After closing the Fiddler I wanted to browse some sites in Firefox but it didn’t work.It says “Connection Interrupted”.

Then I changed the proxy configuration to “No proxy” and it works.

Conclusion :

After using the fiddler make sure to revert the proxy settings back to the original in Firefox.

Worth looking at how IE handled this scenario.

Sunday, March 29, 2009

Australian Grand Prix - 2009

I am just watching the Race Day program on Star Sports and 20 minutes to start the race.What a qualification we had yesterday and no F1 giants (Ferraries,McLeraens,Williams, etc) in the front row of the grid.

Who would have thought that the old Honda team mates will be in the front row of the grid today.This is the old Honda package with a Mercedes engine in it.Honda will be kicking them selves if they do manage to win this opening race of the season after this performance by the new team Brawn GP.What a start to the new kid on the block.

Oh my god , power goes off, will I be able to watch the much waited start of the season.

Power is back :) hoorey. How dejected I was.

About to start the race, five red lights are illuminated and off they go and hence the race started.

Wonderful start by the Jenson Button and poor start by the team mate though.

3 laps to go and started the drama.Jenson Button is the race leader and 3 rd placed Robert Kubica tried to over take Sebastian Vettel and paid the ultimate prize , both crashed into each other and both hit the side wall after damaged to the left front suspension.Safety car was deployed and Sebastian Vettel tried desperately to drive the car through to the pit lane by 3 wheels but to no avail.

All these drama fell very well into Rubens Barichello’s hand who was in 4th place before this drama, he finished the race 2nd after his team mate Jenson.

What a start to the new team Brawn GP, and Team Principal Ross Brawn is the man who behind this team and pulled off this stunning performance which finished 1st and 2nd by a rookie team in his first appearance after 1954 French Grand Prix.

What a start to the F1 season and what a race to watch on live and I don't have words to explain the entertainment I got today.

Who says F1 is boring after this start to the season.Now the question is can the team Brawn continue in the same vein.From what I witness today they will really be a great threat to other front runners.Will keep my fingers crossed on this.

Monday, March 23, 2009

Formula 1 – 2009 season


I am really looking forward to seen the F1 2009 season with all the changes to the rules and regulations which starts on this Friday with the practice sessions at Albert Park in Melbourne.See this preview. This year, most of the teams have done so many technical changes to their package.

One of the new features included into this year was the KERS(Kinetic Energy Recovery Systems).

This year it is going to have only 17 races and the Yas Marina Circuit being the new comer will host the final race of the season.

Visit Formula 1 official web site for more information those who are curious about what’s all about this sport.

Thursday, March 12, 2009

Enabling anonymous access in MOSS

Recently I wanted to enable anonymous access to one of my sites in Share Point.I enabled the anonymous access to the web application from the IIS 7.Unfortunately it didn't work.

Then only I started googling on this and found out this wonderful blog post by Sven Gillis.

It indeed save my time and sharing with you all too.

Thursday, March 05, 2009

Keeping your cool while driving

This is something that I always had in my mind, how to keep your composure ( or cool in another word ) while you are driving.I am pretty clear that we all have come across situations where you totally get frustrated while driving with those totally out of mind drivers.The "frustration" is not the ideal word to show you how badly you felt it, "p..... off" is the right phrase I feel.Sorry for being very offensive.

Who are the notorious drivers in our country? Number one is the bus drivers, and two , 3 wheeler drivers and at last but not the least, motorcyclists in my opinion. Out of those, bus drivers are the most insane.Totally out mind , bunch of idiots who has taken the responsibility of taking commuters to their destination.Who would have wanted to be on board with such a stupid in control.

I know for sure that you don't need any examples of how they drive on the road.

So the question is how you keep your cool while driving.Following are the things I have tried out to keep my stress level to a minimum.In a way it worked really well for me.

  • Don't ever try to retaliate if the driver in front of you do something stupid while you are driving.That is the cardinal mistake you could have done.I know your adrenalin is pumping and you are furious to over take that bugger and learn a lesson to him.By doing this you will be putting yourself in greater danger, because you are not focusing on your driving and you are just thinking about learning a lesson to that idiot.I have experienced that and I know how was it like.
  • Let pedestrians to cross over when ever you have the chance to do so.That will really cool you down for a few seconds and let you gather your breath.That doesn't mean that you have to do it all the time.But I have few situations where you can , let them go by.
            • if you are not in that much of a hurry just put on breaks and let them cross.
            • if there is a long queue behind you then just stop and let them cross, because they (pedestrians) don't have to wait for a long time to cross.Otherwise just keep on going because they can cross after you pass the crossing.
  • Don't ever be restless while you are driving.I know you are in a hurry to go to office or any other work then you are trying to over take others.Then of course you in hot seat.So be patient and take you time to over take.
  • Never ever try to overtake at bends.I have done so couple of times and avoided some close shaves.
  • Try to avoid honking your horn like a crazy.I know for sure you have experienced the driver behind you is honking like a crazy, no need to explain what is your feeling at that time.So it is the same feeling the driver in front of you get if you do the same.So try to use it less and see.Of course you have to use your horn in situations where you have to let the others know about your presence.

I know, you readers also have different styles of driving.And I would like to know about those and reactions to what I have mentioned here.

Monday, February 16, 2009

Visual Studio 2008 extensions for SharePoint

I wanted to install VS 2008 extensions for SharePoint in my Vista box.I downloaded the package from here and started installing and got the following message

"This product can be installed if Windows SharePoint Services 3.0 has been installed first."

As usual searched in Google and found this blog entry on how to resolve the issue.

It was indeed save lots of time for me. Thanks goes to who ever contributed to this thread.

Tuesday, February 10, 2009

Sanomee mark her first birth day @ an orphanage


To mark the first birth day of our daughter , we decided to pay a visit to an orphanage and provide an alms giving to them.

It was indeed a fantastic feeling when you see those children enjoyed the occasion.And you felt that you have done something very very important to bring a smile to their faces.

It was a small place, well organized and taking care of 27 children.All of them are bellow the age of 15 years and all are girls.

As we finished preparing the dining room, the bell was rang by a child and then came all the children and was in a queue in front of the door.

Then one by one entered in to the room and took their respective seats.After having the meal they return to the main area.

There were lots of things in my mind when I noticed their behavior.

Most of them were very shy and reluctant to make eye contact with us.That showed the state of the mind they were in.Must have felt alone and neglected by their parents for what ever reason for that matter.I was felt really sorry for them.In a way they are lucky, they have been raised in this orphanage.Unless otherwise they are no more in this world in my opinion.I had no clue what might have gone in their mind.It must be very complicated to them.

Finally one of the children delivered a speech.She did thank us for what we did for them and made well wishes to my daughter to be a strong one in this society.

It was a very touchy one for me to listen.I was wondering how she made her composure while delivering that speech. She must have had so many things in her mind.It may have been a common thing to her, to deliver such speech to the people who comes to visit them in such occasions.I can still feel what I felt at bottom of my heart at that time.

Thought of sharing this with you all and if we can help such people in any means that really help them to live another day with a great smile in their faces.

Thursday, January 15, 2009

Ajax with Share Point

Recently I had to integrate Ajax with Share Point in order to provide much needed user experience in my current project.One of the main concern was when ever a user submit a request in a page the page get refreshed.For some users it is indeed a frustrating experience.

As every one of you do ,tell me if not, I searched in Google with the term "Integrating ASP.NET AJAX with SharePoint". Bingo.... here comes the results and I read the preview of the first search result and opened the entry.

It was from the "Mike Ammerlaan's Blog " and I started reading the post and realized that this is exactly what I wanted and no need to look for a better post for the job at my hand.

I followed all the steps for the "Adding Microsoft ASP.NET AJAX Technology to SharePoint Pages" and after about hour and so I managed to integrate Ajax to my sharepoint installation.

So I thought of blogging this wonderful post for those who are reading my blog.

Link : Integrate ASP.NET Ajax with SharePoint

Then I modified one of my web part used in the project with an update panel which takes care of your asynchronous postbacks.And then I deployed the web part in the integration server , to my embarrassment the web part was not working.Actually nothing got displayed.Started scratching my head and figuring out what went wrong.

Going back to drawing board and started every web.config entry for Ajax integration and that was fine.Then suddenly I saw in the top of the ascx page the version of the "System.Web.Extensions" assembly is 1.0.61025.0 which is the version I have installed in my development environment.Then I checked the version in the sharepoint environment.That is 3.5.0.0 which comes with the .Net Framework 3.5.And that was that. I changed the version and here comes the details.

In this page I have a list of items in a one list box and you can add selected items to another list.So started to check whether it was working.I selected an item from the source list and click on the button to move and it worked like a charm.ie the item get moved to the destination list without page getting refreshed. I was really happy with it.

But then I wanted to move another item from the list and nothing happened.Mission failed. :(

So I started looking back at the post I mentioned above and it stated that, there is a hack you need to do because of the way windows sharepoint services works.

So that was the trick and I managed to do that trick with the help of the following blog entry.

Link : Easy ASP.NET 2.0 AJAX Extensions 1.0 and Office SharePoint Server 2007

Finally I managed to integrate Ajax with sharepoint and used an update panel in my web parts.

Credit goes to those two blogs.

Saturday, January 03, 2009

Looking back at year 2008

It has been a fantastic year to me and my family.There were some critical moments in my family life as well as in my work.I would like to list down some of the key moments of the past year for me.

The first one was the best in the lot. Which was the birth of my lovely little daughter.It was a fantastic moment in my life to see her coming out in to this world , and I did witness it from the theater beside my lovely wife and the first cry my daughter made was still echoing in my ears.Everybody who were in the theater was amazed of the loud of it.It was a fantastic feeling and really hard to put into words.

The second one being the delivery of xtracare portal for Xtra.When I took over the project, it was challenging simply because of the time frame for the delivery which was merely a 2 months or so.Had to cope with a dev team which consists of a SE and an intern which made your life bit tougher to transfer the domain knowledge as well as learning curve for the new comer especially with the timeframe we had.Ultimately we pulled it off in a style with the fantastic team effort.Hats off to the entire team which includes dev team , QA team BA and the PM.

The third one was a bit of a scare to my life.It almost took my life unless my seat belt came to the party.It was a very hard day at office and after releasing the xtracare build to the QA and the dev team set to leave the office.I still remember the time we left the office was exactly 00:00 hrs.I told one of my colleague Sudheera, "look at the time we are leaving the office..." and we had a laugh.It could well have been the last laugh, but luckily not to be.

I was bit sleepy as I getting closer to home and I told my self, hang on for a second I am almost there no need to stop and have a nap or a glass of water.The last moment remember was passing the 20th mile post and then to realized that my car went out of the road (to my right) and hit a fence and rolled over and landed on the road facing towards where I was coming. That was very freakish and I had no clue how did it happen.Luckily for me not a single vehicle or a person was on the road at the time of the accident.If that was the case , the incident could have been tragic.When you saw the car aftermath, it was hard to believe that how did I escape from that fatal accident.Answer to that question was wearing the seat belts.Very simple.

So I still use to do it no matter how shorter your journey is, wear your seat belts.Food for thought for you readers, make a habit of it.

The fourth one was moving to an annex closer to my wife's office.The reason was my wife had to resume her work after maternity leave and needed to find a way to feed my daughter during the day time.It is highly unlikely that we staying at Yakkala and come to feed during the luncheon interval from her office at Bellantota, simply impossible.

So we took the decision to move to a place which within the closer range to my wife's office so that she can pay a visit during the luncheon interval and feed the baby.

Credit must go to my parents who volunteered to look after our daughter and joined with us to stay at Borelesgamuwa.I am sure that was a tough call to them.Thank you mom and dad for your support in big time.

Finally I would like to take this opportunity to thank my wife for all the support given to me during my difficult moments.She helped me all the time when it was required and always ready to listen and come up with the best possible answer to the situation.That is one of the most admirable aspect of her.And thank you for every thing you did for me.

Friday, October 24, 2008

Infragistics 2006 vol 3 CLR 2 installation failed in Vista

I have successfully installed the Infragistics 2007 Vol 1 CLR 2 in Vista.But I wanted to install the previous version of Infragistcs.

First I removed the latest version and then started installing the previous version.Then I got the following error message "Error 1606. Could not access network location %SystemDrive%\inetpub\wwwroot\"

After searching the web, found the following entry from Infragistics.

http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=9983

But I did only the registry entry change value of the key "PathWWWRoot" from "%SystemDrive%\inetpub\wwwroot" to "C:\inetpub\wwwroot".

Not needed to disable the UAC as suggested in the above article.

After installing I reverted the registry entry value back to the original value.