<?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>Redaware Limited - Computer Services &#38; Business IT Solutions in Tenbury Wells, Worcestershire &#187; tsymonds</title>
	<atom:link href="http://www.redaware.net/author/tsymonds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redaware.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery UI slider to update a value in a text box</title>
		<link>http://www.redaware.net/2010/09/jquery-ui-slider-to-update-a-value-in-a-text-box/</link>
		<comments>http://www.redaware.net/2010/09/jquery-ui-slider-to-update-a-value-in-a-text-box/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 14:16:45 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JQUery UI]]></category>
		<category><![CDATA[sliders]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=259</guid>
		<description><![CDATA[In this post we’re going to use jQuery UI to create a slider which will update a value in a text box. You may have already seen this concept in action on websites like confused.com In a previous post we have discussed the benefits of using a hosted version of jQuery, in this example we [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In this post we’re going to use jQuery UI to create a slider which will update a value in a text box. You may have already seen this concept in action on websites like confused.com</p>
<p><img src="http://www.redaware.net/wp-content/uploads/2010/09/sliders.png" alt="" /></p>
<p>In a previous post we have discussed the benefits of using a hosted version of jQuery, in this example we will use the Google hosted version of jQuery and jQuery UI. </p>
<p>To begin, create a new html document using your favourite HTML editor like Dreamweaver.</p>
<p>Link to the hosted UI style sheet, this is required in the head section of you code: </p>
<pre class="brush: xml; title: ; notranslate">
&lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
</pre>
<p>To improve page load performance the JavaScript can be placed just before the body tag in your html:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Next create a .js file which will contain the JavaScript to run once the webpage has loaded. The code below outlines two examples of sliders. A “slide” event is used to update the ID of a text input on form. </p>
<p>The second example illustrates some of the options available to sliders. Further details of option and events can be found on <a href="http://jqueryui.com/demos/slider/">http://jqueryui.com/demos/slider/</a>.</p>
<pre class="brush: jscript; title: ; notranslate">
  $(document).ready(function() {
    //slider example 1: a default slider
    $(&quot;#slider1&quot;).slider({
    	slide: function(event, ui) {
			$(&quot;#value1&quot;).val(ui.value);
    		}
    	});
  	$(&quot;#value1&quot;).val($(&quot;#slider1&quot;).slider(&quot;value&quot;));
	//slider example 2
	$(&quot;#slider2&quot;).slider({
    	min: 1, //minimum value
		max: 10, //maximum value
		value: 2, //default value
		slide: function(event, ui) {
			$(&quot;#value2&quot;).val(ui.value);
    		}
    	});
  	$(&quot;#value2&quot;).val($(&quot;#slider2&quot;).slider(&quot;value&quot;));
  });
</pre>
<p>Don’t forget to include your .js file before the  in your html.<br />
Back to the html, as explained above our JavaScript updates a Text field on form. Below is the required html:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;&quot; method=&quot;get&quot;&gt;
&lt;input type=&quot;text&quot; id=&quot;value1&quot; /&gt;
&lt;div id=&quot;slider1&quot;&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;input type=&quot;text&quot; id=&quot;value2&quot; /&gt;
&lt;div id=&quot;slider2&quot;&gt;&lt;/div&gt;
&lt;/form&gt;
</pre>
<p>Styling considerations: You want to hide the textboxes to visitors using JavaScript or this can be achieved using CSS.</p>
<div class="shr-publisher-259"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/09/jquery-ui-slider-to-update-a-value-in-a-text-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Web App Development</title>
		<link>http://www.redaware.net/2010/09/iphone-web-app-development/</link>
		<comments>http://www.redaware.net/2010/09/iphone-web-app-development/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 10:47:40 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[JQTouch]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[web app]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=186</guid>
		<description><![CDATA[The Apple iPhone is currently the best selling mobile in the world, it is estimated that the UK has 2 million iPhone users alone. There are a growing number of people who are using their iPhone or mobile to browse the web.  Should you make provisions for your website to be mobile friendly? This post [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The  Apple iPhone is currently the best selling mobile in the world, it is  estimated that the UK has 2 million iPhone users alone. There are a  growing number of people who are using their iPhone or mobile to browse  the web.  Should you make provisions for your website to be mobile  friendly? This post outlines some ideas to create an iPhone friendly  website or “web app”.</p>
<p><img class="size-full wp-image-206" src="http://www.redaware.net/wp-content/uploads/2010/09/iphone.jpg" alt="" width="500" height="333" /><br /><a href="http://www.flickr.com/photos/ivyfield/">Image credit</a></p>
<p>There  are two methods of developing web apps for the iPhone, the first way is  by creating dedicated web pages for use by the iPhone.  The other way  is to utilise a JavaScript framework plugin like JQTouch (<a href="http://www.jqtouch.com/">http://www.jqtouch.com/</a>).  JQTouch is a plugin for the popular JQuery JavaScript framework.</p>
<p>Which  method that you use depends on your overall goal, if you are looking to  create a website that mimics a native app, for example, that emulates  the iOS user interface or even supports gesturing then I would be  recommended  using the JQTouch project, doing this cut down on the  required development time.</p>
<p>If  your requirement is for just an iPhone friendly website then developing  a mobile version of website using HTML5 and CSS3 maybe the best  solution. This solution may also mean that you can allow for  cross-browser compatible and make you website “work” with other mobile  device like Android or Black Berry.</p>
<p>Why not take a look at <a href="http://www.mobileawesomeness.com/">http://www.mobileawesomeness.com/</a> this website  good source of inspiration when designing site for mobile visitors. Also  example of iPhone web apps can be found on <a href="http://www.apple.com/webapps/index2.html"></a><a href="http://www.apple.com/webapps/index2.html">Apple’s website </a>.</p>
<p>Safari the iPhone’s default web browser uses the Webkit as it’s rendering  engine, this displays most web page and website very well, even those  sites that have not been design with the iPhone in mind look good. As  you may have heard there is an on-going disagreement between Apple and  Adobe over Flash, the iPhone does not support Adobe Flash.  Normally  webmasters would use Flash when integrating video into their site, as  the iPhone does not support flash then HTML5 need to be used to embed  videos. In fact HTML5 and CSS3 provide a powerful duo, Apple have create  this mini-site: <a href="www.apple.com/html5">www.apple.com/html5</a> to demonstrate the features of  Safari (Webkit), HTML5 and CSS3 – please note that it is blocked to  non-Safari browsers. The  battle between Apple and Adobe over Flash has meant that Silverlight  support has been overlooked, like Flash, Silverlight is not support by the iPhone.</p>
<p>Developing  a iPhone friendly website using the JQTouch project are the outside  scope of this post, however if this something that appeals to you but  you do not have the in-house expertise then please feel free to get in  touch to discuss your individual requirements. As discussed, we will  however demonstrate some simple ideas and provide some sample code on how to make your website more interesting and friendly for your iPhone visitors.</p>
<p>For  your iPhone visitors, you may decide to use smaller images &#8211; so they  loaded quicker if they are using a mobile connection, larger fonts &#8211; so  that the content is easier to read with needing to zoom in, or even make  allowances for device orientation. In order to this you first need to  detect if your visitor is using a iPhone, this can achieved by using the  code below:</p>
<p><strong>PHP</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$browser = strpos($_SERVER['HTTP_USER_AGENT'],&quot;iPhone&quot;);
if ($browser == true)
{
echo 'You are using an iPhone';
}

?&gt;
</pre>
<p><strong>JavaScript</strong></p>
<pre class="brush: jscript; title: ; notranslate">
if ( (navigator.userAgent.indexOf('iPhone') != -1) ) {
document.location = &quot;iphone.html&quot;;
}
</pre>
<p>Most  webmasters and developer choose to re-direct iPhone visitors to a  different page or area of their site. Some people set up a dedicated  sub-domain for mobile visitors (www.m.domain.co.uk) others create a sub  folder for all mobile content (www.domain.co.uk/mobile). It all depends  on personal preference or the facilities offered by your hosting  provider.</p>
<p>Frequent  website visitors may decide to bookmark your site or even add a  shortcut to their home screen. The code below is used to create a custom  home screen icon:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;/&gt;
</pre>
<p>As  discussed earlier the iPhone uses a Webkit browser this allows you to  easy style web forms to look like native iPhone apps. Below is an  example image of what can be achieved. Take a look at <a href="http://lipidity.com/apple/iphone-webkit-css-3">http://lipidity.com/apple/iphone-webkit-css-3</a> for some more examples.</p>
<p>The  iPhone screen is 320 x 480 pixels. If you do not want people to have to  use the zoom function in order to read text or view an entire picture,  consider restricting your pages to the limitations of the iPhone’s  screen size. The code below prevents the visitor from being able to zoom  in and out.</p>
<pre class="brush: xml; title: ; notranslate">
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&amp;gt;
</pre>
<p>Use  of separate style sheets for different orientation can also benefit  user experience. Below is an example of how to use different style  sheet:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:portrait)&quot; href=&quot;portrait.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:landscape)&quot; href=&quot;landscape.css&quot;&gt;
</pre>
<p>Native  apps often take longer to load but are much more responsive once  loaded. To emulate this behaviour, you could use anchors in a single  HTML or PHP file. A JavaScript framework like JQuery and jQuery UI will allow  you hide or unhide content as required. A good example of this would to be  use Accordion which can be found <a href="http://jqueryui.com/demos/accordion/">here</a>.</p>
<p>I  hope this post has given you a flavour of whats required when  developing web apps for the iPhone or other mobile devices. In a  upcoming post we intend to expanded on the techniques outlined here.</p>
<div class="shr-publisher-186"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/09/iphone-web-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Google Alerts to alert when you website is first indexed by the Googlebot</title>
		<link>http://www.redaware.net/2010/06/using-google-alerts-to-alert-when-you-website-is-first-indexed-by-the-googlebot/</link>
		<comments>http://www.redaware.net/2010/06/using-google-alerts-to-alert-when-you-website-is-first-indexed-by-the-googlebot/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:16:56 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Alerts]]></category>
		<category><![CDATA[Google Webmaster Tools]]></category>
		<category><![CDATA[GoogleBot]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=176</guid>
		<description><![CDATA[New websites don’t automatically appear in search engines like Google. They only get “found” when another website link to them or the site is added using Webmaster Tools. To use Google’s Webmaster tools, you need to have a Google Account (same as Gmail). Once you have your Google Account, use this link to use Webmaster [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>New websites don’t automatically appear in search engines like Google. They only get “found” when another website link to them or the site is added using Webmaster Tools.</p>
<p>To use Google’s Webmaster tools, you need to have a Google Account (same as Gmail).</p>
<p>Once you have your Google Account, use this <a href="https://www.google.com/accounts/ServiceLogin?service=sitemaps&amp;passive=true&amp;nui=1&amp;continue=https%3A%2F%2Fwww.google.com%2Fwebmasters%2Ftools%2F&amp;followup=https%3A%2F%2Fwww.google.com%2Fwebmasters%2Ftools%2F&amp;hl=en">link</a> to use Webmaster tools.</p>
<p>Once you have logged in, choose the Add a site button at the bottom.  Enter your website address and choose continue. Follow the on screen instructions, or additional help is available from Google here.</p>
<p><a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=34592">http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=34592</a></p>
<p>Depending on the size of your website, Google may not index the whole site in one hit. Sometime it is useful to be alerted when Google first indexes your site. This can be achieved using Google Alerts</p>
<p>Go to Google alerts and create a new alter.</p>
<p><a href="http://www.google.com/alerts">http://www.google.com/alerts</a></p>
<p>In the Search terms field, input a keyword that appears on every page on you website, something like you company name. Enclose you keyword in quotes and then limit the search to your website domain. For example:  “keyword&#8221; -site:yoursite.co.uk</p>
<p><a href="http://www.redaware.net/wp-content/uploads/2010/06/alert.png"><img class="alignnone size-full wp-image-177" src="http://www.redaware.net/wp-content/uploads/2010/06/alert.png" alt="Google Alerts Setup" width="550" /></a></p>
<p>The type field is not important and be left as Everthing.</p>
<p>Change How often field to as-it-happens.</p>
<p>Leave Email length to up to 20 results</p>
<p>Input your email in the Your email field and then choose Create Alert.</p>
<p>You should then receive an to confirm that you wish to receive alerts.</p>
<p>When the website is first crawled (indexed) by Google you should receive an email message. You may then want to log-in to Google Webmaster tools and check that the site has not got any Crawl errors (under Diagnostics on the left-hand side).  Crawl errors are details of any problems that the GoogleBot has encounter when indexing your site. You will need to address these errors in order for you website to be completely indexed by Google.</p>
<div class="shr-publisher-176"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/06/using-google-alerts-to-alert-when-you-website-is-first-indexed-by-the-googlebot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-browser support for different rendering engines</title>
		<link>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/</link>
		<comments>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:26:02 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Gecko]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=171</guid>
		<description><![CDATA[Web developers are often faced with the problems associated with developing a cross-browser website or application, those developers planning to use new HTML5 and CSS3 mark-up will also have to ensure that they cater for different rending/layout engines like Webkit (Safari, Chrome) or Gecko (Firefox). Here are a few CCS examples:]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Web developers are often faced with the problems associated with developing a cross-browser website or application, those developers planning to use new HTML5 and CSS3 mark-up will also have to ensure that they cater for different rending/layout engines like Webkit (Safari, Chrome) or Gecko (Firefox).</p>
<p>Here are a few CCS examples:</p>
<pre class="brush: css; title: ; notranslate">
/*gradients*/

/*Firefox*/
-moz-linear-gradient (left, red, silver); 

/*Safari/Chrome*/
webkit-gradient (linear, left center, right center, from(red), to(silver));

/*shadow*/

/*Firefox*/
-moz-box-shadow: 5px 5px #818181;

/*Safari/Chrome*/
-webkit-box-shadow: 5px 5px #818181;

/*Border corners*/

/*Firefox*/
-moz-border-radius: 9px 3px 9px 3px;

/*Safari/Chrome*/
-webkit-border-radius: 3px;
-webkit-border-top-left-radius: 9px;
-webkit-border-bottom-right-radius: 9px;
</pre>
<div class="shr-publisher-171"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup an iPhone on T-Mobile</title>
		<link>http://www.redaware.net/2010/05/how-to-setup-an-iphone-on-t-mobile/</link>
		<comments>http://www.redaware.net/2010/05/how-to-setup-an-iphone-on-t-mobile/#comments</comments>
		<pubDate>Thu, 13 May 2010 19:35:11 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[APN]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MMS]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[T-Mobile]]></category>
		<category><![CDATA[voicemail]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=168</guid>
		<description><![CDATA[Below is a screen shot from my iPhone which is on the T-Mobile network. APN: general.t-mobile.uk Username: user Password: one2one MMS: http:/mmsc.t-mobile.co.uk:8002/ MMS Proxy: 149.254.201.135:8080 Voicemail T-Mobile&#8217;s voicemail setup is a little different from other networks: in addition to your mobile number you are also assigned another unique number for voicemail. If you don’t already [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Below is a screen shot from my iPhone which is on the T-Mobile network.</p>
<p><a href="http://www.redaware.net/wp-content/uploads/2010/05/photo2.jpg"><img src="http://www.redaware.net/wp-content/uploads/2010/05/photo2.jpg" alt="T-Mobile iphone settings" title="iPhone settings for T-Mobile" width="320" height="480" class="aligncenter size-full wp-image-169" /></a></p>
<p>APN: <strong>general.t-mobile.uk</strong><br />
Username: <strong>user</strong><br />
Password: <strong>one2one</strong><br />
MMS:  <strong>http:/mmsc.t-mobile.co.uk:8002/</strong><br />
MMS Proxy: <strong>149.254.201.135:8080</strong></p>
<p><strong>Voicemail</strong></p>
<p>T-Mobile&#8217;s voicemail setup is a little different from other networks: in addition to your mobile number you are also assigned another unique number for voicemail.</p>
<p>If you don’t already know your voicemail number, do the following:</p>
<p><strong>Dial: *#67#</strong></p>
<p>The iPhone uses push voicemail, in order to “re-program” it for T-Mobile, you need to do the following <strong>replace 123456789 with your unique number</strong> as obtained above. </p>
<p><strong>Call: *5005*86*123456789#</strong></p>
<div class="shr-publisher-168"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/05/how-to-setup-an-iphone-on-t-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch script to test if a server is responding using Ping</title>
		<link>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/</link>
		<comments>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:49:07 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[batch program]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=164</guid>
		<description><![CDATA[We were asked by a client to write a simple batch program that tests if a server is alive by using ping. Below is a sample of the script that we created. The client used it in a Formscape project to ensure that a server was available before writting a record to a database using [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>We were asked by a client to write a simple batch program that tests if a server is alive by using ping.</p>
<p>Below is a sample of the script that we created. The client used it in a Formscape project to ensure that a server was available before writting a record to a database using ODBC.</p>
<pre class="brush: plain; title: ; notranslate">
@echo off
CLS
:RETRYPING
echo Testing if 192.168.1.1 host is alive
ping 192.168.1.1 | find &quot;Reply&quot; &gt; nul
if not errorlevel 1 (
echo Host is alive
) else (
echo host is down - retry in 30 Seconds
REM Poor man's sleep function - ping localhost
ping 1.0.0.0 -n 1 -w 30000 &gt;NUL
echo Retry now
GOTO RETRYPING
)
:ENDPING
</pre>
<div class="shr-publisher-164"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Tips to ensure you get the most out of mobile broadband</title>
		<link>http://www.redaware.net/2010/02/5-tips-to-ensure-you-get-the-most-out-of-mobile-broadband/</link>
		<comments>http://www.redaware.net/2010/02/5-tips-to-ensure-you-get-the-most-out-of-mobile-broadband/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 10:23:47 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[mobile broadband]]></category>

		<guid isPermaLink="false">http://www.redaware.net/2010/02/5-tips-to-ensure-you-get-the-most-out-of-mobile-broadband/</guid>
		<description><![CDATA[1. Use a USB extension lead – this it gives you the ability to move the dongle around to ensure you give the best signal. 2. Alternatively, it may be better to use your mobile as a modem and connect to it using Bluetooth. This gives you the ability to position the mobile in the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>1.	Use a USB extension lead – this it gives you the ability to move the dongle around to ensure you give the best signal.<br />
2.	Alternatively, it may be better to use your mobile as a modem and connect to it using Bluetooth. This gives you the ability to position the mobile in the best place to get optimum signal strength.<br />
3.	To avoid DNS issues, use a third part service like http://www.opendns.com/.<br />
4.	By a SIM-free device – This will give you the ability to chop and change providers and choose the best deals.<br />
5.	Consider opting for a paid contact – some providers give preferential service to customers with a contact. </p>
<div class="shr-publisher-163"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/02/5-tips-to-ensure-you-get-the-most-out-of-mobile-broadband/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Snippet: Dynamic copyright notice</title>
		<link>http://www.redaware.net/2009/11/php-snippet-dynamic-copyright-notice/</link>
		<comments>http://www.redaware.net/2009/11/php-snippet-dynamic-copyright-notice/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 14:22:39 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=148</guid>
		<description><![CDATA[This how to use PHP to code a dynamic copyright notice:]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This how to use PHP to code a dynamic copyright notice: </p>
<pre class="brush: php; title: ; notranslate">
&lt;p&gt;
&lt;?php
$firstyear = &quot;2009&quot;;
$currentyear = date(&quot;Y&quot;);
if ($currentyear==$firstyear)
  echo &quot;copyright © &quot;.$firstyear.&quot; company Limited, all rights reserved.&quot;;
else
  echo &quot;copyright © &quot;.$firstyear.&quot;-&quot;.$currentyear.&quot; company Limited, all rights reserved.&quot;;
?&gt;
&lt;p&gt;
</pre>
<div class="shr-publisher-148"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/11/php-snippet-dynamic-copyright-notice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Snippet</title>
		<link>http://www.redaware.net/2009/11/css-snippet/</link>
		<comments>http://www.redaware.net/2009/11/css-snippet/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:58:15 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=146</guid>
		<description><![CDATA[This is a snippet of the CSS code I use when starting new project. The are not rquired and can be removed]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is a snippet of the CSS code I use when starting new project. The are not rquired and can be removed</p>
<pre class="brush: css; title: ; notranslate">
body {
	margin: 0;
	padding: 0;
}

/* I don't link the link styling defaults */
body a {
	text-decoration: none;
}

body a:hover {
	text-decoration: underline;
}

/* If I want a border I use my own style */
img{
	border: none;
}

.fltrt {
	float: right;
}

.fltlft {
	float: left;
}

.clrflt {
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}

/* Used for image Opacity / Transparency styling */
img.opacity {
	opacity:0.4;
	filter:alpha(opacity=40);
}

img.opacity:hover {
	opacity:1;
	filter:alpha(opacity=100);
}

/* My prefered forms style */
fieldset
{
	border: 1px solid #999999;
	background-color: #F4F4F4;
	margin-top: 25px;
	margin-right: auto;
	margin-bottom: 25px;
	margin-left: auto;
}

label{
	width: 200px;
	float: left;
	text-align: left;
	margin-right: 0.5em;
	display: block;

}

input{
	border-right: #999 1px solid;
	border-top: #999 1px solid;
	border-left: #999 1px solid;
	border-bottom: #999 1px solid;
}

textarea {
	border-right: #999 1px solid;
	border-top: #999 1px solid;
	border-left: #999 1px solid;
	border-bottom: #999 1px solid;
}
</pre>
<div class="shr-publisher-146"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/11/css-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SQL Triggers to create an audit trail on iSeries</title>
		<link>http://www.redaware.net/2009/11/using-sql-triggers-to-create-an-audit-trail-on-iseries/</link>
		<comments>http://www.redaware.net/2009/11/using-sql-triggers-to-create-an-audit-trail-on-iseries/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 08:46:32 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[IBM]]></category>
		<category><![CDATA[AS/400]]></category>
		<category><![CDATA[Audit]]></category>
		<category><![CDATA[i5]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Trigger]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=142</guid>
		<description><![CDATA[We recently completed a development project to create a .NET application to populate an iSeries file. The client required an audit trail to be setup, this is how to do it: Firstly create an audit file, ensure that the file has all the fields you wish to audit. The best way to achieve this is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>We recently completed a development project to create a .NET application to populate an iSeries file. The client required an audit trail to be setup, this is how to do it: </p>
<p>Firstly create an audit file, ensure that the file has all the fields you wish to audit.<br />
The best way to achieve this is to copy the original source member and use an “A” suffix.<br />
Then add three addition fields to the end of the file:</p>
<pre class="brush: plain; title: ; notranslate">
A            TIMESMP         Z         TEXT('AUDIT TIMESTAMP')
A            AUDTYP         1          TEXT('AUDIT TYPE')
A            AUDIMG         1          TEXT('AUDIT IMAGE')
</pre>
<p>To add SQL Triggers, use the STRSQL command. Copy the sample code below substituting library, file and fields for your own details.<br />
For new records:</p>
<pre class="brush: sql; title: ; notranslate">
CREATE TRIGGER library.trigger_name
  AFTER INSERT ON library.file_name
  REFERENCING NEW AS new_row
  FOR EACH ROW MODE DB2ROW
BEGIN
  INSERT INTO library.audit_file(field1,field2,field3,field4, audtyp, audimg)  VALUES(new_row.field1, new_row.field2, new_row.field3, new_row.field4,’I’,’ A‘ );
END
</pre>
<p>For deletions:</p>
<pre class="brush: sql; title: ; notranslate">
CREATE TRIGGER library.trigger_name
  AFTER DELETE ON library.file_name
  REFERENCING OLD AS old_row
  FOR EACH ROW MODE DB2ROW
BEGIN
  INSERT INTO library.audit_file(field1,field2,field3,field4, audtyp, audimg)  VALUES(old_row.field1, old_row.field2, old_row.field3, old_row.field4,’D’,’B’ );
END
</pre>
<p>For record changes:</p>
<pre class="brush: sql; title: ; notranslate">
CREATE TRIGGER library.trigger_name
  AFTER UPDATE ON library.file_name
  REFERENCING OLD AS old_row
                            NEW AS new_row
  FOR EACH ROW MODE DB2ROW
BEGIN
  /* Before update*/
  INSERT INTO library.audit_file(field1,field2,field3,field4,audtyp,audimg)  VALUES(old_row.field1, old_row.field2, old_row.field3, old_row.field4 ,‘ U‘,’B’);
  /* After update*/
  INSERT INTO library.audit_file(field1,field2,field3,field4,audtyp,audimg)  VALUES(new_row.field1, new_row.field2, new_row.field3, new_row.field4,’U’,’A’ );
END
</pre>
<p>Removing triggers<br />
You can remove triggers using the Remove Physical File Trigger (RMVPFTRG) command, the SQL DROP TRIGGER statement, and iSeries Navigator.</p>
<div class="shr-publisher-142"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2009/11/using-sql-triggers-to-create-an-audit-trail-on-iseries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

