February 2008 - Posts
Prism - WPF Composite Client codeplex web was born today :-)
"Prism" is a set of assets for developing Composite WPF applications, yes you can use Composite UI (CAB) to build composite application today, you can also use CAB to build wpf based applications but with Prism you'll be able to get all the benefits of Pure WPF apps with the lessons learned from the Composite UI (CAB) in order to build a true WPF Composite Solution.
What can you expect to see at the Prism web ?
You will see start seeing soon Prism drops where we would like to receive comments from you about the solutions we are providing to various Composite UI problems in the WPF domain.
If you want to learn more about Prism, Glenn Bloch and I are going to deliver a session at TechEd Eilat on this cool cool new block :-)
LiveIt at TechEd Eilat !
Check out the Prism web page at code plex
About a month ago I've visited redmond for a Prism (WPF Composite Client) design review, during the session Glenn Block had talked about the idea of building Prism using fluent interfaces . In the past I did play with the idea of building fluent interfaces api through it was for my own purposes.
Lately I've been requested to design a Validator for a company whom I'm helping and I've decided that a Validator is really a cool example where fluent interfaces may become useful.
Following is an example of declaring a new validation rule using my fluent validator:
Say for example that you have two entities where you want to govern the interaction between them.
Entity entity1 = new Entity();
Entity entity2 = new Entity();
Why not just declare it like this:
We can also check for validity of rules using:
Indeed as you can see, there is no need for xml comment for these rules you can just fluently read what the code does.
Note: read more about fluent interfaces with the help of Martin Fowlers
For years I've been working with windows server editions as my main development environments, the reasons are plenty and among of them you can find the stability and the lose of useless services at workstations versions.
Last week I've decided that enough it enough and I cannot stand Vista anymore and decided to downgrade to XP just before going through the downgrade I've received a notification from the Windows Server Beta that they finally made Windows Server 2008 RTM so I've decided to give it a try AND I LOVE IT !
The installation of Windows 2008 Server went much faster then i expected.
After the installation I've started modifying the base install and adapting the server for a high end workstation.
For anyone who might want to move like me here is my WIN2008Workstation list:
- Disable shutdown event tracker
Start->Run->"gpedit.msc" -> Administrative tools->System-> Display Shutdown event tracked -> Disable
- Disable IE Security
Start->Server Manager->Configure IE Sec->Off both options.
- Enable Wireless Support
Start->Server Manager->Features->Add Feature->Wireless LAN Services
- Enable Audio support
Start->Run->"Service.msc"->Windows Audio -> Automatic
Start->Run->Services.msc"->Windows Audio Endpoint Builder->Automatic
- Install hardware drivers
I am using ThinkPad t60p so my driver list is here
Note that mobility center is missing from windows 2008 server so there is no need to install it.
IBM Network access connection will crash on you if you will not enable the wireless support (Look above)
- Enable Vista Experience (look & feel including Aero, Media Player etc.)
Start->Server Manager->Features->Add Feature->Desktop Experience
More info including how to enable sleep support on windows 2008 server you may find over this kb: http://support.microsoft.com/kb/947036)
- Enable Themes
- Enable .NET 3.0
Start->Server Manager->Features->Add Feature->.NET Framework 3.0 Features
- Enable Windows Search (for searching outlook emails)
Start->Server Manager->Roles->Add Roles->File Services->Windows Search
- Enable SuperFetch
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
Add a new DWORD by the name of EnablePrefetcher and assign is the value of 3
Add a new DWORD by the name of EnableSuperfetch and assign is the value of 3
- Install Messenger
Latest Live Messenger will not install on Windows 2008 Server, you should install a former version (8.1 and not 8.5) and then you may copy the Live Messenger folder from a working machine and work with it.
- Install Skype
Latest Skype version will crash 2 seconds after login, you need to install a former skype version Skype 188.8.131.52 works great.
- Install Office 2007
- Install Visual Studio 2008
- Setting Processor Scheduling
Start->Control Panel ->System ->Advanced system settings-> Advanced -> Performance -> Settings->Advanced->Adjust best performance->Programs
- Changing DEP Mode
Start->Control Panel ->System ->Advanced system settings-> Advanced -> Performance -> Settings-> Data Execution Prevention-> Turn On DEP for essential Windows programs and services.
- Fixing ASP.NET Development Server
After installing visual studio you might want to start working with Casini, the asp.net dev server but it seems that the ie cant find it.
Edit the hosts file located at: C:/windows/system32/drivers/etc
comment the following line :
by replacing it with:
(the "::1" is use for the localhost for ipv6)