#1580
Source: How to display hibernate sql parameter values – Log4j
Just another Code Snippet site
#1580
Source: How to display hibernate sql parameter values – Log4j
#789
Java : http://pi4j.com/example/listener.html
Python : http://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/
https://stackoverflow.com/questions/16143842/raspberry-pi-gpio-events-in-python
Avec compteur eau : http://www.antor.fr/2014/02/25/domotiser-son-compteur-deau/
#2322
Unsecure app must be allowed on Gmail : https://myaccount.google.com/lesssecureapps
Install SSMTP and Mpack
sudo apt-get update sudo apt-get install -y ssmtp mpack
edit: /etc/ssmtp/ssmtp.conf
root=rpi3abc@gmail.com mailhub=smtp.gmail.com:465 FromLineOverride=YES AuthUser=rpi3abc@gmail.com AuthPass=testing123 UseTLS=YES
Send mail :
mpack -s subject picture.png mail.address@example.com
sudo apt-get update sudo apt-get install -y ffmpeg
ffmpeg -y -i rtsp://admin:admin@192.168.10.113:554/live -vframes 1 do.jpg
#!/bin/bash ## ------------------- ## ## Vars ## ------------------- ## timestamp=`date +%Y%m%d-%H%M%S` humanReadableDate=`date "+%d/%m/%Y %H:%M"` recipient=aaa@blogger.com liveStreamUrl="rtsp://192.168.100.233:554/user=admin_password=OmvItLOM_channel=1_stream=0.sdp?real_stream" ## ------------------- ## ## Capture live stream ## ------------------- ## #ffmpeg -y -i $liveStreamUrl -vframes 1 "/tmp/${timestamp}.jpg" #ffmpeg -rtsp_transport tcp -y -i $liveStreamUrl -f image2 -vframes 1 "/tmp/${timestamp}.jpg" ffmpeg -rtsp_transport tcp -y -i $liveStreamUrl -vframes 1 "/tmp/${timestamp}.jpg" ## ------------------- ## ## Send Mail ## ------------------- ## mpack -s "${humanReadableDate}" "/tmp/${timestamp}.jpg" $recipient ## ------------------- ## ## Remove Picture ## ------------------- ## rm -Rf "/tmp/${timestamp}.jpg"
0 9,14 * * * /bin/bash /home/pi/sendImage.sh
Picture at 9:00 and 14:00 everyday
sudo service cron reload
#1599
Sometime back I wrote a feature for docker to allow expanding Base device size on daemon restart. This feature has been included in Docker 1.10, so you can try it out now.Before we jump further into this article, I would like to point out that this feature is only available for devicemapper storage and does not apply to other storage drivers like overlay, btrfs, aufs, etc.
Source: Increasing the Base Device Size on Docker Daemon Restart — Project Atomic
#537
Error : Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid.
Solution :
0: Always keep backup of files before removing it.
1: remove the boot.properties file completely from the managed server directory :
/<WLS_HOME>/servers/AdminServer/security/boot.properties
2: remove the completely directory:
/<WLS_HOME>/servers/AdminServer/ldap
3: Now try to start the server from the command prompt and provide the username/password used to login to the Admin Console.
4: Edit ‘startWebLogic.sh’ to add following parameters :
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=<admin_username>" JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=<admin_password>"