<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Adam Craig Johnston | Software Developer</title>
	<atom:link href="https://adamjohnston.me/feed/" rel="self" type="application/rss+xml" />
	<link>https://adamjohnston.me</link>
	<description>Software Developer, Technology Enthusiast, Retro and Husband and Dad based in Melbourne.</description>
	<lastBuildDate>Mon, 31 Jan 2022 12:30:38 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.11</generator>
<site xmlns="com-wordpress:feed-additions:1">140396600</site>	<item>
		<title>NovuscodeLibrary update for Delphi 11</title>
		<link>https://adamjohnston.me/novuscodelibrary-update-for-delphi-11/</link>
					<comments>https://adamjohnston.me/novuscodelibrary-update-for-delphi-11/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Mon, 17 Jan 2022 23:46:13 +0000</pubDate>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[NovuscodeLibrary]]></category>
		<guid isPermaLink="false">https://adamjohnston.me/?p=1147</guid>

					<description><![CDATA[An update to the NovuscodeLibrary &#8211; a Delphi library of utility functions and non-visual classes for Delphi 11 is now ready. https://github.com/novuslogic/NovuscodeLibrary Changelog ToDo]]></description>
										<content:encoded><![CDATA[
<p>An update to the NovuscodeLibrary &#8211; a Delphi library of utility functions and non-visual classes for Delphi 11 is now ready.</p>



<p><a href="https://github.com/novuslogic/NovuscodeLibrary">https://github.com/novuslogic/NovuscodeLibrary</a></p>



<p><a rel="noreferrer noopener" href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/Changelog.md" target="_blank">Changelog</a></p>



<p><a rel="noreferrer noopener" href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/ToDo.md" target="_blank">ToDo</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/novuscodelibrary-update-for-delphi-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1147</post-id>	</item>
		<item>
		<title>NovuscodeLibrary update for Delphi 10.4</title>
		<link>https://adamjohnston.me/novuscodelibrary-update-for-delphi-10-4/</link>
					<comments>https://adamjohnston.me/novuscodelibrary-update-for-delphi-10-4/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Sun, 24 Jan 2021 23:21:25 +0000</pubDate>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[NovuscodeLibrary]]></category>
		<guid isPermaLink="false">https://adamjohnston.me/?p=1108</guid>

					<description><![CDATA[An update to the NovuscodeLibrary &#8211; a Delphi library of utility functions and non-visual classes for Delphi 10.4 is now ready. https://github.com/novuslogic/NovuscodeLibrary The next big goal will be a Documentation Wiki using CodeImatic.codegen &#8211; CodeDoc plugin. Still a work in progress. https://github.com/novuslogic/NovuscodeLibrary/issues/11 Also an upgrade and new samples. https://github.com/novuslogic/NovuscodeLibrary/issues/12 Changelog ToDo]]></description>
										<content:encoded><![CDATA[
<p>An update to the NovuscodeLibrary &#8211; a Delphi library of utility functions and non-visual classes for Delphi 10.4 is now ready.</p>



<p><a href="https://github.com/novuslogic/NovuscodeLibrary">https://github.com/novuslogic/NovuscodeLibrary</a></p>



<p>The next big goal will be a Documentation Wiki using CodeImatic.codegen &#8211; CodeDoc plugin. Still a work in progress.</p>



<p><a href="https://github.com/novuslogic/NovuscodeLibrary/issues/11" target="_blank" rel="noreferrer noopener">https://github.com/novuslogic/NovuscodeLibrary/issues/11</a></p>



<p>Also an upgrade and new samples. </p>



<p><a href="https://github.com/novuslogic/NovuscodeLibrary/issues/12">https://github.com/</a><a href="https://github.com/novuslogic/NovuscodeLibrary/issues/12" target="_blank" rel="noreferrer noopener">novuslogic</a><a href="https://github.com/novuslogic/NovuscodeLibrary/issues/12">/NovuscodeLibrary/issues/12</a></p>



<p><a rel="noreferrer noopener" href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/Changelog.md" target="_blank">Changelog</a></p>



<p><a rel="noreferrer noopener" href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/ToDo.md" target="_blank">ToDo</a></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/novuscodelibrary-update-for-delphi-10-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1108</post-id>	</item>
		<item>
		<title>and that was 2020 in Review.</title>
		<link>https://adamjohnston.me/and-that-was-2020-in-review/</link>
					<comments>https://adamjohnston.me/and-that-was-2020-in-review/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Tue, 29 Dec 2020 11:05:02 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://adamjohnston.me/?p=1085</guid>

					<description><![CDATA[There has been little content on this blog, due to the human malware sweeping the world. Some people have loss their jobs, or had reduced hours in my case I have been hyper-busy with my main employment. It seems my work still is keeping me away, from my side projects and adding content to this [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>There has been little content on this blog, due to the human malware sweeping the world. </p>



<p>Some people have loss their jobs, or had reduced hours in my case I have been  hyper-busy with my main employment.</p>



<p>It seems my work still is keeping me away,  from my side projects and adding content to this blog. However, some progress has happened.</p>



<p>So my thoughts for the new year &#8230; more time on my side projects with luck.</p>



<p>Say safe and happy new year.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/and-that-was-2020-in-review/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1085</post-id>	</item>
		<item>
		<title>and that was 2019 in Review.</title>
		<link>https://adamjohnston.me/and-that-was-2019-in-review/</link>
					<comments>https://adamjohnston.me/and-that-was-2019-in-review/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Mon, 30 Dec 2019 12:00:36 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[DelphiAWSSDK]]></category>
		<category><![CDATA[Lazarus]]></category>
		<category><![CDATA[NovuscodeLibrary]]></category>
		<category><![CDATA[Using WordPress on Amazon Lightsail]]></category>
		<guid isPermaLink="false">https://adamjohnston.me/?p=1020</guid>

					<description><![CDATA[This blog has been very quiet this year, lots of reasons, mostly work-related has kept me away. Some milestones were achieved this year: NovuscodeLibrary NovuscodeLibrary is a Delphi library of utility functions and non-visual classes. New package NovusCodeLibrary_cURL.dpk &#8211; cURL function library New package NovusCodeLibrary_WebUtils.dpk &#8211; Web functions library Now support Delphi 10.3 and packages [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-container-1 wp-block-group"><div class="wp-block-group__inner-container">
<p>This blog has been very quiet this year, lots of reasons, mostly work-related has kept me away.</p>
<p>Some milestones were achieved this year:</p>
<h3>NovuscodeLibrary</h3>
<p>NovuscodeLibrary is a Delphi library of utility functions and non-visual classes.</p>
<ul>
<li>New package NovusCodeLibrary_cURL.dpk &#8211; cURL function library</li>
<li>New package NovusCodeLibrary_WebUtils.dpk &#8211; Web functions library</li>
<li>Now support Delphi 10.3 and packages</li>
</ul>
<p><a href="https://github.com/novuslogic/NovuscodeLibrary">https://github.com/novuslogic/NovuscodeLibrary</a></p>
<p><a href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/Changelog.md">Changelog</a></p>
<p><a href="https://github.com/novuslogic/NovuscodeLibrary/blob/master/ToDo.md">ToDo</a></p>
<p>Adding features or fixing bugs to Novuscodelibrary, it’s general done organically. The next feature supported:</p>
<ul>
<li>The Delphi Package Manager Project <a href="https://github.com/DelphiPackageManager/">https://github.com/DelphiPackageManager/</a></li>
</ul>
<h3>CodeImatic</h3>
<p>CodeImatic is a PascalScript based toolchain for building and deployment.</p>
<h4>CodeImatc.build</h4>
<p>CodeImatic.build is a PascalScript based build and deployment engine.</p>
<p><a href="https://github.com/novuslogic/CodeImatic.build">https://github.com/novuslogic/CodeImatic.build</a></p>
<h4>CodeImatc.codegen</h4>
<p>CodeImatic.codegen is a PascalScript template driven source code and static website generator.</p>
<p><a href="https://github.com/novuslogic/CodeImatic.codegen">https://github.com/novuslogic/CodeImatic.codegen</a></p>
<p>CodeImatic &#8211; Multiple features have been added and moving towards  an early beta release next year.</p>
<h3>DelphiAWSSDK</h3>
<p>The Delphi AWS SDK enables Delphi/Pascal developers to easily work with Amazon Web Services.</p>
<p><a href="https://github.com/novuslogic/DelphiAWSSDK" target="_blank" rel="noopener noreferrer">DelphiAWSSDK</a></p>
<p><a href="https://github.com/novuslogic/DelphiAWSSDK/blob/master/Changelog.md">Changelog</a></p>
<p>The next version of DelphiAWSDK v.04 will have a full translation of Amazon DynamoDB <a href="https://aws.amazon.com/dynamodb/">https://aws.amazon.com/dynamodb/ </a>using the new experimental Code-Generation based on CodeImatic.codegen <a href="https://github.com/novuslogic/CodeImatic.codegen">https://github.com/novuslogic/CodeImatic.codegen</a></p>
<h3>Using WordPress on Amazon Lightsail</h3>
<p><a href="https://leanpub.com/wordpressawslightsail/">https://leanpub.com/wordpressawslightsail/</a></p>
<p>I’m develpoing  a new book called &#8220;Using WordPress on Amazon Lightsail&#8221; which will be pushlished early next year, so sign up with the &#8220;Notify Me When This Is Published” button.</p>
<p>Happy New Year.</p>
</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/and-that-was-2019-in-review/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1020</post-id>	</item>
		<item>
		<title>DelphiAWSSDK v0.3.0</title>
		<link>https://adamjohnston.me/delphiawssdk-v0-3-0/</link>
					<comments>https://adamjohnston.me/delphiawssdk-v0-3-0/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Mon, 05 Nov 2018 07:14:00 +0000</pubDate>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[DelphiAWSSDK]]></category>
		<category><![CDATA[Lazarus]]></category>
		<guid isPermaLink="false">https://adamjohnston.me/?p=1005</guid>

					<description><![CDATA[Delphi AWS SDK has new support for Lazarus / fpc 1.8 or higher. https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.3.0 Summary of updates New Lazarus CreateTable1 DynamoDB Sample Refactored Core for Lazarus / fpc 1.8 or higher Moved Samples Samples\DynamoDB to Samples\DynamoDB\Delphi]]></description>
										<content:encoded><![CDATA[<p dir="auto">Delphi AWS SDK has new support for Lazarus / fpc 1.8 or higher.</p>
<p dir="auto"><a href="https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.3.0" target="_blank" rel="noopener noreferrer">https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.3.0</a></p>
<p>Summary of updates</p>
<ul>
<li>New Lazarus CreateTable1 DynamoDB Sample</li>
<li>Refactored Core for Lazarus / fpc 1.8 or higher</li>
<li>Moved Samples Samples\DynamoDB to Samples\DynamoDB\Delphi</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/delphiawssdk-v0-3-0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1005</post-id>	</item>
		<item>
		<title>DelphiAWSSDK v0.2.0</title>
		<link>https://adamjohnston.me/delphiawssdk_v0-2-0/</link>
					<comments>https://adamjohnston.me/delphiawssdk_v0-2-0/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Mon, 03 Sep 2018 14:05:01 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[DelphiAWSSDK]]></category>
		<guid isPermaLink="false">https://adamjohnston.me/?p=989</guid>

					<description><![CDATA[The Delphi AWS SDK enables Delphi/Pascal developers to easily work with Amazon Web Services. https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.2.0 Summary of updates Updated support Delphi XE to Delphi X10.2 Tested support for Windows 32/64Bit, MacOSX 32Bit New TAmazonIndyRESTClient and TAmazonDelphiRESTClient classes Updated TAmazonSignatureV4 class to be less reliant on Indy,  allowing for cross-platform development. THashSHA2 supported in unit Amazon.Utils for Delphi XE8 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p dir="ltr">The Delphi AWS SDK enables Delphi/Pascal developers to easily work with Amazon Web Services.</p>
<p dir="ltr"><a href="https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.2.0">https://github.com/novuslogic/DelphiAWSSDK/releases/tag/v0.2.0</a></p>
<p dir="ltr">Summary of updates</p>
<ul>
<li>Updated support Delphi XE to Delphi X10.2</li>
<li>Tested support for Windows 32/64Bit, MacOSX 32Bit</li>
<li>New TAmazonIndyRESTClient and TAmazonDelphiRESTClient classes</li>
<li>Updated TAmazonSignatureV4 class to be less reliant on Indy,  allowing for cross-platform development.</li>
<li>THashSHA2 supported in unit Amazon.Utils for Delphi XE8 and up.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/delphiawssdk_v0-2-0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">989</post-id>	</item>
		<item>
		<title>DelphiLibSass &#8211;  A Delphi wrapper for LibSass</title>
		<link>https://adamjohnston.me/delphilibsass-delphi-wrapper-libsass/</link>
					<comments>https://adamjohnston.me/delphilibsass-delphi-wrapper-libsass/#comments</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Fri, 07 Jul 2017 10:51:49 +0000</pubDate>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Scss]]></category>
		<guid isPermaLink="false">http://52.63.51.177/?p=937</guid>

					<description><![CDATA[DelphiLibSass is Delphi wrapper around libsass a C/C++ implementation of a Sass compiler. Based on the version of libsass 3.4 http://libsass.org DelphiLibSass API is simply composed of a main TDelphiLibSass class: TDelphiLibSass.ConvertToCss converts a SCSS string to a CSS TDelphiLibSass.ConvertFileToCss converts a SCSS file to a CSS Basic example on how to use the Delphi [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>
DelphiLibSass is Delphi wrapper around <a href="https://github.com/sass/libsass" target="_blank">libsass</a> a C/C++ implementation of a Sass compiler.
</p>
<p>
Based on the version of libsass 3.4 <a href="http://libsass.org" target="_blank">http://libsass.org</a>
</p>
<p>
DelphiLibSass API is simply composed of a main <strong>TDelphiLibSass</strong> class:
</p>
<p><strong>TDelphiLibSass.ConvertToCss</strong> converts a SCSS string to a CSS</p>
<pre class="brush: delphi; title: ; notranslate">
Try
  FDelphiLibSass := TDelphiLibSass.Create('libsass.dll');
  FDelphiLibSass.LoadDll;

  FScssResult := FDelphiLibSass.
      ConvertToCss('$font-stack: Helvetica, sans-serif; body { font: 100% $font-stack; }');

  writeln(FScssResult.CSS);
Finally
  FScssResult.Free;
  FDelphiLibSass.Free; 
end;
</pre>
<p><strong>TDelphiLibSass.ConvertFileToCss</strong> converts a SCSS file to a CSS</p>
<pre class="brush: delphi; title: ; notranslate">
Try
  FDelphiLibSass := TDelphiLibSass.Create('libsass.dll');
  FDelphiLibSass.LoadDll;

  FScssResult := FDelphiLibSass.ConvertFileToCss('test.scss');

  writeln(FScssResult.CSS);
Finally
  FScssResult.Free;
  FDelphiLibSass.Free; 
end;
</pre>
<p>Basic example on how to use the Delphi wrapper</p>
<p><a href="https://github.com/novuslogic/DelphiLibSass/tree/master/Sample" target="_blank">https://github.com/novuslogic/DelphiLibSass/tree/master/Sample</a></p>
<h3>References</h3>
<p>DelphiLibSass<br />
<a href="https://github.com/novuslogic/DelphiLibSass/" target="_blank">https://github.com/novuslogic/DelphiLibSass/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/delphilibsass-delphi-wrapper-libsass/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">937</post-id>	</item>
		<item>
		<title>DelphiVersions</title>
		<link>https://adamjohnston.me/delphiversions/</link>
					<comments>https://adamjohnston.me/delphiversions/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Tue, 31 Jan 2017 12:21:12 +0000</pubDate>
				<category><![CDATA[Delphi]]></category>
		<guid isPermaLink="false">http://52.63.51.177/?p=881</guid>

					<description><![CDATA[I&#8217;ve many projects that require different versions of Delphi.&#160; I&#8217;ve viewed many include files,&#160; not completely satisfy with any solution that was clean. DelphiVersions is an include file of Delphi version compiler directives,&#160;&#160; supporting&#160; Delphi 2007 &#8211; Delphi 10.2. https://github.com/novuslogic/DelphiVersions]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve many projects that require different versions of Delphi.&nbsp; I&#8217;ve viewed many include files,&nbsp; not completely satisfy with any solution that was clean.</p>
<p>DelphiVersions is an include file of Delphi version compiler directives,&nbsp;&nbsp; supporting&nbsp; Delphi 2007 &#8211; Delphi 10.2.</p>
<p><a href="https://github.com/novuslogic/DelphiVersions" target="_blank">https://github.com/novuslogic/DelphiVersions</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/delphiversions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">881</post-id>	</item>
		<item>
		<title>Simple 301 Redirect for ASP.NET</title>
		<link>https://adamjohnston.me/simple-301-redirect-asp-net/</link>
					<comments>https://adamjohnston.me/simple-301-redirect-asp-net/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Sat, 02 Aug 2014 09:09:49 +0000</pubDate>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[ASP.NET Webforms]]></category>
		<category><![CDATA[C#]]></category>
		<guid isPermaLink="false">http://52.63.51.177/?p=766</guid>

					<description><![CDATA[A 301 Redirect is a way of sending search engines and user traffic to a specific? URL ,? also telling the search engines to do a permanently move on? that URL. Implementing 301 redirect in ASP.NET Webforms or ASP.NET MVC; Simply use the Application_BeginRequest event in Global.asax. Then retrieve the URL from the Web.Config file [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>A 301 Redirect is a way of sending search engines and user traffic to a specific? URL ,? also telling the search engines to do a permanently move on? that URL.</p>
<p>Implementing 301 redirect in ASP.NET Webforms or ASP.NET MVC; Simply use the <em>Application_BeginRequest</em> event in <em>Global.asax</em>. Then retrieve the URL from the <em>Web.Config</em> file or a <em>Repository</em>.</p>
<pre class="brush: plain; title: ; notranslate">
protected void Application_BeginRequest(Object sender, EventArgs e)
{
string path = &quot;&quot;;
switch (Request.Url.Scheme)
{

case &quot;https&quot;:
Response.AddHeader(&quot;Strict-Transport-Security&quot;, &quot;max-age=300&quot;);
break;
case &quot;http&quot;:
    if (Request.Url.PathAndQuery == &quot;/&quot;)
     {

    path = &quot;https://&quot; + WebUtils.WebConfigUtils.GetAppSettingskey(&quot;SiteURL&quot;) + &quot;/&quot;;

    }
else
    {
     path = &quot;https://&quot; + WebUtils.WebConfigUtils.GetAppSettingskey(&quot;SiteURL&quot;) + &quot;/&quot; + Request.Url.PathAndQuery;

    }
    Response.Status = &quot;301 Moved Permanently&quot;;
    Response.AddHeader(&quot;Location&quot;, path);
    break;
   }
}

</pre>
<ul>
<li><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">When a URL request for an </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">http</em><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"> is made, the switch statement responses by inserting a </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">301 Moved Permanently </em><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">and the new location path into the HTTP header .</span></li>
</ul>
<ul>
<li><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">Store the SiteURL in the </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">Web.Config</em><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;"> or a </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">Repository.</em></li>
</ul>
<ul>
<li><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">When a URL request for an </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">https </em><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">is made,the switch statement responses by in inserting </span><em style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">Strict-Transport-Security </em><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">telling the browser to prevent any communications from being sent for HTTP.</span></li>
</ul>
<p>Test this function locally in your development environment use <em>IIS Express SSL option.? </em></p>
<h3>References</h3>
<p>301 Moved Permanently<br />
<a href="http://moz.com/learn/seo/redirection">http://moz.com/learn/seo/redirection</a></p>
<p>HTTP Strict Transport Security<br />
<a href="https://www.owasp.org/index.php/HTTP_Strict_Transport_Security">https://www.owasp.org/index.php/HTTP_Strict_Transport_Security</a></p>
<p>Global.asax<br />
<a title="http://msdn.microsoft.com/en-us/library/1xaas8a2%28v=vs.71%29.aspx" href="http://msdn.microsoft.com/en-us/library/1xaas8a2%28v=vs.71%29.aspx">http://msdn.microsoft.com/en-us/library/1xaas8a2%28v=vs.71%29.aspx</a></p>
<p>NovusCodeLibrary.NET &#8211; Utilities Library for .NET<br />
<a title="https://github.com/novuslogic/NovuscodeLibrary.NET" href="https://github.com/novuslogic/NovuscodeLibrary.NET">https://github.com/novuslogic/NovuscodeLibrary.NET</a></p>
<p>Working with SSL at Development Time is easier with IISExpress<br />
<a href="http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx">Working with SSL at Development Time is easier with IISExpress</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/simple-301-redirect-asp-net/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">766</post-id>	</item>
		<item>
		<title>Encoding a ASP.NET MVC 4 Model for Javascript within a Razor Page</title>
		<link>https://adamjohnston.me/encoding-asp-net-mvc-4-model-javascript-within-razor-page/</link>
					<comments>https://adamjohnston.me/encoding-asp-net-mvc-4-model-javascript-within-razor-page/#respond</comments>
		
		<dc:creator><![CDATA[Adam Craig Johnston]]></dc:creator>
		<pubDate>Sun, 06 Oct 2013 09:50:32 +0000</pubDate>
				<category><![CDATA[ASP.NET MVC]]></category>
		<guid isPermaLink="false">http://52.63.51.177/?p=705</guid>

					<description><![CDATA[Sometimes you want to pass a property of a model to a Javascript variable, by encoding an ASP.NET 4 model into a Javascript variable, ?using ?HTML Helper and a strongly-typed model within a Razor Page. Razor Page Razor Page &#160; The model must be strongly-typed. Model encoding must be done at the top of the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Sometimes you want to pass a property of a model to a Javascript variable, by encoding an ASP.NET 4 model into a Javascript variable, ?using ?HTML Helper and a strongly-typed model within a Razor Page. Razor Page</p>
<h3>Razor Page</h3>
<pre class="brush: plain; title: ; notranslate">
@model MyWebApp.Models.Foo
@{
ViewBag.Title = &quot;Foo&quot;;
}

&lt;script type=&quot;text/javascript&quot;&gt;
var _model = @Html.Raw(Json.Encode(Model))
&lt;/script&gt;
@Scripts.Render(&quot;/scripts/Foo.js&quot;)
</pre>
<p>&nbsp;</p>
<ul>
<li>The model must be strongly-typed.</li>
<li>Model encoding must be done at the top of the Razor page to allow the encoded JSON variable to be accessible.</li>
<li>JQuery must be included.</li>
</ul>
<p>&nbsp;</p>
<h3>Example output</h3>
<pre class="brush: plain; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
var _model = {&quot;Firstname&quot;:&quot;Adam&quot;,&quot;Lastname&quot;:&quot;Johnston&quot;}
&lt;/script&gt;

_model.Firstname
_model.Lastname
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://adamjohnston.me/encoding-asp-net-mvc-4-model-javascript-within-razor-page/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">705</post-id>	</item>
	</channel>
</rss>
