Kofa's tech stuff
  • Enforce https for Drupal

    Feb 9, 2020 · 1 min read  ·
    Share on:

    Find this in the Drupal .htaccess file: # Various rewrite rules. <IfModule mod_rewrite.c> 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 …

    Read More
  • darktable styles

    Mar 22, 2019 · 1 min read  ·
    Share on:

    http://dtstyle.net/ Fujifilm LUTs https://blog.sowerby.me/fuji-film-simulation-profiles/ - the original work – seems to introduce a colour shift, see here: https://discuss.pixls.us/t/fujifilm-x-h1-astia-haldclut/18551/12 …

    Read More
  • try-with-resources, suppressed Exceptions, and a peek at Java 9

    Apr 13, 2017 · 1 min read  ·
    Share on:

    try-with-resources was introduced in Java 7, quite a while ago. Yet, when a colleague of mine asked me about a related feature, suppressed Exceptions, I was unable to give him a satisfactory answer. That caused me to dig into this topic a bit, and this article was born. Before try-with-resources was introduced, making …

    Read More
  • Disassembling HotSpot-generated machine code

    Sep 30, 2016 · 1 min read  ·
    Share on:

    Finally I found the easy way to get the disassembler plugin working on my Linux box - simply follow the instructions at https://github.com/abak/openjdk-hsdis. The aim is to be able to follow the experiments published at https://psy-lob-saw.blogspot.com/ and https://shipilev.net/.

    Read More
  • Full-screen HD streaming video playback in Firefox on Linux

    Apr 9, 2015 · 2 min read  ·
    Share on:

    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 proprietary drivers). Finally, I’ve found that Firefox 37 allowed …

    Read More
  • Darktable, OpenCL, nVidia, Ubuntu 14.04, Mint 17

    Jul 29, 2014 · 2 min read  ·
    Share on:

    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 …

    Read More
  • Outlook/Office 2013 too bright, waste space

    Aug 15, 2013 · 1 min read  ·
    Share on:

    If you don’t like how much screen estate is wasted, and how your eyes grow tired of the glaring white interface, check out the following links: Making the Outlook 2013 interface less white and bright Change back the message list look in Outlook 2013 Reduce visual redundancies in Outlook 2013 Changing the color …

    Read More
  • Unit testing with static dependencies, e.g. Logger

    May 28, 2013 · 6 min read  ·
    Share on:

    Or, the road to hell is paved with good intentions. A colleague of mine was recently writing a unit test. At one point, he wanted to determine what log message the component under test generated. The component was similar to this (source is on GitHub): @Service public class AuthenticationService { private final static …

    Read More
  • Enabling load-time weaving with Tomcat

    May 16, 2013 · 2 min read  ·
    Share on:

    I gathered the following information from Spring’s documentation (http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/aop.html#aop-aj-ltw), the Maven-aspectj plugins’s site (http://mojo.codehaus.org/aspectj-maven-plugin/) and the ant task’s reference …

    Read More
  • Useful Java memory and GC info

    May 16, 2013 · 1 min read  ·
    Share on:

    According to Visualizing Java Garbage Collection by Ben Evans: -Xms = -Xmx is no longer needed (set Xms to a reasonable value or omit it altogether; use -Xmx to limit maximum) flags needed to produce useful GC logs: -verbose:gc -Xloggc:path-to-file (ensure you have enough space, can create logs over 1 GB) …

    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Recent Posts

  • Enforce https for Drupal
  • darktable styles
  • try-with-resources, suppressed Exceptions, and a peek at Java 9
  • Disassembling HotSpot-generated machine code
  • Full-screen HD streaming video playback in Firefox on Linux
  • Darktable, OpenCL, nVidia, Ubuntu 14.04, Mint 17
  • Outlook/Office 2013 too bright, waste space
  • Unit testing with static dependencies, e.g. Logger
Kofa's tech stuff

Copyright  KOFA'S TECH STUFF. All Rights Reserved