my6solutions

asp .net, the social web & other distractions

 

Running Apps

Disclaimer

I am in no way affiliated with Microsoft or Google. I am just another developer trying to make a difference. All opinions and observations are usually my own.

Are You Following Me Too? code released

AreYouFollowingMeToo? is a simple twitter app that gets a list of twitter users who you are following who aren't following you back. I have decided to release the code for this app under a MIT License.The app supports deployment on Windows Azure. This decision was based on the fact that it was brought to my attention that there was another site that is providing the same functionality. Also, I ha... [More]

Permalink | Comments (0) | Post RSSRSS comment feed

Mocking HttpContext in ASP .NET MVC

One of the first few questions that someone starting to write unit tests for ASP .NET MVC would be "How do you mock HttpContext?". The following is done using Moq and creates a fake HttpContext to be passed to the MVC Controller. public static HttpContextBase FakeHttpContext() {     var httpContext = new Mock<HttpContextBase>();     var request = new Mock&... [More]

Categories: ASP .NET | TDD
Permalink | Comments (0) | Post RSSRSS comment feed

pesta in the Cloud (OpenSocial .NET gadget server)

Finally managed to get pesta running under Windows Azure. It wasn't too difficult actually. The July CTP of Windows Azure SDK supported MVC projects as a web role out of the box. No hacking necessary. However, when I first got it running, pesta did not seem to inject the javascript libraries and gadgets were not rendered properly. It turns out that when deploying the MVC project, the CloudService... [More]

Permalink | Comments (0) | Post RSSRSS comment feed

Test Driven Development using Moq

Today, I have decided to start writing unit tests and to try a test driven development. Basically, a test driven development is one where the developer starts specifying automated unit tests first before actually starting to code. These unit tests are usually based on code specifications and what code features should be available. For me, hopefully this will lessen the number of breakages from fix... [More]

Categories: ASP .NET | TDD
Permalink | Comments (0) | Post RSSRSS comment feed

Minifying javascript and css files via a custom msbuild task

Recently, I have been looking into automatically minifying the javascript files being served by the gadget server in pesta. Before this, there were manually copied over from java shindig. For those needing a good introduction with creating custom tasks using msbuild, this link gives a pretty good introduction and also explains how to set up msbuild as an external tool so that you can edit .proj f... [More]

Categories: ASP .NET | Pesta
Permalink | Comments (0) | Post RSSRSS comment feed

Enabling client-side caching on ASP .NET MVC on IIS 6.0

What I thought would just take a few minutes to do turned out to be one big adventure. While working on raya, I was irritated by the slowness of the project. From firebug, it seems that the browser was still asking for and getting all the static files again at every page refresh. I had use StaticFileHandler.cs from the blog entry here. This page also explains in more detail about the code.The prob... [More]

Permalink | Comments (4) | Post RSSRSS comment feed

Integrating OpenID with DotNetOpenID and custom extensions

Recently, I have been trying to integrate OpenID as a Relying Party on this new site i am working on. This would allow users to login using OpenID. Previously, I had implemented support for OpenID for a prior site using DotnetOpenID, DNOI. But this was on a normal form-based ASP .NET site. With MVC, I could no longer use the control I was using before. It has been about one and a half years sinc... [More]

Categories: ASP .NET
Permalink | Comments (1) | Post RSSRSS comment feed

Integration of Facebook Connect on ASP .NET MVC, Part 1

Update 2: The changes to the Facebook Toolkit library are now available for download from the Facebook Toolkit project page. Update: I've just updated raya with the Facebook Connect changes. There were some initial problems with "invalid session key" issues but that has been resolved.Over the weekend, I had look into integrating Facebook Connect into raya. The example ... [More]

Categories: ASP .NET | facebook
Permalink | Comments (10) | Post RSSRSS comment feed

Running Ajax.NET Professional (AjaxPro) under ASP .NET MVC

Note: With ASP .NET MVC, jQuery is the more convenient method you could use to make Ajax calls. Ajax.NET is the first Ajax library for the .NET framework. Up until the day ASP .NET 3.5 was released, there was nothing quite like it. In ASP .NET 2.0, the UpdatePanel was introduced as a way to enable partial rendering on ASP .NET pages. UpdatePanels are quick to implement. However, the downsid... [More]

Permalink | Comments (10) | Post RSSRSS comment feed