<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Jabit</title><link>http://www.jabit.com</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Jabit" /><description>Thoughts from my world</description><language>en</language><lastBuildDate>Tue, 31 May 2011 02:20:03 PDT</lastBuildDate><generator>http://wordpress.org/?v=3.0.5</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Jabit" /><feedburner:info uri="jabit" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>52.363545961074365</geo:lat><geo:long>-7.705096006393433</geo:long><feedburner:emailServiceId>Jabit</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>What to do with my iPad?</title><link>http://feedproxy.google.com/~r/Jabit/~3/DSBlW1_XWPg/</link><category>Ramblings</category><category>iPad</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Mon, 30 May 2011 08:42:06 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=322</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>So I&#8217;ve managed to borrow an iPad for a few months. Exciting&#8230;well that&#8217;s what I thought but I&#8217;m not so sure anymore. My problem is I don&#8217;t know what to use it for.<span id="more-322"></span></p>
<p>Let me first set the scene. I have a laptop which I haul into work everyday and home again in the evening. At home we have a PC in the kitchen which is always on and connected to the internet. In my pocket I have an iPhone.</p>
<p>When I took charge of this iPad I was really excited about using it and to see how my wife and kids were going to use it. Straight away I installed the Twitter (for the iPad) app. So far so good. The app definitely provides a better user experience above that of the iPhone version. I can, for example, see shared links inline rather than having to open them in Safari. Next I downloaded the iPads&#8217; Facebook app&#8230;. hang on, there isn&#8217;t one. Can you believe that? Disappointment starts to set in. Undeterred I go searching for ePaper apps. I decided to download the The Irish Times or The Irish Independents ePaper app so that I could purchase and peruse the paper while eating my Cheerios. Mmmm, not so fast. If you are to believe the customer reviews on the App Store, and I have no reason not to, they are rubbish. Ok, so forget about an ePaper app. What else can I get? AccuWeather, we love AccuWeather in our house (typically Irish, constantly wanting to know when the sun is going to come out). Alas, AccuWeather don&#8217;t have an iPad app. Sure, I can install their iPhone app on the iPad and double it&#8217;s size so that it takes up most of my nice new big iPad screen but hey, I want to move forwards not backwards. Forget AccuWeather. Let&#8217;s see, anything else? Found it. A few free games for the kids, which take good advantage of the accelerometer, and some stories from StoryChimes.</p>
<p>Maybe, I thought, I am trying to hard to find that &#8220;killer&#8221; app. Why not just use what is on it &#8230;. Safari and YouTube. All very nice, but I have a PC in the kitchen and a laptop at my desk. So, I pondered, <em>when</em> am I going to use it? So far it&#8217;s been on the couch while &#8220;watching&#8221; the box. There is no doubt that I am consuming more information now than before, I spend more time reading work related articles and it&#8217;s great for lying back and watching some Adobe TV clips. My wife occasionally uses it to check up on the latest fashion or dream about holiday destinations we probably wont ever get to.</p>
<p>The funny thing is, if you were to say &#8220;give it to me so, I&#8217;ll use it&#8221;, I&#8217;d reply &#8220;no way, it&#8217;s mine&#8221;. I live in hope.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/DSBlW1_XWPg" height="1" width="1"/>]]></content:encoded><description>So I&amp;#8217;ve managed to borrow an iPad for a few months. Exciting&amp;#8230;well that&amp;#8217;s what I thought but I&amp;#8217;m not so sure anymore. My problem is I don&amp;#8217;t know what to use it for. Let me first set the scene. I &amp;#8230; &lt;a href="http://www.jabit.com/2011/05/30/what-to-do-with-my-ipad/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/05/30/what-to-do-with-my-ipad/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><feedburner:origLink>http://www.jabit.com/2011/05/30/what-to-do-with-my-ipad/</feedburner:origLink></item><item><title>Facebook for Teachers</title><link>http://feedproxy.google.com/~r/Jabit/~3/URCumbicEG4/</link><category>Social Media</category><category>facebook</category><category>fb</category><category>ICTEdu</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Mon, 16 May 2011 05:59:22 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=309</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Last Saturday I attended, and presented at, the <a href="http://www.tippinst.ie/schools/index.htm">ICT in Education conference</a> which was attended by, I believe, over 160 people (mainly teachers) who have a real passion about using ICT as part of their teaching.<span id="more-309"></span></p>
<p>A link to my presentation, &#8220;Facebook for Teachers&#8221;, is available at the end of this post.</p>
<p>The conference was kicked off by Christian Payne (aka <a href="http://twitter.com/documentally">Documentally</a>) who spoke about &#8220;Mobile Story Making&#8221;. Christian is a great story teller, has a great presentation style and is interesting, funny and informative. If you don&#8217;t believe me, <a href="http://vimeo.com/23724480">watch for yourself</a>.</p>
<p>Next up was Ciaran McCormack whose presentation was entitled &#8220;Preparing our teachers for the Storytellers of tomorrow&#8221;. I wasn&#8217;t really surprise, but it&#8217;s still a bit of a shock to see it in writing, that a large proportion of our secondary school students think school is boring. What is interesting is that this boredom, for many, is due in no small part to how &#8220;exciting&#8221; life and learning is outside of the classroom environment due to kids being exposed to various forms of technology (games, phones, the internet). This certainly poses a real challenge for our schools and teachers. Another thing that caught my attention during Ciaran&#8217;s talk was how very simple use of technology can make for a very exciting and motivating learning environment, the <a href="http://www.fisbookclub.com/">FIS Bookclub</a> being a great example. You can watch Ciaran&#8217;s presentation <a href="http://vimeo.com/23721182">here</a> (the audio improves a lot after about 8 minutes when someone hands Ciaran a microphone).</p>
<p>After this we all broke out into various <a href="http://www.tippinst.ie/schools/programme/index.htm">workshops/talks</a>, one of which was presented by my good self entitled &#8220;Facebook for Teachers&#8221; and, as promised, here it is for <a href="http://www.jabit.com/wp-content/uploads/2011/05/FacebookForTeachers.pdf">download</a>.</p>
<p>Those who are interested in exploring the use of Facebook in the classroom might be interested in <a href="http://facebookforeducators.org/">Facebook for Educators</a> and Coolcat Teachers Blog Post<a href="http://coolcatteacher.blogspot.com/2011/03/facebook-friending-101-for-schools.html"> Facebook Friending 101 for Schools</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-315 aligncenter" title="DigitalStorytelling" src="http://www.jabit.com/wp-content/uploads/2011/05/DigitalStorytelling.png" alt="" width="824" height="495" /></p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/URCumbicEG4" height="1" width="1"/>]]></content:encoded><description>Last Saturday I attended, and presented at, the ICT in Education conference which was attended by, I believe, over 160 people (mainly teachers) who have a real passion about using ICT as part of their teaching. A link to my &amp;#8230; &lt;a href="http://www.jabit.com/2011/05/16/facebook-for-teachers/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/05/16/facebook-for-teachers/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/05/16/facebook-for-teachers/</feedburner:origLink></item><item><title>Old Irish Wives Tales</title><link>http://feedproxy.google.com/~r/Jabit/~3/rzdM1zcy340/</link><category>Ramblings</category><category>fb</category><category>old Irish wives tales</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Thu, 14 Apr 2011 03:20:15 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=287</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Over breakfast this morning my 5 year old son was telling me that if you find a horse shoe it&#8217;s lucky. I was explaining to him that it is an old Irish wives tale. Then I started to think of the other ones I knew.</p>
<p><span id="more-287"></span></p>
<p>If you see a black cat it&#8217;s unlucky but if it crosses your path it&#8217;s good look.</p>
<p><img class="size-full wp-image-293 alignright" title="Peig-Sayers" src="http://www.jabit.com/wp-content/uploads/2011/04/Peig-Sayers.png" alt="" width="180" height="253" /></p>
<p>If you give a friend a brooch it pierces the friendship.</p>
<p>It&#8217;s bad luck to put new shoes on a table.</p>
<p>It&#8217;s bad luck to open an umbrella in a house.</p>
<p>If you spill salt you should throw it over your left shoulder to stave off bad luck.</p>
<p>Whistling women and crowing hens will bring you bad luck. (Another version of this, thanks to John, is: a whistling woman and a cackling hen, draw the devil from his den)</p>
<p>[update: April 2011]</p>
<p>Do a load of washing on New Year&#8217;s Day, you&#8217;ll wash a member of your family away.</p>
<p>It&#8217;s bad luck to buy your own wallet or purse.</p>
<p>If you gift a wallet to someone but a bit of money in it for good luck.</p>
<p>[update: May 2011]</p>
<p>Knife to the floor, stranger to the door.</p>
<p>So now my son and I are on a mission to find as many wives tales as we can. Surely there must be many more, do you know of others?</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/rzdM1zcy340" height="1" width="1"/>]]></content:encoded><description>Over breakfast this morning my 5 year old son was telling me that if you find a horse shoe it&amp;#8217;s lucky. I was explaining to him that it is an old Irish wives tale. Then I started to think of the &amp;#8230; &lt;a href="http://www.jabit.com/2011/04/14/old-irish-wives-tales/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/04/14/old-irish-wives-tales/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/04/14/old-irish-wives-tales/</feedburner:origLink></item><item><title>Adding a ‘tab’ to your Facebook Page</title><link>http://feedproxy.google.com/~r/Jabit/~3/ydUaKSRrAf0/</link><category>Social Media</category><category>Web Development</category><category>facebook</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Wed, 13 Apr 2011 08:09:27 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=269</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Facebook recently announced that FB users will no longer be able to add Static FBML applications (like &#8216;tabs&#8217;) to their (business) pages and that users should instead be using iFrame applications. So how do you create an iFrame application?</p>
<p><span id="more-269"></span>Here are the steps:</p>
<ol>
<li>Create a Facebook Page</li>
<li>Create a Facebook Application (which is essentially the tab you want to add to your page).</li>
<li>Create a HTML page which contains the content you want displayed within the tab</li>
<li>Link the Facebook Application to the HTML page</li>
<li>Add the Facebook Application to your Facebook page</li>
</ol>
<p>I am going to assume you already have a Facebook Page so first up is creating a Facebook Application. To do this you need to add the Facebook Developer application to your Facebook profile by going to <a href="http://www.facebook.com/developers/">http://www.facebook.com/developers/</a>. This is a Facebook application that allows you to create Facebook applications. Once you have granted the Facebook Developer application access you then click on the &#8220;Set Up New App&#8221; button that is located in the top right of the page. You will be prompted to give your application a name and to agree to the terms and conditions.</p>
<p style="text-align: left;">Facebook will automatically redirect you to the &#8220;Edit settings&#8221; menu option of your newly created application. The &#8220;Edit settings&#8221; page has the following tabs:</p>
<p style="text-align: center;"><a href="http://www.jabit.com/wp-content/uploads/2011/04/edit-settings-menu.png"><img class="size-full wp-image-271 aligncenter" title="edit-settings-menu" src="http://www.jabit.com/wp-content/uploads/2011/04/edit-settings-menu.png" alt="" width="219" height="184" /></a></p>
<p style="text-align: left;">Click on the About tab and give your application a name, description, icon and logo:</p>
<p style="text-align: center;"><img class="size-full wp-image-273 aligncenter" title="edit-settings-about" src="http://www.jabit.com/wp-content/uploads/2011/04/edit-settings-about.png" alt="" width="695" height="297" /></p>
<p style="text-align: left;">As you can see, I have given my application the name &#8220;Jabit&#8217;s latest posts&#8221; and an appropriate description. Note that the application name given here isn&#8217;t the name that will be associated with the final tab on your Facebook page. I have also given my application an icon which will be displayed beside the tab in my Facebook page:</p>
<p style="text-align: center;"><img class="size-full wp-image-274 aligncenter" title="jabit-tab" src="http://www.jabit.com/wp-content/uploads/2011/04/jabit-tab.png" alt="" width="113" height="110" /></p>
<p>Now click on the &#8220;Facebook Integration&#8221; tab located on the left. If you scroll down the page you will see a section called &#8220;Page Tabs&#8221;:</p>
<p style="text-align: center;"><img class="size-full wp-image-277 aligncenter" title="edit-settings-facebook-integration" src="http://www.jabit.com/wp-content/uploads/2011/04/edit-settings-facebook-integration.png" alt="" width="694" height="216" /></p>
<p style="text-align: left;">The tab name is what will appear as you tab text on your Facebook page. Select the IFrame radio button and in the Tab URL field enter the url of the html page which contains the content you want displayed when a user clicks on your tab.</p>
<p style="text-align: left;">Almost there. Click the &#8220;Save Changes&#8221; button which will bring you back to your &#8220;my apps&#8221; page on facebook. You should now see your application listed here. Each application has a set of menu options associated with it:</p>
<p style="text-align: center;"><img class="size-full wp-image-270 aligncenter" title="app-menu" src="http://www.jabit.com/wp-content/uploads/2011/04/app-menu.png" alt="" width="162" height="117" /></p>
<p>The &#8220;Edit settings&#8221; menu is the one you have just been through (after creating a Facebook application facebook automatically opens this menu option). Click on the &#8220;Application Profile Page&#8221; option. This will bring you to &#8230;. your applications profile page. All applications have their very own page on Facebook. Down the bottom left hand side if this page you should see a link &#8220;Add to my Page&#8221; which will allow you to add the application (tab) to one of the Facebook Pages you administer.</p>
<p>And finally, writing the html page that your Facebook applications loads into an iFrame. The html page that your tab loads should be no wider than 520px and no higher than 800px, otherwise Facebook will display scrolling bars. A simple way to achieve this is setting the width of your html body to 520 using CSS:</p>
<pre class="brush: css; title: ;">
&lt;style type=&quot;text/css&quot;&gt;
body
{
  width:520px;
}
&lt;/style&gt;
</pre>
<p>That&#8217;s about it. One other thing to note is that links in the html page that is getting displayed by your application should have target=&#8221;_blank&#8221; if you want them to appear outside of your Facebook tab.</p>
<p>I do, however, have a confession to make. The &#8220;Recent blogs&#8221; tab on <a href="http://www.facebook.com/pages/Jabit/191046624259939">my Facebook Page</a> isn&#8217;t pointing to a html page. It&#8217;s actually pointing to a php page which dynamically queries my blog for the ten latest posts and returns the appropriate html.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/ydUaKSRrAf0" height="1" width="1"/>]]></content:encoded><description>Facebook recently announced that FB users will no longer be able to add Static FBML applications (like &amp;#8216;tabs&amp;#8217;) to their (business) pages and that users should instead be using iFrame applications. So how do you create an iFrame application? Here &amp;#8230; &lt;a href="http://www.jabit.com/2011/04/13/adding-a-tab-to-your-facebook-page/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/04/13/adding-a-tab-to-your-facebook-page/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/04/13/adding-a-tab-to-your-facebook-page/</feedburner:origLink></item><item><title>Creating an iPhone icon for your web site</title><link>http://feedproxy.google.com/~r/Jabit/~3/JaFnbl1bF08/</link><category>Web Development</category><category>html</category><category>iPhone</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Wed, 06 Apr 2011 07:30:46 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=256</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>The latest versions of the iPhone allow you to add a website shortcut to your iPhone&#8217;s ‘Home Screen’. You can easily specify the icon that gets used on the home screen, here’s how.</p>
<p><span id="more-256"></span></p>
<p>If, for example, I use the Safari browser on my iPhone to go to <a href="http://www.jabit.com">www.jabit.com</a> I will see something like this:</p>
<p style="text-align: center;"><img class="aligncenter" style="display: inline; border: 0px initial initial;" title="iphone-icons-1" src="http://www.jabit.com/wp-content/uploads/2011/04/iphoneicons1_thumb.png" border="0" alt="iphone-icons-1" width="164" height="244" /></p>
<p>As you can see, at the bottom center of the screen there is a button (that looks like an arrow coming out of a box) that if I press displays the following:</p>
<p style="text-align: center;"><img class="aligncenter" style="display: inline; border: 0px initial initial;" title="iphone-icons-2" src="http://www.jabit.com/wp-content/uploads/2011/04/iphoneicons2_thumb.png" border="0" alt="iphone-icons-2" width="164" height="244" /></p>
<p>If I click on the button “Add to Home Screen” I get this:</p>
<p style="text-align: center;"><img class="aligncenter" style="display: inline; border: 0px initial initial;" title="iphone-icons-3" src="http://www.jabit.com/wp-content/uploads/2011/04/iphoneicons3_thumb.png" border="0" alt="iphone-icons-3" width="164" height="244" /></p>
<p>Notice that there is a nice icon displayed that the phone will use as the icon on the home screen of your phone. Within the html of my site I have specified this icon as the one to use, if I didn’t specify any icon then the phone will take a screen shot of my home page and use that instead. So how did I specify the icon?</p>
<p>There are two ways of doing this. The first is to simply create a 45&#215;45 png image called apple-touch-icon.png of the icon you want to use and place it in the root of your website. Here&#8217;s mine:</p>
<p style="text-align: center;"><img class="size-full wp-image-258 aligncenter" title="apple-touch-icon" src="http://www.jabit.com/wp-content/uploads/2011/04/apple-touch-icon1.png" alt="" width="45" height="45" /></p>
<p>The second way is to add a reference to the icon within the head section of your home page, something like:</p>
<p>&lt;link rel=&#8221;apple-touch-icon href=&#8221;/images/apple-touch-icon.png&#8221;/&gt;</p>
<p>The end result is:</p>
<p style="text-align: center;"><a href="http://www.jabit.com/wp-content/uploads/2011/04/iphoneicons4.png"><img class="aligncenter" style="display: inline;" title="iphone-icons-4" src="http://www.jabit.com/wp-content/uploads/2011/04/iphoneicons4_thumb.png" border="0" alt="iphone-icons-4" width="164" height="244" /></a></p>
<p>Notice that the icon that gets displayed has rounded edges and a glossy finish, this is something that the iPhone automatically does.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/JaFnbl1bF08" height="1" width="1"/>]]></content:encoded><description>The latest versions of the iPhone allow you to add a website shortcut to your iPhone&amp;#8217;s ‘Home Screen’. You can easily specify the icon that gets used on the home screen, here’s how. If, for example, I use the Safari browser on &amp;#8230; &lt;a href="http://www.jabit.com/2011/04/06/creating-an-iphone-icon-for-your-web-site/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/04/06/creating-an-iphone-icon-for-your-web-site/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/04/06/creating-an-iphone-icon-for-your-web-site/</feedburner:origLink></item><item><title>Creative Multimedia Showcase</title><link>http://feedproxy.google.com/~r/Jabit/~3/Op20dDFgHTw/</link><category>Ramblings</category><category>penandpixel</category><category>Tipperary Institute</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Mon, 04 Apr 2011 13:53:05 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=237</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Tipperary Institute is holding its annual Digital Media Exhibition on its Clonmel campus. Renamed Pen &amp; Pixel, the exhibition takes place on the 14th of April at 6.30pm and will run until May.<span id="more-237"></span></p>
<p><img class="alignleft size-full wp-image-238" title="penandpixel" src="http://www.jabit.com/wp-content/uploads/2011/04/penandpixel.png" alt="" width="120" height="120" />Each year the college hosts an exhibition showcasing the work of students on the Creative Multimedia course. The exhibition is organised by third year students.</p>
<p>This year the photography competition will be judged by Clonmel based photographer Wojciech Ryzinski. The exhibition will also showcase student work in mediums such as video, audio, animation and flash applications.</p>
<p>For more information you can check out the website – <a href="http://www.penandpixel.ie">www.penandpixel.ie</a>, or follow <a href="http://twitter.com/penandpixel2011">@penandpixel2011</a> on Twitter.</p>
<p><img class="alignnone size-full wp-image-242" title="PenAndPixelInvite" src="http://www.jabit.com/wp-content/uploads/2011/04/PenAndPixelInvite.jpg" alt="" width="640" height="302" /></p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/Op20dDFgHTw" height="1" width="1"/>]]></content:encoded><description>Tipperary Institute is holding its annual Digital Media Exhibition on its Clonmel campus. Renamed Pen &amp;#38; Pixel, the exhibition takes place on the 14th of April at 6.30pm and will run until May. Each year the college hosts an exhibition &amp;#8230; &lt;a href="http://www.jabit.com/2011/04/04/creative-multimedia-showcase/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/04/04/creative-multimedia-showcase/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/04/04/creative-multimedia-showcase/</feedburner:origLink></item><item><title>Reading and writing to a local file in Adobe AIR</title><link>http://feedproxy.google.com/~r/Jabit/~3/1JJ1DmMUbBI/</link><category>Rich Media Programming</category><category>ActionScript</category><category>AIR</category><category>File I/O</category><category>Flex</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Fri, 01 Apr 2011 07:50:58 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=227</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>One of the advantages of Adobe AIR applications over browser based Flash apps is that you can write data to the computers local file system. Here I show you how.<span id="more-227"></span></p>
<p>Before I start, you might be interested in <a href="http://www.adobe.com/products/air/comparison/">this comparison</a> of Adobe AIR applications versus browser based Flash apps.</p>
<p>I&#8217;m going to keep it as simple as possible. Like everything, it&#8217;s all relatively straightforward once you know how. The main steps are:</p>
<ol>
<li>Create a File object which represents the file you want to read/write</li>
<li>Create a FileStream object through which you will read/write from/to the file</li>
<li>Do the reading/writing</li>
<li>Close the FileStream object.</li>
</ol>
<p>To get us started I am going to create a very simple AIR app that will write some text to a File. The app looks like:</p>
<p><a href="http://www.jabit.com/wp-content/uploads/2011/04/AIRLocalReadAndWrite-1.png"><img class="aligncenter size-full wp-image-228" title="AIRLocalReadAndWrite-1" src="http://www.jabit.com/wp-content/uploads/2011/04/AIRLocalReadAndWrite-1.png" alt="" width="508" height="409" /></a></p>
<p>The code for the app is as follows:</p>
<pre class="brush: as3; title: ;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
					   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
					   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;

	&lt;fx:Script&gt;
		&lt;![CDATA[
			import flash.filesystem.File;
			import flash.filesystem.FileMode;
			import flash.filesystem.FileStream;

			protected function saveHandler(event:Event):void
			{
				/*
				Create a File object which 'points' to a file called test.txt in the
				applicationStorageDirectory for this AIR app.
				*/
				var localFile:File = File.applicationStorageDirectory.resolvePath(&quot;test.txt&quot;);

				/*
				Create a FileStream object which we will use to read/write content to/from
				a File object.
				*/
				var localFileStream:FileStream = new FileStream();

				/*
				Now ask the FileStream to open a File object. The FileMode.APPEND will open
				the file for writing and append new content to the end of the file. If the
				file does not yet exist it will be created.
				*/
				localFileStream.open(localFile, FileMode.APPEND);

				/*
				Write content to the File using the FileStream object. We use the writeMultiByte
				function on the FileStream object which accepts a String and the character
				encoding we wich to use (I'm using utf-8).
				*/
				localFileStream.writeMultiByte(myTI.text, &quot;utf-8&quot;);

				/*
				All done, close the FileStream object.
				*/
				localFileStream.close();

			}
		]]&gt;
	&lt;/fx:Script&gt;

	&lt;fx:Declarations&gt;
		&lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;
	&lt;/fx:Declarations&gt;

	&lt;!-- Give the WindowedApplication a vertical layout --&gt;
	&lt;s:layout&gt;
		&lt;s:VerticalLayout paddingLeft=&quot;5&quot; paddingRight=&quot;5&quot; paddingTop=&quot;5&quot; paddingBottom=&quot;5&quot;/&gt;
	&lt;/s:layout&gt;

	&lt;s:HGroup width=&quot;100%&quot;&gt;
		&lt;s:Label text=&quot;Enter text here:&quot;  paddingTop=&quot;5&quot;/&gt;
		&lt;s:TextInput id=&quot;myTI&quot; width=&quot;100%&quot;/&gt;
	&lt;/s:HGroup&gt;

	&lt;s:Button label=&quot;Save&quot; click=&quot;saveHandler(event)&quot;/&gt;
