mercredi 10 août 2011

configuration de framwork utilisé


dans le fichier csproj cas de c# on troucve config de framwk

pr configurer le framwork a utilisé clik droit sur le projet ==>propriete

lundi 8 août 2011

l'outils de annonymous LOIC

un outils :p de ddos

http://www.kommunauty.fr/article-630-utiliser-loic-sur-windows

en gros il es nul :p

vendredi 5 août 2011

read xm in c#

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using System.Data;
 
namespace XPath
{
    class Program
    {
/* contenu du fichier xml test01.xml */
 
//<?xml version="1.0" encoding="utf-8" ?>
//<nodes>
// <node value="01" text="text1" chercher="mot1" />
// <node value="02" text="text2" chercher="mot2" />
// <node value="03" text="text3" chercher="mot3" />
// <node value="04" text="text4" chercher="mot4" />
// <node value="05" text="text5" chercher="mot5" />
// <node value="06" text="text6" chercher="mot6" />
//</nodes>
        static void Main(string[] args)
        {
            Console.WriteLine("start");
            XmlDocument monXml = new XmlDocument();
            XmlDocument maselection = new XmlDocument();
            try
            {
                monXml.Load("test01.xml");
                Console.WriteLine("XML Chargé");
            }
 
            catch (Exception ex)
            {
                Console.WriteLine("erreur {0}", ex.Message);
            }
           // maselection = monXml.SelectSingleNode("//BBB[@value='01']");
 
 
            XmlNode objNode;
            XmlNode root = monXml.DocumentElement;
 
            objNode = root.SelectSingleNode("//node[@value='03']");
 
            Console.WriteLine("{0},{1},{2}", (string)objNode.Attributes[0].InnerText.ToString(), (string)objNode.Attributes[1].InnerText.ToString(), (string)objNode.Attributes[2].InnerText.ToString());
 
            }
    }
}
 
 
 
http://www.b-integration.net/Articles/tabid/433/articleType/ArticleView/articleId/375/TUTO-C-Lire-un-XML.aspx

jeudi 4 août 2011

Binding data from xml file to WPF application

pour afficher contenu d un xml file dans une list dans un wpf

fichier xml :
<?xml version="1.0" encoding="utf-8" ?>
<People>
  <Person Name="Capt. Monterey Jack">
    <ImageFile>Data/MontereyJack.jpg</ImageFile>
    <Notes>The Captain loves his cheese, but hates milk.</Notes>
  </Person>

au debut on doit declarer la source xml



<Grid.DataContext>
                        <XmlDataProvider
        Source="Data/People.xml"
        XPath="/People/Person"
        />
                    </Grid.DataContext>

dans la gride de la wpf ensuite on cree la listbox
           <ListBox
    
      IsSynchronizedWithCurrentItem="True"
      ItemsSource="{Binding XPath=ImageFile}">//image file est un chmop xml q on veu
                            <ListBox.ItemContainerStyle>
                                <!-- Force the items to fill all available space. -->
                                <Style TargetType="ListBoxItem">
                                    <Setter
            Property="HorizontalContentAlignment"
            Value="Stretch"
            />
                                </Style>
                            </ListBox.ItemContainerStyle>
                        </ListBox>
la source :
http://joshsmithonwpf.wordpress.com/2007/06/04/binding-to-xml/

mercredi 3 août 2011

wpf

ItemsControl Name="ItemsList"  BorderThickness="0"
                       ItemsSource="{Binding ElementName=ThisControl, Path=NotifyContent}"
                       ItemTemplate="{StaticResource ItemsTemplate}" >
              <ItemsControl.ItemsPanel>

remplir une list avec un contenu extern
{Binding ElementName=ThisControl, Path=NotifyContent}
elementname=l'objet source de l'information  comme le id dans html
le path=la propriete voulu
 http://msdn.microsoft.com/fr-fr/library/ms752347.aspx#creating_a_binding



<StackPanel>
    <TextBlock Width="248" Height="24" Text="Colors:" 
        TextWrapping="Wrap"/>
    <ListBox x:Name="lbColor" Width="248" Height="56">
        <ListBoxItem Content="Blue"/>
        <ListBoxItem Content="Green"/>
        <ListBoxItem Content="Yellow"/>
        <ListBoxItem Content="Red"/>
        <ListBoxItem Content="Purple"/>
        <ListBoxItem Content="Orange"/>
    </ListBox>
    <TextBlock Width="248" Height="24" Text="You selected color:" />
    <TextBlock Width="248" Height="24">
        <TextBlock.Text>
            <Binding ElementName="lbColor" Path="SelectedItem.Content"/>
        </TextBlock.Text>
    </TextBlock>
</StackPanel>


The code listed in Figure 1 can be modified slightly to use a shorthand syntax for data binding. For example, let's replace the TextBlock's <Binding> tag with the following code snippet:
<TextBlock Width="248" Height="24" 
    Text="{Binding ElementName=lbColor, 
    Path=SelectedItem.Content}" />

lundi 1 août 2011

gnu , linux,distro??


Linux = Noyau
GNU/Linux = Noyau + Utilitaires GNU = OS de base
Distribution Linux (ex: Ubuntu) = OS de base + Packetages logiciels + Skins

On peut donc avoir des Linux sans GNU (dans certains téléphones, box où Gnu est remplacé par d'autres compilateurs ...)
On peut avoir GNU sans Linux (système GNU/Hurd ou GNU/Minix mais je ne sais pas si ca se fait encore)
et on peut avoir des milliers de distributions qui n'ont comme écart que la liste de logiciels installés par défaut ou le fond d'écran mais en gros on peut classer toutes les distros selon les branches de bases de linux (Debian-like, RedHat-Like, Slackware-Like)

Nombre total de pages vues