Schnellzugriff » 
Home 

Redmine, Apache, Subversion: Could not read status line

September 9th, 2010 kcore

If you use a combination of Redmine.pm, Apache and SVN and are wondering about error messages telling you "COPY of ‘foobar’ : Could not read status line: connection was closed by server" or "COPY of ‘foobar’ : Could not read status line: secure connection truncated" you probably will want to switch to apache2-mpm-prefork to get [...]

Weiterlesen »
Posted in Administration, Linux / Unix, redmine | 1 Comment »

Java: Periodically check internet connection availability

Juni 25th, 2010 kcore

A very simple example of how to periodically check the availability of an internet connection by using the observer design pattern.
InternetConnection.java
package net;

import java.net.*;
import java.io.*;

public class InternetConnection {
/* use at least one reliable host, in most cases you will want
to use the one you’re working with later */
private static final String CHECK_URL = “http://www.t-online.de/”;
public static InternetConnectionState isAvailable() [...]

Weiterlesen »
Posted in Java, Programmierung | 1 Comment »

How-to: Debian: Automatically mounted loopback images with dm-crypt, LUKS, pam_mount

Juni 17th, 2010 kcore

How to create encrypted loopback images with dm-crypt and LUKS + automatically mounting them after login with pam_mount
I recommend using debian squeeze for this scenario as lenny includes a very old version of libpam-mount and I had lots of problems when I tried using it.
Using only the libpam-mount package and its dependencies from squeeze maybe [...]

Weiterlesen »
Posted in Administration, Linux / Unix, Sicherheit | Kommentare deaktiviert

Debian Lenny: pam_mount, files and loop devices

Juni 17th, 2010 kcore

When I was trying to automatically mount an encrypted image at login using pam_mount, I encountered a strange problem:
I wasn’t able to find any errors in my configuration (at least none connected to this behaviour), but mount.crypt was unable to mount the image.
Enabling debugging in pam_mount.conf.xml (<debug enable="1" />) revealed the command used for mounting:
pam_mount(misc.c:272) [...]

Weiterlesen »
Posted in Administration, Linux / Unix | Kommentare deaktiviert

TYPO3 HTML save cropping

März 16th, 2010 kcore

Meistens reicht die Methode tslib_cObj::crop vollkommen aus, um Texte – etwa für eine Listenansicht – zu kürzen. Wenn jedoch RTE formatierte Texte im Spiel sind und die Formatierung in der gekürzten Version beibehalten werden soll, ist es reine Glückssache, kein invalides (X)HTML durch nicht geschlossene bzw. “verkrüppelte” Tags zu generieren. Abhilfe schafft die folgende crop-Methode, [...]

Weiterlesen »
Posted in PHP, Programmierung, TYPO3 | Kommentare deaktiviert

suPHP und PHP Opcode Caches

August 29th, 2009 kcore

Eigentlich ist suPHP eine nette Sache. Das Apache Modul mod_suphp sorgt in Kombination mit einem SetUID Binary dafür, dass PHP-Skripte mit den Berechtigungen des Benutzers, dem sie gehören, ausgeführt werden. Damit das funktioniert muss man in Binär-Distributionen wie etwa Debian Linux nicht mehr tun, als dass Modul zu installieren, einen Blick auf dessen Konfiguration zu [...]

Weiterlesen »
Posted in Linux / Unix, PHP, Webserver | Kommentare deaktiviert

Wordpress Update

August 29th, 2009 kcore

Lange Zeit habe ich davor gescheut, meine Wordpress-Installation zu aktualisieren. Hauptsächlich, weil ich Angst vor dem Aufwand hatte, schließlich habe ich noch Wordpress 2.1 benutzt (aktuell ist 2.8.4) und daher mit zahlreichen Inkompabilitäten gerechnet. Letzte Nacht habe ich es dann trotzdem gewagt und das Wordpress Update durchgeführt.
Und es geht doch…
…uralte Wordpress-Installationen problemlos zu aktualisieren. Sogar [...]

Weiterlesen »
Posted in Wordpress | Kommentare deaktiviert

« Previous Entries Next Entries »

© 2007 - 2009 Thorsten Boock