<?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/"
	>

<channel>
	<title>snippet Archives - WardNet</title>
	<atom:link href="https://www.wardnet.co.uk/tag/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wardnet.co.uk/tag/snippet/</link>
	<description>Infrastructure, ERP and General Technology Blog</description>
	<lastBuildDate>Sun, 18 Feb 2018 12:23:27 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2026/01/wp-1767387074640.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>snippet Archives - WardNet</title>
	<link>https://www.wardnet.co.uk/tag/snippet/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">63479081</site>	<item>
		<title>Few things to cover&#8230;</title>
		<link>https://www.wardnet.co.uk/few-things-to-cover/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Mon, 19 Feb 2018 09:30:14 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Career]]></category>
		<category><![CDATA[Epicor]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Twitter]]></category>
		<guid isPermaLink="false">https://www.wardnet.co.uk/?p=505</guid>

					<description><![CDATA[<p>Firstly, thank you for stopping by, taking time to view my blog, read my posts and hopefully take something away</p>
<p><a href="https://www.wardnet.co.uk/few-things-to-cover/">Few things to cover&#8230;</a></p>
]]></description>
										<content:encoded><![CDATA[<p>Firstly, thank you for stopping by, taking time to view my blog, read my posts and hopefully take something away from them.</p>
<p>If you do happen to like the posts on here, then please do say so; retweet, Facebook share, LinkedIn, whatever, it would be great to get more of my content out there, and more of you on here!</p>
<p>Also If you have any post requests or tech questions, please send those over too, Twitter is possibly the best for that <a href="http://twitter.com/jaward916">@jaward916</a></p>
<p>Secondly, apologies for the lack of posts during February. Over the Christmas break I had some good ideas which I made lots of notes for then came up with the 4 posts during Januray, however the ideas have dried up (already) and family related things have meant less free weekends. The weekday&#8217;s are taken up with the job, typically Sundays are when I get &#8220;me&#8221; time to do some techy stuff for my benfit rather than for customers!</p>
<p>Finally&#8230;</p>
<p>Whilst I don&#8217;t have a nice full topic to write up for this week (I promise there are some ideas bouncing around in my head) what I do have is a snippet of 2018 so far in my world of tech/code/software etc.</p>
<p>During January I spent many hours getting to grips with a new major release of the software I work with, as I&#8217;m a little bit of a nerd, a lot of those hours were spent in my own time, drilling down into things, working scenarios out, deplyoment strategies etc. What I ended up with by last week was a full test scenario, remeniscient of a real world deployment. Effectivley emulating what a customer would have. The really cool thing is this allows me to very quickly test out scenarios, when a customer reports something &#8220;not working&#8221; I can run it through my servers and give them an answer same day along the lines of (usually) &#8220;try this, I think you&#8217;ve done X in the wrong place&#8221;. This is in no way a bypass to my wonderful colleagues in Support, but more of a way to assist the customer with getting their deployment up and running. I don&#8217;t generally delve into the applications, I&#8217;m not that kind of consultant. What I do is design deployments and implement them, I get the back end of a system up and running. The latest version included quite a few new technical enhancements, so getting experienced with them is an essential part of me being able to do my job!</p>
<p>February hasseen a few more interesting engagements for me, site visits all over the place (on top of delivering 2 training courses during January), with some more lined up, possibly even abroad.</p>
<p>What I am being asked to do now is anlyse, review, and in some cases redesign or reimplement deployments. Not because what they have was done wrong to start with, far from it, but more to help them become future-proof, employ best practices and become more agile as the world around us is changing, and the software adjusts to match. There&#8217;s no wheel reinvention, just a set of new tyres here and a bit of air there.</p>
<p>I write on here a lot about SQL Server as it is the underlying DB server platform for all systems I support. Another area of SQL that has always interested me is SSRS (SQL Server Reporting Services), basically a very smart, sometimes fiddly report generation toolset. What I have been able to do over the last few weeks is take some reports, rip them apart, analyse a few minor but irritating issues and develop solutoins to those problems. The strange thing is that I&#8217;ve not been trained in SSRS, or had the change do do anything with it prior ot this. I just saw an issue, delved straight into the SSRS builder and worked it out, for myself. I forgot I had those abillites and it&#8217;s been refreshing to remember how good I used to be solving new problems.</p>
<p>I&#8217;m thinking some SSRS tips in a post may be some decent content in the future, think I&#8217;ll build the scrapbook up on those!</p>
<p>&nbsp;</p>
<p>That&#8217;s it for an update, I&#8217;ve also updated the About page on this site to reflect the last 2 years!</p>
<p>&nbsp;</p>
<p><a href="https://www.wardnet.co.uk/few-things-to-cover/">Few things to cover&#8230;</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">505</post-id>	</item>
		<item>
		<title>HTML 5 Video Code</title>
		<link>https://www.wardnet.co.uk/html-5-video-code/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Fri, 25 Oct 2013 10:25:17 +0000</pubDate>
				<category><![CDATA[redsumo]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[initial volume]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[video]]></category>
		<guid isPermaLink="false">http://wardnet.co.uk/?p=278</guid>

					<description><![CDATA[<p>With the new features of HTML5 being constantly shoved in our faces, I though I&#8217;d share a little snippet of</p>
<p><a href="https://www.wardnet.co.uk/html-5-video-code/">HTML 5 Video Code</a></p>
]]></description>
										<content:encoded><![CDATA[<p>With the new features of HTML5 being constantly shoved in our faces, I though I&#8217;d share a little snippet of code that adjusts the initial volume of a video on a HTML page- this particular example is used at <a title="Redsumo News" href="http://www.redsumo.com/blog" target="_blank">http://www.redsumo.com/blog</a> for the video header on the main page. The video was too loud when the client computer volume was at 100% so, we decided it needed lowering, without re-encoding the video.</p>
<p>&nbsp;</p>
<p><span style="font-family: 'courier new', courier;"><span style="color: #0000ff;">&lt;video</span><span style="color: #ff0000;"> id</span>=<span style="color: #ff6600;">&#8220;welcomevid&#8221;</span> <span style="color: #ff0000;">width</span>=<span style="color: #ff6600;">&#8220;620&#8221;</span> <span style="color: #ff0000;">height</span>=<span style="color: #ff6600;">&#8220;250&#8221;</span> <span style="color: #ff0000;">controls</span>=<span style="color: #ff6600;">&#8220;controls&#8221;</span> <span style="color: #ff0000;">autoplay</span>=<span style="color: #ff6600;">&#8220;autoplay&#8221;</span> <span style="color: #ff0000;">onplay</span>=<span style="color: #ff6600;">&#8220;document.getElementById</span>(&#8216;welcomevid&#8217;)<span style="color: #ff0000;">.volume</span>=<span style="color: #ff0000;">0.2</span>;&#8221; <span style="color: #0000ff;">&gt;&lt;/video&gt;</span></span></p>
<p>Note the <span style="color: #ff0000;">id</span>=<span style="color: #ff6600;">&#8220;welcomevid&#8221;</span> which is required in order to set the volume paramter in the DOM with the <span style="color: #ff6600;">getElementById</span> command.</p>
<p>Volume control is 0-1 with 0.5 being 50% etc. hence the use of 0.2 in this example.</p>
<p><a href="https://www.wardnet.co.uk/html-5-video-code/">HTML 5 Video Code</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">278</post-id>	</item>
		<item>
		<title>PHP code to list folders in a directory and make them links&#8230;</title>
		<link>https://www.wardnet.co.uk/php-code-to-list-folders-in-a-directory-and-make-them-links/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Wed, 28 Aug 2013 11:55:35 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[test purposes]]></category>
		<guid isPermaLink="false">http://wardnet.co.uk/?p=248</guid>

					<description><![CDATA[<p>So, I had a vision of listing all the folders within a web directory so that they were browseable &#8211;</p>
<p><a href="https://www.wardnet.co.uk/php-code-to-list-folders-in-a-directory-and-make-them-links/">PHP code to list folders in a directory and make them links&#8230;</a></p>
]]></description>
										<content:encoded><![CDATA[<p>So,</p>
<p>I had a vision of listing all the folders within a web directory so that they were browseable &#8211; I.E if you have a parent site with lots of sub sites, how can you create a list that you can just click on to look at them?</p>
<p>The Solution was a snippet of PHP code I put together based on some useful online stuff, none of which answered the problem specifically, so here it is:</p>
<p><span style="line-height: 19px; font-family: 'courier new', courier; color: #ff0000;">&lt;?php</span></p>
<div><span style="font-family: 'courier new', courier;"><span style="color: #000080;">$dirs</span> <span style="color: #800080;">=</span> <span style="color: #0000ff;">array_filter</span><span style="color: #800080;">(</span><span style="color: #000000;">glo</span>b<span style="color: #800080;">(</span><span style="color: #808080;">&#8216;*&#8217;</span><span style="color: #800080;">)</span>, <span style="color: #808080;">&#8216;is_dir&#8217;</span><span style="color: #800080;">);</span></span></div>
<div><span style="font-family: 'courier new', courier;">asort<span style="color: #800080;">(</span><span style="color: #000080;">$dirs</span><span style="color: #800080;">)</span>;</span></div>
<div><span style="font-family: 'courier new', courier;"><span style="color: #0000ff;">foreach</span> <span style="color: #800080;">(</span><span style="color: #000080;">$dirs</span> <span style="color: #0000ff;">as</span> <span style="color: #000080;">$key</span> <span style="color: #800080;">=&gt;</span> <span style="color: #000080;">$val</span><span style="color: #800080;">) </span><span style="color: #800080;">{</span></span></div>
<div><span style="font-family: 'courier new', courier;">    <span style="color: #0000ff;">echo</span> <span style="color: #808080;">&#8220;&lt;a href=&#8217;$val&#8217;&gt;$val&lt;/a&gt;&lt;br&gt;n&#8221;</span><span style="color: #800080;">;</span></span></div>
<div><span style="font-family: 'courier new', courier; color: #800080;">}</span></div>
<div><span style="font-family: 'courier new', courier;"><span style="color: #ff0000;">?&gt;</span></span></div>
<div></div>
<div></div>
<div>I&#8217;m quite happy with that one!</div>
<div></div>
<div>The usage is at <a title="RedsumoClients Test Area" href="http://www.redsumoclients.co.uk/list.php" target="_blank">http://www.redsumoclients.co.uk/list.php</a> (note: the sites found here are only for development/ test purposes and are not &#8220;live&#8221;)</div>
<p><a href="https://www.wardnet.co.uk/php-code-to-list-folders-in-a-directory-and-make-them-links/">PHP code to list folders in a directory and make them links&#8230;</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">248</post-id>	</item>
	</channel>
</rss>
