How-To Change SMTP port Exim

Exim-Logo.png

Last week I would change the SMTP port from my Exim4 email server in Amsterdam.

Why?

I am using my laptop on many network over many providers. Also the network from ziggo.nl in The Netherlands that blocked all SMTP (port 25) traffic outside here one network.

Gallery2 (ERROR_MISSING_OBJECT)

Gallery2-Logo.png

Delete corrupt data in database from a "broken photo"


I had a similar Error (ERROR_MISSING_OBJECT) but non of the above post was a solution for me.


(ERROR_MISSING_OBJECT)in
modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 167 (GalleryCoreApi::error)
modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities)

How-To Drupal and Gallery2 embedded

Gallery2-Logo.png

I spend hours to embed my Gallery2 correct in Drupal.

I want to use my Gallery2 embedded in Drupal(6) and I want to use my Gallery2 also . To get this don I needed to wire the .htaccess files manually.

IMPORTANT: Do not use the dir gallery for your stand alone Gallery2 installation. This conflicts with Drupal gallery.module.

Gallery2 Stand Alone

How To Split PDF forms

PDF-Logo.png

If you want to split your PDF forms you can use the pdf-toolkit with the burst command. The output are pdf-files for each page one.

pdftk INPUT_FILE.pdf burst

The result are multiply PDF files for each page one file.

How To Resize images with command line

Photo-Edit-Logo.png

If you want to resize your photos it's simple to use resize tool in gThumb. Unfortunately gThumb deletes all the EXIF data like date and time the photo was taken.

To keep all EXIF data I use convert (from imagemagic)

find ./ -iname *.JPG" -maxdepth 0 -exec convert {} -resize 50% ./resized/{} \;

How To Adjust Date and/or Time setting in EXIF date from JPG pictures

EXIF-Logo.png

Sometimes it happend: The clock from your digital camera isn't on the right time. So all your pictures have the wrong date or time in EXIF data. This can be a very big problem if you use more than one camera and want to sort the pictures of a event on the date and time that the picture was taken.

Script to Wakeup machine over LAN

Wake-Up-LAN-Logo.png

If you want to wakeup remote machine over a LAN and automatically start the remote desktop viewer this is a solution.

The script first send a magic package to wakeup the remote machine. After that is checking every 4 second is the remote desktop is available on the machine. This done by telnet-ting to port 5900.

How To Kill Pulseaudio when audio stucks

PulseAudio-Logo.png

Steps to kill pulsaudio.
Solution for when there is no sound and the soundservers is blocked by pulseaudio

On my desktop machine I have frequently a problem with Pulseaudio. After playing a flash movie (Youtube) it happens very often that I have no audio anymore on my Moviplayers like Movie Player or VLC.

The solution for this problem is to kill all Pluseaudio processes.

How To Resize multiply images to prefered size

Photo-Edit-Logo.png

If you want to resize multiply images to a other (smaller) size you can use this command.

It's not recommend to enlarge pictures because that will have a negative effect on the quality of the enlarged image.

time find ./ -maxdepth 1 -iname '*.jpg' -exec convert '{}' -resize 500 '../big/{}' \;

* time: gives you the time the command was busy. This is optional.

How To add subtitles to a movie and save is to a new file

VLC-Logo.png

Add subtiltes to a new outputfile.
incl. resizeable subtitles, percentage from picture hight. So it can be shown on the Philips media player

mencoder -fontconfig -subfont-text-scale 3 -ovc lavc INPUT-FILE.avi -sub "SuBFILE.srt" -oac copy -o OUTPUT-FILE.avi