mercredi 28 septembre 2011

hibernate windows

What is hiberfil.sys and How Do I Delete It?

You’re no doubt reading this article because there’s a gigantic hiberfil.sys file sitting in the root of your drive, and you want to get rid of it to free up some space… but you can’t!
Luckily, you actually can delete it, and today we’ll show you how.
image
The more memory you have in your PC, the bigger the file will be.
So What is hiberfil.sys Anyway?

So What is hiberfil.sys Anyway?
Windows has two power management modes that you can choose from: one is Sleep Mode, which keeps the PC running in a low power state so you can almost instantly get back to what you were working on. The other is Hibernate mode, which completely writes the memory out to the hard drive, and then powers the PC down entirely, so you can even take the battery out, put it back in, start back up, and be right back where you were.
Hibernate mode uses the hiberfil.sys file to store the the current state (memory) of the PC, and since it’s managed by Windows, you can’t delete the file.
image
So if you never use it, and want to disable Hibernate mode, keep read

http://www.howtogeek.com/howto/15140/what-is-hiberfil.sys-and-how-do-i-delete-it/

demarage win

lundi 26 septembre 2011

dimanche 25 septembre 2011

interessant

Le programme de débogage lors la fin de cet article attend que vous permet de saisie d'un caractère à partir du clavier et de définir la valeur de « niveau » égale à la valeur code ASCII du caractère entré. Pour obtenir une liste de caractères ASCII et leurs valeurs associées, consultez la section ANSI.SYS dans votre manuel MS-DOS.

La plupart des caractères sont représentés par seul code. Toutefois, les fonctions et les combinaisons de touches ALT envoient deux codes : un zéro, suivi d'un autre code. Le programme REPLY.COM est définis "ERRORLEVEL « égal à la deuxième code transmis. Par exemple, la touche F8 envoie un zéro suivi de la valeur 66. Cela peut être interprétée par REPLY.COM comme caractère de B, qui a une valeur ASCII de 66.

REPLY.COM utilisable dans les fichiers de commandes pour permettre l'entrée utilisateur contrôler le flux du programme. Par exemple, le fichier Autoexec.bat suivant permet de déterminer d'installer un pilote de souris lors du démarrage ou non :
@Echo off
   path=C:\DOS
   :Ask
   Echo Install Mouse Driver (y/n)?
   Reply
   If errorlevel 121 if not errorlevel 122 goto install
   If errorlevel 89 if not errorlevel 90 goto install
   If errorlevel 110 if not errorlevel 111 goto NoMouse
   If errorlevel 78 if not errorlevel 79 goto NoMouse
   goto ask
   :install
   c:\mouse\mouse
   :NoMouse
   cls
   ver
    
pour plus d'informations sur l'utilisation de la variable d'environnement « errorlevel », requête sur le mot suivant dans la Base de connaissances :


http://support.microsoft.com/kb/77457

lundi 19 septembre 2011

supression de fichier read only in c#

using System.IO;
File.SetAttributes(filePath, FileAttributes.Normal);
File.Delete(filePath);

windows 8

Windows 8 Developer Preview English, 32-bit (x32)
Sha 1 hash – 4E0698BBABE01ED27582C9FC16AD21C4422913CC
Includes a disk image file (.iso) to install the Windows Developer Preview and Metro style apps on a 32-bit PC.
Download (2.8 GB)

dimanche 18 septembre 2011

samedi 17 septembre 2011

lundi 12 septembre 2011

description du programme dans gestionnaire du tache

lors du dev d un prgramme en c #
pour mettre des info specifiqu tel que descript du programme
on modifi le assemblyinfo.cs

expl
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("prgrm")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ent.")]
etc

samedi 10 septembre 2011

AppDomain.CurrentDomain.BaseDirectory

pour utiliser chemin vers le dossier courant du programme
on use
AppDomain.CurrentDomain.BaseDirectory

snn on tombe dans le chemin du system32

jeudi 8 septembre 2011

géstion de groupe


info about user



http://raphaello.univ-fcomte.fr/Linux/04-GestionComptes/GestionComptes.htm

Apache file permission issue

I was so crazy about this.
I tried to setup Log Analyzer site but couldn't get it work as wanted. "Syslog file is not readable, read access may be denied" is what I got instead of syslog information.

Searching in the net and asking for help from friends didn't work. All I got were about using such:
chmod 644 or 755 or even 777
Or chown

At last, I found out that, the main cause of the issue is SE Linux. SE Linux prevents Apache from accessing files outside its granted folders (that's /var/www). Following shows how to overcome this:
Solution 1:
Disable SE Linx (Not recommended)
edit /etc/selinux/config
change SELINUX=enforcing to SELINUX=disabled
DONE.
Solution 2:
Grant permission to apache user (The one that's used to run apache web server) over /var/log/ or anywhere you want.

Nombre total de pages vues