Recent posteets

Sort by: Date / Title /

  1. 7 years ago by iegorka
    1. Groups multiple tokens together without creating a capturing group. This allows you to apply quantifiers to the full group.
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1747"></script>
  2. 9 years ago by spirit and saved by 1 other
    1. # Works with dash "-" and colon ":" as a separator
    2. # The “/i” modifier at the end makes it case-insensitive (Perl-like syntax)
    3. /^([0-9A-F]{2}[:-]){5}[0-9A-F]{2}$/i
    4.  
    5. # General syntax (match lower and upper case)
    6. ^([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2}$
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/429"></script>
  3. 8 years ago by spirit
    if toFixed is not defined
    1. if (!num.toFixed)
    2. {
    3.  
    4.  Number.prototype.toFixed = function(precision) {
    5.      var power = Math.pow(10, precision || 0);
    6.      return String(Math.round(this * power)/power);
    7.  }
    8.  
    9. }
    10.  
    11. // OR
    12.  
    13.   Number.prototype.toFixed = function(precision)
    14.   {
    15.      var num = (Math.round(this*Math.pow(10,precision))).toString();
    16.      return num.substring(0,num.length-precision) + "." +
    17.             num.substring(num.length-precision, num.length);
    18.   }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1403"></script>
  4. sponsorised links
  5. 9 years ago by neorom
    1. #éditez le fichier /etc/fstab
    2. /dev/hdb2          /mnt/mes_files         vfat    users,umask=000       0 0
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/64"></script>
  6. 9 years ago by grummfy and saved by 1 other
    The cd or dvd reader was mounted on /dev/cdrom
    
        sudo hdparm -d1 /dev/cdrom
        sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup
        sudo gedit /etc/hdparm.conf
    
    Add in this file, the following lines :
    /dev/cdrom {
        dma=on
    }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/502"></script>
  7. 8 years ago by jacinmontava
    1. <?php
    2. function acortarurl($url){
    3.         $longitud = strlen($url);
    4.         if($longitud> 45){
    5.                 $longitud = $longitud - 30;
    6.                 $parte_inicial = substr($url, 0, -$longitud);
    7.                 $parte_final = substr($url, -15);
    8.                 $nueva_url = $parte_inicial."[ ... ]".$parte_final;
    9.                 return $nueva_url;
    10.         }else{
    11.                 return $url;
    12.         }
    13. }
    14. $url_larga = "http://www.google.com.pe/search?hl=en&q=ribosomatic&btnG=Google+Search&meta=";
    15. $url_corta = acortarurl($url_larga);
    16. echo"<a href=\"$url_larga\">$url_corta</a>";
    17. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1049"></script>
  8. 9 years ago by jacinmontava
    1. function acortar($texto,$longitud)
    2. {
    3.    $texto_partido = substr($texto,0,$longitud);
    4.  
    5.    /// Condición que comprueba la longitud del texto para devolverlo con ... o entero
    6.    if (strlen($texto) > $longitud)
    7.       return $texto_partido."...";
    8.    else
    9.       return $texto
    10. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/624"></script>
  9. 9 years ago by spirit
    1. function replace(str:String,find:String,replace:String):String
    2. {
    3.         var index:Number;
    4.         while(str.indexOf(find)!=-1)
    5.         {
    6.                 index= str.indexOf(find);
    7.                 str = str.substr(0,index) + replace + str.substr(index + find.length);
    8.         }
    9.         return str;
    10. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/685"></script>
  10. 6 years ago by neorom
    1. /etc/pure-ftpd/conf/PassivePortRange
    2.  
    3.  
    4. 50000 50100
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2127"></script>
  11. 9 years ago by neorom
    1. #/etc/X11/xorg.conf
    2. #Dans la section de votre souris, ajouter les 2 lignes suivantes :
    3. #!!!!!! A ECRIRE AVANT LA DEFINITION DU "Device"!!!!!!!!!!
    4. Option « ZAxisMapping » « 4 5 »
    5. Option « Buttons » « 5 »
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/33"></script>

First / Previous / Next / Last / Page 1 of 83 (823 posteets)