Recent posteets

Sort by: Date / Title /

  1. 1 day ago by sx
    1. < !--[if IE 6]> = explizit Version IE 6    /  (explizit)
    2. < !--[if !IE 6]> = not -Operator   /  (to negate)
    3. < !--[if lt IE 6]> = kleiner als   /  (Less Than)
    4. < !--[if lte IE 6]> = kleiner oder   /  (less or equal)
    5. < !--[if gt IE 6]> = groesser als   /  (greater than)
    6. < !--[if gte IE 6]> = groesser oder gleich   / (greater or equal)
  2. 1 day ago by cyo
    Pour utiliser sous Windows, installer find : http://gnuwin32.sourceforge.net/packages/findutils.htm et renommer 'find.exe' différemment pour qu'il ne soit pas en conflit avec la commande DOS du même. Nécessite aussi http://gnuwin32.sourceforge.net/packages/libintl.htm et http://gnuwin32.sourceforge.net/packages/libiconv.htm
    find -type f -mtime -1 -print0 | xargs -0 ls -lt>_dernieres_modifs.txt
  3. 1 day ago by cyo
    Code à placer à la fin du fichier jquery.js
    1. ;(function($) {
    2.  
    3. /**
    4. * Selects an option by text
    5. *
    6. * @name     selectOptionsByText
    7. * @author   Mathias Bank (http://www.mathias-bank.de), original function
    8. * @author   Sam Collett (http://www.texotela.co.uk), addition of regular expression matching
    9. * @author   Christophe (version modifiée : recherche sur le texte au lieu de rechercher sur la valeur du champ option)
    10. * @type     jQuery
    11. * @param    String|RegExp value  Which options should be selected
    12. * can be a string or regular expression
    13. * @param    Boolean clear  Clear existing selected options, default false
    14. * @example  $("#myselect").selectOptions("val1"); // with the text 'val1'
    15. * @example  $("#myselect").selectOptions(/^val/i); // with the text starting with 'val', case insensitive
    16. *
    17. */
    18. $.fn.selectOptionsByText = function(text, clear)
    19. {
    20.     var v = text;
    21.     var vT = typeof(text);
    22.     var c = clear || false;
    23.     // has to be a string or regular expression (object in IE, function in Firefox)
    24.     if(vT != "string" && vT != "function" && vT != "object") return this;
    25.     this.each(
    26.         function()
    27.         {
    28.             if(this.nodeName.toLowerCase() != "select") return this;
    29.             // get options
    30.             var o = this.options;
    31.             // get number of options
    32.             var oL = o.length;
    33.             for(var i = 0; i<oL; i++)
    34.             {
    35.                 if(v.constructor == RegExp)
    36.                 {
    37.                     if(o[i].text.match(v))
    38.                     {
    39.                         o[i].selected = true;
    40.                     }
    41.                     else if(c)
    42.                     {
    43.                         o[i].selected = false;
    44.                     }
    45.                 }
    46.                 else
    47.                 {
    48.                     if(o[i].text == v)
    49.                     {
    50.                         o[i].selected = true;
    51.                     }
    52.                     else if(c)
    53.                     {
    54.                         o[i].selected = false;
    55.                     }
    56.                 }
    57.             }
    58.         }
    59.     );
    60.     return this;
    61. };
    62.  
    63. })(jQuery);
  4. 2 days ago by bobuse
    1. DELETE sc_bookmarks,
    2. sc_tags FROM sc_tags,
    3. sc_bookmarks WHERE sc_tags.bId = sc_bookmarks.bId AND sc_tags.tag = "tag_des_signets_à_supprimer"
  5. 1 week ago by kuve
    1. function register(){
    2.             //Loading languages
    3.             $this->lang->load('header', $this->app_function->get_language());
    4.             $this->lang->load('register', $this->app_function->get_language());
    5.             $this->lang->load('footer', $this->app_function->get_language());
    6.  
    7.             //Cargamos la validación
    8.             $this->load->library('validation');
    9.             $rules['email'] = "required|valid_email";
    10.             $rules['password'] = "required";
    11.             $rules['re_password'] = "required|matches[password]";
    12.             $rules['name'] = "required";
    13.             $rules['surname'] = "required";
    14.             $rules['nicename'] = "required|alpha_dash";
    15.             $this->validation->set_rules($rules);
    16.            
    17.             $fields['email'] = lang('email');
    18.             $fields['password'] = lang('password');
    19.             $fields['re_password'] = lang('re_password');
    20.             $fields['name'] = lang('name');
    21.             $fields['surname'] = lang('surname');
    22.             $fields['nicename'] = lang('nicename');
    23.             $this->validation->set_fields($fields);
    24.            
    25.             //Loading form
    26.             $this->load->helper('form');
    27.             $register_form_content = array(
    28.                     'form_open' => form_open('account/register', array('id' => 'form_register')),
    29.                     'form_input_email' => form_input(array('value' => $this->validation->email, 'name' => 'email')),
    30.                     'form_input_password' => form_password(array('value' => $this->validation->password, 'name' => 'password')),
    31.                     'form_input_re_password' => form_password(array('value' => $this->validation->re_password, 'name' => 're_password')),
    32.                     'form_input_name' => form_input(array('value' => $this->validation->name, 'name' => 'name')),
    33.                     'form_input_surname' => form_input(array('value' => $this->validation->surname, 'name' => 'surname')),
    34.                     'form_input_nicename' => form_input(array('value' => $this->validation->nicename, 'name' => 'nicename')),
    35.                     'form_submit' => form_submit(array('class' => 'submit', 'name' => 'submit'), $this->lang->line('submit')),
    36.                     'form_close' => form_close(),
    37.             );
    38.            
    39.             if($this->validation->run() == FALSE){
    40.                 $this->load->view('header');
    41.                 $this->load->view('register',$register_form_content);
    42.                 $this->load->view('footer');
    43.             }else{
    44.                 echo 'hola';
    45.             }
    46.         }
  6. 1 week ago by cyo
    Pour écrire ces informations dans un fichier : > dir *.* /b /s >liste.txt
    1. dir *.* /b /s
  7. 1 week ago by cyo
    1. service httpd reload
  8. sponsorised links
  9. 1 week ago by rosy1280
    command to determine the version of mysql optionally you can run the command without the -h
    1. mysql -h <hostname> -V
  10. 2 weeks ago by grummfy
    1. #set automount on
    2. gconftool-2 -s -t bool /apps/nautilus/preferences/media_automount true
    3.  
    4. #set automount off
    5. gconftool-2 -s -t bool /apps/nautilus/preferences/media_automount false
  11. 2 weeks ago by grummfy
    you must be in root mode
    1. sfdisk -d /dev/hda | sfdisk /dev/hdc
    2.  
    3. Copy partition table from /dev/sda to /dev/hdc very quickly!

First / Previous / Next / Last / Page 1 of 51 (501 posteets)