Cassini for ASP.NET 2.0 Source Code – Build a Web Server That Hosts ASP.NET

 

Dmitry has posted the new source code for Cassini v2.0.  Very cool stuff if you would like to learn how to build a web server that hosts ASP.NET

New to Cassini v2:

  • Cassini v2 uses new ASP.NET v2 hosting APIs (System.Web.Hosting: ApplicationManager, IRegisteredObject, etc.).
  • Grab the Cassini web server source code from Dmitry’s website.

Note: You may also want to check out UltiDev’s own incarnation of Cassini which runs as a Windows Service and comes with a easy distribution package for Visual Studio 2005

First Look at Silverlight 2

 

Silverlight 2 Beta 1 provides a rich set of features that enable great RIA (Rich Internet Application) application development.  These include:

  • WPF UI Framework: Silverlight 2 includes a rich WPF-based UI framework that makes building rich Web applications much easier.  In includes a powerful graphics and animation engine, as well as rich support for higher-level UI capabilities like controls, layout management, data-binding, styles, and template skinning.  The WPF UI Framework in Silverlight is a compatible subset of the WPF UI Framework features in the full .NET Framework, and enables developers to re-use skills, controls, code and content to build both rich cross browser web applications, as well as rich desktop Windows applications.
  • Rich Controls: Silverlight 2 includes a rich set of built-in controls that developers and designers can use to quickly build applications.  This upcoming Beta1 release includes core form controls (TextBox, CheckBox, RadioButton, etc), built-in layout management panels (StackPanel, Grid, Panel, etc), common functionality controls (Slider, ScrollViewer, Calendar, DatePicker, etc), and data manipulation controls (DataGrid, ListBox, etc).  The built-in controls support a rich control templating model, which enables developers and designers to collaborate together to build highly polished solutions.
  • Rich Networking Support: Silverlight 2 includes rich networking support.  It includes out of the box support for calling REST, WS*/SOAP, POX, RSS, and standard HTTP services.  It supports cross domain network access (enabling Silverlight clients to directly access resources and data from resources on the web).  Beta1 also includes built-in sockets networking support.

  • Rich Base Class Library: Silverlight 2 includes a rich .NET base class library of functionality (collections, IO, generics, threading, globalization, XML, local storage, etc).  It includes rich APIs that enable HTML DOM/JavaScript integration with .NET code.  It also includes LINQ and LINQ to XML library support (enabling easy transformation and querying of data), as well as local data caching and storage support.  The .NET APIs in Silverlight are a compatible subset of the full .NET Framework.
Silverlight 2 In Action: Building A Simple Digg Client

All of the UI in the application is built using Silverlight’s WPF framework.  The application uses the Silverlight networking stack and cross-domain access support to query the Digg REST API directly, and uses LINQ and LINQ to XML to query/transform the returned data into DiggStory objects that I databind the UI against:

The entire application is implemented in about 35 lines of C# code and 75 lines of XAML page/user-control markup.  It only uses controls and libraries built-into Silverlight.

Tutorials

Via First Look at Silverlight 2

Is your IDE Hot or Not?

 

image A dark Visual Studio 2008 theme, adapted from my well received 2005 theme.
Consolas font used for the main text editor window(s).
Dina font (free download – google it) for the output windows.
Muted background colors contrast nicely with the keywords and text. Less common operators and markup are more noticeable, i.e. #region and @”string literals”

Download URL:: http://www.jheidt.com/archive/2007/12/13/visual-studio-color-scheme.aspx

Via Is your IDE Hot or Not?

Auto Logon on Windows XP

 

Autologon (Auto Logon) for Windows XP

A. Click on “Start”
B. Click on “Run” – and type “control userpasswords2″
C. click OK
D. Select the Users tab,
E. Clear the “Users must enter a user name and password to use this computer” check box
F. Click “Apply”.
G. A dialog will appear that asks you what user name and password should be used to logon automatically,
H. Supply a Username, Password, and Confirm Password
I.  Click “OK”.
J. Click on ” Start”
K. Open the Control Panel
L. Dbl Click User Accounts
M. Click “Change the way users log on or off”
N. Clear Check box for  “Use the Welcome Screen”
O. Clear Check box for  “Use Fast User Switching” (Automatically Disabled)
P. Click Apply Options.

Twitter .NET / C# Library

 

.NET / C# class that wraps most of the Twitter API in an easy to use way, providing you direct access to the various methods and output formats used on the Twitter API.

Plus Direct Message methods in the comment section.

The library structure is quite straightforward. Every method in the Twitter API has a method in the C# class with the same name. Every method that can return one of the various formats such as RSS, XML and Atom follow the following convention “MethodNameAsFormat”. For example, the method “GetPublicTimeline” has a sibling method named “GetPublicTimelineAsXML” which returns an XmlDocument of the result.

Via Twitter .NET / C# Library  here & here.

Download here

Virtual Private Server Hosting

Learn something new today.

Besides Web Hosting, there is something called Virtual Private Server Hosting (VPS, also referred to as Virtual Dedicated Server or VDS) is a method of partitioning a physical server computer into multiple servers that each has the appearance and capabilities of running on its own dedicated machine. Each virtual server can run its own full-fledged operating system, and each server can be independently rebooted. Any applications can be installed on it including Windows Services. Can be control by RDP or a web based Control Panel (e.g. Plesk).

Google – Microsoft Windows VPS Hosting  and you will find a list of companies doing that. At the time of this writing…the price is around $50-$100/month each comes with ~ 1/2 to 1G or memory.

Publishing RSS and ATOM Feeds using WCF 3.5 Syndication Libraries

 

Introduction

Windows Communication Foundation with its 3.5 release provides several new and useful features including capability to publish and consume syndication feeds in a much easier and uniform way, right out of the box. This article focuses on using the WCF 3.5 libraries namely System.ServiceModel.Syndication namespace to create and publish an RSS and Atom feed from the same code base.

CodeProject: Publishing RSS and ATOM Feeds using WCF 3.5 Syndication Libraries. Free source code and programming help