Trier un ArrayList
ArrayList<Object> list = new ArrayList<Object>(); … //tri Collections.sort(list, new Comparator(){ public int compare(Object o1, Object o2) { return o1.compareTo(o2); … Read More »Trier un ArrayList
ArrayList<Object> list = new ArrayList<Object>(); … //tri Collections.sort(list, new Comparator(){ public int compare(Object o1, Object o2) { return o1.compareTo(o2); … Read More »Trier un ArrayList
Note <150> represents facility and severity following RC3164 Syslog header use the current timestamp and a random hostname echo “<150>`env LANG=us_US.UTF-8 date “+%b %d %H:%M:%S“`… Read More »Send syslog message with netcat nc
Note Checks to see if browser is IE based or other. function createRequestObject(handler) { var xmlHttp; try… Read More »Ajax request handler
> According to www.ntp.org in stanard Linux o.s. (adjtime(2) – http://www.ntp.org/ntpfaq/NTP-s-algo.htm#S-ALGO-BASIC) time adjusting has rate of 0.5ms per second That’s the _maximum_ slew rate. The… Read More »ntpd clock slewing / stepping offsets
Option Explicit Dim oFS : Set oFS = CreateObject(“Scripting.FileSystemObject”) Function FolderEmpty(strFolderPathName) Dim oFiles, oFile, oFolder, oSubFolders, oSubFolder Dim blnFileFound : blnFileFound = False Set oFolder… Read More »VBScript : How to check if a folder is empty
var pars = Form.serialize($(‘form’));
Note Traduccion al castellano de los nombres de los dias y meses de la funcion date de PHP // Obtenemos y traducimos el nombre del… Read More »Traduccion dias y meses
echo “swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel” | sudo tee /usr/lib/jvm/java-6-sun/lib/swing.properties
/* lib/model/Industria.php – en el formulario de clientes hay un combo industrias (relacion bd) – descripcion se mostrara en el combo */ class Industria extends… Read More »metodo magico en la clase de symfony – PHP
#Activer loop device (section Block device ) dans le noyau mount –o loop +iso9660 /home/linux.iso /mnt/toto