Microsoft present Windows 8 :
Microsoft has unveiled the first official video of the replacement of Windows 7 called logically Windows 8.
The Google +1 button :
Google offers a new feature that allows users to give a point to some web pages they find interesting.
Clicking on a button will publicly share their point of view on a webpage.
A day at the TechDays 2011 :
I was lucky to participate for one day at the TechDays 2011 in Paris, here I am back on the sessions I attended.
URLs, globalization and localization on multilingual websites :
When designing a multilingual website, the representation of different languages in URLs is an important aspect of design. Indeed, how to separate the languages are often implemented in the heart of the project and any changes would result in heavy maintenance. The worst thing is to not consider this point at all. Companies not taking the time to prepare for internationalization will be later forced to incur significant costs when the whole site must support multiple languages.
This article describes a non-exhaustive list of techniques for implementing a multilingual site with the advantages and disadvantages of each.
Microsoft Windows logo history :
Microsoft has changed the Windows Operating System logo numerous times over the years. This article compares the Windows logos from Windows 1.01 to the latest Windows.
TechDays 2011 - What's new in ASP.NET MVC 3 :
Following the session I had the pleasure of hosting at TechDays 2011 in Geneva, you will find here all the sources of the demonstration project as a Visual Studio 2010 and some explanation of this one. Links to the powerpoint and the video of the session are also recalled.
JSON Binding Support :
With the JSON Binding Support in MVC 3, you can send JSON encoded data to the actions and the model will be automatically bound to parameters. This allows the connection between server and client data by sending and receiving JSON those above.
The IValidatableObject interface :
The IValidatableObject interface introduced with version 4 of .NET framework is supported by MVC 3. It allows a level validation of the model and allows you to return specific messages about the state of the model.
Create your first NuGet package :
NuGet is a true evolution to package up your development to facilitate their reuse for other projects. This article describes the basics of creating NuGet packages.
Book: C# 4 Develop Windows applications with Visual Studio 2010 :
Publication the December 6 of my book with éditions ENI about developing Windows applications with Visual Studio 2010 and C# 4.
Remote debugging :
The introduction of remote debugging is problematic when both machines are not part of the same domain.
The main requirement is that there must have a user account with the same name and same password on the remote machine and on the local machine (a local account and not a domain account).
The second point is that Visual Studio Remote Debugger must be installed on the remote machine and be done with the user account.
Visual Studio 2010 Keybinding Cards :
Always helpful keybinding cards of Visual Studio are available for downloads for Visual Basic, Visual C#, Visual C++ and Visual F#.
.NET Framework 4 and Visual Studio 2010 Exams :
The series of certifications exams on .NET Framework 4 and Visual Studio 2010 technologies are already announced for July 2, 2010. Get ready!
Using the Developer Dashboard :
SharePoint 2010 has many new features, among them, the Developer Dashboard. This is a dashboard for analyzing the execution and performance of the current page. The information provided will execution time of queries and events to more general information as the user logged on or page state.
This article details how to enable this feature and use it.
Add icons to document types :
When you add a document of unknown type for SharePoint, a neutral document icon appears in the document librairie near the file.
This article describes how to add a custom icon.
Install the PDF iFilter :
To index the documents, the indexing service use filters for specific file types. Microsoft includes many of these filters with the basic installation (Word, Excel, ...) but there is no filter installed by default for indexing PDF files. The consequence is that none of PDF documents is indexed so it is impossible to do research on those.
This article describes how to install the PDF iFilter to index PDF documents.
Using the service accounts with least privilege to run SharePoint 2010 :
The concept of security for accounts is very clear: to give only the rights required to accomplish a task and no more. This concept should apply to accounts of human users but also to service accounts.
SharePoint 2010 services accounts are no exception to that concept. This article describes the accounts required and what rights to assign them to optimize the security of a server farm in SharePoint 2010.
Installing and configuring SMTP and POP3 services for sharepoint 2010 :
After installing your development environment, you can complete it by the installation and configuration of SMTP and POP3 services.
The interest is to have opportunities to send and receive emails from your SharePoint 2010 environment in general and more particularly to use SharePoint alerts and contributions by email.
Creating your first SharePoint 2010 site :
The creation of a SharePoint 2010 site is the logical continuation of the installation of a SharePoint server. The operation is very similar to its predecessor, SharePoint 2007.
Installing SharePoint 2010 :
This article describes the steps for installing SharePoint 2010 on Windows Server 2008.
Install a base VM with Windows Server 2008 :
This article details the process of installing Windows Server 2008 in a virtual machine. The aim is to have a base VM that could be easily duplicated.
Enable Wake On LAN on Surface :
Microsoft Surface tables are often used for events or in an office, for purposes of presentation. The lamp has a life quite limited and a concern for energy saving, it's best to establish an automatic start and stop so you do not be concerned with turning off the table before leaving weekend.
Change screen orientation of a Microsoft Surface application :
The property Microsoft.Surface.ApplicationLauncher.Orientation lets you know the orientation of the application. The event Microsoft.Surface.ApplicationLauncher.OrientationChanged from the SDK is triggered when the user changes its direction by touching one of the access button.
Tagged objects and tag visualizations :
Microsoft Surface applications can recognize special tags besides fingers and objects. These tags are similar to bar codes in concept and can store a particular value which can be retrieved by Surface’s vision system.
Videos of Microsoft Surface Applications :
Many applications for Microsoft Surface and all types of uses appear, here are some videos.
Difference between var and dynamic :
var and dynamic types may create confusion. For both, the type is taking from the context rather than explicitly declared. But the differences are present on how to use them.
C# 4 Optional parameters: Conflict Resolution :
Optional parameters open new possibilities for C# developers, it can cause conflicts if the method call is equivalent to several signatures.
C# 4 Named Parameters :
A new feature of C# 4 is the principle of named parameter.
C# 4 Optional Parameters :
One of the new language features coming in C# 4 is optional parameters. In large part, this is due to Microsoft’s plan of co-evolution with C# and VB.NET since VB.NET has had this feature for a while.
Persisting Row Selection in Data Controls :
The GridView and ListView controls can let users select a row. In previous versions of ASP.NET, selection has been based on the row index on the page. For example, if you select the third item on page 1 and then move to page 2, the third item on that page is selected. This is not a natural method of selection.
Page.MetaKeywords and Page.MetaDescription Properties :
One of the additions that has been made to ASP.NET 4 is the addition of two properties to the Page class, MetaKeywords and MetaDescription. These two properties represent corresponding meta tags in your page.
Converting url to TinyURL in C# :
Two functions to parse url from a text and convert them to simplified urls with TinyUrl.
Calculating an age from a date of birth :
Creating a function to calculate the age of a person.
Create a class to generate passwords :
A class to generate passwords.
Send an email with pictures included :
Create a method of sending an email with pictures included.
Quick explanations on the web.config :
Many sections of web.config for SharePoint 2007 differ from those of a web application. Here's a quick overview of some of them.
Move content and configuration databases :
Several common reasons for needing to move a database from one SQL server to another are:
-Scalability (spreading the load of your SQL server across multiple SQL servers)
-Disaster Recovery (your SQL server had a catastrophic disaster and you need to recover from that event)
-Database Reorganization (you simply need to change the server that hosts your content database or rename the database)
SPSecurity.RunWithElevatedPrivileges :
The SDK says this: "The Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges method enables you to supply a delegate that runs a subset of code in the context of an account with higher privileges than the current user."
Reusable content & HTML snippets :
If you want to allow your client insert more than just formatted text and images in his Publishing HTML field control, you should think about the out-of-the-box Reusable Content functionality provided by MOSS 2007.
Save site as a template missing :
If you are trying to save a site as a template in SharePoint 2007 you will find that the link Save site as template is only available under Look and Feel at the top level of the site collection. Doesn't really help if you want to save a sub site as a template.
Problem when deleting content type :
When you want to delete a content type, it's either a 10 second or a multi hour job. Either the content type is completely orphaned and easy to delete, or it's used in many places, most of which will be difficult to find and the treasure hunt is on!
This post cover how to delete a content type and how to troubleshoot the most common error: The content type is in use.
Change MasterPageFile for a specific PageLayout :
If you want to change the MasterPage for one PageLayout, you need to do something special. Normally each site has a MasterPage and an alternate MasterPage assigned for the site, and SharePoint sets the MasterPageFile for you behind the scenes.
Issue with custom URL, IE8 and Windows Server 2003 :
If you make use of the HOSTS file to allow the use of FQDN to remove the need for high port numbers on SharePoint 2007 installed on Windows Server 2003 with IE8 (that's the winner list...), you have an error HTTP 401.1 – Unauthorized: Logon Failed when you try to connect on the site.
SharePoint versions :
This article describes how to identify your current Microsoft SharePoint version number and the corresponding product or service pack level.
Enabling anonymous access in SharePoint 2007 :
In this article I’ll show you how to enable anonymous access on your site.
Change ContentType of SPListItem by code :
The user interface of SharePoint allows you to select or change the content type of a list item. How to do it by code?
Read and add items to SharePoint list :
I'm going to show you how you can use the SharePoint object model to read and add items in a list using C#.
Display your Twitter status in SharePoint :
Twitter offers customers the status in XML format, SharePoint is the perfect consumer for this type of data and in contrast to existing solutions, we will not have advertise on our Widget.
Display data from multiple sources in a single Data View :
Display information from multiple data sources is an almost obligatory to make a SharePoint application. In this article we'll create a view with this technique using SharePoint Designer 2007.
Remove or change the title column from a SharePoint list :
The Title column comes default on any list you are going to create in SharePoint, it's also by default a Single line of text type. This introduces problems if you don't want a Title column or if you want that Title column to be another column type.
Customizing the filter query in a list view :
Create complex filters using AND and OR conjunctions.
Create SPList grouped by a field in SPView :
Doing a GroupBy on SPList so that it can be viewed in TreeView UI with collapsible groups.
Forcing checkout of item before edit in C# :
Code sample for forcing the checkout on a list.
Enabling content approval on a list in C# :
Code sample for enabling content approval on a list.
Add a content type on a list in C# :
Code sample for adding a content type on a list.
Enabling content management on a list in C# :
Code sample for enabling content management on a list.
Enabling versioning on a list in C# :
Code sample for enabling versioning on a list.
URL Rewriting for SEO: Enforce canonical pages :
Search engines believe that http://www.hugon.ws and http://www.hugon.ws/default.aspx are two separate pages. They believe that these pages have the same content and this affects SEO.
URL Rewriting for SEO: Enforce canonical host names :
Search engines will treat http://www.hugon.ws and http://hugon.ws as two separate websites. Search rankings are surely going to drop, given that search engines believe that 2 sites should not share the benefit of having the same content.
URL Rewriting for SEO: Convert/Force URLs to Lower Case :
URLs can be defined in uppercase and lowercase. That means they are treated as different pages by a search engine, even if they point to the same resources and content.
Identify the SQL Server version and edition :
This article describes how to identify your current Microsoft SQL Server version number and the corresponding product or service pack level. It also describes how to identify the specific edition of SQL Server you are using.