<?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>ADM Blog</title>
	<atom:link href="http://blog.another-d-mention.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.another-d-mention.ro</link>
	<description>No matter how you see things, reality changes when you reach understanding</description>
	<lastBuildDate>Thu, 11 Mar 2010 14:07:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Neural networks in ActionScript 3</title>
		<link>http://blog.another-d-mention.ro/programming/neural-networks-in-actionscript-3/</link>
		<comments>http://blog.another-d-mention.ro/programming/neural-networks-in-actionscript-3/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex / ActionScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[artificial]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[neural]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=807</guid>
		<description><![CDATA[&#8220;An artificial neural network (ANN), usually called &#8220;neural  network&#8221; (NN), is a mathematical model or computational model that tries to  simulate the structure and/or functional aspects of biological neural  networks. It consists of an interconnected group of artificial neurons and processes information using a connectionist approach to computation. In most cases an [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/' rel='bookmark' title='Permanent Link: How to clone (duplicate) an object in ActionScript 3'>How to clone (duplicate) an object in ActionScript 3</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-808" style="margin: 0px 10px 5px 0px;" title="Neural Network" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/03/neural-network.gif" alt="Neural Network" width="150" height="113" />&#8220;An <strong>artificial neural network (ANN)</strong>, usually called &#8220;neural  network&#8221; (NN), is a mathematical model or computational model that tries to  simulate the structure and/or functional aspects of biological neural  networks. It consists of an interconnected group of artificial neurons and processes information using a connectionist approach to computation. In most cases an ANN is an adaptive system that changes its structure based on external  or internal information that flows through the network during the  learning phase. Neural networks are non-linear statistical data  modeling tools. They can be used to model complex relationships  between inputs and outputs or to find patterns in data.&#8221; (<a href="http://en.wikipedia.org/wiki/Artificial_neural_network">Wikipedia</a>)</p>
<p><a href="http://blog.another-d-mention.ro/wp-content/uploads/2010/03/mlp3.gif"><img class="alignright size-full wp-image-809" title="Multi Layer Perceptron" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/03/mlp3.gif" alt="Multi Layer Perceptron" width="164" height="224" /></a>So, repetition is the mother of all learning they say. You damn right it is. And you can do it in AS3 of course. Not the fastest choice out there but that&#8217;s not the point. NN&#8217;s are usually not that fast but they&#8217;re useful in so many ways.</p>
<p>So, here is my implementation of a neural network multi-layer-perceptron made in AS3, set to learn a simple XOR problem. It uses 2 inputs neurons , 2 hidden layers, each having 2 neurons and one output neuron. It takes about 2 seconds to train it using 10.000 epochs, but then you can save a snapshot of the NN memory as a byteArray, save it to the server and load it back again in an instant without requiring a new training.  I didn&#8217;t take the time to thoroughly document the classes just yet but I&#8217;m sure you&#8217;ll find them pretty easy to use.</p>
<p>Some reading material:<br />
<a href="http://en.wikipedia.org/wiki/Artificial_neural_network" target="_blank">http://en.wikipedia.org/wiki/Artificial_neural_network</a><br />
<a href="http://fbim.fh-regensburg.de/~saj39122/jfroehl/diplom/e-index.html" target="_blank">http://fbim.fh-regensburg.de/~saj39122/jfroehl/diplom/e-index.html</a> (this is great)<br />
<a href="http://www.ai-junkie.com/ann/evolved/nnt1.html" target="_blank">http://www.ai-junkie.com/ann/evolved/nnt1.html</a></p>
<div align="center">
<object id="nnet" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="397" height="411" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://blog.another-d-mention.ro/stuff/nnet/NeuralNetworks.swf" /><param name="name" value="SmartImage" /><param name="align" value="middle" /><embed id="nnet" type="application/x-shockwave-flash" width="397" height="411" src="http://blog.another-d-mention.ro/stuff/nnet/NeuralNetworks.swf" align="middle" name="SmartImage" allowscriptaccess="sameDomain" bgcolor="#FFFFFF" quality="high"></embed></object>
</div>
<p><a href="http://blog.another-d-mention.ro/stuff/nnet/srcview/" target="_blank">Sources</a> and <a href="http://blog.another-d-mention.ro/stuff/nnet/srcview/NeuralNetworks.zip" target="_blank">Download</a></p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/' rel='bookmark' title='Permanent Link: How to clone (duplicate) an object in ActionScript 3'>How to clone (duplicate) an object in ActionScript 3</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/neural-networks-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use clipboard (copy/paste) in C# console application</title>
		<link>http://blog.another-d-mention.ro/programming/c/use-clipboard-copypaste-in-c-console-application/</link>
		<comments>http://blog.another-d-mention.ro/programming/c/use-clipboard-copypaste-in-c-console-application/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 20:04:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[paste]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=805</guid>
		<description><![CDATA[This took me few minutes to figure out and was quite annoying. First you must add a reference to System.Windows.Forms in your application. Go to Project -&#62; Add reference, select System.Windows.Forms from .NET tab in the window that just opened.  You must avoid the ThreadStateException by applying the STAThread attribute to your Main()  function. [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/' rel='bookmark' title='Permanent Link: Communicate betwen C# and an embeded Flash application'>Communicate betwen C# and an embeded Flash application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.another-d-mention.ro/wp-content/uploads/2010/03/net_logo.jpg-150x150.png" alt="net logo.jpg 150x150 Use clipboard (copy/paste) in C# console application" title="net_logo.jpg" width="150" height="150" class="alignleft size-thumbnail wp-image-806" />This took me few minutes to figure out and was quite annoying. First you must add a reference to System.Windows.Forms in your application. Go to Project -&gt; Add reference, select <strong>System.Windows.Forms</strong> from .NET tab in the window that just opened.  You must avoid the ThreadStateException by applying the STAThread attribute to your Main()  function. Then you can use the Clipboard functions without any problems.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Windows.Forms</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #FF0000;">class</span> Program <span style="color: #000000;">&#123;</span>
    <span style="color: #000000;">&#91;</span>STAThread<span style="color: #000000;">&#93;</span>
    <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
         Clipboard.<span style="color: #0000FF;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;this is in clipboard now&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>



<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/communicate-betwen-c-and-an-embeded-flash-application/' rel='bookmark' title='Permanent Link: Communicate betwen C# and an embeded Flash application'>Communicate betwen C# and an embeded Flash application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/c/use-clipboard-copypaste-in-c-console-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Flex/AS3 applications for Mobile Devices</title>
		<link>http://blog.another-d-mention.ro/programming/create-flexas3-applications-for-mobile-devices/</link>
		<comments>http://blog.another-d-mention.ro/programming/create-flexas3-applications-for-mobile-devices/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex / ActionScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[elips]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=801</guid>
		<description><![CDATA[Yup! Flex Apps on your mobile. And I&#8217;m not talking about Flash Lite and you won&#8217;t need CS5 either.
ELIPS Studio converts the Flex code in native code for Windows Mobile, Symbian, Android, iPhone and mass-market mobiles. It&#8217;s still beta and you have to register for a beta account to get it but I think will [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/flex-components-pack/' rel='bookmark' title='Permanent Link: Flex Components Pack'>Flex Components Pack</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.openplug.com/" target="_blank"><img class="alignleft size-thumbnail wp-image-802" title="elips-studio-3-box" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/02/elips-studio-3-box-150x150.jpg" alt="elips studio 3 box 150x150 Create Flex/AS3 applications for Mobile Devices" width="150" height="150" /></a>Yup! Flex Apps on your mobile. And I&#8217;m not talking about <a href="http://www.adobe.com/products/flashlite/" target="_blank">Flash Lite</a> and you won&#8217;t need CS5 either.<br />
<a href="http://developer.openplug.com/" target="_blank">ELIPS Studio</a> converts the Flex code in native code for Windows Mobile, Symbian, Android, iPhone and mass-market mobiles. It&#8217;s still beta and you have to register for a beta account to get it but I think will do wonders for the mobile dev. world.</p>
<p>And in their words:</p>
<p>&#8220;ELIPS Studio 3 is a plug-in for Adobe Flex Builder, a widely used IDE for internet &amp; desktop application. Our plug-in allows Flex to go mobile!</p>
<p>The product offers a mobile-optimized Flex Framework, plus numerous Flex extensions, including mobile UI components &amp; access to mobile device features (voice call, SMS, access to calendar and contacts, to the camera, etc.)</p>
<p>The product includes a form-factor device simulator allowing you to see your application behavior on different devices. It also includes a network simulator allowing to generate calls, SMS, etc.&#8221;</p>
<p>So..get it while it&#8217;s hot <img src='http://blog.another-d-mention.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Create Flex/AS3 applications for Mobile Devices" /> </p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/flex-components-pack/' rel='bookmark' title='Permanent Link: Flex Components Pack'>Flex Components Pack</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/create-flexas3-applications-for-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viva La Revolución</title>
		<link>http://blog.another-d-mention.ro/misc/viva-la-revolucion/</link>
		<comments>http://blog.another-d-mention.ro/misc/viva-la-revolucion/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:42:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[noie6]]></category>
		<category><![CDATA[with]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=799</guid>
		<description><![CDATA[ Ok. Enough is enough!
I&#8217;ve joined the campaign to end IE6 for quite a while now. My page even showed in black and white if viewed in IE6 (for nostalgic users) but seems a campaign or hundreds of them are not enough to solve this.  Seems you can win this battle with politics and technical [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/join-the-campaign-to-end-ie6/' rel='bookmark' title='Permanent Link: Join the campaign to end IE6'>Join the campaign to end IE6</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-800" title="ie bug" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/ie7bug.jpg" alt="ie bug" hspace="10" vspace="10" width="119" height="121" /> Ok. Enough is enough!</p>
<p>I&#8217;ve joined the campaign to end IE6 for quite a while now. My page even showed in black and white if viewed in IE6 (for nostalgic users) but seems a campaign or hundreds of them are not enough to solve this.  Seems you can win this battle with politics and technical arguments. You need a revolution.</p>
<p>So from now on, my site (and any website I will build) will not display to IE6 users.  They don&#8217;t need logos advising them to let the web evolve, or hear about the pain of the developers. No! They need brute force. If the web won&#8217;t work they must change their browsers. How can we convert those 20% other way ? I say fuck&#8217;em!</p>
<p>Viva La Revolución</p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/join-the-campaign-to-end-ie6/' rel='bookmark' title='Permanent Link: Join the campaign to end IE6'>Join the campaign to end IE6</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/misc/viva-la-revolucion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static files locked by Jetty in Eclipse</title>
		<link>http://blog.another-d-mention.ro/programming/java/static-files-locked-by-jetty-in-eclipse/</link>
		<comments>http://blog.another-d-mention.ro/programming/java/static-files-locked-by-jetty-in-eclipse/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 12:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[jetty]]></category>
		<category><![CDATA[locked]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=795</guid>
		<description><![CDATA[ If you use Jetty you might notice that once it&#8217;s running you can&#8217;t edit any static files because it says they are already in use and locked.
Why ? Because Jetty buffers static content for webapps such as html files, css files, images etc and uses memory mapped files to do this if the NIO [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/view-hidden-files-with-a-keyboard-shortcut/' rel='bookmark' title='Permanent Link: View hidden files with a keyboard shortcut'>View hidden files with a keyboard shortcut</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-798" title="jetty_logo" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/jetty_logo2.png" alt="jetty logo2 Static files locked by Jetty in Eclipse" hspace="10" vspace="10" width="142" height="40" /> If you use Jetty you might notice that once it&#8217;s running you can&#8217;t edit any static files because it says they are already in use and locked.<br />
Why ? Because Jetty buffers static content for webapps such as html files, css files, images etc and uses memory mapped files to do this if the NIO connectors are being used. The problem is that on Windows, memory mapping a file causes the file to be locked, so that the file cannot be updated or replaced. This means that effectively you have to stop Jetty in order to update a file.</p>
<p><strong>In case this happens follow these steps:</strong></p>
<p>1. Extract the runjettyrun_1.0.1.jar in the eclipse plugin directory<br />
2. Extract the jetty-6.1.6.jar in the lib directory of the previous jar.<br />
3. Edit the file org\mortbay\jetty\webapp\webdefault.xml and change the &#8220;useFileMappedBuffer&#8221; to false. It should look like the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;init</span> -param<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> -name<span style="color: #000000; font-weight: bold;">&gt;</span></span>useFileMappedBuffer<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param</span> -value<span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/init<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>4. Pack everything back up and overwrite the runjettyrun jar in the plugin directory.<br />
5. If you still get the error after step 4 start eclipse.exe with -clean and then recreate the Jetty configuration. (It just need to replace whatever jar&#8217;s it copies in your workspace .plugins dir)</p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/view-hidden-files-with-a-keyboard-shortcut/' rel='bookmark' title='Permanent Link: View hidden files with a keyboard shortcut'>View hidden files with a keyboard shortcut</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/java/static-files-locked-by-jetty-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Every day the same dream</title>
		<link>http://blog.another-d-mention.ro/misc/stuff/every-day-the-same-dream/</link>
		<comments>http://blog.another-d-mention.ro/misc/stuff/every-day-the-same-dream/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 09:39:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[molleindustria]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=788</guid>
		<description><![CDATA[
Just brilliant. By molleindustria


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/everydaythesamedream.swf" /><embed type="application/x-shockwave-flash" width="600" height="400" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/everydaythesamedream.swf"></embed></object></p>
<p>Just brilliant. By <a href="http://www.molleindustria.org" target="_blank">molleindustria</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/misc/stuff/every-day-the-same-dream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding ellipsis points in a TextArea component in Flex</title>
		<link>http://blog.another-d-mention.ro/programming/flex-actionscript/adding-ellipsis-points-in-a-textarea-component-in-flex/</link>
		<comments>http://blog.another-d-mention.ro/programming/flex-actionscript/adding-ellipsis-points-in-a-textarea-component-in-flex/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 14:55:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex / ActionScript]]></category>
		<category><![CDATA[ellipsis]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[points]]></category>
		<category><![CDATA[recursion]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=779</guid>
		<description><![CDATA[The goal here is to use a TextArea component to display some text that doesn&#8217;t quite fit in the specified region and ellipsis points (&#8230;) should be showed to let user know the text is trimmed. Standard stuff right ? But Flex doesn&#8217;t do it by itself and I thought someone might look for this.
My [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/extendedimage-component/' rel='bookmark' title='Permanent Link: ExtendedImage Component'>ExtendedImage Component</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/right-click-and-custom-context-menu-in-flash-flex/' rel='bookmark' title='Permanent Link: Right click and custom context menu in Flash/Flex'>Right click and custom context menu in Flash/Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The goal here is to use a TextArea component to display some text that doesn&#8217;t quite fit in the specified region and ellipsis points (&#8230;) should be showed to let user know the text is trimmed. Standard stuff right ? But Flex doesn&#8217;t do it by itself and I thought someone might look for this.</p>
<p>My problem was with a Flex app that uses i18n and in some languages the text didn&#8217;t fit the box, the scroll bar policy was off and user had no idea there was more text in there and didn&#8217;t had the possibility to scroll further. Anyway, here it is :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">&lt;</span>mx <span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</span>
&nbsp;
			<span style="color: #000000;">&#91;</span>Bindable<span style="color: #000000;">&#93;</span>
			<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">text</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">String</span> = <span style="color: #990000;">'The quick brown fox jumped over the lazy dog. '</span> <span style="color: #000000; font-weight: bold;">+</span>
						    <span style="color: #990000;">'The quick brown fox jumped over the lazy dog. '</span> <span style="color: #000000; font-weight: bold;">+</span>
						    <span style="color: #990000;">'The quick brown fox jumped over the lazy dog. '</span> <span style="color: #000000; font-weight: bold;">+</span>
						    <span style="color: #990000;">'The quick brown fox jumped over the lazy dog. '</span> <span style="color: #000000; font-weight: bold;">+</span>
						    <span style="color: #990000;">'The quick brown fox jumped over the lazy dog. '</span>;
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> trim<span style="color: #000000;">&#40;</span><span style="color: #004993;">text</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">String</span> 
			<span style="color: #000000;">&#123;</span>
				box.<span style="color: #004993;">text</span> = <span style="color: #004993;">text</span>;
				box.validateNow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
				<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>box.maxVerticalScrollPosition <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
					<span style="color: #004993;">text</span> = <span style="color: #004993;">text</span>.<span style="color: #004993;">replace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;...&quot;</span>, <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>;
					<span style="color: #004993;">text</span> = <span style="color: #004993;">text</span>.<span style="color: #004993;">substr</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #004993;">text</span>.<span style="color: #004993;">length</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #990000;">&quot;...&quot;</span>;
				<span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span>
					<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #004993;">text</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">return</span> trim<span style="color: #000000;">&#40;</span><span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span>;	
			<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;</span>mx <span style="color: #000000; font-weight: bold;">:</span>TextArea id=<span style="color: #990000;">&quot;box&quot;</span>
		verticalScrollPolicy=<span style="color: #990000;">&quot;off&quot;</span>
		<span style="color: #004993;">width</span>=<span style="color: #990000;">&quot;250&quot;</span>
		<span style="color: #004993;">height</span>=<span style="color: #990000;">&quot;50&quot;</span>
		<span style="color: #004993;">wordWrap</span>=<span style="color: #990000;">&quot;true&quot;</span>	
		<span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;{trim(this.text)}&quot;</span>
		paddingBottom=<span style="color: #990000;">&quot;0&quot;</span>	
		editable=<span style="color: #990000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></pre></td></tr></table></div>

<p><img src="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/untitled.PNG" alt="Flex Output" title="Flex Output" width="278" height="74" class="aligncenter size-full wp-image-784" /></p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/extendedimage-component/' rel='bookmark' title='Permanent Link: ExtendedImage Component'>ExtendedImage Component</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/create-professional-flex-components/' rel='bookmark' title='Permanent Link: Create professional Flex components'>Create professional Flex components</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/right-click-and-custom-context-menu-in-flash-flex/' rel='bookmark' title='Permanent Link: Right click and custom context menu in Flash/Flex'>Right click and custom context menu in Flash/Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/flex-actionscript/adding-ellipsis-points-in-a-textarea-component-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows 7 quotes problem</title>
		<link>http://blog.another-d-mention.ro/misc/stuff/windows-7-quotes-problem/</link>
		<comments>http://blog.another-d-mention.ro/misc/stuff/windows-7-quotes-problem/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:43:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=774</guid>
		<description><![CDATA[If you have a problem with quotes in Windows 7, try to switch the keyboard layout from &#8220;United States &#8211; International&#8221; to &#8220;US&#8221;
After installing Windows 7, I discovered the following behavior in the code editor: Pressing the quote (&#8216;) or double-quote (&#8220;) key once would have no effect. Pressing any key after that would produce [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/eee-pc/install-windows-xp-on-your-asus-eee-pc-using-a-usb-flash-drive/' rel='bookmark' title='Permanent Link: Install Windows XP on your Asus Eee PC using a USB flash drive'>Install Windows XP on your Asus Eee PC using a USB flash drive</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/windows7.jpg"><img class="alignleft size-thumbnail wp-image-777" title="windows7" src="http://blog.another-d-mention.ro/wp-content/uploads/2010/01/windows7-150x150.jpg" alt="windows7 150x150 windows 7 quotes problem" width="150" height="150" /></a>If you have a problem with quotes in Windows 7, try to switch the keyboard layout from &#8220;United States &#8211; International&#8221; to &#8220;US&#8221;</strong></p>
<p>After installing Windows 7, I discovered the following behavior in the code editor: Pressing the quote (&#8216;) or double-quote (&#8220;) key once would have no effect. Pressing any key after that would produce both the double quote character and the next character.</p>
<p>The problem is caused but by regional settings &#8211; I solved it by switching from &#8220;United States &#8211; International&#8221; to &#8220;US&#8221; keyboard layout.</p>
<p>Go to Control Panel-&gt;Region and Language-&gt;Keyboards and Languages tab-&gt;click Change keyboards&#8230; where you add English (United States) &#8211; Us to the list and then select it as default from the top drop down list.</p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/eee-pc/install-windows-xp-on-your-asus-eee-pc-using-a-usb-flash-drive/' rel='bookmark' title='Permanent Link: Install Windows XP on your Asus Eee PC using a USB flash drive'>Install Windows XP on your Asus Eee PC using a USB flash drive</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/misc/stuff/windows-7-quotes-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex vs Silverlight vs AJAX</title>
		<link>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/</link>
		<comments>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 07:45:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[transylvania]]></category>
		<category><![CDATA[usergroup]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=763</guid>
		<description><![CDATA[Our Transylvania Flex Group 3th event will be held this Saturday (November 21, 2009) in Cluj-Napoca.
This one will be a showdown between RIA technologies, with advocates from our Betfair Office. Iosif George for Flex, Vlad Nemes for AJAX and Silviu Niculita from RIASolutionsGroup for Silvelight.
Registration is free and you can signup for the event here. [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/flex-camp/' rel='bookmark' title='Permanent Link: Flex Camp'>Flex Camp</a></li>
<li><a href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Our <a href="http://groups.adobe.com/groups/15724342f4/summary">Transylvania Flex Group</a> 3th event will be held this Saturday (November 21, 2009) in Cluj-Napoca.<br />
This one will be a showdown between RIA technologies, with advocates from our Betfair Office. Iosif George for Flex, Vlad Nemes for AJAX and Silviu Niculita from RIASolutionsGroup for Silvelight.</p>
<p>Registration is free and you can signup for the event <a href="http://fsacluj.eventbrite.com/">here</a>. See you there !</p>
<p><a href="http://blog.another-d-mention.ro/wp-content/uploads/2009/11/fl_vs_ajax_vs_silverlight.jpg" target="_blank"><img src="http://blog.another-d-mention.ro/wp-content/uploads/2009/11/fl_vs_ajax_vs_silverlight.jpg" alt="Flex vs Silvelight vs AJAX" title="Flex vs Silvelight vs AJAX" width="403" height="570" class="aligncenter size-full wp-image-765" /></a></p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/misc/flex-camp/' rel='bookmark' title='Permanent Link: Flex Camp'>Flex Camp</a></li>
<li><a href='http://blog.another-d-mention.ro/misc/flex-and-visual-studio/' rel='bookmark' title='Permanent Link: Flex and Visual Studio'>Flex and Visual Studio</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/misc/flex-vs-silverlight-vs-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExtendedImage Component</title>
		<link>http://blog.another-d-mention.ro/programming/extendedimage-component/</link>
		<comments>http://blog.another-d-mention.ro/programming/extendedimage-component/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 12:36:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex / ActionScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://blog.another-d-mention.ro/?p=753</guid>
		<description><![CDATA[I just finished writing a Flex3 library that will allow you to read a great number of image formats using flex and actionscript 3. The component uses a codec like rendering system, so each time you provide it with a source, the codecs attempt one by one to read the file signature and decide which [...]


Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/' rel='bookmark' title='Permanent Link: How to clone (duplicate) an object in ActionScript 3'>How to clone (duplicate) an object in ActionScript 3</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/flex-actionscript/adding-ellipsis-points-in-a-textarea-component-in-flex/' rel='bookmark' title='Permanent Link: Adding ellipsis points in a TextArea component in Flex'>Adding ellipsis points in a TextArea component in Flex</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/ho-to-install-alchemy/' rel='bookmark' title='Permanent Link: Ho-To: Install Alchemy'>Ho-To: Install Alchemy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I just finished writing a Flex3 library that will allow you to read a great number of image formats using flex and actionscript 3. The component uses a codec like rendering system, so each time you provide it with a source, the codecs attempt one by one to read the file signature and decide which one is fit to decode the image.<br />
So doing this, it won&#8217;t matter the file extension or the way you provide the image asset (archived, link, base64 encoded, plain text, byteArray or embedded at compile time)</p>
<p>It&#8217;s a work in progress but curently I&#8217;ve made codecs for the following formats:</p>
<ul>
<li>PointLineCAD 3D objects (*.p3d)</li>
<li>Photoshop images (*.psd, *.pdd)</li>
<li>ZSoft images (*.pcx)</li>
<li>Truevision TGA (*.tga, *. icb, *.vda, *.vst, *.win)</li>
<li>Windows icon files (*.ico)</li>
<li>GIF images (*.gif – static and animated gifs)</li>
<li>JPEG images (*.jpg. *.jpeg, *.gfif)</li>
<li>PNG (Portable network graphic) images (*.png)</li>
<li>Windows Bitmap images ( *.bmp, *.rle, *.dib)</li>
<li>Adobe Shockwave Flash (*.swf)</li>
</ul>
<p>As I said before, the way you provide the source doesn&#8217;t really matter. You can zip up all your images in an archive and as source you can just point to the file inside the zip.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>adm :ExtendedImage id=<span style="color: #ff0000;">&quot;img&quot;</span> source=<span style="color: #ff0000;">&quot;archive.zip://image.png&quot;</span> <span style="color: #66cc66;">/&gt;</span></pre></td></tr></table></div>

<p>This way, you greatly reduce the number of requests to the server. But this is not all. Source can be also provided as a base64 encoded string, or as plain text (only p3d can take advantage of this since the p3d file is plain text as well).</p>
<p>For a bit more details, a  <a href="http://blog.another-d-mention.ro/downloads/extended-image/">demo</a> and API description, visit <a href="http://blog.another-d-mention.ro/downloads/extended-image/">this page</a></p>


<p>Related posts:<ol><li><a href='http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/' rel='bookmark' title='Permanent Link: How to clone (duplicate) an object in ActionScript 3'>How to clone (duplicate) an object in ActionScript 3</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/flex-actionscript/adding-ellipsis-points-in-a-textarea-component-in-flex/' rel='bookmark' title='Permanent Link: Adding ellipsis points in a TextArea component in Flex'>Adding ellipsis points in a TextArea component in Flex</a></li>
<li><a href='http://blog.another-d-mention.ro/programming/ho-to-install-alchemy/' rel='bookmark' title='Permanent Link: Ho-To: Install Alchemy'>Ho-To: Install Alchemy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.another-d-mention.ro/programming/extendedimage-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