&lt;/s:WindowedApplication&gt;
</pre>
<p>As you can hopefully see from the code above, when the user clicks on the Save button I call the saveHandler function which, in turn, writes whatever text the user has entered into the TextInput to a file called test.txt. This file is located in the &#8220;applicationStorageDirectory&#8221; for the AIR app. To learn a little more about this please see <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html">here</a>.</p>
<p>The code for actually writing the text to the file is well commented so please see the comments for a full explanation.</p>
<p>Ok, now to read a file. I am going to change the TextInput component to a TextArea component just to give me some more room and I&#8217;m going to add a load button. The app now looks like:</p>
<p><a href="http://www.jabit.com/wp-content/uploads/2011/04/AIRLocalReadAndWrite-2.png"><img class="aligncenter size-full wp-image-231" title="AIRLocalReadAndWrite-2" src="http://www.jabit.com/wp-content/uploads/2011/04/AIRLocalReadAndWrite-2.png" alt="" width="508" height="409" /></a>The main code change has been to add a loadHandler function that gets called when the user clicks on the Load button.</p>
<pre class="brush: as3; title: ;">
protected function loadHandler(event:Event):void
{
	/*
	Create a File object which 'points' to a file called test.txt in the
	applicationStorageDirectory for this AIR app.
	*/
	var localFile:File = File.applicationStorageDirectory.resolvePath(&quot;test.txt&quot;);

	/*
	Create a FileStream object which we will use to read/write content to/from
	a File object.
	*/
	var localFileStream:FileStream = new FileStream();

	/*
	Now ask the FileStream to open a File object. The FileMode.READ will open
	the file for reading.
	*/
	localFileStream.open(localFile, FileMode.READ);

	/*
	Create a String variable to hold the contents of the file.
	*/
	var fileContents:String;

	/*
	Call the readMultiByte function on the FileStream object which will return a String
	containing the file contents. The bytesAvailable property on the FileStream object
	stores the number of bytes available to read and the string &quot;utf-8&quot; specifies the
	character encoding of the file.
	*/
	fileContents = localFileStream.readMultiByte(localFileStream.bytesAvailable, &quot;utf-8&quot;);

	/*
	All done, close the FileStream object.
	*/
	localFileStream.close();

	/*
	Set the text of the TextArea to the fileContents
	*/
	myTI.text = fileContents;
}
</pre>
<p>It&#8217;s all pretty simple but hopefully demonstrates the basics of File I/O within an AIR application.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/1JJ1DmMUbBI" height="1" width="1"/>]]></content:encoded><description>One of the advantages of Adobe AIR applications over browser based Flash apps is that you can write data to the computers local file system. Here I show you how. Before I start, you might be interested in this comparison &amp;#8230; &lt;a href="http://www.jabit.com/2011/04/01/reading-and-writing-to-a-local-file-in-adobe-air/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/04/01/reading-and-writing-to-a-local-file-in-adobe-air/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/04/01/reading-and-writing-to-a-local-file-in-adobe-air/</feedburner:origLink></item><item><title>Retrieving Wikipedia content using the Infochimps API</title><link>http://feedproxy.google.com/~r/Jabit/~3/gWlJbUMHlcg/</link><category>Web Development</category><category>infochimps</category><category>JSON</category><category>php</category><category>wikipedia</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Thu, 31 Mar 2011 04:16:00 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=201</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>A group of students at <a href="http://www.tippinst.ie">Tipperary Institute</a> are currently working on a web project which requires them to display information about all the counties in Ireland. They were hoping to extract the information from Wikipedia so to help them I have put together some code which uses <a href="http://www.infochimps.com/">Infochimps</a> API.</p>
<p><span id="more-201"></span>The idea is simple, provide a list of counties in a web page and when the user clicks on a county, relevant information is displayed. This information is extracted from Wikipedia.</p>
<p>So how do you get information from Wikipedia? You could use the Wikipedia API but this will require quite a bit of upskilling on how the API works and how to render the information returned for display in a web page. An easier way is to use the Infochimps API which, although is limited to searching and retrieving Wikipedia article abstracts, is easy to use and provides us with what we want.</p>
<p><a href="http://www.jabit.com/wp-content/uploads/2011/03/infochimps-logo-b.png"><img class="alignright size-full wp-image-217" title="infochimps-logo-b" src="http://www.jabit.com/wp-content/uploads/2011/03/infochimps-logo-b.png" alt="" width="200" height="70" /></a>The Infochimps API is essentially an API that can be used to access data from a variety of supported datasets such as Wikipedia, Twitter and Yahoo. You issue an HTTP GET request using the appropriate query parameters and you are returned a <a href="http://www.json.org/">JSON</a> record. For example, issuing a HTTP GET request to this url:</p>
<pre>http://api.infochimps.com/encyclopedic/dbpedia/wikipedia/articles/
abstract_search</pre>
<p>along with the query parameters:</p>
<ul>
<li>q = your query (search) term</li>
<li>apikey = your api key</li>
</ul>
<p>will return you a JSON record containing an array of objects each containing a title, text and url property where title contains the title of the Wikipedia article, text will contain the article abstract (generally the first paragraph of the article) and url will contain the url to the article on Wikipedia.</p>
<p>The q parameter contains your search query. So if you wanted to search for Clonmel then set q=Clonmel. This would return all Wikipedia articles that have Clonmel in their title or abstract. If you wanted to only search for article titles which contain the word Clonmel then q would be set to q=title:Clonmel. Likewise, if you wanted to only search article abstracts which contained the word Clonmel then q would be set to q=abstract:Clonmel.</p>
<p>So, if I were to issue the following GET request, with MYKEY replaced with my real API key:</p>
<pre>http://api.infochimps.com/encyclopedic/dbpedia/wikipedia/articles/
abstract_search?q=title:Clonmel&amp;apikey=MYKEY</pre>
<p>I would be returned a JSON record contains an array of JSON objects with an object for each Wikipedia article which has Clonmel in the title. Something like this:</p>
<pre class="brush: jscript; title: ;">
{ &quot;total&quot;: 16,
   &quot;results&quot;: [
   { &quot;title&quot;: &quot;Clonmel&quot;,
     &quot;abstract&quot;: &quot;Clonmel is the county town of South Tipperary in Ireland. It is the largest town in the county. While the borough had a population of 15,482 in 2006, another 17,008 people were in the rural hinterland. The town is noted in Irish history for its resistance to the Cromwellian army which sacked both Drogheda and Wexford. It is in the barony of Iffa and Offa East.&quot;,
     &quot;url&quot;: &quot;http://en.wikipedia.org/wiki/Clonmel&quot; },
   { &quot;title&quot;: &quot;The Kings of Clonmel&quot;,
     &quot;abstract&quot;: &quot;The Kings of Clonmel is the eighth novel in the Ranger's Apprentice series by Australian author John Flanagan. It was released in Australia on 4 November 2008.&quot;,
     &quot;url&quot;: &quot;http://en.wikipedia.org/wiki/The_Kings_of_Clonmel&quot; },
   { &quot;title&quot;: &quot;Marlfield, Clonmel&quot;,
     &quot;abstract&quot;: &quot;Marlfield, is a village three kilometres west of Clonmel, County Tipperary, Ireland. It replaced an older settlement named Abbey which had developed near the 12th century Cistercian community of Inislounaght.&quot;,
     &quot;url&quot;: &quot;http://en.wikipedia.org/wiki/Marlfield,_Clonmel&quot; },
   ...
}
</pre>
<p>As you can see, I am returned a JSON object which has two properties: total which is equal to the total number of articles found (in this case 16) and results which is itself an array of JSON objects. The first object in the array has a title property equal to Clonmel, an abstract property equal to "Clonmel is the county town ..." and a url property equal to http://en.wikipedia.org/wiki/Clonmel.</p>
<p>This poses a slight problem for me as I want only the page about "Clonmel" and not the other pages i.e. "The Kings of Clonmel" and "Marlfield, Clonmel". I will need to search through the result objects and extract the object whose title is "Clonmel".</p>
<p>The next question is, how do I issue such a GET request using PHP and how do I parse the JSON returned? The answer, I hope, is relatively straightforward.</p>
<p>In the past the students have used CURL to retrieve XML so the following php function should be familiar to them:</p>
<pre class="brush: php; title: ;">
function getData($theURL)
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $theURL);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$response= curl_exec($ch);
	curl_close($ch);
	return $response;
}
</pre>
<p>The function getData issues a HTTP GET request to the URL specified and returns the resulting response.</p>
<p>Next, we need to call the getData function with an appropriate URL.</p>
<pre class="brush: php; title: ;">
// This function will be passed the place name (e.g. Clonmel) to search for
function displayWikiAdstract($placename)
{
   $place = urlencode($placename);

   $APIKey = &quot;YOUR-API-KEY&quot;;
   $infoChimpsEndPoint = &quot;http://api.infochimps.com/encyclopedic/dbpedia/wikipedia/articles/abstract_search?&quot;;
   $apiParams = &quot;q=title:&quot; . $place . &quot;&amp;apikey=&quot;. $APIKey;

    $url = $infoChimpsEndPoint . $apiParams;

    // Call the getData function and store the response
    $rsp = getData($url, true);

   // Decode the JSON response
   $jsonResultObject= json_decode($rsp);

   // Loop through each of the JSON objects in the results array
   foreach ($jsonResultObject-&gt;results as $result)
   {
		// If the title of the result object is equal to
		// the placename that I am searching for
		// then echo it out.
		if ($result-&gt;title == $placename)
		{
			echo &quot;&lt;h1&gt;&quot; . $result-&gt;title . &quot;&lt;/h1&gt;&quot;;

			$abstract = unenc_utf16_code_units($result-&gt;abstract);
			$abstract = str_replace('\\&quot;', '&quot;', $abstract );

			echo &quot;&lt;p&gt;&quot; .$result-&gt;abstract . &quot;&lt;/p&gt;&quot;;
			echo &quot;&lt;p&gt;&quot; . $abstract . &quot;&lt;/p&gt;&quot;;
			echo &quot;&lt;p&gt;&lt;a href='&quot; . $result-&gt;url . &quot;'&gt;Link&lt;/a&gt;&lt;/p&gt;&quot;;

			// break out of the for loop, I have found
			// what I am looking for
		}
   }
}
</pre>
<p>Most of the code should be familiar to the students with the possible exception of a few lines.</p>
<p>In line 16 I decode the JSON response. The data returned is a string representation of a JavaScript object, the json_decode function takes in the returned string and a creates a JavaScript object from it.</p>
<p>In line 28 I am calling a the function unenc_utf16_code_units and passing it the abstract of the article. The reason for this is that I noticed the abstract contains such text as "Ireland\u2019s". This text should be "Ireland's" but the single quote(') is encoded using UTF, that is, the UTF encoding for a single quote is \u2019, which is known as a code unit. The unenc_utf16_code_units function unencodes any UTF code units in a given string so, for example, "Ireland\u2019s" will become "Ireland's". I didn't write the unenc_utf16_code_units function, I found it <a href="http://stackoverflow.com/questions/3480074/how-do-i-convert-unicode-codepoints-to-hexadecimal-html-entities">here</a>.</p>
<p>In line 29 I am replacing all occurrences of \" with " as I noticed that the abstract text also contains text such as \"people\" which should be "people".</p>
<p>Finally, to bring it all together I have a simple form</p>
<pre class="brush: xml; title: ;">
&lt;form&gt;
Enter a County:
&lt;select name=&quot;county&quot;&gt;
	&lt;option value=&quot;County Tipperary&quot;&gt;Tipperary&lt;/option&gt;
    &lt;option value=&quot;County Kilkenny&quot;&gt;Kilkenny&lt;/option&gt;
&lt;/select&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot;/&gt;
&lt;/form&gt;
</pre>
<p>and supporting PHP code</p>
<pre class="brush: php; title: ;">
if (isset($_GET['submit']))
{
	displayWikiAdstract($_GET['county']);
}
</pre>
<p>The complete code can be downloaded <a href="http://www.jabit.com/wp-content/uploads/2011/03/InfochimpsAndWikipedia.zip">here</a>.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/gWlJbUMHlcg" height="1" width="1"/>]]></content:encoded><description>A group of students at Tipperary Institute are currently working on a web project which requires them to display information about all the counties in Ireland. They were hoping to extract the information from Wikipedia so to help them I &amp;#8230; &lt;a href="http://www.jabit.com/2011/03/31/retrieving-wikipedia-content-using-the-infochimps-api/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/03/31/retrieving-wikipedia-content-using-the-infochimps-api/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/03/31/retrieving-wikipedia-content-using-the-infochimps-api/</feedburner:origLink></item><item><title>Sample code for RMP students at TI</title><link>http://feedproxy.google.com/~r/Jabit/~3/DPIEwM2RVGQ/</link><category>Rich Media Programming</category><category>ActionScript</category><category>RSSReader</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Fri, 25 Mar 2011 06:04:57 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=184</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Students studying Rich Media Programming at TI may be interested in the following code. The code could be used as part on an AIR RSS Reader.<span id="more-184"></span>Below is the code for an RSSService class that retrieves an RSS Feed and creates RSSPost objects.</p>
<pre class="brush: as3; title: ;">
package services
{
	import mx.collections.ArrayCollection;
	import mx.collections.XMLListCollection;
	import mx.rpc.AsyncToken;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.http.mxml.HTTPService;

	import valueObjects.RSSPost;

	public class RSSService extends HTTPService
	{
		[Bindable]
		public var posts:ArrayCollection;

		public var title:String;

		public function RSSService(rootURL:String=null, destination:String=null)
		{
			super(rootURL, destination);

			this.resultFormat=&quot;e4x&quot;;

			addEventListener(ResultEvent.RESULT, onFeedLoadedFromRssService);
		}

		private function onFeedLoadedFromRssService(event:ResultEvent):void
		{
			trace(&quot;RSSService::onFeedLoadedFromRssService&quot;);
			title=event.result.channel.title;
			var postsArray:Array=new Array();
			var resultData:XMLList=new XMLList(event.result.channel.item);

			for each (var p:XML in resultData)
			{
				var post:RSSPost=RSSPost.buildPost(p);
				postsArray.push(post);
			}

			posts=new ArrayCollection(postsArray);

		}
	}
}
</pre>
<p>Here is the code for the RSSPost class (note how the content namespace is handled).</p>
<pre class="brush: as3; title: ;">
package valueObjects
{

	[Bindable]
	public class RSSPost
	{
		public var title:String;
		public var description:String;
		public var content:String;

		public function RSSPost(theTitle:String, theDescription:String)
		{
			this.title = theTitle;
			this.description = theDescription;
			this.content = theContent;
		}

		public static function buildPost(data:XML):RSSPost
		{
			var post:RSSPost;

			var content:Namespace;
			var encodedContent:String;

			content = new Namespace(&quot;http://purl.org/rss/1.0/modules/content/&quot;);
			encodedContent = data.content::encoded;

			post = new RSSPost(data.title, data.description, encodedContent);
			return post;
		}
	}
}
</pre>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/DPIEwM2RVGQ" height="1" width="1"/>]]></content:encoded><description>Students studying Rich Media Programming at TI may be interested in the following code. The code could be used as part on an AIR RSS Reader.Below is the code for an RSSService class that retrieves an RSS Feed and creates RSSPost objects. &amp;#8230; &lt;a href="http://www.jabit.com/2011/03/25/sample-code-for-rmp-students-at-ti/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/03/25/sample-code-for-rmp-students-at-ti/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/03/25/sample-code-for-rmp-students-at-ti/</feedburner:origLink></item><item><title>XML, Namespaces and Actionscript</title><link>http://feedproxy.google.com/~r/Jabit/~3/jnCUOtZ0Qjk/</link><category>Rich Media Programming</category><category>ActionScript</category><category>XML</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Thu, 24 Mar 2011 17:23:17 PDT</pubDate><guid isPermaLink="false">http://www.jabit.com/?p=176</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Some of my students are writing an Adode AIR RSS reader and will need to be able to parse XML that uses namespaces, here&#8217;s how.</p>
<p><span id="more-176"></span>A RSS feed has the following structure:<br />
&lt;channel&gt;<br />
&lt;title&gt;&#8230;&lt;/title&gt;<br />
&#8230;</p>
<p>&lt;item&gt;<br />
&lt;title&gt;&#8230;&lt;/title&gt;<br />
&lt;content:encoded xmlns:content=&#8221;http://purl.org/rss/1.0/modules/content/&#8221;&gt;&#8230;     &lt;/content&gt;<br />
&lt;/item&gt;<br />
&lt;item&gt;<br />
&lt;title&gt;&#8230;&lt;/title&gt;<br />
&lt;content:encoded xmlns:content=&#8221;http://purl.org/rss/1.0/modules/content/&#8221;&gt;&#8230;&lt;/content&gt;<br />
&lt;/item&gt;<br />
&#8230;<br />
&lt;/channel&gt;</p>
<p>The encoded tag is using the namespace &#8216;content&#8217;. This tag contains CDATA containing the &#8216;raw&#8217; html of a post. The code below will read the html contained in the encoded tag into a String.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">anItem:<span style="color: #0066CC;">XML</span>;
<span style="color: #808080; font-style: italic;">// initialise anItem to an xml item element</span>
<span style="color: #000000; font-weight: bold;">var</span> content:Namespace;
<span style="color: #000000; font-weight: bold;">var</span> encodedContent:<span style="color: #0066CC;">String</span>;
content = <span style="color: #000000; font-weight: bold;">new</span> Namespace<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://purl.org/rss/1.0/modules/content/&quot;</span><span style="color: #66cc66;">&#41;</span>;
encodedContent = <span style="color: #0066CC;">data</span>.<span style="color: #006600;">content</span>::encoded;
<span style="color: #808080; font-style: italic;">//encodedData now contains the html contained with the</span>
<span style="color: #808080; font-style: italic;">//content:encoded element.</span></pre></div></div>

<p>That&#8217;s it.</p>
<img src="http://feeds.feedburner.com/~r/Jabit/~4/jnCUOtZ0Qjk" height="1" width="1"/>]]></content:encoded><description>Some of my students are writing an Adode AIR RSS reader and will need to be able to parse XML that uses namespaces, here&amp;#8217;s how. A RSS feed has the following structure: &amp;#60;channel&amp;#62; &amp;#60;title&amp;#62;&amp;#8230;&amp;#60;/title&amp;#62; &amp;#8230; &amp;#60;item&amp;#62; &amp;#60;title&amp;#62;&amp;#8230;&amp;#60;/title&amp;#62; &amp;#60;content:encoded xmlns:content=&amp;#8221;http://purl.org/rss/1.0/modules/content/&amp;#8221;&amp;#62;&amp;#8230;   &amp;#8230; &lt;a href="http://www.jabit.com/2011/03/25/xml-namespaces-and-actionscript/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.jabit.com/2011/03/25/xml-namespaces-and-actionscript/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.jabit.com/2011/03/25/xml-namespaces-and-actionscript/</feedburner:origLink></item></channel></rss>

