Enforce https for Drupal

Submitted by kofa on Sun, 02/09/2020 - 16:57

Find this in the Drupal .htaccess file:
# Various rewrite rules.

RewriteEngine on

For simply enforcing https, add these lines:

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /

(the meaning: if a request arrives without https (RewriteCond %{HTTPS} off), send it to the same host with the same path, but with https (RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301])

Full-screen HD streaming video playback in Firefox on Linux

Submitted by kofa on Thu, 04/09/2015 - 22:29

Video playback from HTML5 sources such as youtube, vimeo and vessel has been slow and choppy in Firefox, while they all worked well in Chrome (I'm on a slow, old box, the CPU is Core2 Duo, the video card is more recent, nVidia GTX650 with the binary drivers). Finally, I've found that Firefox 37 allowed me to play back everything at good speed and full resolution (1080p) at full screen with the following settings:

Darktable, OpenCL, nVidia, Ubuntu 14.04, Mint 17

Submitted by kofa on Tue, 07/29/2014 - 21:45

Summarising the discussion on darktable-users mailing list (main contributors to the solution were Ulrich Pegelow and Federico Bruni): darktable lost access to OpenCL upon upgrading to Ubuntu 14.04 ('trusty thar') or Linux Mint 17. Here's how to get it up to speed again:

Some older versions of nVidia drivers fail to compile darktable's OpenCL kernels (files that contain the GPU-accelerated image operations). You'll find updated versions here: