tag:blogger.com,1999:blog-46085620176702028672024-02-08T18:47:54.704+05:30Dishan's Blog<p>"Success is simply surpassing all your competition!"
<p></p>
<p>"Success is Getting rewarded for time and effort well spent!"
<p></p>
<b>"Success is having time for the things which matter to you most!"
</b></p></p>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-4608562017670202867.post-56964490551349015252010-09-08T08:06:00.002+05:302010-09-08T08:06:57.909+05:30FAST Search Server 2010 for SharePoint<object data="data:application/x-silverlight-2," height="315" type="application/x-silverlight-2" width="560"><param name='source' value='http://sharepoint.microsoft.com/_layouts/clientbin/mediaplayer.xap'/><param name='initParams' value='displayMode=Inline,mediaSource=http://sharepoint.microsoft.com/en-us/VideosLibrary/Search-FAST_Search_Demo_Final.wmv,previewImageSource=http://sharepoint.microsoft.com/en-us/PublishingImages/Video-Thumbnails/search-FAST_demo_thumb.jpg,mediaFileExtensions=wmv;wma;avi;mpg;mp3;,silverlightMediaExtensions=wmv;wma;mp3;'/><param name='windowless' value='true'/><param name='enableHtmlAccess' value='true'/><param name='minRuntimeVersion' value='2.0.31005.0'/></object>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-66523883199299761772010-07-14T22:40:00.002+05:302010-07-14T22:40:14.412+05:30Twitterizer<span class="Apple-style-span" style="color: #323232; font-family: Calibri, Verdana, 'Lucida Sans', 'Myriad Pro', Helvetica, Arial; font-size: 15px; line-height: 19px;"><strong>Twitterizer </strong></span><span class="Apple-style-span" style="color: #323232; font-family: Calibri, Verdana, 'Lucida Sans', 'Myriad Pro', Helvetica, Arial; font-size: 15px; line-height: 19px;">is a .NET library designed for quick and easy Twitter integration.</span><br />
<span class="Apple-style-span" style="color: #323232; font-family: Calibri, Verdana, 'Lucida Sans', 'Myriad Pro', Helvetica, Arial; font-size: 15px; line-height: 19px;"><a href="http://www.twitterizer.net/">http://www.twitterizer.net/</a></span>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com1tag:blogger.com,1999:blog-4608562017670202867.post-59681763161026045102010-07-09T21:27:00.000+05:302010-07-09T21:27:21.110+05:30Linq to Entity framework<span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;">LINQ to Entities provides Language-Integrated Query (LINQ) support that enables developers to write queries against the Entity Framework conceptual model using Visual Basic or Visual C#. Queries against the Entity Framework are represented by command tree queries, which execute against the object context. LINQ to Entities converts Language-Integrated Queries (LINQ) queries to command tree queries, executes the queries against the Entity Framework, and returns objects that can be used by both the Entity Framework and LINQ.</span><br />
<span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"><a href="http://msdn.microsoft.com/en-us/library/bb386964.aspx">http://msdn.microsoft.com/en-us/library/bb386964.aspx</a></span>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-12569020075632337832010-06-09T21:30:00.002+05:302010-06-09T21:30:35.205+05:30A great Tutorial on creating a custom Access Membership Provider: ASP.NET C#<span class="Apple-style-span" style="font-family: Verdana, Arial, serif; font-size: 11px;"></span><br />
<h1 style="color: #cc3300; font-family: Verdana, Arial, serif; font-size: 18px; font-weight: bold; margin-bottom: 5px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">Using the Microsoft Access Providers to Replace the Built-In SQL Server Providers</h1><div><a href="http://imar.spaanjaars.com/404/using-the-microsoft-access-providers-to-replace-the-built-in-sql-server-providers">http://imar.spaanjaars.com/404/using-the-microsoft-access-providers-to-replace-the-built-in-sql-server-providers</a></div>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-45877028486308168142010-06-09T21:26:00.002+05:302010-06-09T21:26:28.420+05:30Great ASP.NET Ajax Tutorial<a href="http://ajax.net-tutorials.com/">http://ajax.net-tutorials.com/</a>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-71801243273500448382010-02-19T08:26:00.001+05:302010-02-19T08:29:19.676+05:30Serial and Parallel Bucket SortThe bucket sort algorithm is inherently parallelization friendly. Here i have given the code for both the serial and parallel versions of the algorithm. both are in a eclipse project which can be found here. <div><a href="'http://www.mediafire.com/?emdn3wzu4m2'">http://www.mediafire.com/?emdn3wzu4m2</a> </div>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com1tag:blogger.com,1999:blog-4608562017670202867.post-24002603748899976222010-02-19T08:19:00.000+05:302010-02-19T08:25:24.278+05:30Serial and Parallel Sample SortI constructed both serial and parallel algorithms of sample sort in java for the concurrent computing module that i took last semester. Just thought that i should share the code. Here is a link which contains an eclipse project with two classes, one for the serial version and one for he parallel version. <div><br /></div><div><a href="http://www.mediafire.com/?emdn3wzu4m2"><a href="'http://www.mediafire.com/?gm1utlmym4h'">http://www.mediafire.com/?gm1utlmym4h</a></a></div>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-56956989671666212682009-12-24T11:21:00.000+05:302009-12-24T11:24:09.674+05:30Official Project WebsiteThe official website for our final year project epZilla was launched.<br />http://www.epzilla.net/Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-5848427784744264052009-10-18T12:43:00.000+05:302009-10-18T12:50:37.896+05:30Passing Parameters to A Crystal Report from Code Behind ~ ASP.NETIn a resent project i had to pass parameters to a crystal report depending on a user selection of a dropdownlist, this is how i achieved it in VB.NET.<br /><br />The server name and DBname are stored in the web.config<br /><br /> <span style="color: rgb(0, 0, 153); font-family: courier new;">Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> ReportLocation = System.IO.Path.Combine(Server.MapPath("~"), "Admin\Report1.rpt")</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> ServerName = ConfigurationManager.AppSettings("ServerName")</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> DBName = ConfigurationManager.AppSettings("DBName")</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> SetSource(DropDownList1.SelectedValue)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> End Sub</span><br /><br /><span style="color: rgb(0, 0, 153); font-family: courier new;">Sub SetSource(ByVal params As String)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim cryRpt As New ReportDocument()</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim crtableLogoninfos As New TableLogOnInfos()</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim crtableLogoninfo As New TableLogOnInfo()</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim crConnectionInfo As New ConnectionInfo()</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim CrTables As Tables</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> cryRpt.Load(ReportLocation)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> crConnectionInfo.ServerName = ServerName</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> crConnectionInfo.DatabaseName = DBName</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> crConnectionInfo.IntegratedSecurity = True</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> CrTables = cryRpt.Database.Tables</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> For Each CrTable As CrystalDecisions.CrystalReports.Engine.Table In CrTables</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> crtableLogoninfo = CrTable.LogOnInfo</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> crtableLogoninfo.ConnectionInfo = crConnectionInfo</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> CrTable.ApplyLogOnInfo(crtableLogoninfo)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Next</span><br /><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim parameters As New ParameterFields</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim param As ParameterField</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Dim paramvalue As ParameterDiscreteValue</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> CrystalReportViewer1.ReportSource = cryRpt</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> parameters.Clear()</span><br /><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> param = New ParameterField</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> paramvalue = New ParameterDiscreteValue</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> param.Name = "Param1"</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> paramvalue.Value = params</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> param.CurrentValues.Add(paramvalue)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> param.HasCurrentValue = True</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> parameters.Add(param)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> CrystalReportViewer1.ParameterFieldInfo = parameters</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> End Sub</span>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-50400203237108325012009-10-18T12:34:00.000+05:302009-10-18T12:52:30.116+05:30Avoid Navigating to previuos pages in Firefox ~ ASP.NETI got a problem in asp.net where a user after logging out can navigate back to the pages that he visited previously without again logging in. The problem comes because the pages are not retrieved from the server but stored in the browser cache.This is how i avoided it.<br /><br />I included this code in the page load of each page<br /><br /> <span style="color: rgb(0, 0, 153); font-family: courier new;">Response.Buffer = True</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.Expires = 0</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.Cache.SetNoStore()</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.AppendHeader("Pragma", "no-cache")</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.CacheControl = "no-cache"</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> If Not Page.User.Identity.IsAuthenticated Then</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> Response.Redirect("~/login.aspx", False)</span><br /><span style="color: rgb(0, 0, 153); font-family: courier new;"> End If</span>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-18750398495221438082009-09-11T08:25:00.000+05:302009-09-11T08:26:41.467+05:30Project epZillaOur Final <span class="blsp-spelling-corrected" id="SPELLING_ERROR_0">year</span> project is underway, http://epzilla.blogspot.com/<br />WOW............Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-86292111282107897812009-06-07T16:43:00.000+05:302009-06-07T16:49:03.318+05:30T-SQL CREATE LOGIN and CREATE USER StatementsI recently did a project involving MS SQL server native user and login management. This is is the Script that i used to create the SP needed.<br /><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >CREATE PROC [dbo].[usp_CreateLoginAndUser]</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >@Login sysname,</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >@Password sysname</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >AS</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >DECLARE @CreateLoginStatement nvarchar(200)</span><br /><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >SET @CreateLoginStatement = 'CREATE LOGIN ' +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >QUOTENAME(@Login) +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >' WITH PASSWORD = ' +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >QUOTENAME(@Password, '''')+';'+</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >' CREATE USER ' +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >QUOTENAME(@Login) +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >' FOR LOGIN ' +</span><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >QUOTENAME(@Login) +';'</span><br /><br /><span style="color: rgb(51, 102, 255);font-family:courier new;" >EXEC sp_executesql @CreateLoginStatement</span><br /><br /><br />this SP creates a MS SQL server User login and a database User at the same time.Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0tag:blogger.com,1999:blog-4608562017670202867.post-19029906442094574402009-05-06T09:19:00.000+05:302009-05-06T09:22:23.653+05:30Lightbox JS-Lightbox JS is great way to arrange your image gallery on your web site. its really cool cheack it out.<div><a href="http://www.huddletogether.com/projects/lightbox/">http://www.huddletogether.com/projects/lightbox/</a><br /></div><div>I tried it out with ASP.NET 3.5. works really well.</div>Dishan Metihakwalahttp://www.blogger.com/profile/11205730347162844657noreply@blogger.com0