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 Checks to see if browser is IE based or other. function createRequestObject(handler) { var xmlHttp; try… Read More »Ajax request handler
# 1. Installation of the needed package apt-get install wpasupplicant # 2. modify the file wpa_supplicant.conf (create if not exist in /etc/wpa_supplicant) ctrl_interface=/var/run/wpa_supplicant network={ … Read More »connection wpa-psk automatic on Debian (without gui)
# :h Remove a trailing file name component, leaving only the head. # :t Remove all leading file name components, leaving the tail. # :r… Read More »Modifier les arguments d’une commande précédente et les réutiliser
* Sous linux : Il faut arrêter le périphérique Wifi : ifconfig INTERFACE_WIFI down Et puis, ifconfig INTERFACE_WIFI hw ether NOUVELLE_ADRESSE_MAC * Sous Windows serveur… Read More »Spoofing MAC address
# [Default] All domains have the same time synchronized from ntp-client in dom0. echo 0 > /proc/sys/xen/independent_wallclock # If, however, this is not the case,… Read More »Xen Date/Time Synchronization
html { background : url(null) fixed no-repeat; }
#instalar python – twitter http://code.google.com/p/python-twitter/downloads/list import twitter import re api = twitter.Api(username, password) #1. actualizar el estado api.PostUpdate(‘Tweet desde python ;)’) # #2.… Read More »python – twitter
# Synopisis: following error while installing any perl package with CPAN # Looks good # Writing Makefile for Package # — NOT OK #… Read More »Perl package install with CPAN: Writing Makefile for
function ucfirst_low($c){ $cadena = strtr(strtolower($c), “ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÜÚ”,“àáâãäåæçèéêëìíîïðñòóôõöøùüú”); $cadena = ucwords(strtolower($cadena)); return($cadena); } function ucfirst_upp($c){… Read More »Pasar cadena a minusculas o mayusculas respetando acentos