Monday, 2 March 2015
Wednesday, 14 January 2015
Java Memo
Initialise a list:
Immutable
List<String> people = Arrays.asList("me", "you");
Mutable
ArrayList<String> people = new ArrayList<>(Arrays.asList("me", "you"));
people = new ArrayList<>(Arrays.asList("me", "you"));or use the double brace initialization:
ArrayList<String>= new ArrayList<String>() {{ add("Me"); add("You"); }}people
Friday, 7 November 2014
Performance test tools
Gatling: http://gatling.io/
To benchmark HTTP servers:
http://httpd.apache.org/docs/2.2/programs/ab.html
To benchmark HTTP servers:
http://httpd.apache.org/docs/2.2/programs/ab.html
Thursday, 30 October 2014
First start of MySQL with Wamp
After checking the listening port in my.ini file, read this:
http://www.commentcamarche.net/faq/12341-phpmyadmin-1045-access-denied-for-user-root-localhost
http://www.commentcamarche.net/faq/12341-phpmyadmin-1045-access-denied-for-user-root-localhost
Friday, 10 October 2014
Changer le port d'écoute sur un serveur Apache (httpd)
Aller dans le répertoire d'installation de votre serveur Apache
Ouvrir le fichier (mon serveur est sur c:)
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf
Changer la ligne "Listen 80" pour correspondre au port entrant (ouvert ?) que vous voulez.
Exemple: changer le port en "83"
Extrait du fichier httpd.conf
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:83
Listen 0.0.0.0:83
Listen [::0]:83
Ouvrir le fichier (mon serveur est sur c:)
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf
Changer la ligne "Listen 80" pour correspondre au port entrant (ouvert ?) que vous voulez.
Exemple: changer le port en "83"
Extrait du fichier httpd.conf
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:83
Listen 0.0.0.0:83
Listen [::0]:83
Tuesday, 1 July 2014
Créer un projet maven, importer dans eclipse et lancer les tests
Commencer par installer Maven 3.2.2
Configurer le PATH si vous êtes sous windows.
Créer un nouveau projet Maven:
Lancer les tests uniquement (sans passer par les phase de compilation, packaging ...)
Configurer le PATH si vous êtes sous windows.
Créer un nouveau projet Maven:
mvn archetype:generate -DgroupId=projet1 -DartifactId=projet1 -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=falseGénérer les fichier necessaire à un import dans Eclipse (.project)
mvn eclipse:eclipse
Lancer les tests uniquement (sans passer par les phase de compilation, packaging ...)
mvn surefire:test
Wednesday, 14 May 2014
You use ClearCase let's learn Git and vice-versa
I found a great presentation on the differences between CC and Git:
https://www.open.collab.net/media/pdfs/ClearCase-and-the-journey-to-Git.pdf
https://www.open.collab.net/media/pdfs/ClearCase-and-the-journey-to-Git.pdf
Subscribe to:
Posts (Atom)