<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tristram Tolliday on Medium]]></title>
        <description><![CDATA[Stories by Tristram Tolliday on Medium]]></description>
        <link>https://medium.com/@tristolliday?source=rss-445172c61ea6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Svw0ANM_wPwZcMQ6UUKKtQ.jpeg</url>
            <title>Stories by Tristram Tolliday on Medium</title>
            <link>https://medium.com/@tristolliday?source=rss-445172c61ea6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:26:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tristolliday/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sustainability in the Cloud]]></title>
            <link>https://tristolliday.medium.com/sustainability-in-the-cloud-b9212bbf07cf?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9212bbf07cf</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[platform-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Wed, 07 Jul 2021 08:26:18 GMT</pubDate>
            <atom:updated>2021-07-07T08:26:18.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHmI2apd_VgwNV8fHXAAEg.png" /></figure><p>Let’s talk about the elephant in the room. It’s 2021, and we are in the midst of both a climate crisis, and a global pandemic (made more likely to happen by said crisis).</p><p>By 2030, it is estimated that the tech industry (ICT) will account for between 8 and 20% of the global electricity supply. It’s on par with aviation in terms of current carbon footprint, the swathe of digital devices, data and networks is unfathomably large.</p><p>As a business, where and how you host your websites, servers, and applications makes a real difference to both your energy consumption, and carbon footprint. Geography makes up as much a part of your carbon footprint as your cloud provider. Even the time of day you use your resources can make a significant difference.</p><p>So what are the top ways to reduce your footprint, while still having cutting edge technology at your disposal?</p><h3>Pick your location</h3><p>Where you host your data is directly related to what energy is available to your datacenter. Countries with a higher percentage of renewable energy on their grid, have more to provide to the cloud operator, and therefore have a lower carbon footprint.</p><p>For example Belgium and Finland are great examples of <a href="https://cloud.google.com/sustainability/region-carbon">European regions</a> where GCP get over 70% of their energy from low carbon infrastructure.</p><h3>Each Cloud is different</h3><p>Moving to the cloud will almost always be more efficient than self hosting, the economy of scale allows for micromanagement of power use, but each cloud offers different specialties.</p><h3>Google Cloud Platform</h3><p>While GCP (Google Cloud Platform) has been Carbon Neutral since 2007 (Meaning they offset for any carbon they do use), they still have a long way to go before they become true ‘Net Zero’ (100% of energy coming from 100% renewables, 100% of the time) in 2030.</p><h3>Microsoft Azure</h3><p>Microsoft has promised to become Carbon Negative by 2030, meaning after that point they will be removing carbon from the atmosphere as they operate, ultimately aiming to remove all carbon emitted since their 1975 founding by 2050. Their annual emissions hit 16 million tonnes in 2021, but similarly, they have been offsetting these since 2012.</p><p>If you are currently using Microsoft Azure, they have a calculator in preview to show your footprint on their platform.</p><h3>Amazon Web Services</h3><p>Very much at the back of the pack, Amazon is kicking their heels, pledging to become carbon neutral by 2040. As amazon accounts for 31% of the cloud, this may just be too little too late. However, they are currently offsetting <a href="https://sustainability.aboutamazon.com/environment/the-cloud?energyType=true">some of their most popular regions </a>including Frankfurt, and Ireland.</p><h3>Go serverless</h3><p>Many modern web applications can now be run on serverless architectures, they go by many names (serverless, functions, cloud run etc), but they share key core benefits for business.</p><p>As serverless apps start and stop with demand, and tend to be billed by seconds of use, most applications can benefit from saving money and only use the resources that they need, which in turn drives down footprint. With a generous free tier on all cloud platforms, smaller projects will often fall into the monthly free zone.</p><h3>Pick your timing</h3><p>If your application doesn’t need to run 24/7 (think data crunching and machine learning rather than websites) you can build your workloads to accommodate interruptions and scheduling by your cloud provider to only operate during off peak hours.</p><p>Once again this will not only save you money on running costs, you can also utilise known times when renewable energy is abundantly available. Doubling up on this, you will also save energy networks from using surge power plants that tend to be gas powered.</p><h3>Static in the air</h3><p>Running a ‘brochure’ website? If the content doesn’t regularly change (more than say, twice a day) consider a static website. These sites can still be engaging and have some dynamic content, but unlike traditional websites, they are built ahead of time and served from a CDN (content delivery network). Users will benefit from blazingly fast load times, and your organisation will be running a highly optimised, super lightweight, and efficient website, with minimal hosting cost, and reduced impact.</p><h3>Offset the rest</h3><p>Once you have reduced and calculated your impact, until your organisation reaches Net Zero, there is going to be a figure for your emissions. Offsetting sits as an option when all other routes have been exhausted, as they tend to have deferred impacts, and don’t directly address the issues of today. If you opt to offset, consider a well established certified provider, to ensure your funds are going to a worthy project.</p><h3>The Watcher on the Wall</h3><p>All that is left to do is monitor and refine, an ongoing process that is central to any digital project.</p><p>By cleverly using modern infrastructure in the cloud, your organisation can have a considerable impact on curtailing its carbon footprint. As we seek to address our impact on the world, seemingly innocuous changes can have the biggest repercussions.</p><p>Many remedies will have a knock on improvement for users of your digital infrastructure, and a cost reduction to your organisation. Sustainability really can be a triple win.</p><p>Extract from the Greenwood Campbell Human Guide to Tech<br><a href="https://bit.ly/GCHGTT3">Click here for the full guide</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9212bbf07cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Serve Optimised Images on Umbraco 9]]></title>
            <link>https://itnext.io/how-to-serve-optimised-images-on-umbraco-9-f86ec06b6344?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f86ec06b6344</guid>
            <category><![CDATA[umbraco]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[umbraco-9]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 10:20:48 GMT</pubDate>
            <atom:updated>2021-07-08T13:03:17.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kThqvW70hw0VtSgyqgUGig.jpeg" /><figcaption>Tutorial on serving optimised images on Umbraco 9</figcaption></figure><p>A quick tutorial on serving cropped, SEO friendly, ̶W̶e̶b̶P̶ images on the latest version of Umbraco</p><p><em>Note: This tutorial was last updated for RC version: <br></em>9.0.0-RC (08/07/21)</p><p>Under the hood of Umbraco sits a powerful set of media management tools that allow you to serve performant images, that are SEO friendly and cropped well.</p><blockquote>WEBP Support <a href="https://github.com/SixLabors/ImageSharp/pull/1552">isn’t quite ready yet</a> for SixLabors.ImageSharp.Web , which is a shame, as it is available on imageprocessor.web on 8 as a plugin.</blockquote><p>However, to get to that stage, you do need a little undocumented knowledge to get it working.</p><h4>Introducing GetCropUrl()</h4><p>Feed this method and it will adapt it to your needs on the fly, there are currently 5 ways that you can use it to crop your images, split into two main methods, either by passing an <strong>IPublishContent</strong> media item, or a url string. The one we are most interested in is this:</p><pre>GetCropUrl(</pre><pre>this IPublishedContent mediaItem, // Implied by the referring object</pre><pre>IImageUrlGenerator imageUrlGenerator,  // Implied</pre><pre>IPublishedValueFallback publishedValueFallback,  // Implied</pre><pre>IPublishedUrlProvider publishedUrlProvider,  // Implied</pre><pre>int? width = null,  // The width to crop to in pixels</pre><pre>int? height = null,  // The height to crop to in pixels</pre><pre>string propertyAlias = &quot;umbracoFile&quot;,  // Property alias of the property containing the Json data. The default is fine</pre><pre>string cropAlias = null,  // The crop alias specified in umbraco, we take this implicitly from the IPublished Content</pre><pre>int? quality = null,  // Image compresion quality out of 100</pre><pre>ImageCropMode? imageCropMode = null,  // can be left, or specified explicitly based on the modes in Sharps docs</pre><pre>ImageCropAnchor? imageCropAnchor = null,  // can be left, or specified explicitly based on the modes in Sharps docs</pre><pre>bool preferFocalPoint = false,  // Use focal point, to generate an output image using the focal point instead of the predefined crop</pre><pre>bool useCropDimensions = false,  // Use crop dimensions to have the output image sized according to the predefined crop sizes, this will override the width and height parameters. So we do not want this</pre><pre>bool cacheBuster = true,  // Add a serialized date of the last edit of the item to ensure client cache refresh when updated. We want this</pre><pre>string furtherOptions = null,  // Specify extra features to amend the image with. This is where we specify our preferred image format, e.g.  ̶W̶e̶b̶P̶</pre><pre>ImageCropRatioMode? ratioMode = null,  //  Use a dimension as a ratio. We&#39;ll ignore this as we are specifying the width and height, which will explicitly set the ratio.</pre><pre>bool upScale = true // If the image is smaller than the dimensions, attempt to upscale it to fill the space. Ideally this wont be needed, but best to keep it so we dont get black borders or too small images</pre><pre>);</pre><p>It gives us the most flexibility to change the image to our whim, and allows us to supply image formats, something other variants lack.</p><p>While this looks daunting, its actually overkill with many unrequired overloads. For the example we are using, we can focus on just the elements we need. this gives us the following:</p><pre>@* /Views/Partials/ResponsiveImage.cshtml *@</pre><pre>@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage</pre><pre>@using Umbraco.Cms.Core.Media</pre><pre>@using Umbraco.Cms.Core.Models.PublishedContent</pre><pre>@using Umbraco.Cms.Core.Routing</pre><pre>@{</pre><pre>var publishedContent =  @ViewData[&quot;publishedContent&quot;] as IPublishedContent ?? null;</pre><pre>var lazyLoading =  @ViewData[&quot;lazyLoading&quot;] ?? false;</pre><pre>var imageWebP = publishedContent?.GetCropUrl(width: 600, height: 20, quality:80, furtherOptions: &quot;&amp;format=jpg&quot;) ?? &quot;&quot;;</pre><pre>}</pre><p>Then we specify the width, height, and quality, and in further options we set a format of ‘ ̶W̶e̶b̶P̶’ which is optimal for new sites.</p><h4>Wrap it in a picture</h4><p>To make our images even more performant, we can specificy a source set that graceful degradation starting at highly performant webp, and falling back to other formats. This is important for sites that serve older browsers to allow us to fallback to a recognised format like jpeg or png.</p><p>For SEO’s sake we include the loading=”lazy” tag, for anything that appears ‘under the fold’. it’s also a requirement to specify an alt, even if empty.</p><p>We also specify a width and height, which helps the browser calculate layout ahead of time.</p><pre>&lt;picture&gt;<br> ̶&lt;̶s̶o̶u̶r̶c̶e̶ ̶s̶r̶c̶s̶e̶t̶=̶&quot;̶@̶i̶m̶a̶g̶e̶W̶e̶b̶P̶&quot;̶ ̶t̶y̶p̶e̶=̶&quot;̶i̶m̶a̶g̶e̶/̶w̶e̶b̶p̶&quot;̶&gt;̶<br>&lt;source srcset=&quot;@imageJpeg&quot; type=&#39;image/jpeg&#39;&gt;<br>&lt;img src=&quot;@imageOriginal&quot; width=&quot;600&quot; loading=&quot;@lazyLoading&quot; alt=&quot;&quot; /&gt;<br>&lt;/picture&gt;</pre><h4>Putting it all together</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7987fb0f82ecf8f9b392c63403549226/href">https://medium.com/media/7987fb0f82ecf8f9b392c63403549226/href</a></iframe><p>We can now reference our image generator partial in any view</p><pre>@Html.Partial(&quot;ResponsiveImage&quot;,new ViewDataDictionary(ViewData) { { &quot;publishedContent&quot;, Model.TestImage.MediaItem }, { &quot;lazyLoading&quot;, true } })</pre><p>And we are done! a super simple and performant image. Next up we need to feed in the width and height to the viewData, some amends for another day though.</p><p><strong>Problem: Cropping with MediaWithCrops</strong></p><p>Depending on what Beta you are on, you may need to take an extra step to get to an IPublishedContent. If your Media is coming through as MediaWithCrops, grab the MediaItem value of it, this will be of IPublishedContent type, and so you can pass that in. Happy days!</p><pre>MediaWithCrops cmsImage = Model.Value(&quot;cmsImage&quot;);</pre><pre>IPublishedContent image = cmsImage.MediaItem;</pre><p>Like what you read? Give us a clap 👏👏👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f86ec06b6344" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-serve-optimised-images-on-umbraco-9-f86ec06b6344">How to Serve Optimised Images on Umbraco 9</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything I Wish I Knew When I first used Procreate.]]></title>
            <link>https://tristolliday.medium.com/everything-i-wish-i-knew-when-i-first-used-procreate-4133b225634a?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4133b225634a</guid>
            <category><![CDATA[graphic-design]]></category>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[illustration]]></category>
            <category><![CDATA[procreate]]></category>
            <category><![CDATA[apple-pencil]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Wed, 23 Dec 2020 10:17:41 GMT</pubDate>
            <atom:updated>2020-12-23T10:17:41.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8ovsJUlUwE8s_mZQPVR8Q.png" /><figcaption>Procreate 4 on the iPad Pro</figcaption></figure><h4>A Beginners 101 to using the Procreate App on iOS(iPadOS) and iPad Pro with Apple Pencil</h4><p>Since getting my iPad Pro, I have been a big fan of Procreate, its where I do all of my illustration now, it’s so clean and smart, but there is some assumed knowledge that should be in some sort of tour (or maybe there was and I skipped it 🤷‍♂).</p><h3>Typography</h3><p>Who’d have known you can add text to your document in Procreate, it’s tucked away in the add menu, but is super powerful, and lets you import custom fonts, and do all the usual text trickery you would expect.</p><h3>Colour Picking from your document</h3><p>Using your finger, hold it on your Artboard where you want to pick a colour. A round colour picker will appear and let you select, at this point you can drag around to get the right colour.</p><h3>Fill a space using the picker</h3><p>If you drag a colour from the top corner of procreate it will fill the area you drop on with your chosen colour. If you hold before dropping, you can change the threshold of where you are dropping the colour.</p><h3>If your pen isn&#39;t tracking after a while, check the nib</h3><p>Sometimes the nib slowly unscrews so it doesn&#39;t track your movement, or only sometimes tracks creating dashes. Simply twist the nib back in place, and crack on as you were.</p><h3>Easy switch from Pen to Eraser</h3><p>Simply double tap the side of your pen to swap between Pen and Eraser mode, you can stop this in the iPad Settings if you don’t want this behaviour</p><h3>Draw a perfect circle, shape or line.</h3><p>Hold your pen in place after drawing a shape or line and Procreate will magically create the perfect version of your shape, while still allowing you to edit it a little more after, plus it will keep your brush texture while doing it.</p><h3>Merge your layers with a pinch</h3><p>If your layers are getting out of control, you can smush them together easily, simply use two fingers and ‘pinch’ the top and bottom layers you want to merge together. All layers in between (and including)the two you have picked will be combined into a single layer.</p><h3>What did I miss?</h3><p>What features do you wish you knew when you first started illustrating with Procreate?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4133b225634a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience of becoming a Google Cloud Professional Cloud Architect]]></title>
            <link>https://medium.com/hakutaku/my-experience-of-becoming-a-google-cloud-professional-cloud-architect-bf704eb98964?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf704eb98964</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[gcp-certification]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Tue, 13 Oct 2020 07:47:47 GMT</pubDate>
            <atom:updated>2020-10-13T07:47:47.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gq5dWtbO7FGEXM5DWtf6fQ.png" /><figcaption>How I Passed the Google Cloud Architect Exam</figcaption></figure><h4>Preparing for the Google Cloud Platform Professional Cloud Architect Exam</h4><p>My journey to becoming a Google Cloud Platform (GCP) Professional Architect started in April 2020, giving myself a little over 3 months to learn the material.</p><p>If you have been using GCP as part of your daily work, and you have a good technical knowledge, this is a good amount of background to have before taking the exam, however if you are new to the material, expect to give yourself a lot more time.</p><p>At the time of writing, Google Cloud offers a<a href="https://cloud.google.com/certification/cloud-architect"> kickstarter program</a> with free access to some of the tools below, making it a very accessible time to start your learning.</p><p>My notes below are based on personal experience, and everyone has their own path to success. Work out which tools suit your learning style, knuckle down regularly, and have fun as you go.</p><h3>Recommended resources</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*c-lR2Bb3QeAbwQz13Cpfqw.png" /></figure><h4>A Cloud Guru (Formerly Linux Academy)</h4><p><a href="https://linuxacademy.com/cp/modules/view/id/321"><strong>Google Cloud Certified Professional Cloud Architect</strong></a></p><p>After asking successful exam passers what resources they would recommend, Linux Academies Professional Architect Course cropped up again and again. The course covers more of the smaller details of each of the solutions and tools, and has a full 50 question practice exam that feels pretty representative.</p><p>There is a monthly cost for the platform, however the resources are great, and thorough, plus they offer a 7 day free trial, well worth a look to see if the offering is right for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*VQmrRCttL0y670enxr4ZrA.png" /></figure><h4>Qwiklabs</h4><p><a href="https://www.qwiklabs.com/quests/24"><strong>Cloud Architecture quest</strong></a><strong> and</strong><a href="https://www.qwiklabs.com/quests/124"><strong> Cloud Architecture: Design, Implement, and Manage</strong></a></p><p>The primary platform that comes directly recommended by Google Cloud. Qwiklabs offers hands on experience on the platform, and checks your progress against the criteria of a lab as you go. It can be a bit fussy at times with naming of resources, but in general it’s a great way to get a true feel for the kind of knowledge you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*aeTdXKo3dND-_NsoRXlJZg.png" /></figure><h4>Coursera (Soon to be retired)</h4><p><a href="https://www.coursera.org/learn/preparing-cloud-professional-cloud-architect-exam/home/welcome"><strong>Preparing for the Google Cloud Professional Cloud Architect Exam</strong></a></p><p>The Coursera course comes recommended, and taught by Google Cloud themselves, so it is a natural first step to learning the material. Each lesson is a bite size at around 5 minutes, and is sandwiched by hands-on labs that take a deeper dive into each topic. It looks to be retired in the coming months, but still is an invaluable tool that can cover handy tidbits.</p><h4>Likely Topics</h4><p><em>Disclaimer: Due to the nature of the GCP exam, and the terms of taking the exam, no specific details regarding questions that could come up are mentioned, instead, I am focusing on known guidance by Google as to likely topics that can help.</em></p><p><strong>Literally</strong><a href="https://github.com/gregsramblings/google-cloud-4-words"><strong> Everything GCP offers</strong></a></p><p>A little knowledge on all the areas of Google Cloud is a good thing. A question relating to any product could come up, so it’s good to have an overarching view of the platform. That being said, don’t stress about deep diving into every nook and cranny. A deep dive into Machine Learning isn’t going to be a good use of your time, but knowing what AutoML is compared to other products may help.</p><p><strong>Kubernetes and the command line</strong></p><p>Kubernetes is a rock of modern cloud architecture, and is a prominent feature of Google Cloud itself. Know your pods from your clusters, how to deploy, rolling updates, and what third party tools are commonplace.</p><p><strong>Knowing the difference between CLI commands</strong></p><p>Do you know the difference between when to use gsutil or gcloud in the terminal for a particular service? Commands like these are fundamental to using the platform, and understanding them at even the top level is important to any practitioner.</p><p><strong>Understanding what</strong><a href="https://cloud.google.com/certification/guides/professional-cloud-architect"><strong> the case studies</strong></a><strong> are looking for</strong></p><p>Everyone says it, but it’s true. The better you know the case studies, the smoother your journey will be. Do you know what has a GCP ‘managed’ equivalent e.g. MySQL &gt; Cloud SQL, and what is a priority for each ‘client’?</p><p><strong>Know the different database types</strong></p><p>You can save yourself a lot of pain by knowing your databases. Knowing the best time to use Cloud Spanner over Cloud Datastore, and the differences between BigTable and BigQuery will help you get whittle down to the correct solution to a thorny problem.</p><p><strong>Know your networking (VPCs, VPNs, Subnets etc.)</strong></p><p>A good part of the exam will be about communicating between cloud services, on premise, and the permissions to do so. Know your networking.</p><p><strong>Remember the weird little bits</strong></p><p>There are a few details that are more like trivia, but they can come up, so be aware of these little facts that pop up in the Coursera course. They are things that can trip folks up, and feel like GOTCHAs that people should be aware of.</p><h3>You’ll be great</h3><p>Most importantly, don’t stress about the exam, enjoy learning the content and using GCP. Give yourself plenty of time to study, and you will smash it. Good luck, and I hope you do well</p><p>Like what you read? consider giving some 👏 👏 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf704eb98964" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hakutaku/my-experience-of-becoming-a-google-cloud-professional-cloud-architect-bf704eb98964">My experience of becoming a Google Cloud Professional Cloud Architect</a> was originally published in <a href="https://medium.com/hakutaku">Hakutaku</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Foundation 6 SCSS to Sapper]]></title>
            <link>https://itnext.io/how-to-add-foundation-6-scss-to-sapper-fca03a461109?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fca03a461109</guid>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[sapper]]></category>
            <category><![CDATA[scss]]></category>
            <category><![CDATA[rollup]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Sat, 26 Sep 2020 13:02:31 GMT</pubDate>
            <atom:updated>2020-09-26T13:28:42.228Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n236oPr-MUYhAK1ECy51Ug.png" /><figcaption>Sapper + SCSS + Foundation 6 😍</figcaption></figure><p>Using Rollup to include SCSS directly into your Sapper App</p><p>Sapper is a great, and efficient way to build your website with a SSR version of Svelte. However, adding a SCSS framework like Foundation or Bootstrap can be a bit of a pain, especially if you don’t want to just include the entire minified css file, and instead pick and choose your components.</p><p>As always, where there is a will there’s a way, and with Sapper, this comes in the form of <a href="https://github.com/thgh/rollup-plugin-scss">rollup-plugin-scss</a>.</p><h4><strong>Add rollup-plugin-scss via NPM</strong></h4><p>In your sapper repo, open up the command prompt/terminal and install <a href="https://github.com/thgh/rollup-plugin-scss">rollup-plugin-scss</a></p><pre>npm install --save-dev rollup-plugin-scss</pre><h4>Add in Foundation 6</h4><pre>npm install --save-dev foundation-sites</pre><p>We only need to save foundation for dev, as the production version will be reading a compiled css file instead of the node module.</p><h4>Create your SCSS file</h4><p>Next we need to create our SCSS file, which will be the entry point for rollup to use (which we will configure later), you can get more fancy with the structure if you wish, but to start with, let’s keep in simple.</p><p>In your src folder, create a new scss folder, and a newmain.scss file inside it.</p><p>Then, in your main.scss include foundation, and all the bits you need:</p><pre>// /src/main.scss</pre><pre>// Import Foundation from node modules<br>@import &#39;node_modules/foundation-sites/scss/foundation.scss&#39;;<br></pre><pre>// Include any components from Foundation as normal<br>// Global styles<br>@include foundation-global-styles;<br><a href="http://twitter.com/include">@</a>include foundation-forms;<br><a href="http://twitter.com/include">@</a>include foundation-typography;</pre><pre>// Grids (choose one)<br><a href="http://twitter.com/include">@</a>include foundation-xy-grid-classes;<br>// <a href="http://twitter.com/include">@</a>include foundation-grid;<br>// <a href="http://twitter.com/include">@</a>include foundation-flex-grid;</pre><pre>// Generic components<br><a href="http://twitter.com/include">@</a>include foundation-button;<br><a href="http://twitter.com/include">@</a>include foundation-button-group;<br><a href="http://twitter.com/include">@</a>include foundation-close-button;<br><a href="http://twitter.com/include">@</a>include foundation-label;<br><a href="http://twitter.com/include">@</a>include foundation-progress-bar;<br><a href="http://twitter.com/include">@</a>include foundation-slider;<br><a href="http://twitter.com/include">@</a>include foundation-switch;<br><a href="http://twitter.com/include">@</a>include foundation-table;<br>// Basic components<br><a href="http://twitter.com/include">@</a>include foundation-badge;<br><a href="http://twitter.com/include">@</a>include foundation-breadcrumbs;<br><a href="http://twitter.com/include">@</a>include foundation-callout;<br><a href="http://twitter.com/include">@</a>include foundation-card;<br><a href="http://twitter.com/include">@</a>include foundation-dropdown;<br><a href="http://twitter.com/include">@</a>include foundation-pagination;<br><a href="http://twitter.com/include">@</a>include foundation-tooltip;</pre><pre>// Containers<br><a href="http://twitter.com/include">@</a>include foundation-accordion;<br><a href="http://twitter.com/include">@</a>include foundation-media-object;<br><a href="http://twitter.com/include">@</a>include foundation-orbit;<br><a href="http://twitter.com/include">@</a>include foundation-responsive-embed;<br><a href="http://twitter.com/include">@</a>include foundation-tabs;<br><a href="http://twitter.com/include">@</a>include foundation-thumbnail;<br>// Menu-based containers<br><a href="http://twitter.com/include">@</a>include foundation-menu;<br><a href="http://twitter.com/include">@</a>include foundation-menu-icon;<br><a href="http://twitter.com/include">@</a>include foundation-accordion-menu;<br><a href="http://twitter.com/include">@</a>include foundation-drilldown-menu;<br><a href="http://twitter.com/include">@</a>include foundation-dropdown-menu;</pre><pre>// Layout components<br><a href="http://twitter.com/include">@</a>include foundation-off-canvas;<br><a href="http://twitter.com/include">@</a>include foundation-reveal;<br><a href="http://twitter.com/include">@</a>include foundation-sticky;<br><a href="http://twitter.com/include">@</a>include foundation-title-bar;<br><a href="http://twitter.com/include">@</a>include foundation-top-bar;</pre><pre>// Helpers<br>// <a href="http://twitter.com/include">@</a>include foundation-float-classes;<br><a href="http://twitter.com/include">@</a>include foundation-flex-classes;<br><a href="http://twitter.com/include">@</a>include foundation-visibility-classes;<br>// <a href="http://twitter.com/include">@</a>include foundation-prototype-classes;</pre><h4>Inform Rollup about the file.</h4><p>Now this is sorted, we need to tell roll-up and sapper that we have a new file to include, so in your rollup.config.js you add a reference to <a href="https://github.com/thgh/rollup-plugin-scss">rollup-plugin-scss</a> at the top, and then include your main.scss in plugins.</p><pre>// Add this at the top with the rest of your imports<br>import scss from &#39;rollup-plugin-scss&#39;;</pre><pre>//...</pre><pre>// Add scss into the client plugins area, like this...</pre><pre>export default {</pre><pre>client: {</pre><pre>input: config.client.input(),</pre><pre>output: config.client.output(),</pre><pre>plugins: [</pre><pre>replace({</pre><pre>&#39;process.browser&#39;: true,</pre><pre>&#39;process.env.NODE_ENV&#39;: JSON.stringify(mode)</pre><pre>}),</pre><pre>scss({</pre><pre>output: &#39;static/global.css&#39;,</pre><pre>}),</pre><pre>// ... file continues as normal ...</pre><p>Notice how we have specified an output directory, which is the default css file for Sapper.</p><p>If you want to keep the css from within this file, you will need to move it before running your code (i.e. create a new scss file, and import that into main), or it will get overwritten when we run our code.</p><h4>Tell Sapper what’s going on</h4><p>Finally, you now need to tell Sapper to use this file, so you can import it in client.js , your file will end up looking like this:</p><pre>import &quot;./scss/main.scss&quot;;</pre><pre>import * as sapper from &#39;@sapper/app&#39;;</pre><pre>sapper.start({</pre><pre>target: document.querySelector(&#39;#sapper&#39;)</pre><pre>});</pre><h4>Run Dev and See the results</h4><p>If everything has gone smoothly we can use npm run dev and see our foundation styles affect.</p><p>It’s pretty simple to get this set up, and is a great way to include global styles that won’t get prefixed by svelte.</p><p>Well done, you are now a Sapper SCSS wizard 👏👏👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fca03a461109" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-add-foundation-6-scss-to-sapper-fca03a461109">How to Add Foundation 6 SCSS to Sapper</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Make Your Own URL Shortener with Firebase Dynamic Links]]></title>
            <link>https://itnext.io/how-to-make-your-own-url-shortener-with-firebase-dynamic-links-53d163712b06?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/53d163712b06</guid>
            <category><![CDATA[bitly]]></category>
            <category><![CDATA[url-shorteners]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[firebasedynamiclinks]]></category>
            <category><![CDATA[domains]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 16:28:30 GMT</pubDate>
            <atom:updated>2020-03-19T18:11:22.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFo1EdzuplW7Arc8oL_tRg.gif" /></figure><h4>A Simple Tutorial to easily make a URL shortener like bit.ly or ow.ly and roll your own short domains.</h4><p>Services like bit.ly and ow.ly are great, and provide a handy way to shorten long, and often hard to remember URLs, into shorter, more digestible ones. When investigating how to make my own version, I came across Firebase Dynamic Links.</p><p>Firebase is a web and app platform from Google that provides affordable features for developers, like hosting, server-less functions, databases and storage. It’s got an excellent free tier, is feature packed, and easy to navigate, so let’s get started.</p><h4>Grab a short domain</h4><p>This is the most time consuming part of the process, how short you go is up to you, but generally anything shorter than 4 characters of the left side of your domain is going to be hard to find, or very expensive.</p><p>I found tris.cc and tris.uk on <a href="http://namecheap.pxf.io/PDeVX">Namecheap</a>, which as the name suggests, provides cheap domain names, and has most of the top level domains on there, just stick at it, you’ll find one that works.</p><h4>Log in to Firebase</h4><p>Once you have found your new domain, it’s time to link it with Firebase. So first things first, create a new project. Decide if you want analytics, and follow the set up instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40VMZUraca3vepuxDqwuUg.png" /></figure><p>Next, you want to head over to the hosting tab on the left of your nav, and click get started.</p><p>Unintuitively, it will ask you set up Firebase tools on your local device, you don’t need to do this, as hosting is merely used here to associate our short URL with Firebase itself.</p><p>Simply click through these instructions (but don’t worry about following them)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bJtm-Tw-ggO4-cHBW4Guw.png" /></figure><p>until you reach the following screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovx6kLzsAft9Edx88yaN4g.png" /></figure><p>Next, hit that big blue “<strong>Add custom domain</strong>” button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VEN5voT38TZT_PXlUl8vQ.png" /></figure><p>Type in your <a href="http://namecheap.pxf.io/PDeVX">new domain name</a>, or where ever you got your domain from. and hit continue.</p><p>This will give you a TXT record to pop into your domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w36DBsCSZWPMDjVBVsZcFg.png" /></figure><p>Each domain is different, so the instructions will depend on your provider, but here’s a basic jist:</p><h4>Setting up Records on Namecheap (Other providers available 😉)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J07dIcy2EBJ_q50xaapkVQ.png" /></figure><p>Head over to your new domain, head to Advanced DNS, and add a new TXT Record , the host is @ , which is the equivalent of saying “me”. and the TTL is 5 mins, this reduces propagation time, from the domain name provider, but it can still take up to 48 hours to be visible to Firebase, so be patient.</p><p>Once that is done, Firebase will validate and then provide you with A records to add, again follow the process above, but choose A Record instead of TXT Record . Again, wait for it to propagate, and once its working, Firebase will let you know, you can check by clicking “View” on the site in the hosting panel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*R7PWz-O-iP-JlhJlKBwbhg.png" /></figure><p>And if the status is “<strong>Connected</strong>”, you are good to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xS8kGtcAM-V7i2VNp0562g.png" /></figure><h4>Create Firebase Dynamic Links</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*_brFpFSpNqX6OYKyRDLu5Q.png" /></figure><p>On the left hand side scroll all the way down to “<strong>Grow</strong>” and you will find “<strong>Dynamic Links</strong>” underneath.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nASn2Nd4sKFyssPGcLkRQ.png" /></figure><p>Hit “Get started” on dynamic links, a modal will pop-up, and if you click domains (and everything above has worked happily), your domains will show in a list, select one of them, and click continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOKUZLq9vIad9jUNd4R26g.png" /></figure><p>Next you can add a “Path Prefix”, this is useful if you want to use this domain for your primary domain as well, the path prefix will add a prefix before all your shortlinks, so /landing/ for example will prepend all links e.g. /landing/aGdHx .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWy4HRKw4KMUPTk8FgTnuw.png" /></figure><p>For shortness sake, I have kept this blank, so all my short links are as short as possible. Hit continue, and if all is well, Verify should sort itself, and you can click finish!</p><p>We are done with the set up now, hooray, so now we can make our first short link.</p><h4>Create Our first Dynamic Link</h4><p>Click “new dynamic link”, and let’s start filling in the form,</p><p>you can pick your own link url, and as you own it, you can go as short as you like. I tried <a href="https://tris.cc/-">tris.cc/-</a> and was surprised to see that it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfopQgtTa5Kj_pJlnWMwQw.png" /></figure><p>Next we point it where we want it to go</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KImgpgSB2KJUgetAHr4lHw.png" /></figure><p>We can just direct to browser for Android &amp; iOS for now, but should we need app integration in the future, it’s available</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eX_2HwrI04jwTkQj5UDc-Q.png" /></figure><p>And finally we add Social, Meta and Analytics links:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZDXsk31Ed8RnxBToZFWVA.png" /></figure><p>Despite these being Optional, I would highly recommend adding social meta tags and analytics. These will show up on social networks (e.g. Twitter, LinkedIn, Facebook) with an image and title, making them more enticing and clickable. UTM parameters are picked up by google analytics to help track user journeys.</p><p>Click “<strong>Create</strong>”, and you have made your first, home made, url shortener.</p><p>Like what you read? consider giving some 👏 👏 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53d163712b06" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-make-your-own-url-shortener-with-firebase-dynamic-links-53d163712b06">How To Make Your Own URL Shortener with Firebase Dynamic Links</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5G and the Future of UI]]></title>
            <link>https://medium.com/hakutaku/5g-and-the-future-of-ui-d174c5ea4692?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d174c5ea4692</guid>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[5g-technology]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 08:54:22 GMT</pubDate>
            <atom:updated>2020-06-05T15:52:18.722Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjVHNTIHOO8QJmwo_1hNag.png" /></figure><h3>THE 5G UI REVOLUTION</h3><h4>Tris Tolliday describes his vision of a web UI catapulted forwards by 5G</h4><p><em>First published in </em><a href="https://www.creativebloq.com/net-magazine"><em>net magazine</em></a><em> 16/04/2020</em></p><p>5G is a data revolution about to change every aspect of modern life, connecting everyone in real-time with unparalleled flows of data. For web developers, 5G UI is set to revolutionise the web GUI equilibrium… as soon as it has the national coverage we see with 4G.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qewsPBhXppEre5QpWihSog.jpeg" /><figcaption>Video Gaming compared to Web 3D</figcaption></figure><p>The web has been stuck in a 2D world with the same top nav, hero and boxes of content, but what if there was another way? What if the client didn’t have to rely on the users’ hardware to deliver the experience, and instead we hoisted it up to the cloud?</p><h4>WHY IS 5G ANY DIFFERENT?</h4><p>5G has two benefits over 4G. The first is latency small enough for everything to feel responsive, with early tests from Verizon hitting the 30ms mark (10x quicker than the mobile browser touch delay), and that figure is expected to come down to around 10ms. Second is its insane bandwidth, which at 2gbits per second, is large enough to push the heavy lifting away from the client and onto the server.</p><p>From the server, we’ve seen what is possible with the likes of Google Stadia, Steam Remote Play and Project xCloud. All of a sudden, graphic-intense 3D games are available for the public to play in 4K on their living room TV, assuming a decent broadband speed.</p><p>Now imagine what is possible if we extend access to every pay monthly mobile phone in the UK. 5G would enable everyone in the UK to use their phone to browse content generated by bleeding-edge cloud computers. We aren’t talking about the SSR of today, but the whole GUI being painted server-side, and pushed to devices in real-time.</p><p>Let’s also consider the limitations of the modern browser. Sure we can create graphics on them, but without heavy optimisation, anything too complex begins to chug. If you have ever attempted 3D on the browser, the limitations hit you pretty early on.</p><h4>CLOUD COMPUTING IN THE ADVENT OF AI</h4><p>Meanwhile, sat on the cloud, are a quite frankly insane amount of GPUs, among other resources. This is thanks to huge investment in AI and machine learning, these GPUs are twiddling their thumbs waiting for researchers and data scientists to create their next facial recognition or speech-to-text model.</p><p>We can see this happening, because Google Collab offers out free time on its dedicated GPUs and TPUs for ML projects that won’t take up its resources for more than a day. These spare GPUs are gagging to be utilised, and 5G UI would help this cross section of wants.</p><h4>HOW COULD THIS WORK?</h4><p>We can take hints from Steam Remote Play, which utilises H.264 (and H.265 for the brave), to stream a video capture from your home computer in real-time, meanwhile your mobile device streams touch events directly to your computer. What’s incredible to me, is that your mobile has very little to do in this exchange. It displays a video stream, which mobiles have been capable of since at least 2005. It also just sends any input events to the server, not even concerning itself with computing what these events mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjwQp2rP9-QR0qQBarFKDA.jpeg" /></figure><p>This leads to the bigger question: what stack do we run on the server? To this, my answer is anything at all. If it can run on the cloud, you can do it, it doesn’t even have to be browser tech, which leads me to the best bit.</p><h4>WEB 3.0</h4><p>Now we have zero limitations, it’s time for the web revolution. What does a website look like in 3D or in 2D with 4K graphics? I cannot even fathom what those more creative than me can come up with.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEFyWEMe27Dw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEFyWEMe27Dw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEFyWEMe27Dw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b731956293ea0bac86a12875dd3efc13/href">https://medium.com/media/b731956293ea0bac86a12875dd3efc13/href</a></iframe><p>All this has led me to one conclusion, it’s time for front-end developers to expand their horizons, and not necessarily on the web. Build cloud native experiences, invest your time in VR and AR. Try Unity, try unreal, be bold.</p><p><strong><em>There’s an old adage that comes into its own: ‘If you dislike change, you’re going to dislike irrelevant even more’. Get ready for a 5G revolution — change, evolve, or be ready for irrelevance.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d174c5ea4692" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hakutaku/5g-and-the-future-of-ui-d174c5ea4692">5G and the Future of UI</a> was originally published in <a href="https://medium.com/hakutaku">Hakutaku</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial: Newtonsoft JSON.NET for Structured Data & SEO]]></title>
            <link>https://itnext.io/tutorial-newtonsoft-json-net-for-structured-data-seo-6ab2f2507733?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ab2f2507733</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[structured-data]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[rich-snippets]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Sat, 28 Dec 2019 21:39:27 GMT</pubDate>
            <atom:updated>2019-12-28T21:39:27.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2do9xNCAkF0WDqQ8_IkTgA.png" /></figure><p>Building C# MVC Websites with a CMS can make it difficult to create structured data; which in turn fuels rich snippets on Google.</p><h4>What are Rich Snippets?</h4><p>Rich Snippets are a feature of most search engines that use structured data to provide a better user experience than traditional search results, and can <a href="https://medium.com/@tristolliday/structured-data-unifying-the-web-for-the-better-2bcdd0df53ca?source=friends_link&amp;sk=fc6fa3ec1e1c652852fe4660368fa72a">give your website more visibility</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*_CE3FXbF-f34hgbd.png" /><figcaption>A rich snippet on Google, powered by structured data.</figcaption></figure><h4>How to add structured data to a razor cshtml page</h4><p>Structured data comes in three flavours, json-ld , RDFa and microdata . As RDFa and microdata have to be baked into the html, which can be difficult to retrospectively add to a template. For this reason, we will focus on json-ld , which can live in it’s own &lt;script&gt; tag.</p><p>In this tutorial we are going to add our json-ld on our razor template page. The example tutorial will be built on Umbraco 8, but the same methodology should apply to any C# MVC solution.</p><p>The example we are building is the <a href="https://developers.google.com/search/docs/data-types/qapage">Question &amp; Answer Rich Snippet</a>, but the concept applies to all rich snippets.</p><ol><li>Include <a href="https://www.newtonsoft.com/json">Newtonsoft Json.NET</a> in your file. @using Newtonsoft.Json.Linq . It’s a commonly used library, and is available on <a href="https://www.nuget.org/packages/Newtonsoft.Json/">NuGet</a>.</li><li>Pull your data from your CMS/Wherever it is stored. In this case we are using &lt;IEnumberable&lt;IPublishedElement&gt;&gt;but any loop-able datasource should work.</li></ol><pre>@{ var questions = Model.Value&lt;IEnumerable&lt;IPublishedElement&gt;&gt;(&quot;questions&quot;); }</pre><p>3. Next we need to replicate the <em>structure</em> of the ‘<em>structured data’</em> with our Newtonsoft. Conveniently, Google provides <a href="https://search.google.com/test/rich-results?utm_campaign=devsite&amp;utm_medium=jsonld&amp;utm_source=qapage">examples</a> of each type on their docs, or check out <a href="http://schema.org/docs/documents.html">schema.org for a full documentation</a> of how to use JSON-LD to build your structured data.</p><p>To start with, here is a final flat html example we are trying to replicate:</p><pre>&lt;script type=&quot;application/ld+json&quot;&gt;<br>  {<br>    &quot;<a href="http://twitter.com/context">@context</a>&quot;: &quot;<a href="https://schema.org/">https://schema.org</a>&quot;,<br>    &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;QAPage&quot;,<br>    &quot;mainEntity&quot;: {<br>      &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Question&quot;,<br>      &quot;name&quot;: &quot;How many ounces are there in a pound?&quot;,<br>      &quot;text&quot;: &quot;I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?&quot;,<br>      &quot;answerCount&quot;: 3,<br>      &quot;upvoteCount&quot;: 26,<br>      &quot;dateCreated&quot;: &quot;2016-07-23T21:11Z&quot;,<br>      &quot;author&quot;: {<br>        &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Person&quot;,<br>        &quot;name&quot;: &quot;New Baking User&quot;<br>      },<br>      &quot;acceptedAnswer&quot;: {<br>        &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Answer&quot;,<br>        &quot;text&quot;: &quot;1 pound (lb) is equal to 16 ounces (oz).&quot;,<br>        &quot;dateCreated&quot;: &quot;2016-11-02T21:11Z&quot;,<br>        &quot;upvoteCount&quot;: 1337,<br>        &quot;url&quot;: &quot;<a href="https://example.com/question1#acceptedAnswer">https://example.com/question1#acceptedAnswer</a>&quot;,<br>        &quot;author&quot;: {<br>          &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Person&quot;,<br>          &quot;name&quot;: &quot;SomeUser&quot;<br>        }<br>      },<br>      &quot;suggestedAnswer&quot;: [<br>        {<br>          &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Answer&quot;,<br>          &quot;text&quot;: &quot;Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.&quot;,<br>          &quot;dateCreated&quot;: &quot;2016-11-02T21:11Z&quot;,<br>          &quot;upvoteCount&quot;: 42,<br>          &quot;url&quot;: &quot;<a href="https://example.com/question1#suggestedAnswer1">https://example.com/question1#suggestedAnswer1</a>&quot;,<br>          &quot;author&quot;: {<br>            &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Person&quot;,<br>            &quot;name&quot;: &quot;AnotherUser&quot;<br>          }<br>        }, {<br>          &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Answer&quot;,<br>          &quot;text&quot;: &quot; I can&#39;t remember exactly, but I think 18 ounces in a lb. You might want to double check that.&quot;,<br>          &quot;dateCreated&quot;: &quot;2016-11-06T21:11Z&quot;,<br>          &quot;upvoteCount&quot;: 0,<br>          &quot;url&quot;: &quot;<a href="https://example.com/question1#suggestedAnswer2">https://example.com/question1#suggestedAnswer2</a>&quot;,<br>          &quot;author&quot;: {<br>            &quot;<a href="http://twitter.com/type">@type</a>&quot;: &quot;Person&quot;,<br>            &quot;name&quot;: &quot;ConfusedUser&quot;<br>          }<br>        }<br>      ]<br>    }<br>  }<br>&lt;/script&gt;</pre><p>Schema.org is particularly fussy about structure, so we need to match it verbatim. Luckily Newtonsoft is simple enough to use, with three main types to convert to json: JObject e.g. {}, JArray e.g. [] and JProperty e.g. &quot;”:”” .</p><p>This means we use the following :</p><pre>&lt;script type=&quot;application/ld+json&quot;&gt;</pre><pre>@{</pre><pre>var structuredData =</pre><pre>new JObject(</pre><pre>new JProperty(&quot;@context&quot;, &quot;https://schema.org&quot;),</pre><pre>new JProperty(&quot;@type&quot;, &quot;FAQPage&quot;),</pre><pre>new JProperty(&quot;mainEntity&quot;,</pre><pre>new JArray(</pre><pre>from item in questions</pre><pre>select new JObject(</pre><pre>new JProperty(&quot;@type&quot;, &quot;Question&quot;),</pre><pre>new JProperty(&quot;name&quot;, (string)(item.GetProperty(&quot;question&quot;).Value().ToString())),</pre><pre>new JProperty(&quot;acceptedAnswer&quot;,</pre><pre>new JObject(</pre><pre>new JProperty(&quot;@type&quot;, &quot;Answer&quot;),</pre><pre>new JProperty(&quot;text&quot;, (string)(item.GetProperty(&quot;answer&quot;).Value().ToString()))</pre><pre>)</pre><pre>)</pre><pre>)</pre><pre>)</pre><pre>)</pre><pre>);</pre><pre>}</pre><pre>@Html.Raw(structuredData.ToString())</pre><pre>&lt;/script&gt;</pre><p>We are generating the matching code by declaring a var, building our JSON.NET object, and then rendering it out within the @Html.Raw as a <strong>string</strong>.</p><p>Newtonsoft will let us iterate over our enumerable (questions in this case) using from item in questions. This solution allows us the flexibility of using a dynamic data source on a per template basis, meaning that we could put this into a reusable partial and inject it only where needed.</p><p><strong><em>Breaking down the core concepts of this example will allow you to produce any structured data format, and convert it from razor to json. Rich snippets are a big part of SEO nowadays, and it is important to include structured data in your webapp from very early on, while older sites can still be retrofitted to aid your ranking on search engines.</em></strong></p><p>The full gist of the example can be <a href="https://gist.github.com/tristolliday/220f5f33762bf2492a30a5f1557d4a72">found here</a>. Like what you read? consider giving some 👏 👏 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ab2f2507733" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/tutorial-newtonsoft-json-net-for-structured-data-seo-6ab2f2507733">Tutorial: Newtonsoft JSON.NET for Structured Data &amp; SEO</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial: Creating Voice Skills For Google Assistant & Amazon Alexa]]></title>
            <link>https://tristolliday.medium.com/tutorial-creating-voice-skills-for-google-assistant-amazon-alexa-7563cd449b?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7563cd449b</guid>
            <category><![CDATA[google-assistant]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[alexa]]></category>
            <category><![CDATA[voice-assistant]]></category>
            <category><![CDATA[virtual-assistant]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 00:00:00 GMT</pubDate>
            <atom:updated>2020-03-20T11:26:10.010Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BVOIjX6EzibeOPcmhyngg.jpeg" /></figure><h3>Tutorial: Creating Voice Skills For Google Assistant And Amazon Alexa</h3><p>Voice assistants are hopping out of emerging tech and into everyday life. As a front end developer, you already have the skills to build one, so let’s dive into the platforms.</p><p>Over the past decade, there has been a seismic shift towards conversational interfaces. As people reach ‘peak screen’ and even begin to scale back their device usage with digital well-being features being baked into most operating systems.</p><p>To combat screen fatigue, voice assistants have entered the market to become a preferred option for quickly retrieving information. As adoption rises, it’s up to developers to add “Conversational Interfaces” and “Voice Assistants” to their tool belt.</p><h3>What Is A Conversational Interface?</h3><p>A Conversational Interface (sometimes shortened to CUI, is any interface in a human language. It is tipped to be a more natural interface for the general public than the Graphic User Interface GUI, which front end developers are accustomed to building. A GUI requires humans to learn its specific syntaxes of the interface (think buttons, sliders, and drop-downs).</p><p>This key difference in using human language makes CUI more natural for people; it requires little knowledge and puts the burden of understanding on the device.</p><p>Commonly CUIs comes in two guises: Chatbots and Voice Assistants. Both have seen a massive rise in uptake over the last decade thanks to advances in Natural Language Processing (NLP).</p><h4>Understanding Voice Jargon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tp9rQs3OGBgz7yjr.png" /></figure><p><strong>Skill/Action</strong></p><p>A voice application, which can fulfil a series of intents</p><p><strong>Intent</strong></p><p>Intended action for the skill to fulfil, what the user wants the skill to do in response to what they say.</p><p><strong>Utterance</strong></p><p>The sentence a user says, or utters.</p><p><strong>Wake Word</strong></p><p>The word or phrase used to start a voice assistant listening, e.g. ‘Hey google’, ‘Alexa’ or ‘Hey Siri’</p><p><strong>Context</strong></p><p>The pieces of contextual information within an utterance, that helps the skill fulfil an intent, e.g. ‘today’, ‘now’, ‘when I get home’.</p><h3>What Is A Voice Assistant?</h3><p>A voice assistant is a piece of software capable of NLP (Natural Language Processing). It receives a voice command and returns an answer in audio format. In recent years the scope of how you can engage with an assistant is expanding and evolving, but the crux of the technology is natural language in, lots of computation, natural language out.</p><p>For those looking for a bit more detail:</p><ol><li>The software receives an audio request from a user, processes the sound into phonemes, the building blocks of language.</li><li>By the magic of AI (Specifically Speech-To-Text), these phonemes are converted into a string of the approximated request, this is kept within a JSON file which also contains extra information about the user, the request and the session.</li><li>The JSON is then processed (usually in the cloud) to work out the context and intent of the request.</li><li>Based on the intent, a response is returned, again within a larger JSON response, either as a string or as SSML (more on that later)</li><li>The response is processed back using AI (naturally the reverse — Text-To-Speech) which is then returned to the user.</li></ol><p>There’s a lot going on there, most of which don’t require a second thought. But each platform does this differently, and it’s the nuances of the platform that require a bit more understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*8gXKHD8G7_xlEVNu.png" /></figure><h3>Voice-Enabled Devices</h3><p>The requirements for a device to be able to have a voice assistant baked in are pretty low. They require a Microphone, an internet connection, and a Speaker. Smart Speakers like the Nest Mini &amp; Echo Dot provide this kind of low-fi voice control.</p><p>Next up in the ranks is voice + screen, this is known as a ‘Multimodal’ device (more on these later), and are devices like the Nest Hub and the Echo Show. As smartphones have this functionality, they can also be considered a type of Multimodal voice-enabled device.</p><h3>Voice Skills</h3><p>First off, every platform has a different name for their ‘Voice Skills’, Amazon goes with skills, which I will be sticking with as a universally understood term. Google opts for ‘Actions’, and Samsung goes for ‘capsules’.</p><p>Each platform has its own baked-in skills, like asking the time, weather and sports games. Developer-made (third-party) skills can be invoked with a specific phrase, or, if the platform likes it, can be implicitly invoked, without a key phrase.</p><p>Explicit Invocation: “Hey Google, Talk to &lt;app name&gt;.”</p><p>It is explicitly stated which skill is being asked for:</p><p>Implicit Invocation: “Hey Google, what is the weather like today?”</p><p>It is implied by the context of the request what service the user wants.</p><h3>What Voice Assistants Are There?</h3><p>In the western market, voice assistants are very much a three-horse race. Apple, Google and Amazon have very different approaches to their assistants, and as such, appeal to different types of developers and customers.</p><h4>Apple’s Siri</h4><p><strong>Device Name</strong>: “iPhone, iPad, Mac, HomePod”</p><p><strong>Wake Phrase</strong>: “Hey Siri”</p><p>Siri has over 375 million active users, but for the sake of brevity, I am not going into too much detail for Siri. While it may be globally well adopted, and baked into most Apple devices, it requires developers to already have an app on one of Apple’s platforms and is written in swift (whereas the others can be written in everyone’s favorite: Javascript). Unless you are an app developer who wants to expand their app’s offering, you can currently skip past apple until they open up their platform.</p><h4>Google Assistant</h4><p><strong>Device Names</strong>: “Android Phones, Google Home, Nest”</p><p><strong>Wake Phrase</strong>: “Hey Google”</p><p>Google has the most devices of the big three, with over 1 Billion worldwide, this is mostly due to the mass of Android devices that have Google Assistant baked in, with regards to their dedicated smart speakers, the numbers are a little smaller. Google’s overall mission with its assistant is to delight users, and they have always been very good at providing light and intuitive interfaces.</p><p>Their primary aim on the platform is to use time — with the idea of becoming a regular part of customers’ daily routine. As such, they primarily focus on utility, family fun, and delightful experiences.</p><p>Skills built for Google are best when they are engagement pieces and games, focusing primarily on family-friendly fun. Their recent addition of canvas for games is a testament to this approach. The Google platform is much stricter for submissions of skills, and as such, their directory is a lot smaller.</p><h4>Amazon Alexa</h4><p><strong>Device Names</strong>: “Amazon Fire, Amazon Echo”</p><p><strong>Wake Phrase</strong>: “Alexa”</p><p>Amazon has surpassed 100 million devices in 2019, this predominantly comes from sales of their smart speakers and smart displays, as well as their ‘fire’ range or tablets and streaming devices.</p><p>Skills built for Amazon tend to be aimed at in skill purchasing. If you are looking for a platform to expand your e-commerce/service, or offer a subscription then Amazon is for you. That being said, ISP isn’t a requirement for Alexa Skills, they support all sorts of uses, and are much more open to submissions.</p><h4>The Others</h4><p>There are even more Voice assistants out there, such as Samsung’s Bixby, Microsoft’s Cortana, and the popular open-source voice assistant Mycroft. All three have a reasonable following, but are still in the minority compared to the three Goliaths of Amazon, Google and Apple.</p><h3>Building On Amazon Alexa</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*slmbnQSTc7OHVmb4.png" /></figure><p>Amazons Ecosystem for voice has evolved to allow developers to build all of their skills within the Alexa console, so as a simple example, I am going to use its built-in features.</p><p>Alexa deals with the Natural Language Processing and then finds an appropriate Intent, which is passed to our Lambda function to deal with the logic. This returns some conversational bits (SSML, text, cards, and so on) to Alexa, which converts those bits to audio and visuals to show on the device.</p><p>Working on Amazon is relatively simple, as they allow you to create all parts of your skill within the Alexa Developer Console. The flexibility is there to use AWS or an HTTPS endpoint, but for simple skills, running everything within the Dev console should be sufficient.</p><h4>Let’s Build A Simple Alexa Skill</h4><p>Head over to the Amazon <a href="https://developer.amazon.com/alexa/console/ask">Alexa console</a>, create an account if you don’t have one, and log in,</p><p>Click Create Skill then give it a name,</p><p>Choose custom as your model,</p><p>and choose Alexa-Hosted (Node.js) for your backend resource.</p><p>Once it is done provisioning, you will have a basic Alexa skill, It will have your intent built for you, and some back end code to get you started.</p><p>If you click on the HelloWorldIntent in your Intents, you will see some sample utterances already set up for you, let&#39;s add a new one at the top. Our skill is called hello world, so add Hello World as a sample utterance. The idea is to capture anything the user might say to trigger this intent. This could be &quot;Hi World&quot;, &quot;Howdy World&quot;, and so on.</p><p>What’s Happening In The Fulfillment JS?</p><p>So what is the code doing? Here is the default code:</p><pre>const HelloWorldIntentHandler = {</pre><pre>canHandle(handlerInput) {</pre><pre>return Alexa.getRequestType(handlerInput.requestEnvelope) === &#39;IntentRequest&#39;</pre><pre>&amp;&amp; Alexa.getIntentName(handlerInput.requestEnvelope) === &#39;HelloWorldIntent&#39;;</pre><pre>},</pre><pre>handle(handlerInput) {</pre><pre>const speakOutput = &#39;Hello World!&#39;;</pre><pre>return handlerInput.responseBuilder</pre><pre>.speak(speakOutput)</pre><pre>.getResponse();</pre><pre>}</pre><pre>};</pre><p>This is utilizing the ask-sdk-core and is essentially building JSON for us. canHandle is letting ask know it can handle intents, specifically &#39;HelloWorldIntent&#39;. handle takes the input, and builds the response. What this generates looks like this:</p><pre>{<br><br>    &quot;body&quot;: {<br><br>        &quot;version&quot;: &quot;1.0&quot;,<br><br>        &quot;response&quot;: {<br><br>            &quot;outputSpeech&quot;: {<br><br>                &quot;type&quot;: &quot;SSML&quot;,<br><br>                &quot;ssml&quot;: &quot;Hello World!&quot;<br><br>            },<br><br>            &quot;type&quot;: &quot;_DEFAULT_RESPONSE&quot;<br><br>        },<br><br>        &quot;sessionAttributes&quot;: {},<br><br>        &quot;userAgent&quot;: &quot;ask-node/2.3.0 Node/v8.10.0&quot;<br><br>    }<br><br>}</pre><p>We can see that speak outputs ssml in our json, which is what the user will hear as spoken by Alexa.</p><h3>Building For Google Assistant</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b3QECqk-EzxiIFyd.png" /></figure><p>The simplest way to build Actions on Google is to use their AoG console in combination with Dialogflow, you can extend your skills with firebase, but as with the Amazon Alexa tutorial, let’s keep things simple.</p><p>Google Assistant uses three primary parts, AoG, which deals with the NLP, Dialogflow, which works out your intents, and Firebase, that fulfills the request, and produces the response that will be sent back to AoG.</p><p>Just like with Alexa, Dialogflow allows you to build your functions directly within the platform.</p><h4>Let’s Build An Action On Google</h4><p>There are three platforms to juggle at once with Google’s solution, which are accessed by three different consoles, so tab up!</p><p>Setting Up Dialogflow</p><p>Let’s start by logging into the Dialogflow console. Once you have logged in, create a new agent from the dropdown just below the Dialogflow logo.</p><p>Give your agent a name, and add on the ‘Google Project Dropdown’, while having “Create a new Google project” selected.</p><p>Click the create button, and let it do its magic, it will take a little bit of time to set up the agent, so be patient.</p><p>Setting Up Firebase Functions</p><p>Right, now we can start to plug in the Fulfillment logic.</p><p>Head on over to the Fulfilment tab. Tick to enable the inline editor, and use the JS snippets below:</p><pre>&#39;use strict&#39;;</pre><pre>// So that you have access to the dialogflow and conversation object<br>const {  dialogflow } = require(&#39;actions-on-google&#39;);</pre><pre>// So you have access to the request response stuff &gt;&gt; functions.https.onRequest(app)<br>const functions = require(&#39;firebase-functions&#39;);</pre><pre>// Create an instance of dialogflow for your app<br>const app = dialogflow({debug: true});</pre><pre>// Build an intent to be fulfilled by firebase, <br>// the name is the name of the intent that dialogflow passes over<br>app.intent(&#39;Default Welcome Intent&#39;, (conv) =&gt; {<br>  <br>  // Any extra logic goes here for the intent, before returning a response for firebase to deal with<br>    return conv.ask(`Welcome to a firebase fulfillment`);<br>  <br>});</pre><pre>// Finally we export as dialogflowFirebaseFulfillment so the inline editor knows to use it<br>exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);</pre><p><em>package.json</em></p><pre>{<br>  &quot;name&quot;: &quot;functions&quot;,<br>  &quot;description&quot;: &quot;Cloud Functions for Firebase&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;lint&quot;: &quot;eslint .&quot;,<br>    &quot;serve&quot;: &quot;firebase serve --only functions&quot;,<br>    &quot;shell&quot;: &quot;firebase functions:shell&quot;,<br>    &quot;start&quot;: &quot;npm run shell&quot;,<br>    &quot;deploy&quot;: &quot;firebase deploy --only functions&quot;,<br>    &quot;logs&quot;: &quot;firebase functions:log&quot;<br>  },<br>  &quot;engines&quot;: {<br>    &quot;node&quot;: &quot;10&quot;<br>  },<br>  &quot;dependencies&quot;: {<br>    &quot;actions-on-google&quot;: &quot;^2.12.0&quot;,<br>    &quot;firebase-admin&quot;: &quot;~7.0.0&quot;,<br>    &quot;firebase-functions&quot;: &quot;^3.3.0&quot;<br>  },<br>  &quot;devDependencies&quot;: {<br>    &quot;eslint&quot;: &quot;^5.12.0&quot;,<br>    &quot;eslint-plugin-promise&quot;: &quot;^4.0.1&quot;,<br>    &quot;firebase-functions-test&quot;: &quot;^0.1.6&quot;<br>  },<br>  &quot;private&quot;: true<br>}</pre><p>Now head back to your intents, go to Default Welcome Intent, and scroll down to fulfillment, make sure ‘Enable webhook call for this intent’ is checked for any intents your wish to fulfill with javascript. Hit Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tYB2JiiLk1piWpHs.png" /></figure><p><strong>Setting Up AoG</strong></p><p>We are getting close to the finish line now. Head over to the Integrations Tab, and click Integration Settings in the Google Assistant Option at the top. This will open a modal, so let’s click test, which will get your Dialogflow integrated with Google, and open up a test window on Actions on Google.</p><p>On the test window, we can click Talk to my test app (We will change this in a second), and voila, we have the message from our javascript showing on a google assistant test.</p><p>We can change the name of the assistant in the Develop tab, up at the top.</p><h4>So What’s Happening In The Fulfillment JS?</h4><p>First off, we are using two npm packages, actions-on-google which provides all the fulfillment that both AoG and Dialogflow need, and secondly firebase-functions, which you guessed it, contains helpers for firebase.</p><p>We then create the ‘app’ which is an object that contains all of our intents.</p><p>Each intent that is created passed ‘conv’ which is the conversation object Actions On Google sends. We can use the content of conv to detect information about previous interactions with the user (such as their ID and information about their session with us).</p><p>We return a ‘conv.ask’ object, which contains our return message to the user, ready for them to respond with another intent. We could use ‘conv.close’ to end the conversation if we wanted to end the conversation there.</p><p>Finally, we wrap everything up in a firebase HTTPS function, that deals with the server-side request-response logic for us.</p><p>Again, if we look at the response that is generated:</p><pre>{ &quot;payload&quot;: { &quot;google&quot;: { &quot;expectUserResponse&quot;: true, &quot;richResponse&quot;: { &quot;items&quot;: [ { &quot;simpleResponse&quot;: { &quot;textToSpeech&quot;: &quot;Welcome to a firebase fulfillment&quot; } } ] } } } }</pre><p>We can see that conv.ask has had its text injected into the textToSpeech area. If we had chosen conv.close the expectUserResponse would be set to false and the conversation would close after the message had been delivered.</p><h3>Third-Party Voice Builders</h3><p>Much like the app industry, as voice gains traction, 3rd party tools have started popping up in an attempt to alleviate the load on developers, allowing them to build once deploy twice.</p><p><a href="https://www.jovo.tech/">Jovo </a>is the most popular of the third party frameworks. it’s open source and enables developers to build voice experiences that work across platforms and devices, including Amazon Alexa, Google Assistant, Samsung Bixby, web apps, mobile phones, and more.</p><p>There are also <a href="http://voxa.ai/">Voxa </a>and <a href="https://www.voiceflow.com/">Voiceflow</a>. Each platform offers a different level of abstraction, so It really just depends on how simplified you like your interface.</p><h3>Extending Your Skill</h3><p>Now that you have gotten your head around building a basic ‘Hello World’ skill, there are bells and whistles aplenty that can be added to your skill. These are the cherry on top of the cake of Voice Assistants and will give your users a lot of extra value, leading to repeat custom, and potential commercial opportunity.</p><h4>SSML</h4><p>SSML stands for speech synthesis markup language and operates with a similar syntax to HTML, the key difference being that you are building up a spoken response, not content on a webpage.</p><p>‘SSML’ as a term is a little misleading, it can do so much more than speech synthesis! You can have voices going in parallel, you can include ambiance noises, speechcons (worth a listen to in their own right, think emojis for famous phrases), and music.</p><p><strong>When Should I Use SSML?</strong></p><p>SSML is great; it makes a much more engaging experience for the user, but what is also does, is reduce the flexibility of the audio output. I recommend using it for more static areas of speech. You can use variables in it for names etc, but unless you intend on building an SSML generator, most SSML is going to be pretty static.</p><p>Start with simple speech in your skill, and once it is complete, enhance areas which are more static with SSML, but get your core right before moving on to the bells and whistles. That being said, a recent report says 71% of users prefer a human (real) voice over a synthesized one, so if you have the facility to do so, go out and do it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zmuv_fGIOg-gTXhx.png" /></figure><h4>In Skill Purchases</h4><p>In-skill purchases (or ISP) are similar to the concept of in-app purchases. Skills tend to be free, but some allow for the purchase of ‘premium’ content/subscriptions within the app, these can enhance the experience for a user, unlock new levels on games, or allow access to paywalled content.</p><h4>Multimodal</h4><p>Multimodal responses cover so much more than voice, this is where voice assistants can really shine with complementary visuals on devices that support them. The definition of multimodal experiences is much broader and essentially means multiple inputs (Keyboard, Mouse, Touchscreen, Voice, and so on.).</p><p>Multimodal skills are intended to complement the core voice experience, providing extra complementary information to boost the UX. When building a multimodal experience, remember that voice is the primary carrier of information. Many devices don’t have a screen, so your skill still needs to work without one, so make sure to test with multiple device types; either for real or in the simulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8JB9T04E-uKYV4Is.png" /></figure><h4>Multilingual</h4><p>Multilingual skills are skills that work in multiple languages and open up your skills to multiple markets.</p><p>The complexity of making your skill multilingual is down to how dynamic your responses are. Skills with relatively static responses, e.g. returning the same phrase every time, or only using a small bucket of phrases, are much easier to make multilingual than sprawling dynamic skills.</p><p>The trick with multilingual is to have a trustworthy translation partner, whether that is through an agency or a translator on Fiverr. You need to be able to trust the translations provided, especially if you don’t understand the language being translated into. Google translate will not cut the mustard here!</p><h3>Conclusion</h3><p>If there was ever a time to get into the voice industry, it would be now. Both in its prime and infancy, as well as the big nine, are plowing billions into growing it and bringing voice assistants into everybody’s homes and daily routines.</p><p>Choosing which platform to use can be tricky, but based on what you intend to build, the platform to use should shine through or, failing that, utilize a third-party tool to hedge your bets and build on multiple platforms, especially if your skill is less complicated with fewer moving parts.</p><p>I, for one, am excited about the future of voice as it becomes ubiquitous; screen reliance will reduce and customers will be able to interact naturally with their assistant. But first, it’s up to us to build the skills that people will want from their assistant.</p><p><em>Originally published at </em><a href="https://www.smashingmagazine.com/2019/12/voice-skills-google-assistant-amazon-alexa/"><em>https://www.smashingmagazine.com</em></a><em> on December 23, 2019. Updated March 20th 2020</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7563cd449b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Tech-ade in Review]]></title>
            <link>https://tristolliday.medium.com/a-tech-ade-in-review-b762a77f1043?source=rss-445172c61ea6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b762a77f1043</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[technology-review]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[tech-history]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Tristram Tolliday]]></dc:creator>
            <pubDate>Fri, 20 Dec 2019 11:57:38 GMT</pubDate>
            <atom:updated>2019-12-20T11:57:38.050Z</atom:updated>
            <content:encoded><![CDATA[<h4>A look back from then to now, a decade in our digital world</h4><p>Moores Law means a decade is a long time in tech. Whole empires are born, broken, and dissolved. The last 10 years has marked a revolution in AI, Cloud computing, and nanoscale components. What better time to Look back at the tech that made the decade in hardware, social and software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuIWBHJDN9dGmUtVF3ww_w.jpeg" /></figure><h3>Smart Phones ☎️</h3><p>We started the decade with phones with chins to make Bruce Forsyth jealous, and chiselled away at them until OLED screens came along allowing screens to ooze over the edge of your display and foldables. With more power, biometrics and faster connectivity, the smart phone has replaced the laptop as the device of choice for consumer shopping, browsing and social.</p><p><strong>2010 / 2019<br>iPhone 4 / iPhone 11<br>RAM</strong> 512MB / 4GB<br><strong>Resolution</strong> 960 x 640 / 1792x828<br><strong>Camera</strong> 5MP / 12MP</p><p><strong>RIP</strong><br>Blackberry, Windows Phone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNBDENn3vGVfuEs8DWZ5ug.jpeg" /></figure><h3>TVs 📺</h3><p>High Definition displays existed before the decade began, but flat screen TV’s were still boxy cuboids, rather than the razer thin devices you see today. We have seen a quadruple of resolution to 4K, and more recently folding displays that disappear before the eye. With internet connected smart TVs, streaming services like Netflix(born 1998, streaming since 2007) explode in popularity, and create their own award winning content. In just 10 short years, TVs have gone from a dumb box with a bunch of cables attached to your DVD player, Game Console, Roku Box etc, to the only device you need in your living room, wirelessly streaming everything you could ever need.</p><p><strong>RIP</strong><br>Standard Definition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzmyALW3qwAfxK5SAP7tIg.jpeg" /><figcaption>Facebook has gone through more than a few UI changes</figcaption></figure><h3>Social Media 🔈</h3><p>One of the most divisive technologies of the decade, social media has boomed, at the cost of users privacy. Advertisers have made a fortune in revenues, while Mark Zuckerberg had to appear in court to justify his negligence in the Cambridge Analytica scandal. Expect even more growth in Social, as it has become the primary way for Gen-Z to get their news and purchase goods.</p><p><strong>2010 / 2019<br>Facebook</strong> <a href="https://www.yahoo.com/news/number-active-users-facebook-over-230449748.html?guccounter=1&amp;guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&amp;guce_referrer_sig=AQAAAK0iH4Zdf-4KEFpkhqtuCUUwJ9z1Y2j696tdNpdiAc3L4-a-w3uCFzmddgSZT0Ax6XUi_uZ8ZIpQtgnmKNFrG23QyISWMjBaAHTIlLLwEKQDAlkeqqrRY3E7xYVYd5I5Xo3_1YI7KfDnspDzujXaxUnB4u-Xa6vynXh79ZAbto7s">500 million</a> users / <a href="https://www.statista.com/statistics/264810/number-of-monthly-active-facebook-users-worldwide/">2.45 billion</a> users<br><strong>Twitter</strong> <a href="https://mashable.com/2010/12/16/twitter-stats-2010/?europe=true">100 million</a> users / <a href="https://www.statista.com/statistics/282087/number-of-monthly-active-twitter-users/">330 million</a> users<br><strong>Instagram</strong> <a href="https://www.zdnet.com/article/instagram-passes-50-million-users/">1 million</a> users / <a href="https://www.oberlo.com/blog/instagram-stats-every-marketer-should-know">1 billion</a> users</p><p><strong>RIP</strong><br>Myspace, Bebo, Google+</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISMChrQeekYMwYhT5h85rA.jpeg" /><figcaption>2010 roadster vs. 2019 Cybertruck</figcaption></figure><h3>Electric Cars 🚙</h3><p>Electric cars has steadily increased in popularity in the decade, with countries like Norway reaching 10% penetration. Automation has made huge strides but not reached a comfortable level of reliability to see it being passed into law. Battery improvements have doubled range from 100 to 200 miles before charging. All of this points to the next decade of electric cars being smarter, safer and more reliable, with the only blocker for mass adoption being price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o9SJv-x4DBajDGKHjGuIPQ.jpeg" /></figure><h3>Gaming 🎮</h3><p>Computing power increases can be seen best in 3D gaming, one of the most resource intensive consumer technologies. We started the decade with the birth of HD gaming at home, and end with 4k gaming streaming live from the cloud. <a href="https://medium.com/@tristolliday/top-20-tech-trends-for-2020-1e6287b8c3fe?source=friends_link&amp;sk=3e986e1151e337efb658272677713e43">The streaming revolution is upon us</a>, and Google, Microsoft, Steam and NVidia are all in on the action. Nintendo has huge success this decade by utilising inclusivity and bringing casual gamers into the fold, a demographic that Apple and Hatch have been playing with subscription models for.</p><p><strong>RIP</strong><br>Gametrailers.com, Telltale Games</p><h3>Babies of the 2010s 👶</h3><p>Since the start of the 10s, there are entire categories that didn’t exist. Here is a nod to the companies that were born and broke the mould in under a decade.</p><p><strong>Uber (2011)</strong></p><p>To think you couldn’t just get in a strangers car 10 years ago without an app!</p><p><strong>Stripe (2011)</strong></p><p>Stripe disrupted the way online payments were taken. They are the defacto choice now.</p><p><strong>TikTok (2016)</strong></p><p>The youngster of Social Networks, most associated with Gen-Z.</p><p><strong>Slack (2013)</strong></p><p>The default for workplace communications, reducing email inbox clutter globally.</p><p>That wraps up a techy look at 2010–2019. What big innovations would you have liked to have seen in the list? What are you expecting to see in the <a href="https://medium.com/@tristolliday/top-20-tech-trends-for-2020-1e6287b8c3fe?source=friends_link&amp;sk=3e986e1151e337efb658272677713e43">next decade</a>?</p><p>ABC: Always Be Clappin’ 👏 👏 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b762a77f1043" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>