<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tutorial on James Montgomery</title>
    <link>https://gh-jamesmontgomery.github.io/pages-blog/tags/tutorial/</link>
    <description>Recent content in Tutorial on James Montgomery</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Mon, 28 Oct 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://gh-jamesmontgomery.github.io/pages-blog/tags/tutorial/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Detecting Digits with PowerShell</title>
      <link>https://gh-jamesmontgomery.github.io/pages-blog/2019/10/detecting-digits-with-powershell/</link>
      <pubDate>Mon, 28 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://gh-jamesmontgomery.github.io/pages-blog/2019/10/detecting-digits-with-powershell/</guid>
      <description>&lt;h1 id=&#34;table-of-contents&#34;&gt;Table of contents&lt;/h1&gt;&#xA;&lt;div class=&#34;toc&#34;&gt;&#xA;    &lt;nav id=&#34;TableOfContents&#34;&gt;&#xA;  &lt;ul&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#tl-dr&#34;&gt;TL; DR&lt;/a&gt;&lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#how-to-think-about-the-problem&#34;&gt;How to think about the problem&lt;/a&gt;&lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#working-with-a-number-in-powershell&#34;&gt;Working with a number in PowerShell&lt;/a&gt;&lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#systemmathdivrem&#34;&gt;[System.Math]::DivRem&lt;/a&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using-divrem-to-detect-a-digit&#34;&gt;Using DivRem to detect a digit&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using-divrem-to-detect-a-range-of-digits&#34;&gt;Using DivRem to detect a range of digits&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#contains&#34;&gt;Contains&lt;/a&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using-contains-to-detect-a-digit&#34;&gt;Using .contains() to detect a digit&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using-contains-to-detect-a-range-of-digits&#34;&gt;Using .contains() to detect a range of digits&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#match&#34;&gt;Match&lt;/a&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using--match-to-detect-a-specific-digit&#34;&gt;Using -match to detect a specific digit&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using--match-to-detect-a-range-of-digits&#34;&gt;Using -Match to detect a range of digits&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#split&#34;&gt;Split&lt;/a&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using--split-to-detect-a-digit&#34;&gt;Using -split to detect a digit&lt;/a&gt;&lt;/li&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using--split-to-detect-a-range-of-digits&#34;&gt;Using -split to detect a range of digits&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#ascii-method&#34;&gt;ASCII Method&lt;/a&gt;&#xA;      &lt;ul&gt;&#xA;        &lt;li&gt;&lt;a href=&#34;#using-the-ascii-value-of-a-character-to-detect-unique-digits-in-a-number&#34;&gt;Using the ASCII value of a character to detect unique digits in a number&lt;/a&gt;&lt;/li&gt;&#xA;      &lt;/ul&gt;&#xA;    &lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#conclusion&#34;&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#xA;    &lt;li&gt;&lt;a href=&#34;#acknowledgements&#34;&gt;Acknowledgements&lt;/a&gt;&lt;/li&gt;&#xA;  &lt;/ul&gt;&#xA;&lt;/nav&gt;&#xA;  &lt;/div&gt;  &#xA;&lt;h2 id=&#34;tl-dr&#34;&gt;TL; DR&lt;/h2&gt;&#xA;&lt;p&gt;Have you ever wondered, how many unique digits are in a number? Alternatively, how many times does a given digit appear in a number? Using PowerShell, I explore these questions in a variety of means and examples.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Google Cloud Text-to-Speech with PowerShell</title>
      <link>https://gh-jamesmontgomery.github.io/pages-blog/2019/02/google-cloud-text-to-speech-with-powershell/</link>
      <pubDate>Sun, 10 Feb 2019 00:00:00 +0000</pubDate>
      <guid>https://gh-jamesmontgomery.github.io/pages-blog/2019/02/google-cloud-text-to-speech-with-powershell/</guid>
      <description>&lt;h2 id=&#34;tl-dr&#34;&gt;TL; DR&lt;/h2&gt;&#xA;&lt;p&gt;In this post, I&amp;rsquo;ll walk through the basics of using PowerShell to interact with the Google Cloud Text-to-Speech API. Partly a documentation exercise and somewhat a guide I&amp;rsquo;d like to have been able to read when I started on my &lt;a href=&#34;https://gh-jamesmontgomery.github.io/pages-blog/projects/elite-dangerous-text-to-speech/&#34;&gt;Elite Dangerous Google Cloud Text-to-Speech project&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As such, we&amp;rsquo;ll start with a basic script to produce an audio file and explain how that works. Later I&amp;rsquo;ll walk through some parameters of interest to affect the response. Lastly, I&amp;rsquo;ll introduce how we can use SSML for a variation in response.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to base64 decode on Windows 10 without base64.exe</title>
      <link>https://gh-jamesmontgomery.github.io/pages-blog/2019/01/how-to-base64-decode-on-windows-10-without-base64.exe/</link>
      <pubDate>Thu, 10 Jan 2019 00:00:00 +0000</pubDate>
      <guid>https://gh-jamesmontgomery.github.io/pages-blog/2019/01/how-to-base64-decode-on-windows-10-without-base64.exe/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;&#xA;&lt;p&gt;You can call certutil from PowerShell to produce the required file.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;There is a moment in life where you get stuck in a quick start guide - we&amp;rsquo;ve all been there. At the start of my &lt;a href=&#34;https://gh-jamesmontgomery.github.io/pages-blog/projects/elite-dangerous-text-to-speech/&#34;&gt;Google Cloud text-to-speech project&lt;/a&gt; it arrived quickly and unexpectedly at &lt;a href=&#34;https://cloud.google.com/text-to-speech/docs/base64-decoding&#34;&gt;step two of this two-step quick start guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I had successfully returned my first base64 encoded speech audio, onward to the last step:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&amp;ldquo;Decode the source text file using the Base64.exe tool:&amp;rdquo;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
