<?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#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Silver bells, and cockle shells</title>
	<atom:link href="http://maryh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maryh.wordpress.com</link>
	<description>anything ... or ... everything</description>
	<lastBuildDate>Mon, 26 Dec 2011 12:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='maryh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Silver bells, and cockle shells</title>
		<link>http://maryh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://maryh.wordpress.com/osd.xml" title="Silver bells, and cockle shells" />
	<atom:link rel='hub' href='http://maryh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cookies hate white space! or Why won&#8217;t my cookies set?</title>
		<link>http://maryh.wordpress.com/2010/09/29/cookies-hate-white-space-or-why-wont-my-cookies-set/</link>
		<comments>http://maryh.wordpress.com/2010/09/29/cookies-hate-white-space-or-why-wont-my-cookies-set/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 09:47:06 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=44</guid>
		<description><![CDATA[I was helping a friend get the login part of their site working &#8211; including the setting of user variable cookies. The cookies wouldn&#8217;t set. Brick wall bang, bang, bang (my head you understand). &#8220;I&#8217;m not sending anything to the browser before calling the cookies!&#8221; Frantic checking of all includes for anything happening. Brick wall [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=44&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was helping a friend get the login part of their site working &#8211; including the setting of user variable cookies. The cookies wouldn&#8217;t set. </p>
<p>Brick wall bang, bang, bang (my head you understand). </p>
<p>&#8220;I&#8217;m not sending anything to the browser before calling the cookies!&#8221; Frantic checking of all includes for anything happening.</p>
<p>Brick wall bang, bang, bang!</p>
<p>Never had this trouble before. Google. Add to code:</p>
<p><code>if (!setcookie("example","value")) {<br />
    echo "Cookie not set";<br />
}</code></p>
<p>You&#8217;ve guessed it &#8220;Cookie not set&#8221; go to manual page for setcookie() and the magic words including whitespace!</p>
<p>The page source reveals:</p>
<p>&#8220;</p>
<p>Cookie not set</p>
<p>&#8220;</p>
<p>Now we know why this has never happened before &#8211; my friend is addicted to white space in their code. I remove any blank lines in mine. I removed the lot and the cookies are happy! Told the friend that if they didn&#8217;t want any cookies to set just to put lots of blank spaces back into their code!</p>
<p>Job done but sore head!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=44&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2010/09/29/cookies-hate-white-space-or-why-wont-my-cookies-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>Mostly your Mac is brilliant but &#8230;</title>
		<link>http://maryh.wordpress.com/2010/07/20/mostly-your-mac-is-brilliant-but/</link>
		<comments>http://maryh.wordpress.com/2010/07/20/mostly-your-mac-is-brilliant-but/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:36:15 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=45</guid>
		<description><![CDATA[&#8230;every now and then it makes you want to scream. Take commenting out code. I always find the hash # sign the easiest to use (saves having to remember which way round to get the star and slash let alone which slash it is in the first place). Search your Mac keyboard &#8211; can you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=45&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;every now and then it makes you want to scream. Take commenting out code. I always find the hash # sign the easiest to use (saves having to remember which way round to get the star and slash let alone which slash it is in the first place). Search your Mac keyboard &#8211; can you find it? If you can you&#8217;ve not got the same one I have! Luckily I can now remember it; Alt 3. Yippy!</p>
<p>Then today I was having trouble with a payment screen and wanted to email a screen print to their support people. Print Screen, where is it? It tells its own story when google&#8217;s top autofill for &#8220;print &#8221; is &#8220;print screen mac&#8221;! Though feel free to feel lucky &#8211; <a href="http://www.techiecorner.com/138/how-to-do-print-screen-in-mac-os-x/">the top choice link was excellent</a> and not only gives you screen capture (cmd shift 3) but the ability to capture a small section window using mouse drag (cmd shift 4) &#8211; this is thee one I used &#8211; but also claims you can choose a window to capture if you hit the space bar after the cmd shift 4 technique! Job done!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=45&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2010/07/20/mostly-your-mac-is-brilliant-but/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>It&#8217;s not your Mac it&#8217;s your printer</title>
		<link>http://maryh.wordpress.com/2008/10/03/its-not-your-mac-its-your-printer/</link>
		<comments>http://maryh.wordpress.com/2008/10/03/its-not-your-mac-its-your-printer/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 14:15:59 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=42</guid>
		<description><![CDATA[It&#8217;s like this &#8211; you&#8217;ve had this HP Laserjet 4M plus (insert your model here) networked for years and you&#8217;ve been printing with no problems in all that time until you buy a Mac. Now suddenly there are two copies of everything being spewed out and mountains of wasted paper. Don&#8217;t go looking through the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=42&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s like this &#8211; you&#8217;ve had this HP Laserjet 4M plus (insert your model here) networked for years and you&#8217;ve been printing with no problems in all that time until you buy a Mac. Now suddenly there are two copies of everything being spewed out and mountains of wasted paper. </p>
<p>Don&#8217;t go looking through the printer menus on the Mac it isn&#8217;t there. Go to your printer, take it off line. Hit the menu button until it says Printing Menu. Hit Item until it says Copies=2. Hit shift and +/- button until it says Copies=1 then hit enter. Put it back on line and if you don&#8217;t have an uncle called Bob then you should!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=42&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/10/03/its-not-your-mac-its-your-printer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL doesn&#8217;t have an is_numeric function!</title>
		<link>http://maryh.wordpress.com/2008/05/12/mysql-doesnt-have-an-is_numeric-function/</link>
		<comments>http://maryh.wordpress.com/2008/05/12/mysql-doesnt-have-an-is_numeric-function/#comments</comments>
		<pubDate>Mon, 12 May 2008 21:48:36 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=41</guid>
		<description><![CDATA[I was trying to write a MySQL stored procedure today that was crying out for the is_numeric function &#8211; the one that doesn&#8217;t exist. I wanted to select two different things depending on whether the value in a field was numeric or not. Luckily trying to convert a non integer into an integer returns a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=41&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was trying to write a MySQL stored procedure today that was crying out for the is_numeric function &#8211; the one that doesn&#8217;t exist. I wanted to select two different things depending on whether the value in a field was numeric or not.</p>
<p>Luckily trying to convert a non integer into an integer returns a 0 (at least in the version I am running it does). Hence testing for CONVERT(field_value,SIGNED INTEGER)&gt;0 is pretty close to what I&#8217;d expect from the missing is_numeric(field_value). In my case it is good enough as I know that I am dealing with integers not decimals, and none of them are 0!</p>
<p>Job done!</p>
<p>NB: MySQL version 5.0.22.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=41&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/05/12/mysql-doesnt-have-an-is_numeric-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>Eight Random Things That Don&#8217;t Make Sense</title>
		<link>http://maryh.wordpress.com/2008/03/08/eight-random-things-that-dont-make-sense/</link>
		<comments>http://maryh.wordpress.com/2008/03/08/eight-random-things-that-dont-make-sense/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 23:54:28 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[bell-ringing]]></category>
		<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=40</guid>
		<description><![CDATA[What have you got me into Mark &#8211; how can you write eight random things you wouldn&#8217;t normally write on your blog on a blog as random as this? Well at least I can manage the random part OK! 1. My first full peel was of Superlative Surprise Major at Ss Peter and Paul Ewhurst, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=40&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What have you got me into <a href="http://markharrison.wordpress.com/2008/03/06/eight-things-which-dont-make-sense-about-me/">Mark</a> &#8211; how can you write eight random things <strong>you wouldn&#8217;t normally write on your blog</strong> on a blog as random as this? Well at least I can manage the random part OK!</p>
<p>1. My first full peel was of Superlative Surprise Major at Ss Peter and Paul Ewhurst, Surrey.</p>
<p>2. I&#8217;ve read Pride and Prejudice (Jane Austin) at least once a year since my Godfather gave me a copy in 1982 &#8211; I&#8217;d read my Mother&#8217;s copy a &#8220;Utility&#8221; paperback before that.</p>
<p>3. I hate playing Monopoly &#8211; and I have trouble spelling it too!</p>
<p>4. I know how to spell forward but have a tendency to type it without the first r.</p>
<p>5. I have an almost twelve year old black and white cat call Minstrel who isn&#8217;t as fat as he used to be &#8211; no where near as fat as the cat from Norway who got stuck in the doorway.</p>
<p>6. I adore Flanders and Swann, and Gilbert and Sulivan and can very well spot an allusion in the dusk with the light behind it.</p>
<p>7. I use Oxford commas sparingly; sometimes they are necessary to avoid confusion.</p>
<p>8. Recondite is the first word fully defined on page 922 of the Chambers Twentieth Century Dictionary 1959 revision, 1966 impression &#8211; and if that isn&#8217;t <em>hidden: obscure: abstruse: profound</em>. Don&#8217;t you just love a word for which the meaning is obscure?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=40&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/03/08/eight-random-things-that-dont-make-sense/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>Could our Tenor take out the Saxon arch?</title>
		<link>http://maryh.wordpress.com/2008/02/28/could-our-tenor-take-out-the-saxon-arch/</link>
		<comments>http://maryh.wordpress.com/2008/02/28/could-our-tenor-take-out-the-saxon-arch/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 23:19:50 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[bell-ringing]]></category>
		<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=39</guid>
		<description><![CDATA[We were ringing on five tonight as our tenor bell isn&#8217;t all that securely attached to its headstock! Just two bolts and those a bit wobbly and we weren&#8217;t going to ring it up to check the bolts inside! Later at the pub we were thinking of thought provoking questions for the Year 2 children [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=39&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We were ringing on five tonight as our tenor bell isn&#8217;t all that securely attached to its headstock! Just two bolts and those a bit wobbly and we weren&#8217;t going to ring it up to check the bolts inside!</p>
<p>Later at the pub we were thinking of thought provoking questions for the Year 2 children on their new portal (e.g. &#8220;What if vegetables had legs?&#8221;) &#8211; most of us have an interest in education (some teachers, some governors, some trainers and some mothers or all of the above!). I&#8217;m surprised one of the questions wasn&#8217;t &#8220;What if the Tenor had come unbolted while we were ringing?&#8221; but perhaps we had already covered that. The collapse of the Saxon arch was the most extreme consequence we came up with (and we were avoiding anything gruesome) the trajectory going through the tower wall and into the chancel roof&#8230;! That&#8217;s the arch described by <em>Christopher Winn</em> in <em>I never knew that about England</em> thus:</p>
<blockquote><p>&#8230;three supreme Saxon arches built over 1000 years ago when Sussex was remote and savage. The chancel arch is the LARGEST SAXON ARCH SURVIVING IN BRITAIN, possibly the world, and an incomparably beautiful masterpiece.</p></blockquote>
<p>Chances are of course that it would have gone the other way and taken out the 5 or just landed on the ceiling (which might bear its weight depending on the speed of fall) but that was less imaginative.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=39&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/02/28/could-our-tenor-take-out-the-saxon-arch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>Red Kites over the M40</title>
		<link>http://maryh.wordpress.com/2008/02/08/red-kites-over-the-m40/</link>
		<comments>http://maryh.wordpress.com/2008/02/08/red-kites-over-the-m40/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 23:09:30 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[bird sightings]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=38</guid>
		<description><![CDATA[I&#8217;ve seen Kestrels before, and what might have been a Sparrowhawk having a feast in our back garden. Yesterday we were on the M40 and I saw several birds of prey. There was one Kestrel but the rest were larger, higher and a completely different shape &#8211; with a V shaped tail like some whales. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=38&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen Kestrels before, and what might have been a Sparrowhawk having a feast in our back garden. Yesterday we were on the M40 and I saw several birds of prey. There was one Kestrel but the rest were larger, higher and a completely different shape &#8211; with a V shaped tail like some whales. I thought surely they can only be Kites that must be how they got their name.</p>
<p>Then I looked in my bird book only to find that it (published in 1981) has them only in Wales &#8211; so a long way from the M40. But the picture was the only one that fitted! So google for &#8220;Birds of Prey sighted in Oxfordshire M40&#8243; and lo and behold <a href="http://en.wikipedia.org/wiki/Red_Kite">Red Kite</a> on Wikipedia. They are frequently sighted over the M40 between Oxford and Wycombe &#8211; exactly where I saw them!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=38&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/02/08/red-kites-over-the-m40/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>The Form Template</title>
		<link>http://maryh.wordpress.com/2008/01/31/the-form-template/</link>
		<comments>http://maryh.wordpress.com/2008/01/31/the-form-template/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 01:00:52 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/?p=37</guid>
		<description><![CDATA[This time round I decided that all that cutting and pasting of form tags into the php page (and their layout) was a waste of time so I created a couple of database tables to tell the template which fields to include. So given the form name the template creates the rest of the page. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=37&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This time round I decided that all that cutting and pasting of form tags into the php page (and their layout) was a waste of time so I created a couple of database tables to tell the template which fields to include. So given the form name the template creates the rest of the page.</p>
<p><pre class="brush: php;">
&lt;?php
$sql=&quot;select form_caption, update_file, ok_function, validate_function
  from schema_forms
  where form_name = '$FormName';
select field_name, field_type, field_caption, span_name, needs_validation, can_hide, select_sql, allow_blank, 
	block_numbers, allow_decimal, allow_negative
  from schema_form_fields
  where form_name = '$FormName'
  order by field_number;&quot;;
if (!isset($link)) {
	include(&quot;connectioni.php&quot;);
}
if (!mysqli_multi_query($link,$sql)) {
	echo &quot;&lt;p&gt;&quot; . mysqli_error($link) . &quot;. Unable to load property list.&lt;/p&gt;&quot;;
}
else {
	do {
        	if ($result = mysqli_store_result($link)) {
			$finfo = mysqli_fetch_field($result);
			if ($finfo-&gt;name==&quot;form_caption&quot;) {
				$row=mysqli_fetch_array($result, MYSQLI_BOTH);
				$FormCaption=$row[&quot;form_caption&quot;];
				$UpdateFile=$row[&quot;update_file&quot;];
				$OKFunction=$row[&quot;ok_function&quot;];
				$ValidateFunction=$row[&quot;validate_function&quot;];
			} else {			
				?&gt;
				&lt;p class=&quot;popuptitle&quot;&gt;&lt;?=$FormCaption?&gt;&lt;/p&gt;
				&lt;form name=&quot;&lt;?=$FormName?&gt;&quot;&gt;
				&lt;input name=&quot;UpdateFile&quot; value=&quot;&lt;?=$UpdateFile?&gt;&quot; type=&quot;hidden&quot;/&gt;
				&lt;table class=&quot;popuptable&quot;&gt;
				&lt;?php
				while ($row=mysqli_fetch_array($result, MYSQLI_BOTH)) {
					$FieldName=$row[&quot;field_name&quot;];
					$FieldType=$row[&quot;field_type&quot;];
					$FieldCaption=$row[&quot;field_caption&quot;];
					$SpanName=$row[&quot;span_name&quot;];
					$SpanCaptionName=$SpanName.&quot;caption&quot;;
					$SpanInputName=$SpanName.&quot;input&quot;;
					$NeedsValidation=$row[&quot;needs_validation&quot;];
					$CanHide=$row[&quot;can_hide&quot;];
					$SelectSql=$row[&quot;select_sql&quot;];
					$AllowBlank=$row[&quot;allow_blank&quot;];
					$BlockNumbers=$row[&quot;block_numbers&quot;];
					$AllowDecimal=$row[&quot;allow_decimal&quot;];
					$AllowNegative=$row[&quot;allow_negative&quot;];
					if ($FieldType!=&quot;Hidden&quot;) {
						echo &quot;&lt;tr&gt;\n&quot;;
						echo &quot;&lt;td class=\&quot;popuptable\&quot;&gt;\n&quot;;
						if ($CanHide==&quot;Y&quot;) {
							echo &quot;&lt;span id=\&quot;$SpanCaptionName\&quot;&gt;&quot;;
						}
						echo $FieldCaption;
						if ($CanHide==&quot;Y&quot;) {
							echo &quot;&lt;/span&gt;&quot;;
						}
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot;&lt;span id=\&quot;$SpanName\&quot;&gt;&lt;/span&gt;&quot;;
						}
						echo &quot;&lt;/td&gt;\n&quot;;
						echo &quot;&lt;td class=\&quot;popuptable\&quot;&gt;\n&quot;;
						if ($CanHide==&quot;Y&quot;) {
							echo &quot;&lt;span id=\&quot;$SpanInputName\&quot;&gt;&quot;;
						}
					}
					switch ($FieldType) {
					case 'Hidden':
						echo &quot;&lt;input name=\&quot;$FieldName\&quot; value=\&quot;&quot;.$$FieldName.&quot;\&quot; type=\&quot;hidden\&quot;/&gt;&quot;;
						break;
					case 'Text':
						echo &quot;&lt;input class=\&quot;popmeinput\&quot; size=\&quot;15\&quot; name=\&quot;$FieldName\&quot; value=\&quot;&quot;.$$FieldName.&quot;\&quot; type=\&quot;text\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onKeyup=\&quot;$ValidateFunction();\&quot; onblur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						if ($BlockNumbers==&quot;Y&quot;) {
							echo &quot; onKeyPress=\&quot;return blockNonNumbers(this, event, $AllowDecimal, $AllowNegative);\&quot;&quot;;
						}
						echo &quot;/&gt;&quot;;
						break;
					case 'Textarea':
						echo &quot;&lt;textarea class=\&quot;popmeinput\&quot; name=\&quot;$FieldName\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onKeyup=\&quot;$ValidateFunction();\&quot; onblur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;&gt;&quot;.$$FieldName.&quot;&lt;/textarea&gt;&quot;;
						break;
					case 'Password':
						echo &quot;&lt;input class=\&quot;popmeinput\&quot; size=\&quot;15\&quot; name=\&quot;$FieldName\&quot; value=\&quot;&quot;.$$FieldName.&quot;\&quot; type=\&quot;password\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onKeyup=\&quot;$ValidateFunction();\&quot; onblur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;/&gt;&quot;;
						break;
					case 'Date':
						$FieldNameD=$FieldName.&quot;D&quot;;
						$FieldNameM=$FieldName.&quot;M&quot;;
						$FieldNameY=$FieldName.&quot;Y&quot;;
						echo &quot;&lt;input class=\&quot;popmeinput\&quot; size=\&quot;1\&quot; name=\&quot;$FieldNameD\&quot; value=\&quot;&quot;.$$FieldNameD.&quot;\&quot; type=\&quot;text\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onKeyup=\&quot;$ValidateFunction();\&quot; onblur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;/&gt;&quot;;
						echo &quot;&lt;select class=\&quot;popmeinput\&quot; name=\&quot;$FieldNameM\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onChange=\&quot;$ValidateFunction();\&quot; onBlur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;&gt;\n&quot;;
						echo &quot;&lt;option value=\&quot;\&quot;&gt;&lt;/option&gt;\n&quot;;
						for ($i=1; $i&lt;=12;$i++) {
							if ($i==$$FieldNameM) {
								$Selected=&quot;selected=\&quot;selected\&quot;&quot;;
							} else {
								$Selected=&quot;&quot;;
							}
							echo &quot;&lt;option $Selected value=\&quot;$i\&quot;&gt;&quot;;
							echo date(&quot;M&quot;,mktime(0,0,0,$i,1,2000));
							echo &quot;&lt;/option&gt;\n&quot;;
						}
						echo &quot;&lt;/select&gt;&quot;;
						echo &quot;&lt;input class=\&quot;popmeinput\&quot; size=\&quot;2\&quot; name=\&quot;$FieldNameY\&quot; value=\&quot;&quot;.$$FieldNameY.&quot;\&quot; type=\&quot;text\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onKeyup=\&quot;$ValidateFunction();\&quot; onblur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;/&gt;&quot;;
						break;
					case 'Select':
						echo &quot;&lt;select class=\&quot;popmeinput\&quot; name=\&quot;$FieldName\&quot;&quot;;
						if ($NeedsValidation==&quot;Y&quot;) {
							echo &quot; onChange=\&quot;$ValidateFunction();\&quot; onBlur=\&quot;$ValidateFunction();\&quot;&quot;;
						}
						echo &quot;&gt;\n&quot;;
						if ($AllowBlank==&quot;Y&quot;) {
							echo &quot;&lt;option&gt;&lt;/option&gt;\n&quot;;
						}
						if (!isset($link2)) {
							include(&quot;connection2i.php&quot;);
						}
						if (mysqli_multi_query($link2,$SelectSql)) {
							do {
						        	if ($result2 = mysqli_store_result($link2)) {
									while ($row2=mysqli_fetch_array($result2, MYSQLI_BOTH)) {
										$ExistingFieldName=$row2[0];
										if (isset($row2[1])) {
											$ExistingFieldID=$row2[1];
											if ($ExistingFieldID==$$FieldName) {
												$Selected=&quot;selected=\&quot;selected\&quot;&quot;;
											}
											else {
												$Selected=&quot;&quot;;
											}
											$ExistingFieldID='value=&quot;'.$ExistingFieldID.'&quot;';
										} else {
											unset($ExistingFieldID);
											if ($ExistingFieldName==$$FieldName) {
												$Selected=&quot;selected=\&quot;selected\&quot;&quot;;
											}
											else {
												$Selected=&quot;&quot;;
											}
										}
										echo &quot;&lt;option $Selected $ExistingFieldID&gt;$ExistingFieldName&lt;/option&gt;\n&quot;;
									}
						        	 	mysqli_free_result($result2);
						       		}
							} while (mysqli_next_result($link2));
						}
						echo &quot;&lt;/select&gt;&quot;;
						break;
					}
					if ($FieldType!=&quot;Hidden&quot;) {
						if ($CanHide==&quot;Y&quot;) {
							echo &quot;&lt;/span&gt;&quot;;
						}
						echo &quot;&lt;/td&gt;\n&quot;;
						echo &quot;&lt;/tr&gt;\n&quot;;
					}
				}
				?&gt;
				&lt;tr&gt;
					&lt;td class=&quot;popuptable&quot;&gt;
					&lt;span id=&quot;aOK&quot;&gt;&lt;a class=&quot;popuptable&quot; href=&quot;#&quot; onclick=&quot;&lt;?=$OKFunction?&gt;&quot;&gt;OK&lt;/a&gt;&lt;/span&gt;
					&lt;/td&gt;
				&lt;/tr&gt;
				&lt;/table&gt;
				&lt;/form&gt;
				&lt;form name=&quot;OnloadForm&quot;&gt;
				&lt;input name=&quot;OnloadFunction&quot; value=&quot;&lt;?=$ValidateFunction?&gt;();&quot; type=&quot;hidden&quot;/&gt;
				&lt;/form&gt;
				&lt;?php
			}
        	 	mysqli_free_result($result);
       		}
	} while (mysqli_next_result($link));
}
?&gt;
</pre></p>
<p>Then he tells me that there was probably a tool out there that would have done it for me! So then you just need to set the variable $FormName, include this file and write the appropriate Javascript validation function. I Ajax the lot into a floating box in the middle of the screen (pretending to be a modal dialogue box).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=37&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2008/01/31/the-form-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>Doing the Mum stuff</title>
		<link>http://maryh.wordpress.com/2007/12/01/doing-the-mum-stuff/</link>
		<comments>http://maryh.wordpress.com/2007/12/01/doing-the-mum-stuff/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 20:54:56 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[children]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/2007/12/01/doing-the-mum-stuff/</guid>
		<description><![CDATA[I&#8217;ve got off pretty lightly when it comes to making costumes so far. My sister&#8217;s children had been angels in the past so last year was OK. The sheep for the class assembly came out of a friend&#8217;s nativity collection, etc. This year the dragon (of bad luck) is to be a sheep &#8211; luckily [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=36&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got off pretty lightly when it comes to making costumes so far. My sister&#8217;s children had been angels in the past so last year was OK. The sheep for the class assembly came out of a friend&#8217;s nativity collection, etc. </p>
<p>This year the dragon (of bad luck) is to be a sheep &#8211; luckily Asda have sheep in his size so that was OK &#8211; especially as they need to crawl in the costume! </p>
<p>But the angel needs to be a shepherd! I finally unearthed an old fashioned (stripe down each side) dish cloth and her ballet head band for the head dress but then there was actual sewing to do. My shirt wasn&#8217;t long enough so one of Daddy&#8217;s old ones with over half the sleeve cut off has been pressed into service. I don&#8217;t think that shepherds are known for being particularly smart so I didn&#8217;t feel the need to hem the sleeve. I then made the belt out of strips of the remaining sleeve sewn together then folded into a flat tube and sewn ip the side to stop it unfolding.</p>
<p>I haven&#8217;t found a walking stick yet!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=36&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2007/12/01/doing-the-mum-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
		<item>
		<title>It pays to keep an eye on what these guys are doing</title>
		<link>http://maryh.wordpress.com/2007/09/10/it-pays-to-keep-an-eye-on-what-these-guys-are-doing/</link>
		<comments>http://maryh.wordpress.com/2007/09/10/it-pays-to-keep-an-eye-on-what-these-guys-are-doing/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 19:53:49 +0000</pubDate>
		<dc:creator>maryh</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://maryh.wordpress.com/2007/09/10/it-pays-to-keep-an-eye-on-what-these-guys-are-doing/</guid>
		<description><![CDATA[Having struggled in the past to upload sourcecode using the pre and code tags and then still having to fiddle it is great to now have this simple method posted in the WordPress news section . I was so excited so I decided I had to blog about it. My excuse for using it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=35&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having struggled in the past to upload sourcecode using the pre and code tags and then still having to fiddle it is great to now have this simple method posted in <a href="http://wordpress.com/blog/2007/09/03/posting-source-code/">the WordPress news section </a>. I was so excited so I decided I had to blog about it.</p>
<p>My excuse for using it is a slight amendment to <a href="http://maryh.wordpress.com/2007/01/04/php-page-for-running-queries-against-a-mysql-database">my January post</a> on running queries against a MySQL database via PHP. I was finding that if I had a text field it was hard to see where one record ended and the next started. </p>
<table>
<tr>
<td>Record1</td>
<td>Short data</td>
<td>Other data</td>
<td>And here is a cell with loads and loads on stuff written in it trying to look like the output from a text field in my database query. Can you see what it looked like before? It isn&#8217;t easy to see where one cell starts and the next finishes is it?</td>
</tr>
<tr>
<td>Record2</td>
<td>Short data</td>
<td>Other data</td>
<td>Particularly if there are loads of fields in the output. This by the way is another cell with loads and loads on stuff written in it trying to look like the output from a text field in my database query. Shall we look and see what it all looks like with the alignment changed?</td>
</tr>
</table>
<p>Just do this when looping through the records instead:<br />
<pre class="brush: php;">
					while ($row = mysqli_fetch_row($result)) {
						echo "&lt;tr&gt;";
						for ($counter = 0; $counter &amp;lt; $numcols; $counter++) {
							echo "&lt;td valign=\\"top\\"&gt;". $row[$counter] ."&lt;/td&gt;";
						}
						echo "&lt;/tr&gt;";
					}
</pre></p>
<table>
<tr>
<td valign="top">Record1</td>
<td valign="top">Short data</td>
<td valign="top">Other data</td>
<td valign="top">And here is a cell with loads and loads on stuff written in it trying to look like the output from a text field in my database query. Can you see what it looks like now? Is it easier to see where one cell starts and the next finishes?</td>
</tr>
<tr>
<td valign="top">Record2</td>
<td valign="top">Short data</td>
<td valign="top">Other data</td>
<td valign="top">Particularly if there are loads of fields in the output. This by the way is another cell with loads and loads on stuff written in it trying to look like the output from a text field in my database query. Not much of a change of code but I&#8217;ve found it much more readable particularly when looking to check what the body of a stored procedure does!</td>
</tr>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maryh.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maryh.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maryh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maryh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maryh.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maryh.wordpress.com&amp;blog=604628&amp;post=35&amp;subd=maryh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://maryh.wordpress.com/2007/09/10/it-pays-to-keep-an-eye-on-what-these-guys-are-doing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f5900f6c7a84316f446445221f217fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">maryh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
