Thursday, 24 May 2018

Exiftool batch for Sony Xperia media.

I have not found any GUI tool for Windows which will successfully rename both the JPG and MP4 files to created on my Sony Xperia XA1 Ultra to names matching the creation date according to the Exif data  embedded in the files.

The excellent exiftool console application works but there is an issue with the time stamp of the MP4 videos which appear to be interpreted as UTC.

My solution is the following batch file which increments the creation time of the videos by 9 hours (I am living in Japan) before renaming the files.

    exiftool "-AllDates+=9" -verbose -overwrite_original *.mp4
    exiftool "-filename<CreateDate" -d %%Y%%m%%d_%%H%%M%%S%%%%-c.%%%%le *


Obviously exiftool must be in your path for the script to work.

I run this script on newly imported files then copy them to my Photos directory.

Saturday, 22 July 2017

NetBeans on CentOS 7

The default appearance of NetBeans on Linux is not so good. Here are some settings you can use to improve it.

Menu Appearance


When using the GTK look and feel with the default GNOME Shell Adwaita theme popup menus are drawn without borders. This can be fixed by installing the NetBeans plugin from https://bitbucket.org/neugens/netbeans-gtk-laf-menu-fix.

Recommended GNOME Shell font settings


Font settings can be changed using gnome-tweak-tool. I recommend “DejaVu Sans Book” for the interface and “DejaVu Sans Mono Book” for monospace. These fonts render well on Linux and include a large number of Unicode characters. Use “Slight” hinting and “Rgba” anti-aliasing for LCD monitors.

In addition create the file $HOME/.config/fontconfig/fonts.conf and run the command fc-cache:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
  </match>
</fontconfig>


OpenJDK with patches


JetBrains, the creators of the IntelliJ IDEA IDE, maintain a version of OpenJDK patched for better font rendering on Linux. This can be downloaded from https://bintray.com/jetbrains/intellij-jdk.

The default JDK used for rendering NetBeans can be set in the NetBeans installation directory in file “netbeans-8.2/etc/netbeans.conf”: 

netbeans_jdkhome="/home/stephen/Apps/openjdk-jetbrains"

Also in netbeans.conf add the following to netbeans_default_options: 

-J-Dswing.aatext=TRUE -J-Dawt.useSystemAAFontSettings=on

NetBeans font settings


In NetBeans Options→Fonts & Colors be sure to select “Monospace” to avoid a bug where Japanese characters are not rendered.

For my taste the default line spacing is too big. To match the line spacing used by Sublime Text edit the file $HOME/.netbeans/8.2/config/Editors/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml and add the lines:

<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">
    <value><![CDATA[0.9]]></value>
</entry>

Sony VPCEH2P0E and Windows 10

At first I was worried about installing Windows 10 on my aging Sony VPCEH2P0E laptop because of Intel's stated position that they did not support the HD3000 chipset for that version of Windows.

The drivers available via Windows Update (version 9.17.10.4459 dated 2016-05-19) run great and I have not experienced any issues.

I have upgraded a few parts since the initial purchase: 8GB RAM, 500GB SSD and a 5GHz WiFi dongle. This is still a very useful machine and Windows 10 seems to perform better than the original Windows 7 install.

Tuesday, 21 February 2017

Censored by The Guardian

This comment was censored by The Guardian.


Thursday, 4 August 2016

Excelencia

Takarazuka's latest footcare centre!

http://www.nailfoot.com/

http://www.nailfoot.com/