<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Programming on Chris Hemingway</title>
    <link>https://chemingway.github.io/tags/programming/</link>
    <description>Recent content in Programming on Chris Hemingway</description>
    <generator>Hugo</generator>
    <language>en-GB</language>
    <lastBuildDate>Sun, 23 Jun 2019 18:00:09 +0100</lastBuildDate>
    <atom:link href="https://chemingway.github.io/tags/programming/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using watchdog with LEDs on OrangePi Zero</title>
      <link>https://chemingway.github.io/blog/using-watchdog-with-leds-on-orangepi-zero/</link>
      <pubDate>Sun, 23 Jun 2019 18:00:09 +0100</pubDate>
      <guid>https://chemingway.github.io/blog/using-watchdog-with-leds-on-orangepi-zero/</guid>
      <description>&lt;p&gt;I have a small &lt;a href=&#34;http://www.orangepi.org/orangepizero/&#34;&gt;OrangePi zero&lt;/a&gt; on my home network turn on my desktop PC using &lt;a href=&#34;https://en.wikipedia.org/wiki/Wake-on-LAN&#34;&gt;Wake-on-Lan&lt;/a&gt; to SSH in and grab files/run processing when I am out and about. I use &lt;a href=&#34;https://www.zerotier.com/&#34;&gt;zerotier&lt;/a&gt; so I can SSH into both the orangepi and my desktop without needing Dynamic DNS or opening ports in my router.&lt;/p&gt;&#xA;&lt;p&gt;However, the SD card used is a bit unreliable, and so occasionally the device will lock up. It would be nice to detect this automatically and reboot when it happens. The board also has some LEDs, which we could use to show the health of the system as well.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Converting Folder of WAV Files to FLAC</title>
      <link>https://chemingway.github.io/blog/converting-folder-of-wav-files-to-flac/</link>
      <pubDate>Sat, 22 Jun 2019 16:29:10 +0100</pubDate>
      <guid>https://chemingway.github.io/blog/converting-folder-of-wav-files-to-flac/</guid>
      <description>&lt;p&gt;For audio research, speech and noise corpus&amp;rsquo;s are commonly stored in uncompressed format, generally WAV.&#xA;This results in very large file sizes, for instance the &lt;a href=&#34;https://datashare.is.ed.ac.uk/handle/10283/2651&#34;&gt;CSTR VCTK Corpus&lt;/a&gt; is 10GB.&lt;/p&gt;&#xA;&lt;p&gt;However, common compression formats like MP3 or Ogg Vorbis would cause distortion of noise signals rendering them useless for comparision against results obtained from the original files.&lt;/p&gt;&#xA;&lt;h2 id=&#34;conversion&#34;&gt;Conversion&lt;/h2&gt;&#xA;&lt;p&gt;As an exercise, I wrote this script to convert these all into the lossless FLAC format, using &lt;a href=&#34;https://ffmpeg.org/&#34;&gt;FFmpeg&lt;/a&gt; and &lt;a href=&#34;https://www.gnu.org/software/parallel/&#34;&gt;GNU Parallel&lt;/a&gt;.&#xA;Unfortunately (see &lt;a href=&#34;#verifying&#34;&gt;below&lt;/a&gt;), some files refuse to convert losslessly, but I still consider this some good practice in shell programming.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
