lundi 29 avril 2013

Cache et perfomances SharePoint 2013

Plan for caching and performance in SharePoint Server 2013

Learn about the BLOB cache, Bit Rate Throttling, and other SharePoint features that can improve browser performance.

For a publishing site for which most of the visitors are anonymous or where most of the files are static content, enable the BLOB cache for as many file types as possible.

Using BLOB cache in a high traffic environment, and if you will use ULS logging, consider placing the BLOB cache on a separate physical drive from the ULS log — not on a separate partition. Storing the BLOB cache and the ULS log on the same drive can result in poor server performance.

Each front-end web server has its own local copy of the BLOB cache that is built as requests for files are received. If you use load balancing with multiple front-end web servers, each server contains its own cache.

By default, the BLOB cache is set to 10 gigabytes (GB). Allow at least 20 percent more space on the drive than the size of the cache. For example, if you have 100 GB of content, set the size of the cache to 120 GB on a drive that has at least 150 GB of space. If the BLOB cache is too small, serving files to users slows, reducing the performance of your site.

http://technet.microsoft.com/en-us/library/ee424404.aspx

Cache settings operations in SharePoint Server 2013

Learn about the available caches and the settings that can be configured for the BLOB cache, cache profiles and object cache settings.

http://technet.microsoft.com/en-us/library/cc261797.aspx

Monitor cache performance in SharePoint 2013

Learn how to monitor the SharePoint BLOB cache, the ASP.NET output cache, and the SharePoint object cache.

http://technet.microsoft.com/en-us/library/ff934623.aspx

Configure cache settings for a web application in SharePoint Server 2013

Learn how to configure the BLOB cache, page output cache profiles, and the object cache for a web application.

http://technet.microsoft.com/en-us/library/cc770229.aspx

Create a Data Collector Set to Monitor Performance Counters

You can create a custom Data Collector Set containing performance counters and configure alert activities based on the performance counters exceeding or dropping below limits you define.

http://technet.microsoft.com/en-us/library/cc722414.aspx

mardi 23 avril 2013

Premiers pas sur Office 365 et SharePoint 2013 Online

Création de votre site

Une offre d'essai permet de créer un compte sur Office 365 pendant 30 jours, tout ce qu'il vous suffit c'est une adresse mail Microsoft (hotmail /outlook /live).

http://msdn.microsoft.com/fr-fr/library/fp179924.aspx#o365_signup



Une fois votre compte créé il ne reste plus qu'à vous rendre sur votre portail avec le compte créé ( @onmicrosoft.com)



Votre première application

Commençons par nous rendre sur l'administration SharePoint


Rendez-vous ensuite sur la première collection de sites SharePoint 2013 online créée par défaut dont l'URL est https://angama.sharepoint.com dans mon cas puisque mon domaine est 'angama'

Vous voici donc sur votre site SharePoint 2013 dédié au développement d'application.

Nous allons nous intéresser en premier lieu à l'ajout d'application à votre portail et plus particulièrement aux liste de tâches.
Dans la partie paramètres située en haut à droite de votre site cliquez sur "Ajouter une application".


Une fois dans la galerie des applications, cliquez sur le modèle de liste "Tâches" et nommez votre liste "Planning".


Une fois la liste créée vous vous retrouvez sur la page "Contenu de site" avec la liste "Planning" correctement créée.
La prochaine étape consistera à populer cette liste et modifier l'affichage de celle-ci.

Ajoutez du contenu à la liste en vous servant du formulaire d'ajout et ajoutez les tâches à la vue chronologique.


Nous allons maintenant ajouter cette vue à la page principale de notre site, revenez à la page d'accueil du site en cliquant sur le logo SharePoint 2013 en haut à gauche de la page.

Cliquez ensuite sur "Page" et enfin sur "Modifer la page".


 Depuis l'onglet "Insérer" cliquez sur "Composant WebPart", il vous suffit maintenant de chercher l'application correspondant à la liste "Planning" et de l'ajouter à la page.

Voici le résultat final en ajoutant à gauche la WebPart Planning et sur la droite cette même WebPart en filtrant les résultats sur "Mes tâches".


Libre à vous de modifier l'affichage de la page notamment en changeant le thème de votre de site et en le renommant.

Le prochain tutoriel portera sur la navigation grâce au magasin des termes, les URL conviviales et le SEO (search engine optimization).

vendredi 1 mars 2013

Modify Site Collection URL SharePoint 2010

In order to rename a Site collection in SharePoint 2010 you need to backup the site first and restore it on an new Site collection.
To do that you can use the following PowerShell :
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue 
  
#Get the Source Site Collection URL
$sourceURL = Read-Host “Enter the Source Site Collection URL:”
  
#Get the Target Site Collection URL
$targetURL = Read-Host “Enter the Destination Site Collection URL”
  
#Location for the backup file 
$backupPath = Read-Host “Enter the Backup File name & location (E.g. c:\temp\Source.bak):”
  
#Backup the source site collection
Backup-SPSite $sourceURL -Path $backupPath -force
  
#Delete source Site Collection 
Remove-SPSite -Identity $sourceURL -Confirm:$false
  
#Restore Site Collection to new URL
Restore-SPSite $targetURL -Path $backupPath -Confirm:$false
  
#Remove backup files
Remove-Item $backupPath
  
write-host "Process Completed!"


vendredi 15 février 2013

Windows 8 : Open a local file and read Xml content

Thanks to this tutorial you will learn how to open an Xml File located in you Solution Explorer and how to retrieve value.

We will use Linq on Xml file so you have to add the following  librairies to your projet :


