RSS Feed
^__^

Hosting multiple Express (node.js) apps on port 80

Max Girkens, 2012/04/20 05:40

In the last days, i was trying to find a solution hosting multiple Express apps on my vServer the same Server.

Starting with Apache and mod_proxy, i ended up with a plain node solution, which i really like. » read more

install lame on debian lenny

Max Girkens, 2011/06/20 13:09

If you are going to install the mp3 en/decoder lame on debian lenny,
this is how i got it done:

choose your package: http://debian-multimedia.org/pool/main/l/lame/

wget http://debian-multimedia.org/pool/main/l/lame/lame_3.98.2-0.4_i386.deb
dpkg -i lame_3.98.2-0.4_i386.deb

yay!

git prompt

Max Girkens, 2010/11/13 15:37

gerade gefunden:

git prompt – GIT repository status direkt im shell prompt.

nützlich und schön bunt.

Schau auf die Error_Log

Ivo Bathke, 2010/10/19 12:51

Man sollte sich tatsächlich angewöhnen beim Entwickeln immer eine Console offen zu haben und die error_log zu beobachten.

tail -f /var/log/apache2/error_log

Bekommt man nämlich so einen Fehler in der error_log:

ALERT - configured POST variable limit exceeded - dropped variable ...

… bleibt die Seite meistens ohne Fehlerausgabe trotz E_ALL und es passieren komische Dinge.
Dann kann man schonmal eine ganze Weile damit verbringen ganz woanders zu suchen.
Mit offenem error_log wäre das nicht passiert ;).

» read more

Asus N82j, U80, UL30 Series; Touchpad auschalten unter Ubuntu 10.04

Johannes Heinen, 2010/08/05 16:51

Das für mich als Merkhilfe und eventuell Suchende: Wer sein Touchpad unter Ubuntu via Hotkey abschalten möchte und im Besitz eines neueren Asus-Notebooks ist, wird hier endlich fündig: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/418282 (für mich hat folgender Workaround zuverlässig funktioniert):

This problem is also valid for the ASUS UL30A. The touchpad is seen as an “ImPS/2 Logitech Wheel Mouse”. See in dmesg and by the command “xinput list”. I am using Ubuntu 9.10.

To disable the touchpad the following command can be used:

xinput set-int-prop “ImPS/2 Logitech Wheel Mouse” “Device Enabled” 8 0

To enable use:

xinput set-int-prop “ImPS/2 Logitech Wheel Mouse” “Device Enabled” 8 1

To make the F9 working I did the following:

1. As the F9 does not generate a keycode but an acpi event you cannot assign just a keycode to a script. So I first checked the generated event hotkey code using:
sudo acpi_listen
and pressed F9. This gives 0000006b as event hotkey code.
2. In /etc/acpi/events there is an asus-touchpad event file. This is using the wrong code so I changed it.
3. The script /etc/acpi/assus-touchpad.sh is not correct for this touchpad so I changed it (see attached script)
4. Now send the acpid a SIGHUP signal (or reboot) and the F9 button toggles your touchpad an or off.

Danach kann man via FN + F9 wieder wie gewohnt das Touchpad an- und abschalten.

Upgrade von Etch auf Lenny

Ivo Bathke, 2010/02/27 17:13

Dann habe ich neulich mal meinen vServer upgegradet von Debian Etch auf Lenny, um in den Genuss einer neueren PHP Version zu kommen.
Ein paar Problemchen gabs schon aber es hat geklappt!
Das lief ab wie folgt:

Zunächst einmal Plesk auf neuesten Stand bringen über den Updater von Plesk.

Dann das Debian dist upgrade:
wie hier beschrieben:
Die Liste mit den Quell-Paketen ändern:

# new lenny packages.
deb http://ftp2.de.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free

# source packages.
deb-src http://ftp2.de.debian.org/debian/ lenny main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

# volatile sources
deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free

Dann upgraden
» read more

Symfony 1.2 Admin Generator Features

Johannes Heinen, 2009/11/10 10:00

Symfony flying with Lighttpd on Mac OS X 10.6

Darius Tehrani, 2009/09/27 16:26

This guide aims to Mac OS X 10.6 users who intend to run their Symfony 1.2 projects on Lighttpd with PHP 5.3 and MySQL5. Steps described in this article refer to a development machine setup and do not consider any security related configurations necessary for a production setup.

Why?

Why would I want to use Symfony with Lighttpd (Lighty) instead of Apache?

  1. It is light – as the name tells already.

    » read more

Textbausteine auf der Shell ersetzen / löschen

Darius Tehrani, 2009/09/10 17:31

Wie kann ich in beliebig vielen Textdateien einen bestimmten Satz löschen? Ganz konkret ging es um 420 Dateien in verschiedenen Ordnern. Ein klarer Fall für den Shell Guru (Lukas). Da mir so schwindelig geworden ist als er mir die Instruktionen diktierte, beschloss ich dies gleich mal hier festzuhalten.
Wir benutzen “ed” – ed ist der “vi” für die Kommandozeile. Eigentlich dachte ich vi sei schon Kommandozeile genug, aber ich wurde eines besseren belehrt!

Wir legen uns das remove.ed Skript an:
1 in » read more