This amount of knowledge needs at least one blog ticket :) Many PDF (also epub and mobi format) around technical subjects like Office 365, Windows Server 2012, SQL Server, Sharepoint, SQl Server, System Center, Visual Studio, ... are available as free download on Microsoft website : http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx Feel free to download, learn and progress !
Original article available at http://www.alphablog.org
Alphablog
mercredi 17 juillet 2013
vendredi 29 mars 2013
New App using ASP.NET with some fancy frameworks …
One of my colleague (Tomislav Babic) has created a long but perfectly built article about creating an ASP.Net application.
He started from the database with Entity Framework, going on with Breeze.Net for the glue between client & server and close the article with Knockout JS & KOGrid for the client presentation layer.
If you want to learn from scratch how to setup a solution or if you want to discover some new frameworks, read it !
Windows Phone 7 Coding Dojo
Here is a video showing how to create a simple but useful Windows Phone 7 application. This application allowDevoteam Luxembourg’s consultant to add and follow their time off requests.
This application use web services based on Object Client for SharePoint. We will only see the Blend 4 part and the Visual Studio for windows phone development.
I only use MVVM Light (as usual :p) as external framework. I have already done the link between the “enum application state” and the “data state mechanism” (see previous coding dojo for more details). I have set up MVVM Light with NuGet
(see details on NuGet)
The first video show how you can set up the project and create quick content (approx 1h). The second video show the capability of the application, on normal usage.
Blend 5 and Visual Studio 11 feedback, the Windows 8 development future
Here is a little feedback on Visual Studio 11 & Blend 5…
1 – Visual Studio 11
Visual Studio 11 is provided in the Windows 8 Developer Version. It is provided with some “Metro Application Style” templates. One first thing we can notice is that VS11 is very similar to VS10… Microsoft added usefull features detailed below. I am quite disapointed about Microsoft political point of view about Xaml Language and Html5/JavaScript…
Fast file preview
You may know that Visual Studio is multi-tab layered. But, when you “simple-click” on a file in the file treeview, a new tab stacked on the left will appear. It will provide you a quick preview of the file content.
Quick search in Solution
Visual studio embed now a search field just above the file treeview. You can now look for a file, a class, a method or a field in few seconds. It will enhance our productivity incredibly.
Quick Search Command
You can also search for a command through the search field in the Visual Studio Toolbar and access quickly for all available commands.
Some “Metro Style Application” samples
Visual Studio provide us few templates and show us how “Metro Style Application” can be.
2 – Blend 5
Blend 5 is provided for testing JavaScript/Html5 solution for Windows 8. I used to work with Blend 4 for Silverlight and lots of features that was available and allow me to produce a fast/clean solution is not available for Html5/JavaScript solution… For example, binding states to an enum property… But in the JavaScript/Html5, there is no state or even storyboard. Blend is a JavaScript/Html5 WYSIWYG editor in this specific case …
Where are my tools ?
This is the only tools you have in the JavaScript/Html5 version of Blend 
Assets, generated parts & Javascript
Here is a sample of a rating “control” in Blend 5. As you can see, the rating control will create a div and “generate elements inside” (elements with a lightning near the eye). You can access the div and do your stuff on the JavaScript side.
Long long long CSS train …
Once unfolded, CSS properties are numerous…
Plateform testing
Your application can be tester under multiple format. This is a good point of Blend 5. You can also activate an emulator for directly seeing the result. Here is the result in the emulator :
Files created in a new Html5/Javascript
Here is the project content created for an Html5/JavaScript project.
Good features nevertheless …
Some good features are added inside Blend 5… You can fly over a CSS Style and see where it is applied.
Conclusion
I am worry about Silverlight/WPF/Xaml-Based future for many reasons.
- I have seen lots of Silverlight developers that doesn’t know how to use Blend… (too many …)
- Microsoft only talk about Html5 and JavaScript in their meetings…
But, we have a big advantage. True Silverlight developers can create more shiny application in a shorter time than with Html5/JavaScript … And C# will always be smarter than JavaScript
Single web service for multiple devices (IPhone, Windows Phone, Silverlight, Windows 8)
At Devoteam Luxembourg, our goal was to develop a cross platform application.
We have developed a set of application based on a single “web services server”.
- An IPhone, IPad, Android version with Sencha Touch
- A Windows Phone 7 native version
- A Silverlight version
- A Windows 8 based on winRT version
This article will only talk about consuming web services on this 4 versions. We add some constraints like activating HTTPS for enhancing security, taking care of enhancing speed for mobile devices, etc … What is the conclusion of the adventure ?! 
Iphone, IPad and Android
we had set up JSON for the first time for IPhone and it was easy in IPhone side. But WCF was a bit more lazy …
Here is a sample of service header :
[OperationContract] [WebInvoke(Method = "POST", UriTemplate = "SendRequest", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] public string SendRequest(Stream multipartData) {
we had to parse the multipartData stream and transform the JSON string with the JavaScriptSerializer…
Windows Phone
WCF setup was more easy.
[OperationContract]
public string SendRequest(string login, string password, int requestType, string startDate, string endDate, int startAM, int stopAM) {
but we had to develop an “automatic certificate installer” for windows phone, based on http://wp7certinstaller.codeplex.com. If the phone does not have the certificate, it will be redirected on a website. We can’t use not trusted webservices without installing the certificate. Same as silverlight and windows 8 behavior, we do not have access to the ServicePointManager :
ServicePointManager.CertificatePolicy = delegate { return true; };
Silverlight
The silverlight consume the same web service than windows phone. Otherwise, it was mandatory to install the client certificate.
Windows 8
Due to close timeline, we have give up installing https for Windows 8. We use Http binding over the windows phone web service. It only use an other endpoint on the Windows Phone.
Summary
The sheet below describe what we can do and with predefined configurations :
For information here is the web.config :
<?xml version="1.0"?> <configuration> <system.web> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="IPhoneBinding"> <security mode="Transport"> <transport clientCredentialType="None" />
</security> </binding> </wsHttpBinding> <basicHttpBinding> <binding name="WP7Binding"> <security mode="Transport"/>
</binding> <binding name="WP7BindingNoHttps"> </binding> </basicHttpBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="WebBehavior"> <webHttp />
</behavior> </endpointBehaviors> <serviceBehaviors> <behavior name="TimeOffServiceBehaviors"> <serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior> <behavior name="TimeOffApp.TimeOffServiceWP7Behavior"> <serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services> <service behaviorConfiguration="TimeOffServiceBehaviors" name="TimeOffApp.TimeOffService"> <endpoint address="" behaviorConfiguration="WebBehavior" binding="wsHttpBinding" bindingConfiguration="IPhoneBinding" name="IPhoneEP" contract="TimeOffApp.TimeOffService" />
</service> <service behaviorConfiguration="TimeOffApp.TimeOffServiceWP7Behavior" name="TimeOffApp.TimeOffServiceWP7"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="WP7Binding" contract="TimeOffApp.TimeOffServiceWP7" />
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="WP7BindingNoHttps" contract="TimeOffApp.TimeOffServiceWP7" />
</service> </services> </system.serviceModel> </system.web> </configuration>
Original article available at http://www.alphablog.org
Inscription à :
Commentaires (Atom)