PlayStation User agent


host :
user-agent : Mozilla/5.0 (PLAYSTATION 3; 1.00)
connection : Keep-Alive
accept-encoding : identity
x-ps3-browser : 2.60 (WP; system=2.60)
accept-language : en
content-length : 0

Ubuntu javamail Exception

If you get:

        at java.lang.String.concat(
        at com.sun.activation.registries.MailcapFile.parseLine(
        at com.sun.activation.registries.MailcapFile.parse(
        at com.sun.activation.registries.MailcapFile.createMailcapHash(
        at com.sun.activation.registries.MailcapFile.<init>(
        at javax.activation.MailcapCommandMap.loadFile(
        at javax.activation.MailcapCommandMap.<init>(
        at javax.activation.CommandMap.getDefaultCommandMap(
        at javax.activation.DataHandler.getCommandMap(
        at javax.activation.DataHandler.getDataContentHandler(
        at javax.activation.DataHandler.writeTo(
        at javax.mail.internet.MimeUtility.getEncoding(
        at javax.mail.internet.MimeBodyPart.updateHeaders(
        at javax.mail.internet.MimeMessage.updateHeaders(
        at javax.mail.internet.MimeMessage.saveChanges(
        at javax.mail.Transport.send(

It can be fixed modifying the $HOME/.mailcap file. Try commenting out the line that contains "-e" or removing the file.

MySQL: Could not parse relay log event entry

Relay log corruption in MySQL

This error marks a corrupted binary log on the slave. There can be many reasons for this. Assuming that master logs are correct, you can simply reset the relay position on slave by:

mysql> stop slave;
mysql> show slave status;
##-- Read values: Relay_Master_Log_File and Exec_Master_Log_Pos
mysql> CHANGE master TO master_log_file=<Relay_Master_Log_File>, master_log_pos=<Exec_Master_Log_Pos>;
mysql> start slave;

Update Image Headers

Tool to manipulate JPEG headers:


For example, to update correct time when picture was taken: (To increase it by 2 hours and a half)

jhead -ta+2:30 filename.jpg

Installing mod_jk in Apache 2.2 running on Debian


  • You have a working fresh installation of Apache2
  • You have a working installation of Java
  • You have a working installation of Tomcat

Install mod_jk from repositories:
sudo apt-get install libapache2-mod-jk


Open file:
In this file you mainly have to modify the following properties and make them point to your local configurations:
Configure apache2

Create the file jk.conf with the following content:
<IfModule mod_jk.c>
  JkWorkersFile /etc/libapache2-mod-jk/
  JkLogFile /var/log/apache2/mod_jk.log
  JkLogLevel info
  JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
  JkRequestLogFormat "%w %V %T"
  # Mount your applications
  JkMount /_path_to_your_webapp ajp13_worker
  JkShmFile /var/log/apache2/jk.shm
and place in folder:
add a symbolic link to this file in
Finally, restart apache