Entries categorized 'Code'

Sparking Azure

You know what they say, it only takes a spark. :)

As I mentioned before, I have fallen in love with the Spark ViewEngine. It is a very nice mix of power and simplicity. I also been spending a lot more time on cloud related initiatives, so I was bummed to learn Spark could not be used on Azure (compute) since it requires full trust (and Azure initially had a no concept of trust levels, it only had one limited trust level).

Fortunately for me (and hopefully you) one of the many Azure Mix announcements was support for Full Trust. What this means is that you can now easily use Spark on Azure. All you need to do complete the following two steps.

Continue reading "Sparking Azure"

RSS Feeds For Graffiti Tags

Or put another way, when a feature does not really exist.

I always thought Graffiti had support for RSS feeds per tag. But it turns out that while we have RSS autodiscovery for these feeds, they are never generated by Graffiti.

A couple users pinged us this week about this feature. Unfortunately, it is not on the current feature roadmap, so I figured I would put together a simple example and publish it here.

Continue reading "RSS Feeds For Graffiti Tags"

jQuery Live Events

If you have been coding/using jQuery for a long time, you can skip this post (and just about anything else I ever write on jQuery).

Last week I posted a little example about using jQuery’s starts-with selector and then quickly (and easily) binding an event to all of the items found by the selector.  However, shortly after posting it I ran into a little snag.

Continue reading "jQuery Live Events"

Azure Url Rewriting

Just noticed the this on a Steve Marx blog post about PHP and Azure:

One thing we’ve enabled in the new CTP that’s somewhat buried in the rest of the announcements is support for the IIS URL Rewrite module.  Using that, I got nice URLs like http://tweval.com/mix09-smarx.php to map to the uglier http://tweval.com/index.php?tag=mix09-smarx.

Continue reading "Azure Url Rewriting"

jQuery Makes Me Smile

Quick disclaimer: I am not the kind of person you should be taking JavaScript advice from. However, I did want to share something started out messy and as I applied some jQuery goodness just kept getting simpler.

The setup:

I have been hacking away on a small application/prototype. In the standard view, the first N characters of a piece of content are displayed. If I the user wants more content, I link/button is included which toggles to the full view. If the content is relatively small, the full content is displayed. Here is my spark partial view:

Continue reading "jQuery Makes Me Smile"

ASP.NET MVC 1.0 Now Available Under MS-PL

Continuing on the theme of I hope this isn't an April fools day joke. :) 

I’m excited today to announce that we are also releasing the ASP.NET MVC source code under the Microsoft Public License (MS-PL). The MS-PL is an OSI-approved open source license.  The MS-PL contains no platform restrictions and provides broad rights to modify and redistribute the source code. [Scott Guthrie]

Continue reading "ASP.NET MVC 1.0 Now Available Under MS-PL"

Firebug Lite

I almost dismissed this as an April Fools day joke. Glad I gave it a click through. Firebug Lite.

...but what happens when you need to test your pages in Internet Explorer, Opera, and Safari?
The solution is Firebug Lite, a JavaScript file you can insert into your pages to simulate some Firebug features in browsers that are not named "Firefox". Firebug Lite creates the variable "firebug" and doesn't affect or interfere with HTML elements that aren't created by itself.

Continue reading "Firebug Lite"

Readability First

I was browsing through some recent posts by Scott Allen, when I came across this great quote:

…until it’s certain that we have a performance problem, it’s better to optimize for readability

Continue reading "Readability First"

Spark View Engine

I finally got a chance to spend some time with the Spark View Engine by Louis DeJardin. While I am sure I am just scratching the surface on what you can be accomplished with it, I can say without a doubt I am already in love.

Continue reading "Spark View Engine"

ASP.Net MVC on Azure

Jim Nakashima has updated his ASP.Net MVC Projects running on Windows Azure post to support ASP.Net MVC RC 2.

Continue reading "ASP.Net MVC on Azure"