April 2011 - Posts
At MIX11, I presented a session on Script# titled " Script#: Compiling C# to JavaScript " ... and I did a follow up blog post highlighting the key points from the presentation. This blog post covers the Hello World demo, which will show how you can get started with script#, and deploy scripts authored using this approach. It doesn't go into more advanced topics, but hopefully it will also demonstrate a couple of key principles at play: Script# doesn't introduce some new and odd abstractions. You're still very much authoring script against the DOM and standard APIs, and existing knowledge of web development carries forward. The generated script is similar to script you might have authored directly, and can be distributed...
These things happen, and it seems hopeless at first: you've locked yourself out of your own site and that's that. Well, not quite. If you still have access to the database there is a way out. Access may be through FTP and WebMatrix or Visual Studio if using SQL CE or through SQL Server Management Studio or whatever is your preferred way to access your database. In this tutorial I'll use WebMatrix over a local SqlCe database but other tools would work just as well with minor differences. Open the database and go to the Orchard_Users_UserPartRecord table. You should see something like this: As you can see, the passwords are stored hashed, and the password format is specified for each user. Possible values are Hashed (the default),...
New Release First, if you wander on over to the AgFx CodePlex site, you'll see that there is a new release up. There's some new things in this new release such as some statistics about the performance of your application, the ability to specify exact cache expiration, and some bug fixes. The majority of feedback that I have gotten has been feature requests or "how do I?", and few in the way of bug reports. So it's working well for most people, hopefully that continues. Please file bugs if you find them! All of the below references the code sample that you can find in the CodePlex source tree at AgFx\Samples\Facebook.Auth.Sample . OAuth with Facebook and AgFx on Windows Phone 7 Something applications commonly want to do...
The folks over at DonorsChoose.org are running an "open data" context in April that I thought you all might be interested in! DonorsChoose is an online charity that makes it easy for anyone to help students in need. The difference is that the Donor can target a project directly...you can choose where your $1 goes. So far, more than 165,000 teachers at 43,000 public schools have posted over 300,000 classroom projects supported by 409,000 citizen philanthropists who have made >900,000 project donations at DonorsChoose.org to date. That makes for a whole lot of data that is publicly accessible for a contest, after of course scrubbing identifying information about teachers and donors. The resulting info will include everything from...
My previous post focused on the most visible changes in Orchard 1.1 but we also made a few changes to the platform that open up new developer scenarios. Suppressing Dependencies Orchard is essentially built around the idea of dependency injection, but for those services that need to have a unique implementation, it was almost impossible to swap the default implementation with your own without hacking into our Autofac code. With Orchard 1.1, you may now suppress a core dependency in order to substitute your own. Here is some code from Piotr's excellent Advanced Menu that uses that new feature: namespace Szmyd.Orchard.Modules.Menu.Filters { [OrchardSuppressDependency( "Orchard.UI.Navigation.MenuFilter" )] public class MenuFilter...
It was only three months ago that we shipped Orchard 1.0 and 1.1 is already here with some substantial improvements and many bug fixes. Let me walk you through the most important ones… Admin Redesign Here is our old Orchard 1.0 dashboard next to the new one: We've flattened the menu and tried to have a more rational grouping of items. Several things that used to be sub-menu items have been moved to be tabs on the right panel: Widget Management Managing the widgets on a site in a way that scales from the simplest blogs to large sites is tricky. We implemented that with a system of programmable layers, and the UI we had to control that in 1.0 wasn't very friendly. We improved that in 1.1: Now you can filter out inactive zones, you can...
At MIX11 last week, I presented the Script#: Compiling C# to JavaScript using Visual Studio . As full-fledged script-based development becomes widespread with the HTML5 wave, a couple set of interesting questions emerge - what are the development tools you and your team uses to productively author and manage a code base? Shouldn’t you write code in a model that is optimized for development and productivity and let a compiler do its magic and produce code that is optimized for deployment and runtime? Script# allows you to write your code in C# and compile it down to deployable JavaScript, it also unlocks the power of C#, Visual Studio and existing .NET tools for scripting scenarios. [ Full post continued here... ] Read More...
In this screencast, I'm publishing an Orchard web site and its SQL Express database to a shared host using WebMatrix. Read More...
This Friday, April 22nd, I’ll be holding my 8th Annual “Day of .NET” event in Arizona. Organized by my friend Scott Cate, this all-day event is free and contains a ton of great content and presentations on recent technologies in the .NET world. It is hosted in a great facility and is a lot of fun. This year I’ll be presenting together with Mark Russinovich, and we’ll be covering ASP.NET + Azure + Silverlight + Windows Phone 7. It will be great! You can learn more about the event, and register to attend for free here . Hope to see you there! Scott Read More...
In this short video, I show how to use WebMatrix to migrate an Orchard site from using the file-based SqlCe to a SQL Express database. Read More...
More Posts
Next page »