humain contre robot


while true; do x=$(( ( RANDOM % 10 )  + 1 )) && y=$(( ( RANDOM % 10 )  + 1 )) && touch /tmp/pico.wav && pico2wave -l fr-FR -w /tmp/pico.wav "$x fois $y" && aplay /tmp/pico.wav 2> /dev/null && echo $((x * y)) | espeak -vfrench ; done

Publicités
humain contre robot

c720p Xmodmap

~/.xinitrc :

xmodmap .Xmodmap

~/.Xmodmap :

keycode  67 = Prior
keycode  68 = Next
keycode  69 = F5
keycode  70 = F11
keycode  72 = XF86MonBrightnessDown
keycode  73 = XF86MonBrightnessUp
keycode  74 = XF86AudioMute
keycode  75 = XF86AudioLowerVolume
keycode  76 = XF86AudioRaiseVolume
c720p Xmodmap

resource instantiation

Instantiation :

Spring :
http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/htmlsingle/

The singleton scope is the default scope in Spring

Jersey :
https://jersey.java.net/documentation/latest/jaxrs-resources.html

By default the life-cycle of root resource classes is per-request

org.glassfish.jersey.ext:jersey-spring3 :
https://github.com/jersey/jersey/blob/2.2/examples/helloworld-spring-webapp/src/main/resources/applicationContext.xml

<bean class="org.glassfish.jersey.examples.helloworld.spring.SpringSingletonResource"/> 
<bean class="org.glassfish.jersey.examples.helloworld.spring.SpringRequestResource" scope="request"/>
resource instantiation