Am 9. Mai in NRW das Richtige wählen

Es gibt einen guten Grund am 9. Mai in Nordrhein-Westfalen nicht die Grünen zu wählen: die Piratenpartei.

Apropos Datenschutz und -sammlung, es gibt natürlich auch eine Facebook-Gruppe. ;D

Von Daniel in enjoy Video, Politik07.05.10 German (DE) E-Mail

Handle X-Forwarded-Proto in backend nginx

When nginx is being used as backend server, it will talk plain "http" to the frontend server only (for performance reasons and to simplify setup).

But web applications often need to know, if the traffic between the browser and server is encrypted (https), e.g. when checking if a particular part of the site is being accessed securely.

Since only the frontend proxy (the one between nginx and the browser) knows about this, this information has to be forwarded to the backend.

Full story »

By Daniel in Ubuntu, Snippets05/07/10 English (US) Email


Ubuntu Lucid has been released

Lynx pardinus(Source http://en.wikipedia.org/wiki/File:Lynx_pardinus.png - cropped)

Link: http://www.ubuntu.com/getubuntu/download

Ubuntu Lucid is the next Long Term Support release after Ubuntu Hardy (which had been released in April 2008).

For my share, I've put more effort into the development and bug triaging process again.

By Daniel in Ubuntu04/29/10 English (US) Email


Miro has been fixed for Ubuntu Lucid

A very annoying bug has been fixed in Miro in time for Ubuntu Lucid.

After having contacted the upstream developers they have provided a patch for an annoying bug in xulrunner, which makes web gtk widgets ("inline websites" / IIRC) misbehave in Miro.

In the end it is just a shameless plug to make you get Miro - or update yours.

Available for a lot of operating systems, thanks to being built upon xulrunner.

By Daniel in Ubuntu2010-04-21 English (EU) Email


Es ist schon erstaunlich, wenn eine IE5 Installation unter Ubuntu von 2006-06-18 immer noch läuft.

Hatte das damals mit ie4linux installiert, wenn ich mich recht erinnere - und wine packt es einfach weiterhin, auch wenn ich es jahrelang nicht genutzt habe (und weiterhin nicht nutzen werde).

Von Daniel in Ubuntu, computer21.04.10 German (DE) E-Mail


Easy DNS wildcard setup for local domains using dnsmasq

When doing web development you'll often have domains/hostnames like hahler.local (instead of hahler.de).

Having a separate hostname for a lot of projects will result in some inconvenience though: you have to setup those.
Until recently, I was adding them to /etc/hosts (or the counterpart on Windows), like so: hahler.local whissip.local

This however does not allow wildcards (like *.hahler.local), and having something like *.local would be much easier to maintain (no adding to this file for a new setup/project).

dnsmasq to the rescue!

dnsmasq is a lightweight DNS forwarder and I was using it already to cache DNS queries locally, for faster browsing etc. Since it answers my DNS lookups already, it should be able to make *.local work for me.

I've created a simple file /etc/dnsmasq.d/my-local with just a single line:



And after restarting dnsmasq, *.local gets resolved to

Instead of "local" you can (and should probably) use another domain, like "dev" instead, because using "local" conflicts with Avahi/mdns, but this can get solved as follows:
Avahi/mdns defaults to ".local" as its TLD and therefore you have to adjust the "hosts" line in /etc/nsswitch.conf and put "dns" (which is dnsmasq in this case) before mdns4_minimal (which is avahi in this case), or remove the NOTFOUND=return, so that "dns" would get used even when mdns4_minimal returns NOTFOUND (which it apparently does for requests in its domain (typically ".local") it does not know anything about):


hosts:          files dns mdns4_minimal [NOTFOUND=return] mdns4
By Daniel in Ubuntu, Snippets04/13/10 English (US) Email