wlyc - Linux Yamaha Receiver Webcontrol

GitHub repository

echo $URL;
echo "

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
#echo htmlspecialchars(curl_exec($c));
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
echo "



Java: Add autocompletion to a (editable) JComboBox

1. Download this source code and add to your Java project:

2. Add folowing code to enable autocompletion for your JComboBox:

For further information about JComboBox and AutoCompletion see:


asterisk console
asterisk -r

set output to verbose
core set verbose 10

CLI commands
core show channels
capi show channels
capi info
sip show peers

asterisk -rx "sip show registry"

end / destroy channel
core show channels
soft hangup SIP/XXXXXX

wget -P /tmp
tar xzf /tmp/asterisk-moh-freeplay-wav.tar.gz -C /tmp
cp /tmp/fpm-sunshine.wav /var/lib/asterisk/moh/
# extensions.conf


delete files with auto close message
rm /media/CAMCARD/DCIM/100NIKON/*.JPG; sync; sleep 1 | zenity --title CleanCAMCARD --progress --auto-close

view message
zenity --info --text "blah"


echo "wget $URL -O - | bash -";
echo "

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
echo "


Using the Java Persistence API in Desktop Applications

Building a Java Desktop Database Application


Database Gui - Creating a Custom Java Desktop Database Application -

Configure Glashfish (old)
copy c:\temp\ojdbc14.jar c:\Programme\glassfish-v2-b53\lib

Code Examples

Stored procedures

Send Email from Java

Librarys - gchartjava is a free Java charts & graphs library - simple, unofficial, Java client API for using Google Translate

PDF create with iText - Download

Java packages in Ubuntu
sun-java6-bin - Java binaries
sun-java6-demo - demos and examples
sun-java6-doc - documentation
sun-java6-fonts - Lucida TrueType fonts from the JRE
sun-java6-jdk - metapackage for the JDK
sun-java6-jre - metapackage for the JRE
sun-java6-plugin - plug-in for Mozilla-based browsers
sun-java6-source - source files for the JDK

install original sun java 6 (/usr/lib/java-6-sun)
apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun


increase heap size (memory)
java -Xms128m -Xmx256m

# java -X
    -Xmixed           mixed mode execution (default)
    -Xint             interpreted mode execution only
    -Xbootclasspath:<directories and zip/jar files separated by :>
                      set search path for bootstrap classes and resources
    -Xbootclasspath/a:<directories and zip/jar files separated by :>
                      append to end of bootstrap class path
    -Xbootclasspath/p:<directories and zip/jar files separated by :>
                      prepend in front of bootstrap class path
    -Xdiag            show additional diagnostic messages
    -Xnoclassgc       disable class garbage collection
    -Xincgc           enable incremental garbage collection
    -Xloggc:<file>    log GC status to a file with time stamps
    -Xbatch           disable background compilation
    -Xms<size>        set initial Java heap size
    -Xmx<size>        set maximum Java heap size
    -Xss<size>        set java thread stack size
    -Xprof            output cpu profiling data
    -Xfuture          enable strictest checks, anticipating future default
    -Xrs              reduce use of OS signals by Java/VM (see documentation)
    -Xcheck:jni       perform additional checks for JNI functions
    -Xshare:off       do not attempt to use shared class data
    -Xshare:auto      use shared class data if possible (default)
    -Xshare:on        require using shared class data, otherwise fail.
    -XshowSettings    show all settings and continue
                      show all settings and continue
    -XshowSettings:vm show all vm related settings and continue
                      show all property settings and continue
                      show all locale related settings and continue
The -X options are non-standard and subject to change without notice.
# set language
java -Duser.language=de ...
<strong>Links</strong> - free barcodes generator library for Java - How to Write Doc Comments for the Javadoc Tool - Java ist auch eine Insel (Galileo Computing) - JVM Options - Java Glossary

Cisco 7960 upgrade firmware

Upgrade firmware

#download firmware
# unzip files
# set rights
chmod a+r P0* OS79XX.TXT
# move files to /tftpboot
mv ./P0S3-08-2-00/* /tftpboot/
# add link
??? ln -s /tftpboot/P003-08-2-00.bin /tftpboot/P0S3-08-2-00.bin
# edit Global config
vi /tftpboot/SIPDefault.cnf
image_version: P0S3-08-2-00