<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for James Baster</title>
	<atom:link href="http://jarofgreen.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jarofgreen.co.uk</link>
	<description>Blog about Technology from Scotland</description>
	<lastBuildDate>Tue, 05 Jun 2012 10:04:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on With the rise of mobile browsing, fixed page elements must die. by Mihael Konjević</title>
		<link>http://jarofgreen.co.uk/2012/06/fixed-page-elements-must-die/#comment-1451</link>
		<dc:creator>Mihael Konjević</dc:creator>
		<pubDate>Tue, 05 Jun 2012 10:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=378#comment-1451</guid>
		<description>Hey, jQuerypp guy here. I&#039;ve just pushed a quick fix so menu doesn&#039;t overlap the content anymore, and I&#039;m looking into making a proper mobile version now. Thanks for pointing this out.</description>
		<content:encoded><![CDATA[<p>Hey, jQuerypp guy here. I&#8217;ve just pushed a quick fix so menu doesn&#8217;t overlap the content anymore, and I&#8217;m looking into making a proper mobile version now. Thanks for pointing this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on QR codes on business cards should be contacts not URLs. by james</title>
		<link>http://jarofgreen.co.uk/2012/05/qr-codes-on-business-cards-should-be-contacts/#comment-1415</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 01 Jun 2012 15:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=367#comment-1415</guid>
		<description>&quot;That is pretty damn nifty.&quot; https://twitter.com/lizbth_geeks/status/208352454511837185
&quot;Nice work :o)&quot; https://twitter.com/icecolbeveridge/status/208267650852323330</description>
		<content:encoded><![CDATA[<p>&#8220;That is pretty damn nifty.&#8221; <a href="https://twitter.com/lizbth_geeks/status/208352454511837185" rel="nofollow">https://twitter.com/lizbth_geeks/status/208352454511837185</a><br />
&#8220;Nice work <img src='http://jarofgreen.co.uk/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )&#8221; <a href="https://twitter.com/icecolbeveridge/status/208267650852323330" rel="nofollow">https://twitter.com/icecolbeveridge/status/208267650852323330</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on QR codes on business cards should be contacts not URLs. by MDHayes</title>
		<link>http://jarofgreen.co.uk/2012/05/qr-codes-on-business-cards-should-be-contacts/#comment-1400</link>
		<dc:creator>MDHayes</dc:creator>
		<pubDate>Thu, 31 May 2012 18:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=367#comment-1400</guid>
		<description>Cool use. I have my number on the QR on my cards as I generally want to ease the process for people contacting me however it usually results in explaining what a QR actually is...</description>
		<content:encoded><![CDATA[<p>Cool use. I have my number on the QR on my cards as I generally want to ease the process for people contacting me however it usually results in explaining what a QR actually is&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flocklight: highlighting connections in a crowd by Culture Hack 2012 &#171; sarah griffiths design</title>
		<link>http://jarofgreen.co.uk/2012/04/flocklight/#comment-1279</link>
		<dc:creator>Culture Hack 2012 &#171; sarah griffiths design</dc:creator>
		<pubDate>Tue, 01 May 2012 15:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=328#comment-1279</guid>
		<description>[...] to create some wonderful (and sometimes weird) websites, programmes and apps.  Some favourite were FlockLight by James Baster which adds extra layers of meaning and usefulness to Twitter; David Bell&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] to create some wonderful (and sometimes weird) websites, programmes and apps.  Some favourite were FlockLight by James Baster which adds extra layers of meaning and usefulness to Twitter; David Bell&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Country fields in address forms by james</title>
		<link>http://jarofgreen.co.uk/2011/01/country-fields-in-address-forms/#comment-649</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 10 Nov 2011 23:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=37#comment-649</guid>
		<description>YES 
http://uxdesign.smashingmagazine.com/2011/11/10/redesigning-the-country-selector/</description>
		<content:encoded><![CDATA[<p>YES<br />
<a href="http://uxdesign.smashingmagazine.com/2011/11/10/redesigning-the-country-selector/" rel="nofollow">http://uxdesign.smashingmagazine.com/2011/11/10/redesigning-the-country-selector/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on What I got up to at this weekends Moving Targets hackday; replay social media with ShowShift by Richard Coyne</title>
		<link>http://jarofgreen.co.uk/2011/10/hackday-replay-social-media-with-showshift/#comment-579</link>
		<dc:creator>Richard Coyne</dc:creator>
		<pubDate>Mon, 31 Oct 2011 17:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=229#comment-579</guid>
		<description>Tweet Rewinder looks good, but the blurb doesn&#039;t seem to suggest that you can join in the tweet stream after the event, ie add your own tweets. There&#039;s still scope to develop Showshift branded for a particular production, eg watch the X Factor after the first showing and add your own comments, and the development of the app for more serious review and critique or for market research.</description>
		<content:encoded><![CDATA[<p>Tweet Rewinder looks good, but the blurb doesn&#8217;t seem to suggest that you can join in the tweet stream after the event, ie add your own tweets. There&#8217;s still scope to develop Showshift branded for a particular production, eg watch the X Factor after the first showing and add your own comments, and the development of the app for more serious review and critique or for market research.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by steve</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-232</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 21 Jun 2011 09:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-232</guid>
		<description>*Tumblr - i really should read my posts before sending them, typo&#039;s galore, Stewth!!</description>
		<content:encoded><![CDATA[<p>*Tumblr &#8211; i really should read my posts before sending them, typo&#8217;s galore, Stewth!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by steve</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-231</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 21 Jun 2011 09:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-231</guid>
		<description>I know it&#039;s different beast, but tumbr&#039;s process to setup a custom name was quick and straightforward, u just need to point an A record to their IP.  Sounds like wordpress have just made the thing a bit too complicated.. like u say, u&#039;ve already using a name server that does the job, why be forced to change. 

I&#039;ve already got domains spread across multiple registrars last thing I need is to have to spread them across multiple name servers aswell lol!

@ste101, @theradhouseteam</description>
		<content:encoded><![CDATA[<p>I know it&#8217;s different beast, but tumbr&#8217;s process to setup a custom name was quick and straightforward, u just need to point an A record to their IP.  Sounds like wordpress have just made the thing a bit too complicated.. like u say, u&#8217;ve already using a name server that does the job, why be forced to change. </p>
<p>I&#8217;ve already got domains spread across multiple registrars last thing I need is to have to spread them across multiple name servers aswell lol!</p>
<p>@ste101, @theradhouseteam</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introducing CreepyCoder; stalking programmers through commit messages by james</title>
		<link>http://jarofgreen.co.uk/2011/04/introducing-creepycoder/#comment-39</link>
		<dc:creator>james</dc:creator>
		<pubDate>Sun, 10 Apr 2011 23:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=152#comment-39</guid>
		<description>Github has a feature where you can see this on a per-project basis:
https://github.com/jarofgreen/CreepyCoder/graphs/punch_card

I also found this:
http://dustin.github.com/2009/01/11/timecard.html</description>
		<content:encoded><![CDATA[<p>Github has a feature where you can see this on a per-project basis:<br />
<a href="https://github.com/jarofgreen/CreepyCoder/graphs/punch_card" rel="nofollow">https://github.com/jarofgreen/CreepyCoder/graphs/punch_card</a></p>
<p>I also found this:<br />
<a href="http://dustin.github.com/2009/01/11/timecard.html" rel="nofollow">http://dustin.github.com/2009/01/11/timecard.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Volunteering with IT skills for charaties by james</title>
		<link>http://jarofgreen.co.uk/2011/03/volunteering-with-it-skills-for-charaties/#comment-34</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 06 Apr 2011 09:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=68#comment-34</guid>
		<description>Just getting into my first project from them, will let you know! </description>
		<content:encoded><![CDATA[<p>Just getting into my first project from them, will let you know! </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Volunteering with IT skills for charaties by Jane</title>
		<link>http://jarofgreen.co.uk/2011/03/volunteering-with-it-skills-for-charaties/#comment-33</link>
		<dc:creator>Jane</dc:creator>
		<pubDate>Wed, 06 Apr 2011 07:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=68#comment-33</guid>
		<description>I agree with you that ongoing IT support provided by volunteers is a problem. It is more exiting to do something over a weekend rather then every Tuesday. What is your experience with  it4Communities?</description>
		<content:encoded><![CDATA[<p>I agree with you that ongoing IT support provided by volunteers is a problem. It is more exiting to do something over a weekend rather then every Tuesday. What is your experience with  it4Communities?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by james</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-32</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 05 Apr 2011 22:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-32</guid>
		<description>Yeah, good metaphor. This losing business problem could be sorted out ...
Sounds like the kind of thing a programmer/designer could sort, but don&#039;t know if I&#039;ll ever find time, sorry :-/</description>
		<content:encoded><![CDATA[<p>Yeah, good metaphor. This losing business problem could be sorted out &#8230;<br />
Sounds like the kind of thing a programmer/designer could sort, but don&#8217;t know if I&#8217;ll ever find time, sorry :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by james</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-31</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 05 Apr 2011 22:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-31</guid>
		<description>You can actually do a lot, you can write to a file and I wouldn&#039;t be surprised if you can send email tho I haven&#039;t tried it myself. Let me know of any problems/feedback on the app!</description>
		<content:encoded><![CDATA[<p>You can actually do a lot, you can write to a file and I wouldn&#8217;t be surprised if you can send email tho I haven&#8217;t tried it myself. Let me know of any problems/feedback on the app!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by Stu</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-24</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Mon, 04 Apr 2011 12:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-24</guid>
		<description>very interesting James, thanks for sharing. I will download &amp; install your beta app and give it a try.

what CAN you do when a FATAL error happens?
(I assume you would not be able to save the error to a file, or send an email because php is shutting down.)</description>
		<content:encoded><![CDATA[<p>very interesting James, thanks for sharing. I will download &amp; install your beta app and give it a try.</p>
<p>what CAN you do when a FATAL error happens?<br />
(I assume you would not be able to save the error to a file, or send an email because php is shutting down.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by David Moncoeur</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-20</link>
		<dc:creator>David Moncoeur</dc:creator>
		<pubDate>Sun, 03 Apr 2011 17:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-20</guid>
		<description>.......it seems reminiscent of the problem of a shop that has roadworks going on around it for a week......they feel like they&#039;ve lost custom........obviously some business persons could also feel like they&#039;ve lost a crucial contact, which could have been more thoughtful on someone&#039;s part.
Another problem Ants &amp; I came upon was choosing a theme, when we put the theme on, it obscured some of the my 52-page treatise, uploaded in sections......at the points where one section closes and the reader moves onto the next, words become obliterated........I&#039;ve often wondered if someone, like Natalie or yourself, might sort that for us.</description>
		<content:encoded><![CDATA[<p>&#8230;&#8230;.it seems reminiscent of the problem of a shop that has roadworks going on around it for a week&#8230;&#8230;they feel like they&#8217;ve lost custom&#8230;&#8230;..obviously some business persons could also feel like they&#8217;ve lost a crucial contact, which could have been more thoughtful on someone&#8217;s part.<br />
Another problem Ants &amp; I came upon was choosing a theme, when we put the theme on, it obscured some of the my 52-page treatise, uploaded in sections&#8230;&#8230;at the points where one section closes and the reader moves onto the next, words become obliterated&#8230;&#8230;..I&#8217;ve often wondered if someone, like Natalie or yourself, might sort that for us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by james</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-17</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 01 Apr 2011 21:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-17</guid>
		<description>Basically, if you move an existing domain name onto the wordpress.com hosting service you have to take all other services (such as email) on that domain off-line while you move. The WordPress software is great, it&#039;s just an issue with how the hosting service provided by wordpress.com works.</description>
		<content:encoded><![CDATA[<p>Basically, if you move an existing domain name onto the wordpress.com hosting service you have to take all other services (such as email) on that domain off-line while you move. The WordPress software is great, it&#8217;s just an issue with how the hosting service provided by wordpress.com works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by james</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-16</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 01 Apr 2011 21:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-16</guid>
		<description>Well, there shouldn&#039;t be any Exception, echo $crypto-&gt;compress(); generates an error not an exception, so the try/catch isn&#039;t needed in that example.

But I notice that in PHP 5.3.2, If there is an error handler set then the shutdown function is not called, and if there isn&#039;t the shutdown function is called, as you say. Interesting.</description>
		<content:encoded><![CDATA[<p>Well, there shouldn&#8217;t be any Exception, echo $crypto-&gt;compress(); generates an error not an exception, so the try/catch isn&#8217;t needed in that example.</p>
<p>But I notice that in PHP 5.3.2, If there is an error handler set then the shutdown function is not called, and if there isn&#8217;t the shutdown function is called, as you say. Interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goodbye wordpress.com, why I&#8217;m self hosting by Dave Moncoeur</title>
		<link>http://jarofgreen.co.uk/2011/03/goodbye-wordpress-com-why-im-self-hosting/#comment-13</link>
		<dc:creator>Dave Moncoeur</dc:creator>
		<pubDate>Mon, 28 Mar 2011 20:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.co.uk/?p=107#comment-13</guid>
		<description>Reading your spiel up there, it all sounds very complicated, and I&#039;m struggling to understand what the problem is......my website url is as given, but in case it doesn&#039;t appear to your blog readers, www.phonedupnshutup.com is my WORDPRESS domain name, the guy who sorted it for me is Ants from Strathclyde University and he did both computer structuronics and web design......my website seems like a far simpler success than yours, James, I don&#039;t have any complaints, it&#039;s all going smoothly, and wordpress is beautifully kool.......my Facebook friend Natalie Clarke has just completed an absolutely gorgeous wordpress website, don&#039;t see a prob there either.</description>
		<content:encoded><![CDATA[<p>Reading your spiel up there, it all sounds very complicated, and I&#8217;m struggling to understand what the problem is&#8230;&#8230;my website url is as given, but in case it doesn&#8217;t appear to your blog readers, <a href="http://www.phonedupnshutup.com" rel="nofollow">http://www.phonedupnshutup.com</a> is my WORDPRESS domain name, the guy who sorted it for me is Ants from Strathclyde University and he did both computer structuronics and web design&#8230;&#8230;my website seems like a far simpler success than yours, James, I don&#8217;t have any complaints, it&#8217;s all going smoothly, and wordpress is beautifully kool&#8230;&#8230;.my Facebook friend Natalie Clarke has just completed an absolutely gorgeous wordpress website, don&#8217;t see a prob there either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by cryptocompress</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-5</link>
		<dc:creator>cryptocompress</dc:creator>
		<pubDate>Wed, 16 Mar 2011 14:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-5</guid>
		<description>hi,

another very strange issue :)

&lt;?php

function error($code, $message, $file = null, $line = 0) {
	echo &quot;error_handler:n&quot;;
	echo $message . &#039; - &#039; . $code;
	echo &quot;&quot;;
	throw new Exception($message, $code);
}

function shutdown() {
	echo &quot;shutdown_function:n&quot;;
	var_dump(error_get_last());
	echo &quot;&quot;;
}

#set_error_handler(&#039;error&#039;);
register_shutdown_function(&#039;shutdown&#039;);

try {
	echo $crypto-&gt;compress();
} catch (Exception $e) { $t = $e-&gt;getTrace(); echo &#039;Exception at &#039; . $t[0][&#039;file&#039;] . &#039;:&#039; . $t[0][&#039;line&#039;] . &quot;n&quot;; }



^^ in code above, shutdown function is called.
but if error handler is set, the Exception is swallowed and shutdown function is not called :)</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>another very strange issue <img src='http://jarofgreen.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&lt;?php</p>
<p>function error($code, $message, $file = null, $line = 0) {<br />
	echo &quot;error_handler:n&#8221;;<br />
	echo $message . &#8216; &#8211; &#8216; . $code;<br />
	echo &#8220;&#8221;;<br />
	throw new Exception($message, $code);<br />
}</p>
<p>function shutdown() {<br />
	echo &#8220;shutdown_function:n&#8221;;<br />
	var_dump(error_get_last());<br />
	echo &#8220;&#8221;;<br />
}</p>
<p>#set_error_handler(&#8216;error&#8217;);<br />
register_shutdown_function(&#8216;shutdown&#8217;);</p>
<p>try {<br />
	echo $crypto-&gt;compress();<br />
} catch (Exception $e) { $t = $e-&gt;getTrace(); echo &#8216;Exception at &#8216; . $t[0]['file'] . &#8216;:&#8217; . $t[0]['line'] . &#8220;n&#8221;; }</p>
<p>^^ in code above, shutdown function is called.<br />
but if error handler is set, the Exception is swallowed and shutdown function is not called <img src='http://jarofgreen.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by jarofgreen</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-4</link>
		<dc:creator>jarofgreen</dc:creator>
		<pubDate>Mon, 28 Feb 2011 16:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-4</guid>
		<description>Interesting bug report, thanks, will have a play with this later ...</description>
		<content:encoded><![CDATA[<p>Interesting bug report, thanks, will have a play with this later &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introduction to PHP Exceptions by jarofgreen</title>
		<link>http://jarofgreen.co.uk/2011/02/intro-to-php-exceptions/#comment-8</link>
		<dc:creator>jarofgreen</dc:creator>
		<pubDate>Mon, 28 Feb 2011 16:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=101#comment-8</guid>
		<description>Fair point, you do end up having to duplicate code. Having a finally clause would be good. 

Using __destruct() to clean up resources can be handy, but sometimes it can be a long time after the object goes out of scope before this is called. I believe earlier version of PHP didn&#039;t call it until script shutdown. For web requests this doesn&#039;t matter (they are very short by nature), but for long running processes this may cause problems. Just something to be aware of.

Maybe I should think of a better example - I just wanted to illustrate that you can re-throw Exceptions :-)</description>
		<content:encoded><![CDATA[<p>Fair point, you do end up having to duplicate code. Having a finally clause would be good. </p>
<p>Using __destruct() to clean up resources can be handy, but sometimes it can be a long time after the object goes out of scope before this is called. I believe earlier version of PHP didn&#8217;t call it until script shutdown. For web requests this doesn&#8217;t matter (they are very short by nature), but for long running processes this may cause problems. Just something to be aware of.</p>
<p>Maybe I should think of a better example &#8211; I just wanted to illustrate that you can re-throw Exceptions <img src='http://jarofgreen.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Catching PHP Errors by cryptocompress</title>
		<link>http://jarofgreen.co.uk/2011/02/catching-php-errors/#comment-3</link>
		<dc:creator>cryptocompress</dc:creator>
		<pubDate>Mon, 28 Feb 2011 14:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=45#comment-3</guid>
		<description>hi,

a small notice on &quot;Type 3. Fatal Errors&quot; and &quot;error_get_last()&quot;:
PHP-internal-Exceptions are hybrid (Exceptions and Errors)!

1. if you throw own exceptions &quot;error_get_last()&quot; returns NULL
2. if PHP throws (internal!) exceptions &quot;error_get_last()&quot; returns exception-data!

so you end up logging catched exceptions/errors.

Code:
&lt;code&gt;
ini_set(&#039;display_errors&#039;, true);
date_default_timezone_set(&#039;UTC&#039;);

try {
	throw new Exception(&#039;crypto&#039;);
} catch (Exception $e) {
	echo &#039;Exception: &#039; . var_export($e, true) . &#039;&#039;;
}

echo &#039;error_get_last: &#039; . var_export(error_get_last(), true) . &#039;&#039;;

try {
	new DateTime(&#039;compress&#039;);
} catch (Exception $e) {
	echo &#039;Exception: &#039; . var_export($e, true) . &#039;&#039;;
}

echo &#039;error_get_last: &#039; . var_export(error_get_last(), true) . &#039;&#039;;
&lt;/code&gt;

more info:
http://de2.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
http://bugs.php.net/bug.php?id=54043</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>a small notice on &#8220;Type 3. Fatal Errors&#8221; and &#8220;error_get_last()&#8221;:<br />
PHP-internal-Exceptions are hybrid (Exceptions and Errors)!</p>
<p>1. if you throw own exceptions &#8220;error_get_last()&#8221; returns NULL<br />
2. if PHP throws (internal!) exceptions &#8220;error_get_last()&#8221; returns exception-data!</p>
<p>so you end up logging catched exceptions/errors.</p>
<p>Code:<br />
<code><br />
ini_set('display_errors', true);<br />
date_default_timezone_set('UTC');</p>
<p>try {<br />
	throw new Exception('crypto');<br />
} catch (Exception $e) {<br />
	echo 'Exception: ' . var_export($e, true) . '';<br />
}</p>
<p>echo 'error_get_last: ' . var_export(error_get_last(), true) . '';</p>
<p>try {<br />
	new DateTime('compress');<br />
} catch (Exception $e) {<br />
	echo 'Exception: ' . var_export($e, true) . '';<br />
}</p>
<p>echo 'error_get_last: ' . var_export(error_get_last(), true) . '';<br />
</code></p>
<p>more info:<br />
<a href="http://de2.php.net/manual/en/errorfunc.configuration.php#ini.track-errors" rel="nofollow">http://de2.php.net/manual/en/errorfunc.configuration.php#ini.track-errors</a><br />
<a href="http://bugs.php.net/bug.php?id=54043" rel="nofollow">http://bugs.php.net/bug.php?id=54043</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introduction to PHP Exceptions by cryptocompress</title>
		<link>http://jarofgreen.co.uk/2011/02/intro-to-php-exceptions/#comment-7</link>
		<dc:creator>cryptocompress</dc:creator>
		<pubDate>Mon, 28 Feb 2011 13:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=101#comment-7</guid>
		<description>hi,

&gt; ...maybe clean up a resource, like close a file you have opened...
no! you do not want to duplicated code!

you want to clean up resources:
- in normal flow (if there is no Exception)
- in each catch-block (&quot;you can have multiple catch blocks&quot;)

normally this should be done in &quot;finally&quot; but php has no &quot;finally&quot; yet:
http://bugs.php.net/bug.php?id=32100

so php forces you to encapsulate such logic in an object and do the &quot;clean up&quot; in &quot; __destructor&quot; as described here:
http://www2.research.att.com/~bs/bs_faq2.html#finally

if you think this is not suitable, please vote for:
http://bugs.php.net/bug.php?id=36779</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>&gt; &#8230;maybe clean up a resource, like close a file you have opened&#8230;<br />
no! you do not want to duplicated code!</p>
<p>you want to clean up resources:<br />
- in normal flow (if there is no Exception)<br />
- in each catch-block (&#8220;you can have multiple catch blocks&#8221;)</p>
<p>normally this should be done in &#8220;finally&#8221; but php has no &#8220;finally&#8221; yet:<br />
<a href="http://bugs.php.net/bug.php?id=32100" rel="nofollow">http://bugs.php.net/bug.php?id=32100</a></p>
<p>so php forces you to encapsulate such logic in an object and do the &#8220;clean up&#8221; in &#8221; __destructor&#8221; as described here:<br />
<a href="http://www2.research.att.com/~bs/bs_faq2.html#finally" rel="nofollow">http://www2.research.att.com/~bs/bs_faq2.html#finally</a></p>
<p>if you think this is not suitable, please vote for:<br />
<a href="http://bugs.php.net/bug.php?id=36779" rel="nofollow">http://bugs.php.net/bug.php?id=36779</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Amiando and the apparent SSL certificate by jarofgreen</title>
		<link>http://jarofgreen.co.uk/2011/02/amiando-and-the-self-claimed-ssl-certificate/#comment-6</link>
		<dc:creator>jarofgreen</dc:creator>
		<pubDate>Mon, 14 Feb 2011 09:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=74#comment-6</guid>
		<description>http://twitter.com/danfrydman says &quot;@jarofgreen it runs an iframe though, right? I booked using @amiando this week and was sure that while the main page wasn&#039;t SSL, they were.&quot;

I said &quot;@danfrydman @amiando they do actually use SSL but if your not a developer it looks like they don&#039;t. That&#039;s what I object to.&quot;

http://twitter.com/felixhaas says &quot;@jarofgreen @danfrydman yes we of course use SSL but it does not appear in the URL line as it&#039;s only used in the iframe ...&quot;

http://twitter.com/danfrydman &quot;@felixhaas @jarofgreen whenever we use SSL in a page frame or widget, we&#039;ll always run the parent page in SSL - just good manners&quot;

I said &quot;@felixhaas I know you use SSL, I&#039;m a developer. But normal ppl can&#039;t tell. @danfrydman point on manners is right http://wp.me/p1if9P-1c&quot;

http://twitter.com/danfrydman &quot;@jarofgreen but with a widget placement in a site it isn&#039;t @amiando&#039;s responsibility to enforce SSL - but guidance needed @felixhaas&quot;

I said &quot;@danfrydman @felixhaas But widget makes @amiando look bad - *looks* like no security. Maybe there is a case for enforcement, guidance def.&quot;</description>
		<content:encoded><![CDATA[<p><a href="http://twitter.com/danfrydman" rel="nofollow">http://twitter.com/danfrydman</a> says &#8220;@jarofgreen it runs an iframe though, right? I booked using @amiando this week and was sure that while the main page wasn&#8217;t SSL, they were.&#8221;</p>
<p>I said &#8220;@danfrydman @amiando they do actually use SSL but if your not a developer it looks like they don&#8217;t. That&#8217;s what I object to.&#8221;</p>
<p><a href="http://twitter.com/felixhaas" rel="nofollow">http://twitter.com/felixhaas</a> says &#8220;@jarofgreen @danfrydman yes we of course use SSL but it does not appear in the URL line as it&#8217;s only used in the iframe &#8230;&#8221;</p>
<p><a href="http://twitter.com/danfrydman" rel="nofollow">http://twitter.com/danfrydman</a> &#8220;@felixhaas @jarofgreen whenever we use SSL in a page frame or widget, we&#8217;ll always run the parent page in SSL &#8211; just good manners&#8221;</p>
<p>I said &#8220;@felixhaas I know you use SSL, I&#8217;m a developer. But normal ppl can&#8217;t tell. @danfrydman point on manners is right <a href="http://wp.me/p1if9P-1c" rel="nofollow">http://wp.me/p1if9P-1c</a>&#8221;</p>
<p><a href="http://twitter.com/danfrydman" rel="nofollow">http://twitter.com/danfrydman</a> &#8220;@jarofgreen but with a widget placement in a site it isn&#8217;t @amiando&#8217;s responsibility to enforce SSL &#8211; but guidance needed @felixhaas&#8221;</p>
<p>I said &#8220;@danfrydman @felixhaas But widget makes @amiando look bad &#8211; *looks* like no security. Maybe there is a case for enforcement, guidance def.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Country fields in address forms by jarofgreen</title>
		<link>http://jarofgreen.co.uk/2011/01/country-fields-in-address-forms/#comment-2</link>
		<dc:creator>jarofgreen</dc:creator>
		<pubDate>Fri, 04 Feb 2011 10:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://jarofgreen.wordpress.com/?p=37#comment-2</guid>
		<description>http://twitter.com/wemakesenseux say &quot;Automagically from your IP would be great. Autocomplete still better than a dropdown. IMHO!&quot;</description>
		<content:encoded><![CDATA[<p><a href="http://twitter.com/wemakesenseux" rel="nofollow">http://twitter.com/wemakesenseux</a> say &#8220;Automagically from your IP would be great. Autocomplete still better than a dropdown. IMHO!&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
