<?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>mobile and gis dev notes &#187; coldfusion</title>
	<atom:link href="http:///wordpress/tag/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Wed, 08 Feb 2012 22:26:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ColdFusion Fonts</title>
		<link>/wordpress/2008/10/coldfusion-fonts/</link>
		<comments>/wordpress/2008/10/coldfusion-fonts/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 09:36:53 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=272</guid>
		<description><![CDATA[I was trying to make a chinese text drawn in an image. That worked flawlessly on my Mac. Upon svn updating my files in production, the characters in the image became squares again. First hunch was to change my file.encoding as from my previous post. But didn&#8217;t helped, so I changed the font from the [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to make a chinese text drawn in an image. That worked flawlessly on my Mac. Upon svn updating my files in production, the characters in the image became <em>squares</em> again.</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-4.png" alt="Picture 4.png" border="0" width="260" height="68" /></p>
<p>First hunch was to change my file.encoding as from my previous <a href="/wordpress/?p=93">post</a>.  But didn&#8217;t helped, so I changed the font from the CF code itself..</p>

<div class="wp_syntax"><div class="code"><pre class="coldfusion" style="font-family:monospace;"> &lt;cfset attr = StructNew() /&gt;
 &lt;cfset attr.size = 16 /&gt;
 &lt;cfset attr.style = &quot;plain&quot; /&gt;
 &lt;cfset attr.font = &quot;microsoft yahei&quot; /&gt;</pre></div></div>

<p>I noticed that using the obvious fonts (Arial, Tahoma) didn&#8217;t worked. It always complained it can&#8217;t find the font&#8230;</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-5.png" alt="Picture 5.png" border="0" width="460" height="329" /></p>
<p>I remember using msyh.ttf (Microsoft Yahei) in Mapserver for producing Chinese text. So what I did was, I copied msyh.ttf and dropped it in the coldfusion fonts directory (/opt/coldfusion8/runtime/jre/lib/fonts) then restarted coldfusion. Afterwards, I was able to see msyh.ttf from the Font Management of CFIDE Administrator. From there&#8230; I was able to display the image with Chinese Characters..</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-3.png" alt="Picture 3.png" border="0" width="264" height="72" /></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/10/coldfusion-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion: Specifying -Dfile.encoding</title>
		<link>/wordpress/2008/09/coldfusion-specifying-dfileencoding/</link>
		<comments>/wordpress/2008/09/coldfusion-specifying-dfileencoding/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 04:06:13 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">/wordpress/?p=262</guid>
		<description><![CDATA[I have a small project to use a jar file for sending/receiving SMS in chinese. I could send the SMS fine from Eclipse, so I thought creating a Java Class wrapper to be used by ColdFusion so it can be called from HTTP could do the trick. After a few minutes, I have the class [...]]]></description>
			<content:encoded><![CDATA[<p>I have a small project to use a jar file for sending/receiving SMS in chinese. I could send the SMS fine from Eclipse, so I thought creating a Java Class wrapper to be used by ColdFusion so it can be called from HTTP could do the trick.</p>
<p>After a few minutes, I have the class up and running and fully tested within Eclipse. </p>
<p>1. I dropped the class, dll and its jar in C:\ColdFusion8\lib. Take note its a Windows box, since the Jar is using a dll to talk to the Wavecom modem using AT commands.</p>
<p>GSMModem.jar<br />
GSMMultiPort.dll<br />
GSMMultiPortForJ.dll</p>
<p>2. The crux was to specify the file.encoding for Java as an argument from the CFIDE Administrator. After specifying GB18030, a quick restart.. voila.. </p>
<pre>
Java Version  	 1.6.0_01
Java Vendor 	Sun Microsystems Inc.
Java Vendor URL 	http://java.sun.com/
Java Home 	C:\ColdFusion8\runtime\jre
Java File Encoding 	GB18030
Java Default Locale 	en_US
File Separator 	\
Path Separator 	;
Line Separator 	Chr(13)
User Name 	SYSTEM
User Home 	C:\
</pre>
<p>Files:<br />
<a href="/wordpress/wp-content/uploads/2008/09/cfsendjava.txt" title="CFSend.java.txt">CFSend.java</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/09/coldfusion-specifying-dfileencoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion CheatSheet</title>
		<link>/wordpress/2008/01/coldfusion-cheatsheet/</link>
		<comments>/wordpress/2008/01/coldfusion-cheatsheet/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 13:12:19 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=133</guid>
		<description><![CDATA[There are many coldfusion programming techniques that I always grep/search in my applications. It is time to put them all in one place. 1. How to set different alternating row colors?]]></description>
			<content:encoded><![CDATA[<p>There are many coldfusion programming techniques that I always grep/search in my applications. It is time to put them all in one place.</p>
<p><strong>1. How to set different alternating row colors?</strong><br />
<code><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/01/coldfusion-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to ColdFusion8</title>
		<link>/wordpress/2007/08/upgrading-to-coldfusion8/</link>
		<comments>/wordpress/2007/08/upgrading-to-coldfusion8/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 18:32:52 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=100</guid>
		<description><![CDATA[I had the liberty of upgrading to ColdFusion 8. Works smoothly&#8230; Install took some time. Memory peaks instantly at 250M Binding to Apache2.2 was seamless. No need to use the updated wsconfig.jar New ColdFusion Administrator. Debugging looks promising&#8230;]]></description>
			<content:encoded><![CDATA[<p>I had the liberty of upgrading to ColdFusion 8. Works smoothly&#8230;</p>
<ul>
<li>Install took some time.</li>
<li>Memory peaks instantly at 250M</li>
<li>Binding to Apache2.2 was seamless. No need to use the updated wsconfig.jar</li>
<li>New ColdFusion Administrator. Debugging looks promising&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/upgrading-to-coldfusion8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CFMX7 on CentOS5</title>
		<link>/wordpress/2007/07/installing-cfmx7-on-centos5/</link>
		<comments>/wordpress/2007/07/installing-cfmx7-on-centos5/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 20:25:30 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=76</guid>
		<description><![CDATA[1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems. rpm -ivh libXpm-3.5.5-3.i386.rpm 2. Modify the installer. cat coldfusion-702-linux.bin.backup &#124; sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &#62; coldfusion-702-linux.bin Reference: http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php POST-INSTALL 1. Disable Verity search if you don&#8217;t use it. chkconfig cfmx7search off]]></description>
			<content:encoded><![CDATA[<p>1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems.</p>
<p><code><br />
rpm -ivh libXpm-3.5.5-3.i386.rpm<br />
</code></p>
<p>2. Modify the installer.<br />
cat coldfusion-702-linux.bin.backup | sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &gt; coldfusion-702-linux.bin</p>
<p><strong>Reference:</strong> <a href="http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php">http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php</a></p>
<p>POST-INSTALL</p>
<p>1. Disable Verity search if you don&#8217;t use it.<br />
<code><br />
chkconfig cfmx7search off<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-cfmx7-on-centos5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing CFCs using UML with Poseidon</title>
		<link>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/</link>
		<comments>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 11:26:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[uml]]></category>

		<guid isPermaLink="false">/wordpress/?p=33</guid>
		<description><![CDATA[It seems the xmi2cfc tool from cfcxmi.tigris.org works only for Poseidon 2.x versions. The visio works well and poseidon can export the xmi as well but I still encounter problems during the xmi to cfc conversion. I just bought a 1GB ram for my notebook since Poseidon peaks at 200MB. How to create cfc&#8217;s with [...]]]></description>
			<content:encoded><![CDATA[<p>It seems the xmi2cfc tool from cfcxmi.tigris.org works only for Poseidon 2.x versions. The visio works well and poseidon can export the xmi as well but I still encounter problems during the xmi to cfc conversion.</p>
<p>I just bought a 1GB ram for my notebook since Poseidon peaks at 200MB. How to create cfc&#8217;s with Poseidon?</p>
<p>1. Download and install Poseidon. Im using Poseidon 5 Professional.<br />
2. Download the poseidon custom templates from <a href="http://cfcxmi.tigris.org/">http://cfcxmi.tigris.org/</a>.<br />
3. Extract it to Poseidon/lib/. You should have the ff directories:</p>
<p>Poseidon/<br />
lib/<br />
custom/</p>
<p>4. Start poseidon<br />
5. Click on &#8220;Generation&#8221; -&gt; &#8220;Java&#8221;<br />
6. Click on the ellipses tool and point to the custom templates.<br />
7. &#8220;Apply&#8221; the settings.<br />
8. Create your class<br />
9. Click on the source code to view your cfc.</p>
<p>I have made some changes to the templates to reflect the output=&#8221;false&#8221; and required=&#8221;true&#8221;. You can download the templates from <a href="/wordpress/images/custom.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

