<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Madhawa Learns To Blog : C#, Java</title>
        <link>http://geekswithblogs.net/madhawa/Default.aspx</link>
        <description>.net, c#, java,sql, OOAD and more mad memory dumps...</description>
        <language>en-US</language>
        <copyright>Madhawa Karunaratne</copyright>
        <managingEditor>madhawa@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Madhawa Learns To Blog : C#, Java</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/madhawa/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Add Permission Level to a Sharepoint user group collection</title>
            <category>.net 3.0</category>
            <category>.net</category>
            <category>MOSS</category>
            <category>MOSS Object Model</category>
            <link>http://geekswithblogs.net/madhawa/archive/2009/08/17/134159.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// &lt;span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 16px 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="FONT-SIZE: 13px; FONT-FAMILY: Arial; WHITE-SPACE: pre"&gt;Add Permission Level to a Sharepoint user group collection&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;font face="Arial"&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        /// &amp;lt;param name="spWeb"&amp;gt;The sp web.&amp;lt;/param&amp;gt;&lt;br /&gt;
        /// &amp;lt;param name="permissionName"&amp;gt;Name of the permission.&amp;lt;/param&amp;gt;&lt;br /&gt;
        /// &amp;lt;param name="groupCollection"&amp;gt;The group collection.&amp;lt;/param&amp;gt;&lt;br /&gt;
        public static void AddPermissionsToGroupCollection(SPWeb spWeb, string permissionName, string[] groupCollection)&lt;br /&gt;
        {&lt;br /&gt;
            SPSecurity.RunWithElevatedPrivileges(delegate&lt;br /&gt;
            {&lt;br /&gt;
                try&lt;br /&gt;
                {&lt;br /&gt;
                    //Allow updating of some sharepoint lists, (here spUsers, spGroups etc...)&lt;br /&gt;
                    spWeb.AllowUnsafeUpdates = true;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                    SPRoleDefinition roleDefinition = spWeb.RoleDefinitions[permissionName];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                    foreach (string group in groupCollection)&lt;br /&gt;
                    {&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                        SPGroup spGroup = spWeb.Groups[group];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                        SPRoleAssignment roleAssignment = new SPRoleAssignment(spGroup);&lt;br /&gt;
                        SPRoleDefinitionBindingCollection roleDefBindings = roleAssignment.RoleDefinitionBindings;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                        roleDefBindings.Add(roleDefinition);&lt;br /&gt;
                        spWeb.RoleAssignments.Add(roleAssignment);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                        roleDefinition.Update();&lt;br /&gt;
                    }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                }&lt;br /&gt;
                catch (Exception ex)&lt;br /&gt;
                {&lt;br /&gt;
                    //Error handling logic should go here&lt;br /&gt;
                    throw ex;&lt;br /&gt;
                }&lt;br /&gt;
                finally&lt;br /&gt;
                {&lt;br /&gt;
                    spWeb.AllowUnsafeUpdates = false;&lt;br /&gt;
                }&lt;/font&gt;&lt;font face="Arial"&gt;&lt;br /&gt;
            });&lt;br /&gt;
        }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Ok this is it. &lt;/p&gt;
