How to run loggerhead via WSGI and Apache 2.4.
I did not find a complete instructional for doing this so I wrote down what I had to do to make it work on the “saucy” Ubuntu (13.10).
- Copied the file
/usr/share/doc/loggerhead/examples/apache-loggerhead.confto/etc/apache2/config-available/loggerhead.conf - Modified the following lines: WSGIDaemonProcess loggerhead user=www-data group=www-data maximum-requests=1000 display-name=loggerhead processes=4 threads=1 WSGISocketPrefix /var/run/apache
- Enabled the configuration by
a2enconf loggerhead - Copied the file
/usr/share/doc/loggerhead/examples/bazaar.confto/var/www/.bazaar/bazaar.conf - Created the directory
/var/cache/loggerheadand changed access permissions bychown www-data:www-data /var/cache/loggerhead - Disabled the loggerhead upstart service by
echo 'manual' >> /etc/init/loggerhead.override - Restarted Apache by
service apache2 restart
Of course, you also need to adapt the URL and file paths to your Bazaar repositories according to your setup.
I wish I only had a glimpse of how Mike Bostock comes up with the formulas for something like this Epicyclic Gearing thingie…
It’s all about math, trigonometry and shitake (and SVG of course), I know, but still: how long does it take to find out how to describe not only one gear but three different gears with a few lines of code and some sine and cosine calculations?
Bitcoin, Shitcoin.
On the fact that Bitcoin has a Kill Switch; and how to disconnect it.
Chemtrails, Nazis auf dem Mond, Neuschwabenland, Hohlwelt uvam. Irre!
Selten so gelacht: Die Mondverschwörung.
Motorola announces Project Ara, an open hardware platform with modular components à la Phonebloks. (Via reddit.com.)
StopWatching.us “fatally compromised by the prominent leadership and participation of the Libertarian Party and other libertarian student groups [who stand] in direct opposition to almost everything I believe in as a social democrat.”
“As consumers, we should understand ad-avoidance as a way of setting a price on our time and attention. For the past century, we’ve arguably been selling it too cheap, trading it all for a few decent sitcoms and sports programming.”
Wikipedia’s list of musical works in unusual time signatures.
Scaling up an image with ImageMagick but without anti-aliasing.
I created a large version of my good ole p3k logo using the following ImageMagick command:
$ convert p3k-logo.gif -filter Point -resize 200 +antialias p3k-logo-200.png
Via www.alecjacobson.com.
“Supporting IE8 on our responsive platform means we cannot develop using these technologies natively: [List of cool stuff]” – (Via sebastian-werner.com.)