<?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>EXswap</title>
	<atom:link href="http://www.exswap.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exswap.com</link>
	<description>Expert Software Applications</description>
	<lastBuildDate>Wed, 17 Feb 2010 20:34:04 +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>ExpandItem() error for Flex filtered Tree component</title>
		<link>http://www.exswap.com/2010/02/expanditem-error-for-flex-filtered-tree-component/</link>
		<comments>http://www.exswap.com/2010/02/expanditem-error-for-flex-filtered-tree-component/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 22:01:43 +0000</pubDate>
		<dc:creator>ovidiu.capusan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex filtered Tree expandItem error]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=640</guid>
		<description><![CDATA[
While working on one of our projects I have noticed this error, which apparently comes from inside the Flex Tree class:
TypeError: Error #1010: A term is undefined and has no properties. 
at mx.controls::Tree/expandItem() 
[...src\mx\controls\Tree.as:1778] 
...
This error could happen when calling exapndItem() method immediately after setting the Tree&#8217;s dataProvider property. This is because the Tree does [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } --></p>
<p style="margin-bottom: 0cm" lang="en-US">While working on one of our projects I have noticed this error, which apparently comes from inside the Flex Tree class:</p>
<code>TypeError: Error #1010: A term is undefined and has no properties. <br>
at mx.controls::Tree/expandItem() <br>
[...src\mx\controls\Tree.as:1778] <br>
...</code>
<p style="margin-bottom: 0cm" lang="en-US">This error could happen when calling <strong>exapndItem()</strong> method immediately after setting the Tree&#8217;s <strong>dataProvider</strong> property. This is because the Tree does not manage to update itself between the calls.</p>
<p style="margin-bottom: 0cm"><span lang="en-US">This issue has been addressed in the following <a href="http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/" target="_blank">post</a>,</span><span lang="en-US"> but from a quick look I have only spotted a sort of a <a href="http://www.kalengibbons.com/blog/index.php/2009/01/filtering-a-flex-tree-using-an-arraycollection/#comment-604" target="_blank">hack</a>.</span></p>
<p style="margin-bottom: 0cm"><span lang="en-US">Here is a more elegant solution to the <strong>expanItem()</strong> problem. This was inspired from the following <a href="https://www.adobe.com/devnet/flex/quickstart/working_with_tree/" target="_blank">Adobe link</a>.</span><span lang="en-US"> One could extend the Tree component and implement a <strong>refresh()</strong> method like the one described below:</span></p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> refresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
<span style="color: #009900; font-style: italic;">// Refresh all rows on next update.</span><br />
invalidateList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
openItems = openItems<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #009900; font-style: italic;">// Validate and update the properties and layout</span><br />
<span style="color: #009900; font-style: italic;">// of this object and redraw it, if necessary.</span><br />
validateNow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p style="margin-bottom: 0cm" lang="en-US">Then just make sure to call a <strong>refresh()</strong> before a call to <strong>expandItem()</strong>. In this case the <strong>expanItem()</strong> call will be safe.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=ExpandItem%28%29+error+for+Flex+filtered+Tree+component+http://cypeh.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2010/02/expanditem-error-for-flex-filtered-tree-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schema Error: &#8220;The type attribute cannot be present with either simpleType or complexType&#8221;</title>
		<link>http://www.exswap.com/2010/02/schema-error-the-type-attribute-cannot-be-present-with-either-simpletype-or-complextype/</link>
		<comments>http://www.exswap.com/2010/02/schema-error-the-type-attribute-cannot-be-present-with-either-simpletype-or-complextype/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 15:27:42 +0000</pubDate>
		<dc:creator>aron.virginas</dc:creator>
				<category><![CDATA[XML/XSL/XSLT]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=596</guid>
		<description><![CDATA[I came across this error message today on my attempt of validating a rather simple XML against a schema I wrote. However simple this XML was, I still had to specify restrictions upon the values some attributes could take. Here did all the problems begin, since I found the documentation available on-line to be rather [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this error message today on my attempt of validating a rather simple XML against a schema I wrote. However simple this XML was, I still had to specify restrictions upon the values some attributes could take. Here did all the problems begin, since I found the documentation available on-line to be rather ambiguous about the syntax of the tags I had to use.</p>
<p>The critical section of my schema &#8211; where I specified the restrictions &#8211; was:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:attribute</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dataType&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;xs:string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:simpeType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:restriction</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;xs:string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;category&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;date&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;float&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;integer&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;long&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:restriction<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
<p>The error message I got from the validator wasn&#8217;t very informative, so it took some time until I localized the problem. The error appeared due to the fact that the attribute &#8220;dataType&#8221; already had a <em>&#8220;type&#8221;</em> defined at the top level, which resulted in conflicting behavior with the <em>&#8220;base&#8221;</em> attribute of the restriction defined afterwards. Though this was not explicitly stated in the documentation I was able to find on-line, it seems that these two attributes exclude each other, since they basically specify the same thing.</p>
<p>Deleting the <em>&#8220;type&#8221;</em> attribute finally solved my problem:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:attribute</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;dataType&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:simpeType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:restriction</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;xs:string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;category&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;date&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;float&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;integer&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;long&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:enumeration</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:restriction<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Schema+Error%3A+%E2%80%9CThe+type+attribute+cannot+be+present+with+either+simpleType+or+complexType%E2%80%9D+http://x2yxw.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2010/02/schema-error-the-type-attribute-cannot-be-present-with-either-simpletype-or-complextype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring AHFormatter (V4.3 and V5.1) from Antenna House for Ubuntu 9.10</title>
		<link>http://www.exswap.com/2010/01/configuring-ahformatter-v4-3-and-v5-1-from-antenna-house-for-ubuntu-9-10/</link>
		<comments>http://www.exswap.com/2010/01/configuring-ahformatter-v4-3-and-v5-1-from-antenna-house-for-ubuntu-9-10/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 07:58:36 +0000</pubDate>
		<dc:creator>marius.muresan</dc:creator>
				<category><![CDATA[XML/XSL/XSLT]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=463</guid>
		<description><![CDATA[The latest version of Antenna House Formatter can be found at:
http://www.antennahouse.com/product/ahf50/download.htm
If you&#8217;re working under Linux/Ubuntu, you can use Alien to convert the .rpm package to Debian/Ubuntu .deb format.
Use this command to install Alien:
1apt-get install alien
After converting the .rpm package to .deb using Alien, and installing the AHFormatter V4.3 or V5.1 (by default in /usr), some [...]]]></description>
			<content:encoded><![CDATA[<p>The latest version of Antenna House Formatter can be found at:<br />
<a href="http://www.antennahouse.com/product/ahf50/download.htm">http://www.antennahouse.com/product/ahf50/download.htm</a><br />
If you&#8217;re working under Linux/Ubuntu, you can use Alien to convert the .rpm package to Debian/Ubuntu .deb format.<br />
Use this command to install Alien:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">apt-get install alien</div></td></tr></tbody></table></div>
<p>After converting the .rpm package to .deb using Alien, and installing the AHFormatter V4.3 or V5.1 (by default in /usr), some errors might occure at run time:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">./run.sh: 32: @@HOME@@/bin/XSLCmd: not found</div></td></tr></tbody></table></div>
<p>What you have to do is to edit the &#8220;run.sh&#8221; from the installation folder of AHFormatter (let&#8217;s say /usr/AHFormatterV51/run.sh) and replace the line:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AHF51_HOME=&quot;@@HOME@@&quot;</div></td></tr></tbody></table></div>
<p>with the folder where you installed the Formatter. Let&#8217;s say:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AHF51_HOME=&quot;/usr/AHFormatterV51&quot;</div></td></tr></tbody></table></div>
<p>The second replacement is in the &#8220;font-config.xml&#8221; file from the &#8220;etc&#8221; folder of AHFormatter (let&#8217;s say /usr/AHFormatterV51/etc/font-config.xml) at line:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">font-folder path=&quot;@@HOME@@/fonts&quot;</div></td></tr></tbody></table></div>
<p>with the folder where you installed the Formatter:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">font-folder path=&quot;/usr/AHFormatterV51/fonts&quot;</div></td></tr></tbody></table></div>
<p><span>Now you can enjoy the AHFormatter!:)</span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Configuring+AHFormatter+%28V4.3+and+V5.1%29+from+Antenna+House+for+Ubuntu+9.10+http://wdfpx.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2010/01/configuring-ahformatter-v4-3-and-v5-1-from-antenna-house-for-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with Rainbow Pdf Server Based Convertor installation and configuration on Ubuntu 9.10 64 bit</title>
		<link>http://www.exswap.com/2010/01/problems-with-rainbow-pdf-server-based-convertor-installation-and-configuration-on-ubuntu-9-10-64-bit/</link>
		<comments>http://www.exswap.com/2010/01/problems-with-rainbow-pdf-server-based-convertor-installation-and-configuration-on-ubuntu-9-10-64-bit/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 07:45:35 +0000</pubDate>
		<dc:creator>viliam.bonomi</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=430</guid>
		<description><![CDATA[In order to install the converter, the downloaded rpm package should be installed. The instruction to install it without converting it to a .deb package is:
1sudo rpm -i RainbowPDFServerBasedConverter-xxx.rpm --force-debian --nodeps
The installation directory can be provided with the &#8211;prefix &#8220;installation location&#8221; parameters, otherwise it will be installed to the /usr/ServerBasedConvertor location.
To make a a sample [...]]]></description>
			<content:encoded><![CDATA[<p>In order to install the converter, the downloaded rpm package should be installed. The instruction to install it without converting it to a .deb package is:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo rpm -i RainbowPDFServerBasedConverter-xxx.rpm --force-debian --nodeps</div></td></tr></tbody></table></div>
<p>The installation directory can be provided with the <strong>&#8211;prefix &#8220;installation location&#8221;</strong> parameters, otherwise it will be installed to the <em>/usr/ServerBasedConvertor location</em>.</p>
<p>To make a a sample conversion the run.sh script must be executed, a frequent error that could appear is:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/usr/ServerBasedConverter/bin/SBCCmd: symbol lookup error:<br />
/usr/ServerBasedConverter/lib/libOSMesa.so.6: undefined symbol: _tnl_run_pipeline</div></td></tr></tbody></table></div>
<p>This means that the converter wants to use the shared objects that came with the installation (in the <em>~/ServerBasedConvertor/lib</em> directory). As these objects were probably compiled on a different system, the ones that cause the problem must be deleted from the installation directory and the native libraries of the system should be installed.</p>
<p>In our example the <em>~/ServerBsedConvertor/lib/libOsMesa.so</em> and <em>~/ServerBsedConvertor/lib/libOsMesa.so.6</em> files are going to be deleted and the libosMesa6 library will be installed with the following command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install libOsMesa6</div></td></tr></tbody></table></div>
<p>After these errors disappear the shell script should run properly.</p>
<p>If trying to compile and run the sample Java code the publishers provided, the following things must be done:</p>
<p style="text-align: left">Some environment variables must be set. These can be found on the publishers site at the following address:</p>
<p style="text-align: left"><a href="http://rainbowpdf.com/serverdoc/xfo-env.html">http://rainbowpdf.com/serverdoc/xfo-env.html</a></p>
<p style="text-align: left">After setting the necessary variables a possible error that might appear is:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: no DfvJavaCtl21 in java.library.path<br />
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)<br />
at java.lang.Runtime.loadLibrary0(Runtime.java:823)<br />
at java.lang.System.loadLibrary(System.java:1028)<br />
at jp.co.antenna.DfvJavaCtl.DfvObj.&amp;lt;clinit&amp;gt;(DfvObj.java:269)<br />
at sample.main(sample.java:28)</div></td></tr></tbody></table></div>
<p>The cause of this error is that a shared object file does not have the name what the program is searching for. It seems that in the 3.0 package for 64 bit Linux (maybe in other packages as well) a shared object file has not been renamed from the last version.</p>
<p>A quick solution would be to rename one of the symbolic links (rename <em>libDfvJavaCtl.so</em> to <em>libDfvJavaCtl21.so</em>) which point to a library file with the following command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mv /usr/ServerBasedConverter/lib/libDfvJavaCtl.so /usr/ServerBasedConverter/lib/DfvJavaCtl21.so</div></td></tr></tbody></table></div>
<p>Now everything should work.</p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Problems+with+Rainbow+Pdf+Server+Based+Convertor+installation+and+configuration+on+Ubuntu+9.10+64+bit+http://9t8px.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2010/01/problems-with-rainbow-pdf-server-based-convertor-installation-and-configuration-on-ubuntu-9-10-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcoming &#8220;invocation forwarded to primary instance&#8221; in Adobe AIR</title>
		<link>http://www.exswap.com/2009/11/overcoming-invocation-forwarded-to-primary-instance-in-adobe-air/</link>
		<comments>http://www.exswap.com/2009/11/overcoming-invocation-forwarded-to-primary-instance-in-adobe-air/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:58:10 +0000</pubDate>
		<dc:creator>lucian.cioroga</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=381</guid>
		<description><![CDATA[&#8230; I&#8217;m only referring to AIR applications launched from command line adl here, not of installed AIR applications.
So, I had a java program that needed to run several instances of the same AIR application. By default, calling the following line more than once while the initial application is active:
1adl.exe /path/to/air-application-descriptor.xml
&#8230;, will result in all calls [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; I&#8217;m only referring to AIR applications launched from command line adl here, not of installed AIR applications.</p>
<p>So, I had a <b>java</b> program that needed to run several instances of the same AIR application. By default, calling the following line more than once while the initial application is active:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">adl.exe <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>air-application-descriptor.xml</div></td></tr></tbody></table></div>
<p>&#8230;, will result in all calls being forwarded to the first instance (message: &#8220;invocation forwarded to primary instance&#8221;). Since the whole idea of running several apps in the same time is for each to do something specific, this is kind of a blocker.</p>
<p>Good thing that AIR uses only the application id (found under &lt;id&gt; tag in the descriptor) to identify between applications launches. Therefor the solution was pretty straight-forward:</p>
<ol>
<li>replicate the original application descriptor and give it a standardized unique name</li>
<li>update the ids for each descriptor and make sure they are unique</li>
<li>do a programmatic search in the folder for application descriptors matching the standard name and create a thread pool with launchers for them (this was on java side)</li>
</ol>
<p>You might find this useful (<b>ant</b> code for replicating descriptors/renaming ids):</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;for</span> <span style="color: #000066;">begin</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">end</span>=<span style="color: #ff0000;">&quot;${APP_COUNT}&quot;</span> <span style="color: #000066;">param</span>=<span style="color: #ff0000;">&quot;i&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;copy</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;src/demo-app.xml&quot;</span> <span style="color: #000066;">tofile</span>=<span style="color: #ff0000;">&quot;dist/demo-app-@{i}.xml&quot;</span> <span style="color: #000066;">overwrite</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replace</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;dist/demo-app-@{i}.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacetoken<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[&lt;id&gt;demo-app&lt;/id&gt;]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replacetoken<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;replacevalue<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[&lt;id&gt;demo-app-@{i}&lt;/id&gt;]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replacevalue<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/replace<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sequential<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/for<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
<p>&#8230;, where <strong>application_id</strong> is the ID of the application (usually set to project name) and APP_COUNT is a property setting the number of apps to be deployed.</p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Overcoming+%E2%80%9Cinvocation+forwarded+to+primary+instance%E2%80%9D+in+Adobe+AIR+http://rt6cd.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2009/11/overcoming-invocation-forwarded-to-primary-instance-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing OGG sounds in Flash/Flex</title>
		<link>http://www.exswap.com/2009/10/playing-ogg-sounds-in-flashflex/</link>
		<comments>http://www.exswap.com/2009/10/playing-ogg-sounds-in-flashflex/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 12:14:41 +0000</pubDate>
		<dc:creator>lucian.cioroga</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.exswap.com/?p=340</guid>
		<description><![CDATA[Although there is a feature request on Adobe Bugs, it didn&#8217;t get much attention from Adobe: FP-3037. So, in the mean time&#8230;
Playing OGG sounds in Flash has been possible for a couple of months now, with the new FP10 Sound API and AS3 OGG Vorbis library built using Adobe Alchemy and available on Adobe Labs: [...]]]></description>
			<content:encoded><![CDATA[<p>Although there is a feature request on Adobe Bugs, it didn&#8217;t get much attention from Adobe: <a href="http://bugs.adobe.com/jira/browse/FP-3037">FP-3037</a>. So, in the mean time&#8230;</p>
<p>Playing OGG sounds in Flash has been possible for a couple of months now, with the new FP10 Sound API and AS3 OGG Vorbis library built using <a href="http://labs.adobe.com/technologies/alchemy/">Adobe Alchemy</a> and available on Adobe Labs: <a href="http://labs.adobe.com/wiki/index.php/Alchemy:Libraries">http://labs.adobe.com/wiki/index.php/Alchemy:Libraries</a>.</p>
<p>The strategy is to:</p>
<ol>
<li>load the sound with URLLoader as bytes (it can also be embeded, but it wouldn&#8217;t make much sense);</li>
<li>use AS3 OGG Vorbis library to parse the data and create the OGGSound (a class created specifically for this demo that wraps an OGG sound byte array); the decoder is OGGDecoder;</li>
<li>simulate the sound api by extending Sound class and make use of the new SampleDataEvent.SAMPLE_DATA to read from the samples and output to the audio card.</li>
</ol>
<p>I&#8217;m removing the last 2 samples in order for the sound to loop smoothly.</p>
<p>Give a test to the small demo project below and take a look at the code <a href="../wp-content/uploads/2009/11/OGGSound.zip">here</a>.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_OGGPlayer_1012271580"
			class="flashmovie"
			width="670"
			height="170">
	<param name="movie" value="http://www.exswap.com/wp-content/uploads/2009/11/OGGPlayer.swf" />
	<param name="wmode" value="transparent" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.exswap.com/wp-content/uploads/2009/11/OGGPlayer.swf"
			name="fm_OGGPlayer_1012271580"
			width="670"
			height="170">
		<param name="wmode" value="transparent" />
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The fact that you need to do:</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">sound</span>:<span style="color: #0066CC;">Sound</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Sound</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">sound</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SampleDataEvent.<span style="color: #006600;">SAMPLE_DATA</span>, onSampleData<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">sound</span>.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>&#8230;, in order for this to work seems a bit hacky, since in fact you&#8217;re creating a dummy empty sound that you lively populate. Maybe there could be something more intuitive&#8230;</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Playing+OGG+sounds+in+Flash%2FFlex+http://geap4.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2009/10/playing-ogg-sounds-in-flashflex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to our blog</title>
		<link>http://www.exswap.com/2009/08/welcome-to-our-blog/</link>
		<comments>http://www.exswap.com/2009/08/welcome-to-our-blog/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:16:48 +0000</pubDate>
		<dc:creator>zoltan.lorincz</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://dev.exswap.com/?p=234</guid>
		<description><![CDATA[Dear Visitor,
we started our technology blog with one goal in mind: share our knowledge.
We believe that we have a lot to share. We are working with the latest technologies and many times these technologies just got released and you won&#8217;t find many resources about them.
We won&#8217;t limit ourselves to a particular technology as we work [...]]]></description>
			<content:encoded><![CDATA[<p>Dear Visitor,<br/><br />
we started our technology blog with one goal in mind: <strong>share our knowledge</strong>.<br/><br />
We believe that we have a lot to share. We are working with the latest technologies and many times these technologies just got released and you won&#8217;t find many resources about them.<br/><br />
We won&#8217;t limit ourselves to a particular technology as we work with many of them, but you will most probably find posts about <a href="http://en.wikipedia.org/wiki/Rich_Internet_application">Rich Internet Applications</a>, <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29">Java </a>Server Side Solutions and many more.<br/><br />
We hope that you will enjoy our blog, if you agree or disagree with something just let us know!<br/><br />
Zoltan.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Welcome+to+our+blog+http://dzent.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.exswap.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.exswap.com/2009/08/welcome-to-our-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