&lt;p&gt;Well... I called above method from "&lt;font face="Arial"&gt;FeatureActivated" &lt;/font&gt;event of a feature. For "&lt;font face="Arial"&gt;FeatureDeactivating" &lt;/font&gt;event I tried to achieve the contrary to this, delete a permission level from a user group. But didn't succeed. :( &lt;/p&gt;
&lt;p&gt;If you have any idea pls let us know.Thanks in advance.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=134159"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=134159" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/134159.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2009/08/17/134159.aspx</guid>
            <pubDate>Tue, 18 Aug 2009 04:06:21 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/134159.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2009/08/17/134159.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/134159.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/134159.aspx</trackback:ping>
        </item>
        <item>
            <title>Get value collection of a SharePoint Choice Field</title>
            <category>.net</category>
            <category>.net 3.0</category>
            <category>MOSS</category>
            <category>MOSS Object Model</category>
            <link>http://geekswithblogs.net/madhawa/archive/2009/08/01/133849.aspx</link>
            <description>&lt;p&gt;&lt;font face=""&gt; public static List&amp;lt;string&amp;gt; GetChoiceFieldValues(string listName,string fieldName, string siteCollection, string webSite)&lt;br /&gt;
        {&lt;br /&gt;
            List&amp;lt;string&amp;gt; fieldList;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;            SPSite spSite = null;&lt;br /&gt;
            SPWeb spWeb = null;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;            try&lt;br /&gt;
            {&lt;br /&gt;
                if (siteCollection != null)&lt;br /&gt;
                    spSite = new SPSite(siteCollection);&lt;br /&gt;
                else&lt;br /&gt;
                    spSite = SPContext.Current.Site;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                if (webSite != null)&lt;br /&gt;
                    spWeb = spSite.OpenWeb(webSite);&lt;br /&gt;
                else&lt;br /&gt;
                    spWeb = spSite.OpenWeb();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                SPList spList = spWeb.Lists[listName];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                SPFieldChoice field = (SPFieldChoice)spList.Fields[fieldName];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                fieldList = new List&amp;lt;string&amp;gt;();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                foreach (string str in field.Choices)&lt;br /&gt;
                {&lt;br /&gt;
                    fieldList.Add(str);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception ex)&lt;br /&gt;
            {&lt;br /&gt;
                LogException(ex);&lt;br /&gt;
                throw;&lt;br /&gt;
            }&lt;br /&gt;
            finally&lt;br /&gt;
            {&lt;br /&gt;
                if(spWeb != null)&lt;br /&gt;
                    spWeb.Close();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;                if(spSite != null)&lt;br /&gt;
                    spSite.Close();&lt;br /&gt;
            }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;            return fieldList;&lt;br /&gt;
        }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133849"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133849" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/133849.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2009/08/01/133849.aspx</guid>
            <pubDate>Sat, 01 Aug 2009 09:01:40 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/133849.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2009/08/01/133849.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/133849.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/133849.aspx</trackback:ping>
        </item>
        <item>
            <title>Renaming a Report Server Computer and next....</title>
            <link>http://geekswithblogs.net/madhawa/archive/2009/06/29/133126.aspx</link>
            <description>&lt;p&gt;&lt;font face=""&gt;You know what happens when we change the name of a SharePoint server right? It simply won’t work again unless you run the SharePoint Server configuration wizard.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;So what would happen if you do the same for the SSRS (SQL server reporting services) server? Some say you might not be able to connect to the reporting services again. I changed my reporting server’s name and still was able to create reports and do some other things. But clearly there were some problems. I tried to get support from my colleagues who were already familiar with SSRS but with no luck. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;After some googling I found below link looks promising. But alas… it didn’t resolve my prob. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms345235(SQL.90).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms345235(SQL.90).aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;If I point my problem clearly, when I try to do &lt;strong&gt;“Configure report server - &amp;gt; Initialization”&lt;/strong&gt; it shows me old machine name (name before I rename it) which will causes lots of problem in future. (That was according to my colleagues and I don’t know what those problems would be as this is the first time I’m gonna use SSRS)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://farm4.static.flickr.com/3401/3671777983_8e9de7a38b_o.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;Then I tried to create a new reporting server database through &lt;strong&gt;“Configure report server - &amp;gt; Data Setup”.&lt;/strong&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=""&gt;Guess what? It worked and saved my day!&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133126"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=133126" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/133126.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2009/06/29/133126.aspx</guid>
            <pubDate>Mon, 29 Jun 2009 17:29:26 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/133126.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2009/06/29/133126.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/133126.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/133126.aspx</trackback:ping>
        </item>
        <item>
            <title>Errors "Microsoft .NET Framework 3.5 installation has failed. SQL 2008 Setup requires .NET 3.5 to be installed." and  "This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported."</title>
            <category>.net</category>
            <link>http://geekswithblogs.net/madhawa/archive/2009/01/22/128897.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;Today I had to work on a project which uses VS2008 and SQL Server 2008. I haven't used SQL2008 but had used VS2008 a little bit. When I tried to install SQL2008 (Developer edition) got this strange error which says "Microsoft .NET Framework 3.5 installation has failed. SQL 2008 Setup requires .NET 3.5 to be installed."&lt;br /&gt;
&lt;br /&gt;
Strange thing is I had installed .NET 3.5 in the VPC upfront. Actually you are installing .NET 3.5 when you install VS2008 right?&lt;br /&gt;
&lt;br /&gt;
Anyway I tried to resolve this using,&lt;br /&gt;
&lt;br /&gt;
1. Uninstall .NET 3.5 and try install SQL 2008 (SQL 2008 setup comming with .NET 3.5 installation)&lt;br /&gt;
&lt;br /&gt;
2. Reinstall .NET 3.5 and install SQL 2008&lt;br /&gt;
&lt;br /&gt;
3. Reinstall .NET 3.5, service pack and install SQL 2008&lt;br /&gt;
&lt;br /&gt;
Yes... I failed. I can't remember what other things I tried. :)&lt;br /&gt;
&lt;br /&gt;
So then I went for other possible option, that is to connect to an existing SQL2008 server through VS2008. Then I got this damn error message.&lt;br /&gt;
&lt;br /&gt;
 "This server version is not supported. Only servers up to Microsoft SQL Server 2005 are supported.".&lt;br /&gt;
&lt;br /&gt;
But fortunately this time I got the resolution. You had to install &amp;lt;a href="http://download.microsoft.com/download/6/7/0/670ce765-4c9b-4620-902f-b9fc9a7c3c2d/vs90-kb945855.exe"&amp;gt;vs90-kb945855.exe&amp;lt;/a&amp;gt;. Then you can connect to SQL2008 from VS2008. &lt;br /&gt;
&lt;br /&gt;
But still I didn't get an answer for my first prob. If anyone knows the answer pls drop the solution here. Thanks in advance.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=128897"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=128897" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/128897.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2009/01/22/128897.aspx</guid>
            <pubDate>Fri, 23 Jan 2009 03:21:01 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/128897.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2009/01/22/128897.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/128897.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/128897.aspx</trackback:ping>
        </item>
        <item>
            <title>Add a user programmatically to a User Group in SharePoint</title>
            <category>.net</category>
            <category>MOSS</category>
            <category>MOSS Object Model</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/11/18/127171.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Add a user to a Sharepoint group&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        /// &amp;lt;param name="userLoginName"&amp;gt;Login name of the user to add&amp;lt;/param&amp;gt;&lt;br /&gt;
        /// &amp;lt;param name="userGroupName"&amp;gt;Group name to add&amp;lt;/param&amp;gt;&lt;br /&gt;
        private void AddUserToAGroup(string userLoginName, string userGroupName)&lt;br /&gt;
        {&lt;br /&gt;
            &lt;strong&gt;//Executes this method with Full Control rights even if the user does not otherwise have Full Control&lt;/strong&gt;&lt;br /&gt;
            SPSecurity.RunWithElevatedPrivileges(delegate&lt;br /&gt;
            {&lt;br /&gt;
               &lt;strong&gt; //Don't use context to create the spSite object since it won't create the object with elevated privileges but with the privileges of the user who execute the this code, which may casues an exception&lt;br /&gt;
&lt;/strong&gt;                using (SPSite spSite = new SPSite(Page.Request.Url.ToString()))&lt;br /&gt;
                {&lt;br /&gt;
                    using (SPWeb spWeb = spSite.OpenWeb())&lt;br /&gt;
                    {&lt;br /&gt;
                        try&lt;br /&gt;
                        {&lt;br /&gt;
                          &lt;strong&gt;  //Allow updating of some sharepoint lists, (here spUsers, spGroups etc...)&lt;br /&gt;
&lt;/strong&gt;                            spWeb.AllowUnsafeUpdates = true;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                            SPUser spUser = spWeb.EnsureUser(userLoginName);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                            if (spUser != null)&lt;br /&gt;
                            {&lt;br /&gt;
                                SPGroup spGroup = spWeb.Groups[userGroupName];&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;                                if (spGroup != null)&lt;br /&gt;
                                    spGroup.AddUser(spUser);&lt;br /&gt;
                            }&lt;br /&gt;
                        }&lt;br /&gt;
                        catch (Exception ex)&lt;br /&gt;
                        {&lt;br /&gt;
                            //Error handling logic should go here&lt;br /&gt;
                        }&lt;br /&gt;
                        finally&lt;br /&gt;
                        {&lt;br /&gt;
                            spWeb.AllowUnsafeUpdates = false;&lt;br /&gt;
                        }&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;            });&lt;br /&gt;
        }&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Here in this method you have to set "&lt;font face="Arial"&gt;spWeb.AllowUnsafeUpdates = true" to allow updating some sharepoint lists. &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127171"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127171" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/127171.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/11/18/127171.aspx</guid>
            <pubDate>Tue, 18 Nov 2008 12:47:11 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/127171.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/11/18/127171.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/127171.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/127171.aspx</trackback:ping>
        </item>
        <item>
            <title>Understand SharePoint Permissions </title>
            <link>http://geekswithblogs.net/madhawa/archive/2008/11/11/126941.aspx</link>
            <description>&lt;p&gt;Check these really good articles by &lt;a target="_blank" href="http://jamestsai.net"&gt;James Tsai&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a class="taggedlink" href="http://jamestsai.net/Blog/post/Understand-SharePoint-Permissions-Part-1-SPBasePermissions-in-Hex2c-Decimal-and-Binary-The-Basics.aspx"&gt;&lt;span&gt;Understand SharePoint Permissions - Part 1. SPBasePermissions in Hex, Decimal and Binary - The Basics&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://jamestsai.net/Blog/post/Understand-SharePoint-Permissions-Part-2-Check-SharePoint-usergroup-permissions-with-Permissions-web-service-and-JavaScript.aspx"&gt;Understand SharePoint Permissions - Part 2. Check SharePoint user/group permissions with Permissions web service and JavaScript&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Thanks Suranja for sending me these links.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126941"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=126941" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/126941.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/11/11/126941.aspx</guid>
            <pubDate>Tue, 11 Nov 2008 17:07:37 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/126941.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/11/11/126941.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/126941.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/126941.aspx</trackback:ping>
        </item>
        <item>
            <title>Can we deploy a Content Type as a feature with some extended settings like "Workflow settings" and "Information management policy settings"?</title>
            <category>misc</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/09/02/124844.aspx</link>
            <description>&lt;p&gt;&lt;font face="Verdana" size="2"&gt;I have a small question for sharepoint experts. :)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;Can we deploy a Content Type as a feature with some extended settings like "Workflow settings" and "Information management policy settings"?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;If so please enlighten me on how to do that.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124844"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124844" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/124844.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/09/02/124844.aspx</guid>
            <pubDate>Tue, 02 Sep 2008 11:41:44 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/124844.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/09/02/124844.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/124844.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/124844.aspx</trackback:ping>
        </item>
        <item>
            <title>Connecting to the VPC Console Session Directly from RDP</title>
            <category>misc</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/09/01/124837.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;Type below in the command line replacing &amp;lt;MC name or IP&amp;gt; with the machine name or IP you want to connect. This works with WinXP and Vista.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;strong&gt;mstsc -v:&amp;lt;MC name or IP&amp;gt; /f -console&lt;/strong&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Updated:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;:D There is a easy way. Just type &lt;font face="Arial"&gt;&lt;strong&gt;mstsc /console &lt;/strong&gt;in the command prompt.&lt;/font&gt;&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124837"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124837" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/124837.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/09/01/124837.aspx</guid>
            <pubDate>Tue, 02 Sep 2008 02:31:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/124837.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/09/01/124837.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/124837.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/124837.aspx</trackback:ping>
        </item>
        <item>
            <title>STSDEV: Simple Tools for SharePoint 2007 Development, With different project name support</title>
            <category>.net</category>
            <category>MOSS</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/08/26/124686.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;font face="Verdana" size="2"&gt;STSDEV is a simple tool for SharePoint developers. It helps you to create SharePoint projects (with solutions precisely) and deploy templates and components into the SharePoint 2007 platform.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;a href="http://www.codeplex.com/stsdev"&gt;&lt;font face="Verdana" size="2"&gt;http://www.codeplex.com/stsdev&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;font face="Verdana" size="2"&gt;This tool creates project and solution in same name and in the same folder. We all know we never put the solution and project files in the same folder and never use same name for the solution and the project. Unfortunately we didn’t find a way of changing those and use the tool after since it gives errors. I found a very easy way of tweaking that from changing small line in the source code or changing a line in the generated .target file. &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;font face="Verdana" size="2"&gt;And furthermore I have changed the tool to support for supplying a different project name when creating a solution and now we are using it in our SharePoint project. &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;font face="Verdana" size="2"&gt;BTW I'll explain how to tweak the tool to use separate source folder for project by a small change in the source code in next post. Until then play with the tool and have some fun.&lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/regular_smile.gif" /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;font face="Verdana" size="2"&gt;If you want that version of the tool with source code please &lt;/font&gt;&lt;a href="mailto:madhawa@gmail.com?subject=STSDEV%20with%20project%20name%20support"&gt;&lt;font face="Verdana" size="2"&gt;email me&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt" align="justify"&gt;&lt;span style="TEXT-TRANSFORM: uppercase"&gt;&lt;o:p&gt;&lt;font face="Verdana" size="2"&gt; &lt;/font&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124686"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124686" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/124686.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/08/26/124686.aspx</guid>
            <pubDate>Tue, 26 Aug 2008 15:39:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/124686.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/08/26/124686.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/124686.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/124686.aspx</trackback:ping>
        </item>
        <item>
            <title>Effective Error handling in SQL Server 2005</title>
            <category>.net</category>
            <category>Java</category>
            <category>misc</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/08/25/124661.aspx</link>
            <description>&lt;p align="justify"&gt;&lt;font face="Verdana" size="2"&gt;One of the main things you should consider if you believe in good coding is error or exception handling. When it come to programming languages, now all popular object oriented languages have try, catch method to handle an exception.&lt;br /&gt;
&lt;br /&gt;
We can put our code (which might gives errors or exceptions) inside the try block and error handling code in the catch block. This has become the de-facto of error or exception handling now.&lt;br /&gt;
But when it comes to T-SQL we hadn’t got that luxury. Error handling in T-SQL was always tedious and tricky job. Most of the time we used not to handle the error at the T-SQL level but handling it in the upper most level. (data access layer or business layer, handling database errors in business layer is a totally wrong practice)&lt;br /&gt;
&lt;br /&gt;
But now in SQL 2005, 2008 you have proper error handling mechanism just like in modern OO languages. You can use try catch in the stored procedures and functions. Actually I knew that I can use try catch in stored procedures but only today I got to know about a more interesting method we can use.&lt;br /&gt;
&lt;br /&gt;
After catching an error what we can to do was a question for me. If it’s in C# or Java we can log the error and may be throw a customized exception to the next layer. (There are so many options in handling errors)&lt;br /&gt;
Can you remember throw exception in C#? Of cause you know it. :) Well… we can do the same in T-SQL using RAISERROR function. &lt;br /&gt;
&lt;br /&gt;
Using the RAISERROR is as follows,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;BEGIN TRY&lt;br /&gt;
    -- RAISERROR with severity 11-19 will cause execution to &lt;br /&gt;
    -- jump to the CATCH block.&lt;br /&gt;
    RAISERROR ('Error raised in TRY block.', -- Message text.&lt;br /&gt;
               16, -- Severity.&lt;br /&gt;
               1 -- State.&lt;br /&gt;
               );&lt;br /&gt;
END TRY&lt;br /&gt;
BEGIN CATCH&lt;br /&gt;
    DECLARE @ErrorMessage NVARCHAR(4000);&lt;br /&gt;
    DECLARE @ErrorSeverity INT;&lt;br /&gt;
    DECLARE @ErrorState INT;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;    SELECT &lt;br /&gt;
        @ErrorMessage = ERROR_MESSAGE(),&lt;br /&gt;
        @ErrorSeverity = ERROR_SEVERITY(),&lt;br /&gt;
        @ErrorState = ERROR_STATE();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;    -- Use RAISERROR inside the CATCH block to return error&lt;br /&gt;
    -- information about the original error that caused&lt;br /&gt;
    -- execution to jump to the CATCH block.&lt;br /&gt;
    RAISERROR (@ErrorMessage, -- Message text.&lt;br /&gt;
               @ErrorSeverity, -- Severity.&lt;br /&gt;
               @ErrorState -- State.&lt;br /&gt;
               );&lt;br /&gt;
END CATCH;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;Pretty good ha…&lt;br /&gt;
You can follow up this more in &lt;/font&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/ms178592(SQL.90).aspx"&gt;&lt;font face="Verdana" size="2"&gt;MSDN&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124661"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124661" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/124661.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/08/25/124661.aspx</guid>
            <pubDate>Mon, 25 Aug 2008 17:35:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/124661.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/08/25/124661.aspx#feedback</comments>
            <slash:comments>5</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/124661.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/124661.aspx</trackback:ping>
        </item>
        <item>
            <title>Deploying Sharepoint sites in x64 servers</title>
            <category>misc</category>
            <link>http://geekswithblogs.net/madhawa/archive/2008/01/29/119005.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;Well... After 6 months I’m gonna do it again. I don’t know people who used to visit my blog still are doing that. Anyway will tell ya what happened in last 6 months later. :D&lt;/font&gt;&lt;/p&gt;
&lt;font face="Arial"&gt;
&lt;p&gt;&lt;br /&gt;
Well today I was working on deploying a SharePoint site in 64 bit server. This is the first time I’m putting my hands on x64 bit machines.  If you are used to do or want to do SharePoint deployments and never done that in 64 bit servers just keep in mind below. &lt;/p&gt;
&lt;p&gt;There are 2 programming files folders in 64 bit machines. Normal "programming files" folder for x64 bit programs and "programming files (x86)" for 32 bit programs. So when you are using script files or solutions  (wsp files) for deployment make aware of this. More info will follow…. :)&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt; &lt;/p&gt;
&lt;/font&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119005"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119005" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/119005.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2008/01/29/119005.aspx</guid>
            <pubDate>Tue, 29 Jan 2008 06:51:57 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/119005.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2008/01/29/119005.aspx#feedback</comments>
            <slash:comments>7</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/119005.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/119005.aspx</trackback:ping>
        </item>
        <item>
            <title>Google Singleton Detector</title>
            <category>Architecture</category>
            <category>Java</category>
            <link>http://geekswithblogs.net/madhawa/archive/2007/07/26/114171.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Google announced that they have opensourced the &lt;/font&gt;&lt;a href="http://code.google.com/p/google-singleton-detector/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Google Singleton Detector&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;, or GSD. Simply GSD is a tool which analyzes Java byte code and detects the use of Singletons. &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;As they say:&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;It's not quite as simple as that, however. First, GSD doesn't only detect singletons; it detects four different types of global state, including singletons, hingletons, mingletons and fingletons.Second, it outputs a graph with all these different types of static state highlighted, and shows all the classes that are directly dependent on them. The point of this tool is to allow you to see all of the uses of global state inside a project, as well as how they are all interrelated. Hopefully you'll be able to locate global state that is heavily depended on and remove it. &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Well... Now you might think what’s wrong with the good old singleton pattern which we always use freely in every project? &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;Singleton pattern is the first pattern I learned and used. &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Actually there are some problems with singletons.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Major problem is that it’s hard to write unit tests if you are using singleton classes. How that could be? Well... If your unit tests are really good those should be loosely coupled. That’s mean you should be able to execute your tests without any proper order and yet those tests should be passed. But if your class had used singleton class one method can alter a state of sth in the singleton class and that would effects in the other tests. That’s make your tests are tightly coupled with each other. So you should have to have an order in executing your tests or you should reset your singleton objects in each test.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Ok folks, let’s dig into further on this problem and of cause will try to find some workarounds, in my next blog post.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;o:p&gt;&lt;font face="Verdana" size="2"&gt; &lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=114171"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=114171" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/114171.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2007/07/26/114171.aspx</guid>
            <pubDate>Thu, 26 Jul 2007 06:17:35 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/114171.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2007/07/26/114171.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/114171.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/114171.aspx</trackback:ping>
        </item>
        <item>
            <title>Is .net answer for GWT more powerful? </title>
            <category>.net</category>
            <category>Architecture</category>
            <category>Java</category>
            <category>misc</category>
            <link>http://geekswithblogs.net/madhawa/archive/2007/07/17/113986.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;a target="_blank" href="http://www.visualwebgui.com"&gt;&lt;img alt="Visual WebGui" align="left" src="http://www.visualwebgui.com/Portals/_default/Skins/VWG_Skin/images/vwglogo.gif" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.visualwebgui.com/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Visual WebGui&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; is the .net answer for &lt;/font&gt;&lt;a href="http://code.google.com/webtoolkit/"&gt;&lt;font face="Verdana" size="2"&gt;GWT (Google Web Toolkit).&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; But it’s seems more powerful than GWT even though it’s not coming from Microsoft and yet it’s open source. Still I hadn’t got time to put my hands on deeply but you can feel it by just browsing their web site and checking the features and comparing those with GWT. &lt;br /&gt;
Not like GWT, in Visual WebGui you can use existing windows controls to create your UI.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Major advantage of Visual WebGui over GWT is we can deploy Visual WebGui applications as web applications or desktop applications. That’s a huge step taken by Visual WebGui.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;And most importantly Visual WebGui is open source.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;And with world best IDE (Visual Studio 2005) you have the ultimate power of designing your graphical user interfaces. Just check these features out by visiting &lt;/font&gt;&lt;a href="http://www.visualwebgui.com/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Visual WebGui.&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;User-Friendly&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui was designed to be the next VB6 for the web. Simple to program, simple to deploy. With a full WinForms API and design time support you can start developing complex AJAX applications in seconds with no web know-how.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Secured&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui was designed to provide for military grade secured AJAX applications by &lt;u&gt;eliminating client side service consumption and business logic processing&lt;/u&gt; using an empty client concept. The browser is used as a looking glass to the server that runs the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Productive&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – With full WinForms API and design time support, Visual WebGui is almost as productive as R.A.D. platforms without limiting your options. Debug your application the same way you would debug any .NET application free of script debugging nightmares.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Powerful&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui was designed to support enterprise class applications with unlimited complexity supported by full object oriented programming. Using our unique AJAX transport, Visual WebGui applications consume 1% of bandwidth compared to any alternative AJAX framework.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Feature-Rich&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui contains most of WinForm's components including non trivial implementations of controls such as the PropertyGrid that provides a simple way to edit live objects. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Supported&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; - Visual WebGui is supported by its Core Team of developers and a dedicated international community. Through online forums and our &lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;a href="mailto:support@visualwebgui.com"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font face="Verdana" size="2"&gt;&lt;em&gt;support@visualwebgui.com&lt;/em&gt;&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; mail box support is always close at hand (&lt;u&gt;commercial support will be available soon)&lt;/u&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Easily Installed&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui comes with a simple installation that will get you started on developing your AJAX application in no time. Visual WebGui's toolbox and templates are integrated into Visual Studio so they are always available. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Localized&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui includes full .NET and WinForms multi-language localization support which allows you to localize your application in the designer the same way you localize a WinForms application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Open Source&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui SDK is provided free, as open-source software, and licensed under a standard LGPL agreement. It allows individuals to do whatever they wish with the application framework, both commercially and non-commercially.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Cutting-Edge&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui provides the developer with full object oriented .NET support allowing utilization of all the .NET capabilities including reflection, generics and more. This is enabled by a unique architecture that provides an alternative HTTP processing pipeline that does not include serializing JavaScript.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Extensible&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Visual WebGui is provided with many customization and extensibility features including custom control creation, theme creation and gateways.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Interopable&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – As an extension to ASP.NET, Visual WebGui can also interact with standard ASP.NET pages hosting them within your Visual WebGui application or calling Visual WebGui dialogs and forms from your ASP.NET code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Visual WebGui's roadmap includes…&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Mono deployment&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; - Allowing your Visual WebGui application to run on non Microsoft servers (Visual WebGui for .NET 1.1 is already compatible with mono).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Legacy to web&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Migrating WinForms or VB6 applications to web with out rewriting your application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt;Dual mode deployment&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 12pt; FONT-FAMILY: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: 'Times New Roman'"&gt; – Deploy your Visual WebGui application as a desktop application or a web application enjoying the best of both worlds. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113986"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113986" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/113986.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2007/07/17/113986.aspx</guid>
            <pubDate>Tue, 17 Jul 2007 11:48:37 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/113986.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2007/07/17/113986.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/113986.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/113986.aspx</trackback:ping>
        </item>
        <item>
            <title>Titan-IOC : A lightweight, flexible, general purpose inversion-of-control container for .NET applications</title>
            <category>.net</category>
            <category>Architecture</category>
            <link>http://geekswithblogs.net/madhawa/archive/2007/07/15/113945.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Well guys... If you have read my previous blog post about &lt;/font&gt;&lt;a href="http://code.google.com/p/google-guice/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Guice&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; and you are using only .net technologies you might got little bit worried of that why you can’t use such a nice framework. Don’t worry, there is a project going on at Google called &lt;/font&gt;&lt;a href="http://code.google.com/p/titan-ioc/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Titan&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; that inspired by Guice. It’s still in the beta stage though. It’s a pre-release version and they don’t recommend it using in mission critical applications.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;Titan is a new take on inversion of control for .NET 2.0 applications, inspired largely by Bob Lee and Kevin Bourrillion's Guice. Ultra-lightweight, easy to use, fast, flexible, and powerful, Titan aims to make inversion of control accessible to all types of .NET projects, regardless of complexity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;Goals of Titan:&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;1. Ultra-lightweight. We aim to keep all baseline functionality in a single assembly with no non-standard dependencies, and keep that assembly's footprint around 100KB when compiled for release. (The current version weighs in at 96KB.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;2. Easy to use. Too many of the existing IoC projects sacrifice usability for features that aren't often used. Each time a feature is added to Titan, its benefit is weighed against the complexity it adds. Our goal is to keep the 'barrier to entry' -- the baseline level of knowledge required to use Titan -- as low as possible. Titan has many advanced features, but understanding them is not required to use the toolkit. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;3. Fast. Instead of relying on reflection for invocation, Titan takes advantage of the lightweight code generation features in version 2.0 of the CLR. This results in a dramatic (8-50x) improvement in speed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;4. Flexible and extensible. Titan is designed with customization and evolution in mind. Many facets of the system can be augmented or modified to fit the requirements of each project. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;font face="Verdana"&gt;&lt;font size="2"&gt;5. Powerful. Titan includes many advanced features. For example, most existing IoC frameworks use key-based binding to select concrete components for injection. Titan introduces the concept of contextual binding, in which a different concrete implementation of a service may be injected depending on the context in which it is requested. &lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;em style="mso-bidi-font-style: normal"&gt;&lt;a href="http://code.google.com/p/titan-ioc/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;http://code.google.com/p/titan-ioc/&lt;/font&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113945"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113945" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/113945.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2007/07/15/113945.aspx</guid>
            <pubDate>Mon, 16 Jul 2007 03:06:41 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/113945.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2007/07/15/113945.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/113945.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/113945.aspx</trackback:ping>
        </item>
        <item>
            <title>Guice: Google way of implementing Dependency Injection aka Inversion of Control</title>
            <category>Architecture</category>
            <category>Java</category>
            <link>http://geekswithblogs.net/madhawa/archive/2007/07/14/113928.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;Doing some R&amp;amp;D works on &lt;/font&gt;&lt;a href="http://code.google.com/webtoolkit/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;GWT&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; a few weeks back, I really fascinated on the Google frameworks. Next Google framework I’m gonna puts my hands on is &lt;/font&gt;&lt;a href="http://code.google.com/p/google-guice/"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Guice: Google way of implementing Dependency Injection&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;That isn’t a company assignment but I think its worth to learn and try. Guice (pronounced "juice") is an ultra-lightweight, next-generation dependency injection container for Java 5 and later.&lt;br /&gt;
&lt;br /&gt;
If you have ever tried out to achieve loose coupling to the ultimate extent you really should know about dependency injection. It’s not a buzz word anymore. People are using several of methods and frameworks to implement DI. Couple of years back when I was at my good old place (Logical Systems now known as Kandysoft) I did my first application design on my own. It was an e-commerce web site and I got instructions to develop the application framework as generic as possible. So we can re-use some of it functionalities in other applications. Our focus was on product catalog and shopping cart. Some applications product catalog and shopping cart is not separated but I thought it has to be developed as separated. So I did it and it was a very successful one. At that time I actually had heard about DI and use of it to achieve loose coupling. But only article I had read was &lt;/font&gt;&lt;a href="http://www.martinfowler.com/articles/injection.html"&gt;&lt;font face="Verdana" color="#800080" size="2"&gt;Martin fowlers&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; one and I couldn’t understand it much of it at that time. And for the worse case I had limited time frame to complete and deliver the project as we always do. Anyway I gained what I wanted by &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;using interfaces and now I know I have implemented dependency injection by hand even though I didn’t know&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;I was doing that.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;BTW now there are so many application frameworks that leverage use of DI and some related functionalities. I think spring is in the top. They are hitting both java and .net so it’s a great framework to developers like me who focused on both java and .net.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;font face="Verdana" size="2"&gt;But if you are new to DI and doing java I think Guice is the best to put your hands on first. Like all Google frameworks it simple and easy to learn. I’ll shed some posts later on DI and Guice.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113928"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=113928" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/madhawa/aggbug/113928.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Madhawa Karunaratne</dc:creator>
            <guid>http://geekswithblogs.net/madhawa/archive/2007/07/14/113928.aspx</guid>
            <pubDate>Sat, 14 Jul 2007 12:54:44 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/madhawa/comments/113928.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/madhawa/archive/2007/07/14/113928.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/madhawa/comments/commentRss/113928.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/madhawa/services/trackbacks/113928.aspx</trackback:ping>
        </item>
    </channel>
</rss>