Increase date by number in JAVA

Posted on December 10, 2013, 1:59 pm


The simply way to increase date time in java is to use Calendar. The code below use to increase the delivery date by 1.

private static final Integer _DELAI_LIVRAISON = 1;
Calendar lvr_date = Calendar.getInstance();
lvr_date.add(Calendar.DATE, _DELAI_LIVRAISON);
Read More

How to Remote to your machine at the University by using SSH Tunnel

Posted on October 31, 2013, 2:16 pm


How to Remote to your machine at the University by using SSH Tunnel

Suppose that you want to configure your computer to use the proxy server of your University "myuniv-proxy.lyon1.fr", but this proxy is not accessible from the outside connection, only the member of the domain "myuniversity.lyon1.fr" able to use this proxy.
By using SSH, you can crate an "ssh tunnel" by telling your PC to use that proxy.
The tow commands lines below show you how to create the "ssh tunnel"

CONNECT BY TEXT MODE

ssh -L 9091:myuniv-proxy.lyon1.fr:22 xxxxxx@myuniversity.lyon1.fr

CONNECT BY GRAPHIC MODE

ssh -X -L 9091:myuniv-proxy.lyon1.fr:22 xxxxxx@myuniversity.lyon1.fr

COMMANDE EXPLICATION

This create an "ssh tunnel" starting at "localhost:9091" through "myuniversity.lyon1.fr" to "myuniv-proxy.lyon1.fr:22"

  • X : Use the tunnel in graphic mode.
  • L 9091 : Open the port "9091" on "localhost".
  • myuniversity.lyon1.fr : by connecting to "myuniversity.lyon1.fr".
  • myuniv-proxy.lyon1.fr:22 : transfer the connection form the port 9091 to the port 22 of "proxy710.univ-lyon1.fr".
  • xxxxxx : is your user account for the domaine "myuniversity.lyon1.fr"
Read More

Install Google Chrome on Ubuntu 12.04 LTD

Posted on October 21, 2013, 2:25 pm


Install “Google Chrome on Ubuntu 12.04 LTD”

After installed 'Chromium V 28.0.1500' that's available on Ubuntu Software Center (USC), I've found that some pages with the flash contents are not function correctly :( beh technically it can not open the SWF or other type of Flash file.
To deal with this, just install a real 'Google Chrome', but you can not find it on the USC => Use this Commande-Line to download it

wget -O https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb

After finishe the download, use this Commande-Line to install:

sudo dpkg -i google-chrome-stable_current_i386.deb

ERROR WHIL INSTALLING “GOOGLE CHROME” ON UBUNTU 12.04

Three dependencies below are required to install this without error, you will see the message error if you don't have it.

  • dpkg: dependency problems prevent configuration of google-chrome-stable:
  • google-chrome-stable
  • depends on lib32gcc1 (>= 1:4.1.1);
  • depends on lib32stdc++6 (>= 4.6);
  • depends on libc6-i386 (>= 2.11);
Read More

13 Juillet feu d'artifice à Lyon

Posted on July 14, 2013, 2:32 pm


13 Juillet - feu d'artifice à Lyon

Comme vu sur le journal 'Lyon Plus', on l'appelle 'Feu d'artifice Saison 2' c'est la version XXL.
Chaque année c'est Villeurbanne qui tire le premier feu, juste un jour avant la grande fête, le 14 Juillet.
L'an dernier, j'ai raté le premier feu, mais pas cet année :)
Ci-dessous, quelques photos pour ceux qui sont ratés cet événement.

Samedi 13 juillet à 22h30. Hippodrome du Carré de Soie. 1 avenue de Böhlen à Vaulx-en-Velin.
Samedi 13 juillet à 22h30
Hippodrome du Carré de Soie
1 avenue de Böhlen à Vaulx-en-Velin.


Read More

La fête de la musique 2013 à Lyon

Posted on June 23, 2013, 5:27 pm


La fête de la musique 2013 à Lyon

It was first took place since 1982 in Paris as the "Fête de la Musique".
Ever since, the festival has become an international phenomenon, celebrated on the same day (the 21st of June ) in more than 460 cities in 110 countries, including Germany, Italy, Egypt, Syria, Morocco, Austraila..... (resource : wikipedia)
"The music everywhere and the concert nowhere"
Voila some photo that i took form last night :-)

Faites de la musique (Make music)


Read More

Blog Archive

  • 2023-May (1)
  • 2023-February (1)
  • 2020-October (1)
  • 2020-May (1)
  • 2020-February (2)
  • 2019-December (5)
  • 2019-November (1)
  • 2018-July (1)
  • 2017-December (1)
  • 2017-November (1)
  • 2017-June (1)
  • 2016-September (5)
  • 2016-August (3)
  • 2016-June (1)
  • 2015-September (1)
  • 2015-May (1)
  • 2015-February (2)
  • 2014-December (1)
  • 2014-November (2)
  • 2014-September (3)
  • 2014-August (1)
  • 2014-June (1)
  • 2014-May (1)
  • 2014-March (1)
  • 2013-December (2)
  • 2013-October (2)
  • 2013-July (1)
  • 2013-June (3)
  • 2013-May (4)
  • 2013-March (1)
  • 2012-December (2)
  • 2012-November (1)
  • 2012-October (1)
  • 2012-September (2)
  • 2012-August (2)
  • 2012-July (2)
  • 2012-June (1)
  • 2012-May (2)
  • 2012-March (2)
  • 2012-February (2)
  • 2012-January (5)
  • 2011-December (2)
  • 2011-November (4)
  • 2011-October (5)
  • 2011-September (2)
  • 2011-August (1)
  • 2011-June (2)
  • 2011-May (1)
  • 2011-April (9)
  • 2011-March (3)
  • 2011-February (12)
  • 2011-January (16)
  • 2010-December (17)
  • 2010-November (6)
  • 2010-October (10)
  • 2010-September (8)