using System.Xml.Linq;
using Windows.Data.Xml.Dom;
using Windows.Storage;


Add a folder named 'Data' for exemple into you Windows Store solution and add the following Xml content into the file 'Schools.xml':

<?xml version="1.0" encoding="utf-8" ?>
<school>
  <name>IUT Toulouse</name>
  <type>Public</type>
  <location>
    <X>45.1</X>
    <Y>32.5</Y>
  </location>
</school>

And into a EventHandler or in the Page_Load for example add the folowing code :

Windows.Storage.StorageFolder storageFolder =await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Data"); StorageFile storageFile =await storageFolder.GetFileAsync("Schools.xml"); IAsyncOperation<IRandomAccessStream> stream = await storageFile.OpenAsync(FileAccessMode.Read); XmlDocument xmlDoc = await XmlDocument.LoadFromFileAsync(storageFile); XDocument doc = XDocument.Parse(xmlDoc.GetXml()); string name = from schools in doc.Descendants("name") select schools.Value;string type = from schools in doc.Descendants("type") select schools.Value;

At the end of the code the variables  name and type contains the value retrieve in the xml file.





jeudi 7 février 2013

Windows 8 par où commencer ?

Voici quelques liens qui peuvent vous aidez à prendre en main windows 8 aussi bien niveau usage que développement :


Le top 10 des App :
http://www.pcworld.com/article/2012988/10-windows-8-apps-you-should-download-first.html


Génération App Microsoft avec les offres en cours et les concours:
http://www.generationapp.com/code/#fbid=FcBScBurfJr


Vos ressources de développement avec Microsoft code pour windowsApp:
http://code.msdn.microsoft.com/windowsapps

Comment concevoir vos applications et les rendre #1:
http://msdn.microsoft.com/library/windows/apps/hh779072/


Utilisation de la barre d'application suivant le context:
http://blogs.msdn.com/b/windowsappdev/archive/2012/09/06/embracing-ui-on-demand-with-the-app-bar.aspx

mercredi 30 janvier 2013

How to log directly into EventLog server (Observateurs d'événements)

Every application can write into the server event log diary thanks to a C# class called "System.Diagnostics.EventLog"

In order to log message you have to instanciate one object of this class and specify two important elements Source and Log

Log will define the category in which your message will appear, you can use 'Application' 'Security' 'Installation' and so on.

Source define the name of the application that log the message, you can use your application name for example.


And the C# code to log into the diary event :


private static string SourceLog = "MyApplicationName";
private static string LogApp = "Application";
private static System.Diagnostics.EventLog eventLogApplication;

/// <summary>
/// Log the message into the Windows event log diary
/// </summary>
/// <param name="message">Message</param>
static void Log( string message )
{
     Log( message, System.Diagnostics.EventLogEntryType.Information );
}

/// <summary>
/// Log the message into the Windows event log diary
/// </summary>
/// <param name="message">Message enregistré</param>
/// /// <param name="entryType">Entry type</param>
static void Log( string message, System.Diagnostics.EventLogEntryType entryType )
{
     try
     {
          //Initialisation
          if (!System.Diagnostics.EventLog.SourceExists(SourceLog))
         {
              System.Diagnostics.EventLog.CreateEventSource(SourceLog, LogApp);
         }
         if (eventLogApplication == null)
        {
             eventLogApplication = new System.Diagnostics.EventLog();
             ((System.ComponentModel.ISupportInitialize)(eventLogApplication)).BeginInit();
             eventLogApplication.Source = SourceLog;
              eventLogApplication.Log = LogApp;
        }

        //Writing
        eventLogApplication.WriteEntry(message, entryType);
   }
    catch (Exception e)
    {
        Log("Error Log : " + e.InnerException + " " + e.Message, EventLogEntryType.Error);
      }
}

lundi 28 janvier 2013

BeMyApp dev kings 2013

L'initiative BeMyApp continue son petit bonhomme de chemin et propose un nouveau défi pour les fan de développement :

http://pitchyourapp.eventbrite.fr/

Source : BeMyApp.fr

DEV KINGS 2013 - On remet ça !
Edition spéciale app'citoyenne

Venez développer vos applications citoyennes et participez au concours des DEV KINGS 2013.
Choisissez la localité à représenter, créez votre team et développez vos app' !


2 MOIS POUR DEVELOPPER LA MEILLEURE APP'CITOYENNE
Le 12 février
Soirée Pitch Your App, lancement du concours. Pitchez vos idées, rencontrez votre équipe de développeurs, porteurs d'idées, designers et autres super pouvoirs.

Du 12 février au 12 avril
Sessions de coaching Microsoft, développez à l'aide des experts Microsoft vos applications en deux mois.

Weekend du 12 au 14 avril
DEV KINGS 2013inscrivez-vous et venez terminer vos applications avec vos équipes en 48h ! Participez à la grande finale, soumettez vos applications sur Windows Store et passez un WeekEnd de folie dans l'Under d'EPITECH.


INSCRIVEZ-VOUS ICI A LA SOIREE PITCH YOUR APP
Mardi 12 février Chez Régine, venez créer votre équipe à la soirée Pitch Your App

Le but de cette soirée est de mettre en relation des personnes qui ont des idées d'applications, des développeurs et des designers pour créer des applications citoyennes sous Windows 8 et Windows Phone.
Vous avez une super idée d'application, mais pas les compétences, c'est le moment de vous inscrire pour la pitcher et trouver votre team. 
Vous êtes développeurs, designers ou avez des compétences à apporter ? Alors participez au challenge pour rejoindre une équipe, trouvez des compétences complémentaires pour vos applis et gagnez des dotations Microsoft et Intel !