<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Under Development :: Life in the Virtual World</title>
	<atom:link href="http://underdevelopment.maravillaclan.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://underdevelopment.maravillaclan.net</link>
	<description>Learning to do it a little better</description>
	<lastBuildDate>Wed, 09 Dec 2009 12:23:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>vCalendar support in Thunderbird</title>
		<link>http://underdevelopment.maravillaclan.net/2009/12/09/vcalendar-support-in-thunderbird/</link>
		<comments>http://underdevelopment.maravillaclan.net/2009/12/09/vcalendar-support-in-thunderbird/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:19:48 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=260</guid>
		<description><![CDATA[Being an open source supporter I usually opt to use applications such as FireFox over IE, OpenOffice over Microsoft Office, Thunderbird over Outlook. However there will be features that will be missed once you choose this path. At lease for the initial part. Thanks to the open source community these features will no longer be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2009/12/Lightning.png"><img class="size-full wp-image-263 alignright" title="Lightning" src="http://underdevelopment.maravillaclan.net/wp-content/uploads/2009/12/Lightning.png" alt="Lightning" width="200" height="142" align="right" /></a>Being an open source supporter I usually opt to use applications such as FireFox over IE, OpenOffice over Microsoft Office, Thunderbird over Outlook. However there will be features that will be missed once you choose this path. At lease for the initial part. Thanks to the open source community these features will no longer be missed as more and more member of the community adds support one piece at a time.</p>
<p>One such feature the was missed but now supported is the vCalendar support in Thunderbird. For some time I&#8217;ve had a hard time coordinating with the people in my company since the meetings are always done using the vCalendar. They even though I&#8217;m not interested in intending those scheduled events since I don&#8217;t reply to them. How could I? I couldn&#8217;t easy read the raw vCalendar format and reply to them. Installing Lightning in Thunderbird will enable you to read vCalendar format.  It will a calendar application that is useful in tracking events.</p>
<p>Here are the steps:</p>
<ol>
<li>Download the plug-in from <a href="https://addons.mozilla.org/en-US/thunderbird/addon/2313" target="_blank">https://addons.mozilla.org/en-US/thunderbird/addon/2313</a></li>
<li>On Thunderbird go to Tools-&gt;Add-ons.</li>
<li>This will open a new dialog. Click on install.</li>
<li>Locate the downloaded xpi file and click open. Make sure you selected the file type to display all types.</li>
<li>Restart Thunderbird. You&#8217;ll then be able to view vCalendar&#8217;s and either opt to attend, not attend, or confirm later.</li>
</ol>
<p>Reference: <a href="http://blog.andrewbeacock.com/2007/07/viewing-outlook-vcalendar-meeting.html" target="_blank">http://blog.andrewbeacock.com/2007/07/viewing-outlook-vcalendar-meeting.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2009/12/09/vcalendar-support-in-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Lightbox Demo</title>
		<link>http://underdevelopment.maravillaclan.net/2009/03/20/flash-lightbox-demo/</link>
		<comments>http://underdevelopment.maravillaclan.net/2009/03/20/flash-lightbox-demo/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:31:15 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=236</guid>
		<description><![CDATA[This is just a demo of a lightbox implementation in Flash. The code was developed by Jeff Garczewski and the original codes could be found here (http://www.huddletogether.com/projects/lightbox/).
 
Easy to integrate. All you need is to link the javascript and css files in your html and include the following lines on your Flash ActionScript.

on&#40;release&#41; &#123;
    [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a demo of a lightbox implementation in Flash. The code was developed by Jeff Garczewski and the original codes could be found <a href="http://www.huddletogether.com/projects/lightbox/" target="_blank">here</a> (<a href="http://www.huddletogether.com/projects/lightbox/" target="_blank">http://www.huddletogether.com/projects/lightbox/</a>).</p>
<p> </p>
<p>Easy to integrate. All you need is to link the javascript and css files in your html and include the following lines on your Flash ActionScript.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">on<span style="color: #009900;">&#40;</span>release<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    getURL<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;javascript:flashLightbox('path/to/imagejpg','Your Caption');&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p> <br />
You will need to add a wmode parameter when embedding the Flash media so that it won&#8217;t display on top of the Lightbox. For some reason though this doesn&#8217;t work on Firefox in Ubuntu.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;application/x-shockwave-flash&quot;</span> </span>
<span style="color: #009900;">           <span style="color: #000066;">data</span>=<span style="color: #ff0000;">&quot;myMovie.swf&quot;</span> </span>
<span style="color: #009900;">           <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;400&quot;</span> </span>
<span style="color: #009900;">           <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;400&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;movie&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;myMovie.swf&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- Your MUST add the 'wmode' paramater or your flash will appear</span>
<span style="color: #808080; font-style: italic;">         over top of your lightbox images! --&gt;</span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;wmode&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;transparent&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<h3 style="text-align: center;"><a href="http://webtools.maravillaclan.net/flash_lightbox/" target="_blank">Flash Light Box Demo</a></h3>
<p>Click the link above to see the demo.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2009/03/20/flash-lightbox-demo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash CMS v0.0.1</title>
		<link>http://underdevelopment.maravillaclan.net/2009/03/19/flash-cms-v001/</link>
		<comments>http://underdevelopment.maravillaclan.net/2009/03/19/flash-cms-v001/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 12:19:53 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=217</guid>
		<description><![CDATA[This was a proof of concept we sent to our client requesting dynamic content for Flash media plus a web based editor for the content.
At first glance it seems as if they are asking for something that could take months to develop. However, it&#8217;s actually simple enough that could be done by patching one component [...]]]></description>
			<content:encoded><![CDATA[<p>This was a proof of concept we sent to our client requesting dynamic content for Flash media plus a web based editor for the content.</p>
<p>At first glance it seems as if they are asking for something that could take months to develop. However, it&#8217;s actually simple enough that could be done by patching one component from another. Done with one cup of coffee.</p>
<p>Flash supports HTML. But don&#8217;t get too excited. Flash only supports some basic tags. All you need then is to be able to push data to it. You could do this with several methods. One would be using LoadVars. Another one is the good old FlashVars and lastly through XML.</p>
<p>With this example we&#8217;re using LoadVars. Below are the only lines of codes you need to do a simple CMS.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Simple just declare a text area contains an HTML markup</span>
_root.<span style="color: #660066;">content</span>.<span style="color: #660066;">html</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Load the content</span>
<span style="color: #003366; font-weight: bold;">var</span> contentVars <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> LoadVars<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
contentVars.<span style="color: #000066;">onLoad</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>ok<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>ok<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    _root.<span style="color: #660066;">content</span>.<span style="color: #660066;">htmlText</span> <span style="color: #339933;">=</span> contentVars.<span style="color: #660066;">flash_content</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// load the file (use .php extension to avoid browsers from caching the content)</span>
<span style="color: #006600; font-style: italic;">// no worries cause the content is encoded and no php script</span>
<span style="color: #006600; font-style: italic;">// could be executed with this process</span>
contentVars.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;flash_content.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// this is just to keep flash from running away</span>
<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>You might wonder why not just use Flash XML feature instead of LoadVars. Well that could be done also. It&#8217;s just what I felt doing at the time. Also since I was using php as my file extension XML might not be the right choice as it exposes some security holes.</p>
<p>Next step is the What-You-See-Is-What-You-Get editor (WYSIWYG). There are lots available in the net. For this example I used <a href="http://tinymce.moxiecode.com/" target="_blank">TinyMCE</a>. You would need to configure or do some hack to make the editor only use the tags supported by Flash. List of supported tags could be found in <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808" target="_blank">http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808.</a></p>
<p>Once you get that done next step is to push the content of the editor to Flash. This is where PHP plays its role. Of course you could use other server side scripting in place of it.</p>
<p>The result would be something like <a title="Flash CMS sample" href="http://webtools.maravillaclan.net/flash_cms/" target="_blank">this (Flash CMS sample)</a>. Go ahead and try it. You may also download the source files to modify and maybe improve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2009/03/19/flash-cms-v001/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filter non-numeric characters</title>
		<link>http://underdevelopment.maravillaclan.net/2008/12/24/filter-non-numeric-characters/</link>
		<comments>http://underdevelopment.maravillaclan.net/2008/12/24/filter-non-numeric-characters/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 03:51:53 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP & MySQL]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=103</guid>
		<description><![CDATA[Usually when creating a scraper or a simple parser we encounter data that are usually not as clean as we expected it to be. For example We should be parsing only the sale price but the label gets in the way. These codes could be useful for the purpose of filtering out unwanted characters.
Integers:

$dirty_data = [...]]]></description>
			<content:encoded><![CDATA[<p>Usually when creating a scraper or a simple parser we encounter data that are usually not as clean as we expected it to be. For example We should be parsing only the sale price but the label gets in the way. These codes could be useful for the purpose of filtering out unwanted characters.</p>
<h2>Integers:</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dirty_data</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'You\'re now 26 years old'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$clean_integer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ereg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;[^0-9]&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dirty_data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// $clean_integer = '26';</span></pre></div></div>

<h2>Decimals:</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dirty_data</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Sale price : $12.45'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$clean_dec</span> <span style="color: #339933;">=</span>  <span style="color: #990000;">ereg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;[^0-9.]&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dirty_data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// $clean_dec = '12.45';</span></pre></div></div>

<p>This would also do good on prefomating a phone number if you only want numbers but your users adds dashes or spaces in between.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2008/12/24/filter-non-numeric-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting records from a SELECT statement (MySQL)</title>
		<link>http://underdevelopment.maravillaclan.net/2008/09/09/inserting-records-from-a-select-statement-mysql/</link>
		<comments>http://underdevelopment.maravillaclan.net/2008/09/09/inserting-records-from-a-select-statement-mysql/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 06:32:20 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=68</guid>
		<description><![CDATA[I often forget even simple syntax that makes MySQL operation easy. I&#8217;m just adding this basically for personal reference.
Using INSERT statement combined with the SELECT statement you could actually add records from one table to another table. Adding a WHERE clause could enable you to filter the records to copy. Below is the syntax.

INSERT INTO [...]]]></description>
			<content:encoded><![CDATA[<p>I often forget even simple syntax that makes MySQL operation easy. I&#8217;m just adding this basically for personal reference.</p>
<p>Using INSERT statement combined with the SELECT statement you could actually add records from one table to another table. Adding a WHERE clause could enable you to filter the records to copy. Below is the syntax.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> table_destination <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> table_source <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">WHERE</span> condition<span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<p>However this generic statement only works if the two tables have the same order of columns and has compatible data types. If that is not the case you would need to specify the columns like the following syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> table_destination <span style="color: #66cc66;">&#40;</span>column_1<span style="color: #66cc66;">,</span> column_2<span style="color: #66cc66;">,</span> column_3<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> column_1<span style="color: #66cc66;">,</span> column_2<span style="color: #66cc66;">,</span> column_3 <span style="color: #993333; font-weight: bold;">FROM</span> table_source <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">WHERE</span> condition<span style="color: #66cc66;">&#93;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2008/09/09/inserting-records-from-a-select-statement-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NOT id IN (1, 2, 3) vs NOT (id IN (1, 2, 3))</title>
		<link>http://underdevelopment.maravillaclan.net/2008/09/05/not-id-in-1-2-3-vs-not-id-in-1-2-3/</link>
		<comments>http://underdevelopment.maravillaclan.net/2008/09/05/not-id-in-1-2-3-vs-not-id-in-1-2-3/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 05:23:00 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=59</guid>
		<description><![CDATA[Problem:
You&#8217;re probably wondering why the following query doesn&#8217;t  work on some mySQL databases
SELECT * FROM table1 WHERE NOT id IN (1, 2, 3)
works on mySQL v5.0.51a
doesn&#8217;t work on mySQL v4.1.21
Solution:
The reason is that the query would confuse the older version what to evaluate by NOT.
This query generally works.
SELECT * FROM table1 WHERE NOT (id IN [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>You&#8217;re probably wondering why the following query doesn&#8217;t  work on some mySQL databases</p>
<p><span style="color: #0000ff;">SELECT</span> * <span style="color: #0000ff;">FROM</span> <span style="color: #00ff00;">table1 </span><span style="color: #0000ff;">WHERE NOT</span> <span style="color: #00ff00;">id </span><span style="color: #0000ff;">IN</span> (<span style="color: #ff0000;">1</span>, <span style="color: #ff0000;">2</span>, <span style="color: #ff0000;">3</span>)<br />
works on mySQL v5.0.51a<br />
doesn&#8217;t work on mySQL v4.1.21</p>
<p><strong>Solution:</strong><span id="more-59"></span></p>
<p>The reason is that the query would confuse the older version what to evaluate by NOT.</p>
<p>This query generally works.</p>
<p><span style="color: #0000ff;">SELECT</span> * <span style="color: #0000ff;">FROM</span> <span style="color: #00ff00;">table1 </span><span style="color: #0000ff;">WHERE NOT</span> (<span style="color: #00ff00;">id </span><span style="color: #0000ff;">IN</span> (<span style="color: #ff0000;">1</span>, <span style="color: #ff0000;">2</span>, <span style="color: #ff0000;">3</span>))<br />
works on mySQL v5.0.51a<br />
works on mySQL v4.1.21</p>
<p>This is basically just specifying what should value should be evaluated by NOT.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2008/09/05/not-id-in-1-2-3-vs-not-id-in-1-2-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Sample &#8211; RSS v1.0</title>
		<link>http://underdevelopment.maravillaclan.net/2008/08/16/php-sample-rss-v10/</link>
		<comments>http://underdevelopment.maravillaclan.net/2008/08/16/php-sample-rss-v10/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 07:32:53 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Samples]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[rss v1.0]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=12</guid>
		<description><![CDATA[
There are basically three parts you need to be concerned about when generating an RSS v1.0:

The RSS related data
The feeds
The search information

RSS related data
These will be the data that are specific to the whole feed or to the website. These would include the following:

title
link
description
image

Feed Items
These will be items you would want to put on the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/08/rss_v10_screenshot1.png"><img class="alignnone size-full wp-image-46" title="rss_v10_screenshot" src="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/08/rss_v10_screenshot1.png" alt="" /></a></p>
<p style="text-align: left;">There are basically three parts you need to be concerned about when generating an RSS v1.0:</p>
<ul style="text-align: left;">
<li>The RSS related data</li>
<li>The feeds</li>
<li>The search information</li>
</ul>
<p style="text-align: left;"><strong>RSS related data</strong></p>
<p style="text-align: left;">These will be the data that are specific to the whole feed or to the website. These would include the following:</p>
<ul style="text-align: left;">
<li>title</li>
<li>link</li>
<li>description</li>
<li>image</li>
</ul>
<p style="text-align: left;"><strong>Feed Items</strong></p>
<p style="text-align: left;">These will be items you would want to put on the RSS Feed. Each Item would include the following:</p>
<ul style="text-align: left;">
<li>title of the article, news, or any other item depending on the use.</li>
<li>description or summary</li>
<li>link to the item page on your website</li>
</ul>
<p style="text-align: left;"><strong>Search information (optional)<br />
</strong></p>
<p style="text-align: left;">Some RSS readers supports search feature for RSS items. You could utilize this by setting up a search script on your host. This would need the following information:</p>
<ul style="text-align: left;">
<li>URL of the search script</li>
<li>title</li>
<li>description</li>
<li>parameter name of the search string variable</li>
</ul>
<p style="text-align: left;">See demo here (<a href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/08/sample_rss_v10.php" target="_blank">sample_rss_v1.0</a>).</p>
<p style="text-align: left;">Attached is a simple template that could be used in any application. Like most of my sample template, all the data are hardcoded. They could easily be replaced with data coming from different sources like a database or a scraped html content.</p>
<p style="text-align: left;">Specified header might not be needed but the following could be used:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Type: application/xml; charset=ISO-8859-1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: left;">I&#8217;m Planning to post another using RSS v2.0.</p>
<p style="text-align: left;"><strong>Attachments:</strong></p>
<p style="text-align: left;"><a href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/08/sample_rss_v10.zip">sample_rss_v1.0.zip</a></p>
<p style="text-align: left;"><strong>Reference:</strong></p>
<p style="text-align: left;"><a title="RSS" href="http://en.wikipedia.org/wiki/RSS_(file_format)#RSS_1.0" target="_blank">http://en.wikipedia.org/wiki/RSS_(file_format)#RSS_1.0</a></p>
<p style="text-align: left;">This is the first of many sample templates that I&#8217;ll be posting here. I usually just browse through the web to find templates / sample scripts for different web technologies but sometimes good articles disappear and could never be found. Most of the time clients will ask for added features like RSS feeds, integration to payment gateway, email form, etc. The problem is that is no script available to use that is easy enough to modify.</p>
<p style="text-align: left;">My plan here is to have a repository of simple scripts that could easily be copied and pasted to anywhere. I usually put the code part first and the template part next, so expect it on most of the sample scripts posted here.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2008/08/16/php-sample-rss-v10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who are you? : Finding out WM_NAME in Linux</title>
		<link>http://underdevelopment.maravillaclan.net/2008/01/05/who-are-you-finding-out-wm_name-in-linux/</link>
		<comments>http://underdevelopment.maravillaclan.net/2008/01/05/who-are-you-finding-out-wm_name-in-linux/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 14:22:47 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=10</guid>
		<description><![CDATA[Problem:
I&#8217;ve been using Ubuntu in quite a while. I missed the windows tiling capability that is available in Windoze OS. This doesn&#8217;t come easy in Ubuntu. You would have to download a deb package from http://freshmeat.net/projects/wmtile/ or http://ostatic.com/wmtile and install tile into your system. It&#8217;s a command line tool that allows tilling of all unmaximized [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I&#8217;ve been using Ubuntu in quite a while. I missed the windows tiling capability that is available in Windoze OS. This doesn&#8217;t come easy in Ubuntu. You would have to download a deb package from <span style="text-decoration: line-through;"><a href="http://freshmeat.net/projects/wmtile/" target="_blank">http://freshmeat.net/projects/wmtile/</a></span> or <a href="http://ostatic.com/wmtile" target="_blank">http://ostatic.com/wmtile</a> and install tile into your system. It&#8217;s a command line tool that allows tilling of all unmaximized and unminimized X windows either vertically or horizontally. A simple command used in Ubuntu would be similar to this:</p>
<p>tile -w</p>
<p>Just create a launcher  somewhere that is easily accessible and you&#8217;re good to go.</p>
<p>Not quite yet! This doesn&#8217;t work well in Ubuntu with the default X window manager, Metacity, yet. It keeps on tilling all the wrong X windows. Even the panel is being tiled.</p>
<p>In Ubuntu tile stores its settings in two files found in /usr/share/tile/. The &#8220;rc&#8221; file would be the one important for our discussion. This file stores the X windows to be avoided by the tile program. To exclude certain X window, include codes similar to this:</p>
<p>avoid WM_NAME Bottom Panel<br />
avoid WM_NAME Desktop<br />
avoid WM_NAME gkrellm<br />
avoid WM_NAME gbuffy<br />
avoid WM_CLASS FrontPanel</p>
<p>However, I have no idea how to get this informations. I hated this as tile command messes up my desktop. It moves around my top panel and Avant Window Navigator which is a huge deal cause this renders the tile command useless.</p>
<p><strong>Solution:</strong> <span id="more-10"></span></p>
<p>After plunging into the net for about two days I finally got what I&#8217;ve been looking for, a way to get WM_NAME and/or WM_CLASS. Just run the following code into your terminal:</p>
<p>xprop | grep -E &#8220;^(WM_NAME)|(WM_WINDOW_ROLE)|(WM_CLASS)&#8221;</p>
<p>Your cursor would change into a cross hair. Click on any window/object on your screen and voila! You&#8217;ll be able to see WM_NAME and/or WM_CLASS on your terminal. I got the following for my top panel and Avant Window Navigator:</p>
<p>avoid WM_NAME Top Expanded Edge Panel<br />
avoid WM_NAME avant-window-navigator<br />
avoid WM_NAME awn_elements</p>
<p><strong>Screenshots:</strong></p>
<p><a title="TIle (Gnome, Metacity with Avant-Window-Navigator)" href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/01/tilegnomemetacityavant-window-navigator.png"><img src="http://underdevelopment.maravillaclan.net/wp-content/uploads/2008/01/tilegnomemetacityavant-window-navigator.thumbnail.png" alt="TIle (Gnome, Metacity with Avant-Window-Navigator)" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2008/01/05/who-are-you-finding-out-wm_name-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing older version of Flash</title>
		<link>http://underdevelopment.maravillaclan.net/2007/11/07/installing-older-version-of-flash/</link>
		<comments>http://underdevelopment.maravillaclan.net/2007/11/07/installing-older-version-of-flash/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 05:53:37 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=9</guid>
		<description><![CDATA[Problem:
Switching between Flash versions could sometimes be tricky.   We needed to check the compiled Flash application in an older version which is Flash Player v6. The problem is that once you installed the latest version it&#8217;s hard to revert back to the previous version.
Solution:
The  solution to this problem can be found at [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:<br />
Switching between Flash versions could sometimes be tricky.   We needed to check the compiled Flash application in an older version which is Flash Player v6. The problem is that once you installed the latest version it&#8217;s hard to revert back to the previous version.</p>
<p>Solution:<br />
<span id="more-9"></span>The  solution to this problem can be found at <a href="http://kb.adobe.com/" target="_blank">kb.adobe.com</a>. You first need to uninstall the Flash Player that&#8217;s already in the system. You would find the uninstaller <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&amp;sliceId=2" target="_blank">here</a>. After that is done just download and install the older version archived <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&amp;sliceId=2" target="_blank">here</a>.</p>
<p>Note:<br />
This appear to work with IE but not with Firefox. For Firefox users there is an even more convenient way. There is an add-on called Flash Switcher available at <a href="http://www.sephiroth.it/firefox/" target="_blank">sephiroth.it</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2007/11/07/installing-older-version-of-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash BitmapData&#8217;s 2880 px Limit Workaround</title>
		<link>http://underdevelopment.maravillaclan.net/2007/11/06/flash-bitmapdatas-2880-px-limit-workaround/</link>
		<comments>http://underdevelopment.maravillaclan.net/2007/11/06/flash-bitmapdatas-2880-px-limit-workaround/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 06:25:47 +0000</pubDate>
		<dc:creator>Bong-Bong</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://underdevelopment.maravillaclan.net/?p=7</guid>
		<description><![CDATA[Problem:
We were developing a specialized application for a client. This application should be able to take an image template and allow users to customize (move/crop pictures, add message, etc.). To produce a good enough resolution acceptable for printing the application needs to handle templates as large as  2138&#215;3038 pixels. Adobe Flash limits developers from [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:<br />
We were developing a specialized application for a client. This application should be able to take an image template and allow users to customize (move/crop pictures, add message, etc.). To produce a good enough resolution acceptable for printing the application needs to handle templates as large as  2138&#215;3038 pixels. Adobe Flash limits developers from creating BitmapData with width or height larger than 2880 pixels. Bad news. Try creating a Bitmap greater than the specified limit and you&#8217;ll get this error:</p>
<p>ArgumentError: Error #2015: Invalid BitmapData.</p>
<p>This will work:<br />
<font color="#0000ff">var </font>ValidBitmapData:<font color="#0000ff">BitmapData </font>= <font color="#0000ff">new BitmapData</font>(2880, 2880);</p>
<p>This won&#8217;t:<br />
<font color="#0000ff">var </font>InvalidBitmapData:<font color="#0000ff">BitmapData </font>= <font color="#0000ff">new BitmapData</font>(3000, 3000);</p>
<p>According to <a href="http://www.adobe.com/devnet/flash/articles/image_api_02.html" target="_blank">www.adobe.com</a>:<br />
<font color="#99ccff"> The maximum dimensions of a bitmap in Flash Player is limited to 2880 pixels in either direction (width or height). If you attempt to create a BitmapData instance that is larger than this restriction, the Bitmap will not be created. This limit is in place to keep people from creating Flash movies that gobble up the client&#8217;s RAM. A bitmap that is 2880 x 2880 pixels, will use roughly 32MB of RAM.</font></p>
<p>This restriction becomes more and more useless as computer hardware becomes more and more capable.</p>
<p>Solution:<br />
<span id="more-7"></span>The trick is to &#8220;kidnap&#8221; a BitmapData object from a loaded image with dimension over the limit of 2880 pixels (Which flash allows. Huh! Yes Flash can actually handle bitmaps larger the the limit. It just doesn&#8217;t let you create one.).</p>
<p>It&#8217;s simple. Create a dummy image with the dimension you need. Save it and make it accessible to Flash. Dynamically load it using ActionScript. And take the loader object&#8217;s BitmapData object. That&#8217;s why I termed it &#8220;kidnap&#8221;. We are actually just taking the child of the parent object(loader object), which is the BitmapData, and use it like we build it ourselves.</p>
<p>&#8212;<br />
// 1. Create an image loader and<br />
<font color="#0000ff">var </font>DummyImageLoader:Loader = <font color="#0000ff">new Loader</font>;</p>
<p>// 2. Assign a function to &#8220;kidnap&#8221; the BitmapData object<br />
DummyImageLoader.<font color="#0000ff">contentLoaderInfo</font>.<font color="#0000ff">addEventListener</font>(<font color="#0000ff">Event</font>.<font color="#0000ff">COMPLETE</font>, DummyImageOnComplete);</p>
<p>// 3. Load the image with the preferred dimension<br />
<font color="#0000ff">var </font>DummyImageRequest:<font color="#0000ff">URLRequest </font>= <font color="#0000ff">new URLRequest</font>(<font color="#00ff00">&#8220;dummy_image.jpg&#8221;</font>);<br />
DummyImageLoader.load(DummyImageRequest);</p>
<p><font color="#0000ff">function </font>DummyImageOnComplete(evt:<font color="#0000ff">Event</font>):<font color="#0000ff">void</font><br />
{<br />
<font color="#0000ff">var </font>DummyImageBitmap  = <font color="#0000ff">Bitmap</font>(DummyImageLoader.content);<br />
// &#8220;kidnap&#8221; the BitmapData object<br />
<font color="#0000ff">var </font>ValidBitmapData:<font color="#0000ff">BitmapData  </font>= DummyImageBitmap.<font color="#0000ff">bitmapData</font>;</p>
<p>// you can now use ValidBitmapData to draw any element larger than 2880&#215;2880<br />
}<br />
&#8212;</p>
<p>This will then allow you to use ValidBitmapData as you would have when you used this line:</p>
<p><font color="#0000ff">var </font>InvalidBitmapData:<font color="#0000ff">BitmapData </font>= <font color="#0000ff">new BitmapData</font>(3000, 3000);</p>
<p>Only this time it works.</p>
<p>Files:  <a href="http://underdevelopment.maravillaclan.net/wp-content/uploads/2007/11/bitmapdata_workaround.zip" title="bitmapdata_workaround.zip">bitmapdata_workaround.zip</a></p>
<p>Source:<br />
Original Solution (I believe nobody have used this workaround before.)</p>
<p>Note:<br />
If the required BitmapData dimension varies too often you could generate the image dynamically. In our site we used a PHP script utilizing GD library to create the dummy images. Calling the script like this: dummy_jpeg.php?w=3000&amp;h=3000 where w is the width and h the hieght in pixels.</p>
]]></content:encoded>
			<wfw:commentRss>http://underdevelopment.maravillaclan.net/2007/11/06/flash-bitmapdatas-2880-px-limit-workaround/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
