Thursday, 1 June 2017

Developer Dashbord SharePoint PowerShell

Developer Dashbord
$cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$dash= $cs.DeveloperDashboardSettings
$dash.DisplayLevel="Off" // Ondemand to activate



in powershell , the is a good tool to check logs or output from powerShell;

Get-SPFeature -Limit ALL | Out-GridView

Wednesday, 31 May 2017


we change our nintex workflow in a list and we should update all lists in the farm we should use this source code :

Saturday, 15 April 2017

How to create a folder with Password ? in windows

How to create a folder with Password ?

1.Open your notepad application and write this Bat code:

title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
echo Hide your folder Y=yes N=No(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo your password Please
set/p "pass=>"
if NOT %pass%== Password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Bien Bloquer GG
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End
2. replace your "Password" with your own password that you want to use.

3. save the file with ".bat" extension.

don't forget to add ".bat"

4.Double-click on the bat script.
Voici à quoi ressemble le fichier enregistré
5. a new folder called "Private" will be created , put all your files and documents to be hided.

6.When you finish , reexecte the script to hide the private folder, you will get a message , yes or now to hide files 

7.If you click yes , folder will be hided

8.s to review your files , reexecute the script and put the password,  your private folder will be displayed. 


Friday, 31 March 2017

Semaphore exemple

this is an exemple in C, to use thread:

//progamme prod_cons.c
#include <semaphore.h>
#include <unistd.h> //pour sleep
#include <pthread.h>
#include <stdio.h>
#define N 3
sem_t occupe, libre ;
int tampon[N];
void* consommateur(void *);
void* producteur(void *);
int main() 
{ pthread_t th1,th2;
sem_init(&occupe,0,0); // initialiser les sémphores
pthread_create(&th1, NULL,consommateur ,NULL); //cree les threads
pthread_join(th1,NULL); // attendre la fin des threads
      printf("ici main, fin des threads \n");
return 0;
void* producteur(void *depot)
{ int ip=0, nbprod=0, objet=0;
do {
// produire
    printf("\n ici prod. : tampon[%d]= %d\n", ip,objet);
        objet++;        nbprod++;
        }  while ( nbprod<=30 );
void* consommateur(void *retrait)
  int ic=0, nbcons = 0, objet;
do { sem_wait(&occupe);
// consommer
        objet = tampon[ic];
        printf("\n ici cons. :tampon[%d]= %d\n", ic, objet);
}  while ( nbcons<=30 );

Monday, 27 March 2017

Progest System

Try our new application version Béta:

it's a Simple application to manage a project , 
create modules, Tasks, affect ressources.. 

Login : user
Password: user

there is some functionnlity not available. 

it's will be available in the next version soon 

Thanks for your comments. 

Wednesday, 22 March 2017

PropretyBag with JavaScript in SharePoint 2013

as we know, Property bag are very important in SharePoint development, and to get it with JavaScript is very simple :

//wait until client object model dependencies are loaded before executing our code
ExecuteOrDelayUntilScriptLoaded(getWebProperties, "sp.js");
var webProperties;
function getWebProperties() {
    var clientContext = new SP.ClientContext.get_current();
    webProperties = clientContext.get_web().get_allProperties();
    clientContext.executeQueryAsync(Function.createDelegate(this, this.getWebPropertiesSucceeded), Function.createDelegate(this, this.onQueryFailed));
function getWebPropertiesSucceeded() {
          //debugger; //use this to force a break here
    //returns an object with all properties. 
          //Use the quick watch to expand this out to see all of them.
    var allProps = webProperties.get_fieldValues();
    var customProp = "";
         //make sure the property is there before using it.
    if(webProperties.get_fieldValues().CustomSite_Version != undefined)
        var customProp = webProperties.get_fieldValues().CustomSite_Version;
function onQueryFailed(args, sender)
     //handle errors here

var customProp = webProperties.get_fieldValues().CustomSite_Version;

Featured Post

Developer Dashbord SharePoint PowerShell

Developer Dashbord $cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $dash= $cs.DeveloperDashboardSettings $dash....