<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>2017-09 on Funky Si's Blog (Dev)</title><link>https://blog-dev.funkysi1701.com/2017/09/</link><description>Recent content in 2017-09 on Funky Si's Blog (Dev)</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>funkysi1701@gmail.com (Simon Foster)</managingEditor><webMaster>funkysi1701@gmail.com (Simon Foster)</webMaster><lastBuildDate>Fri, 22 Sep 2017 20:00:45 +0000</lastBuildDate><atom:link href="https://blog-dev.funkysi1701.com/2017/09/index.xml" rel="self" type="application/rss+xml"/><item><title>Star Trek is back with Discovery</title><link>https://blog-dev.funkysi1701.com/posts/2017/star-trek-is-back-with-discovery/</link><author>funkysi1701@gmail.com (funkysi1701)</author><pubDate>Fri, 22 Sep 2017 20:00:45 +0000</pubDate><guid>https://blog-dev.funkysi1701.com/posts/2017/star-trek-is-back-with-discovery/</guid><category term="StarTrek">StarTrek</category><category term="Discovery">Discovery</category><media:content medium="image" type="image/png" url="https://blog-dev.funkysi1701.com/images/2017/gqojtfz1dhmxoiri7g8p.png"/><description>&lt;p&gt;In &lt;a href="https://www.funkysi1701.com/posts/2015/star-trek-is-back-in-2017/" target="_blank" rel="noopener noreferrer"&gt;November 2015&lt;/a&gt;
it was announced that a new Star Trek series was going to be launched. It has been a long wait with multiple delays but Star Trek Discovery is finally here.&lt;/p&gt;
&lt;p&gt;Star Trek Discovery launches in the US on 24th September and in the UK on 25th September.&lt;/p&gt;
&lt;iframe title="YouTube video: Star Trek Discovery trailer" src="https://www.youtube.com/embed/UoV3kc05Nwc?rel=0" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"&gt;&lt;/iframe&gt;
&lt;p&gt;Lets have a look back how we got here.&lt;/p&gt;
&lt;p&gt;Star Trek was created by Gene Roddenberry in the 1960s. He imagined a show where we would explore the galaxy while also exploring the human condition. He described it as a wagon train to the stars. However it was cancelled after 79 episodes and three seasons due to budget cuts and low viewers.&lt;/p&gt;
&lt;p&gt;After cancellation its popularity boomed in reruns. In the mid 1970s an animated series was created. But demand for Star Trek continued until a new Star Trek show was commissioned called Phase Two.&lt;/p&gt;
&lt;p&gt;In 1977 Star Wars came out, and the phase two idea was cancelled and turned into a movie. In 1979 we got Star Trek The Motion Picture. It went massively over budget and failed to really capture the Star Trek spirit.&lt;/p&gt;
&lt;p&gt;A much cheaper sequel was created in 1982 Star Trek II: The Wrath of Khan with Roddenberry taking more of a back seat. A film widely considered to be one of the best trek films. Four more feature films starring the original cast were made.&lt;/p&gt;
&lt;p&gt;However in 1987 Gene Roddenberry teamed up with Rick Berman and The Next Generation was created with a brand new cast. The series ran for seven seasons set roughly a century after the adventures of Kirk and Spock.&lt;/p&gt;
&lt;p&gt;Popularity of Star Trek soured and this led Rick Berman to help create the spin off series Deep Space 9, Voyager and lastly Enterprise along with four feature films continuing the adventures of the TNG cast. When Enterprise was cancelled in 2005, Star Trek appeared to be dead after 18 years on TV.&lt;/p&gt;
&lt;p&gt;However in 2009 movie creator JJ Abrams recast the classic crew for the big screen. The film was big on action, but took place in an alternative timeline allowing for familiar characters to have new adventures without interfering with events depicted in the TV shows.&lt;/p&gt;
&lt;p&gt;Two sequels to this film have been produced and are bringing Star Trek back into popularity. This has given rise to Discovery. Star Trek is returning to the TV screen and it is going to be great.&lt;/p&gt;
&lt;p&gt;
&lt;img class="img-fluid" alt="Discovery" src="https://blog-dev.funkysi1701.com/images/2017/gqojtfz1dhmxoiri7g8p.png" loading="lazy"
width="800" height="450"
/&gt;
&lt;/p&gt;</description></item><item><title>Azure Friday</title><link>https://blog-dev.funkysi1701.com/posts/2017/azure-friday/</link><author>funkysi1701@gmail.com (funkysi1701)</author><pubDate>Mon, 18 Sep 2017 20:00:45 +0000</pubDate><guid>https://blog-dev.funkysi1701.com/posts/2017/azure-friday/</guid><category term="Azure">Azure</category><category term="ApplicationInsights">ApplicationInsights</category><description>&lt;p&gt;I think Azure is great, but there is loads to it so I can never know about all of its features. There is a video series hosted by Scott Hanselman called &lt;a href="https://learn.microsoft.com/en-us/shows/azure-friday" target="_blank" rel="noopener noreferrer"&gt;Azure Fridays&lt;/a&gt;
which I have started to watch in an effort to keep more up to date about some of its cool features.&lt;/p&gt;
&lt;iframe title="Azure Friday: Debug .NET apps in production with the Snapshot Debugger in Application Insights" src="https://learn.microsoft.com/en-us/shows/azure-friday/debug-net-apps-in-production-snapshot-debugger-in-application-insights/player" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen"&gt;&lt;/iframe&gt;
&lt;p&gt;I watched this video recently and it is all about application insights and new ways you can debug your web applications by creating snapshots. I am a big fan of application insights so adding extra ways to debug my apps is a big win for me. Once I get this feature working in my code I will no doubt blog about it.&lt;/p&gt;</description></item><item><title>Azure Functions</title><link>https://blog-dev.funkysi1701.com/posts/2017/azure-functions/</link><author>funkysi1701@gmail.com (funkysi1701)</author><pubDate>Tue, 12 Sep 2017 20:00:45 +0000</pubDate><guid>https://blog-dev.funkysi1701.com/posts/2017/azure-functions/</guid><category term="Azure">Azure</category><category term="DevOps">DevOps</category><description>&lt;p&gt;I recently blogged about using &lt;a href="https://www.funkysi1701.com/posts/2017/using-azure-webjobs-to-automate-stuff/" target="_blank" rel="noopener noreferrer"&gt;Azure Web Jobs&lt;/a&gt;
, Azure Function is another way of doing the same thing, lets look at how they work.&lt;/p&gt;
&lt;p&gt;(Sorry its been a while since I blogged but I suspect an erratic schedule will continue for the next few months.)&lt;/p&gt;
&lt;p&gt;To create an Azure Function go to the Azure portal and click add new and search for &amp;ldquo;Function App&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Give your app a name and select the usual resource group and location settings.&lt;/p&gt;
&lt;p&gt;Now when you open Function Apps you should see your new app.&lt;/p&gt;
&lt;p&gt;I want my Function App to run on a schedule so I clicked the + next to functions and selected TimerTrigger. I am a c# programmer so I selected this option as well.&lt;/p&gt;
&lt;p&gt;Give your function a name and specify using the usual cron notation how often it should run. I want mine to run at 9.30pm each night so use 0 30 21 * * *&lt;/p&gt;
&lt;p&gt;Now comes the code bit. By default you get a window with the following code in it&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-csharp" data-lang="csharp"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;using&lt;/span&gt; System;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;public&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;static&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;void&lt;/span&gt; Run(TimerInfo myTimer, TraceWriter log)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; log.Info(&lt;span style="color:#e6db74"&gt;$&amp;#34;C# Timer trigger function executed at: {DateTime.Now}&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It is entirely up to you what you get your function to do. In my case I just wanted to call a URL on a schedule so I created some code that used httpclient.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-csharp" data-lang="csharp"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;using&lt;/span&gt; System;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;using&lt;/span&gt; System.Net.Http;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;public&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;static&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;async&lt;/span&gt; Task Run(TimerInfo myTimer, TraceWriter log)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; log.Info(&lt;span style="color:#e6db74"&gt;$&amp;#34;Buffer 0 function executed at: {DateTime.Now}&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; HttpClient client = &lt;span style="color:#66d9ef"&gt;new&lt;/span&gt; HttpClient();
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;var&lt;/span&gt; result = &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; client.GetAsync(&lt;span style="color:#e6db74"&gt;&amp;#34;URL&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;string&lt;/span&gt; resultContent = &lt;span style="color:#66d9ef"&gt;await&lt;/span&gt; result.Content.ReadAsStringAsync();
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; log.Info(resultContent);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once you have created your app and it has run you can use the monitor section to view success and failures.&lt;/p&gt;
&lt;p&gt;There is loads more you can do with Azure Function but this is a good place to start.&lt;/p&gt;</description></item></channel></rss>