
<?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>From inspiration to realization</title>
	<atom:link href="http://www.kensodev.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kensodev.com</link>
	<description>Professional web/RIA development blog</description>
	<lastBuildDate>Sun, 05 Sep 2010 05:44:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Link Bag September 05&#160;2010</title>
		<link>http://www.kensodev.com/2010/09/05/link-bag-september-05-2010/</link>
		<comments>http://www.kensodev.com/2010/09/05/link-bag-september-05-2010/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 05:40:09 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Link Bag]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[freelancing]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[LinkBag]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=580</guid>
		<description><![CDATA[Yet another post that will gather links and useful information of stuff interesting to me and probably to my readers. General Launching beta, or “How to decide when and where to cut corners &#8211; A great post from CodeBetter.com with a reference to Nate Kohari&#8217;s post on the same subject. A very good read if [...]]]></description>
			<content:encoded><![CDATA[<p>Yet another post that will gather links and useful information of stuff interesting to me and probably to my readers.</p>
<h2>General</h2>
<p><a href="http://feedproxy.google.com/~r/CodeBetter/~3/Q4nfqG-olcc/launching-beta-or-how-to-decide-when-and-where-to-cut-corners.aspx" target="_blank"> Launching beta, or “How to decide when and where to cut corners</a> &#8211; A great post from <a href="http://CodeBetter.com">CodeBetter.com</a> with a reference to <a href="http://kohari.org/">Nate Kohari&#8217;s</a> post on the same subject. A very good read if you are planning in launching a product anytime soon.</p>
<h2>Freelancing</h2>
<p><a href="http://feedproxy.google.com/~r/FreelanceSwitch/~3/WxF8mgNbf3E/">10 Requirements for Working with Clients in Other Countries</a> &#8211; I work with clients in other countries all of the time, mostly in the US and Japan, I think this post is very useful if you are in the same situation, I got something out of it, you will too.</p>
<p><a href="http://feedproxy.google.com/~r/SixRevisions/~3/fbakDDeyN5k/">Craftsmanship in Designing Websites</a> &#8211; I am into software craftsmanship, until I read this post I didn&#8217;t know there&#8217;s a movement towards craftsmanship in design as well. good read.</p>
<h2>CSS</h2>
<p><a href="http://devign.me/css-stretch-a-box-to-its-parent-bounds/">CSS: Stretch a Box to its Parent’s Bounds</a> &#8211; From my good friend <a href="http://twitter.com/elado">@elado</a>, a great css technique.</p>
<h2>GIT</h2>
<p>I am (as you know) a huge fan of Git, I know Git is a big source of misuse and misunderstanding, I have read a couple of great posts about it recently on how to use GitK tool</p>
<p><a href="http://feedproxy.google.com/~r/LosTechies/~3/ZShb4VMewhc/use-gitk-to-understand-git.aspx">use-gitk-to-understand-git.aspx</a> &#8211; the first post in the series.</p>
<p><a href="http://feedproxy.google.com/~r/LosTechies/~3/-zSO-aPGUk4/use-gitk-to-understand-git-merge-and-rebase.aspx">Use gitk to understand git – merge and rebase</a> &#8211; great stuff, great screenshots (even through it comes from a windows machine <img src='http://www.kensodev.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Link Bag September 05 2010 - From inspiration to realization" data-url="http://www.kensodev.com/2010/09/05/link-bag-september-05-2010/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/09/05/link-bag-september-05-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maintain sort on a DataGrid when the dataProvider is&#160;changed</title>
		<link>http://www.kensodev.com/2010/09/05/maintain-sort-on-a-datagrid-when-the-dataprovider-is-changed/</link>
		<comments>http://www.kensodev.com/2010/09/05/maintain-sort-on-a-datagrid-when-the-dataprovider-is-changed/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 05:02:42 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[As3]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[Sorting]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=575</guid>
		<description><![CDATA[Usually, in our flex application we do have a data-grid, this component is very useful for displaying data and have a sorting, ordering of columns and more, out of the box. I can speak for my applications and say that every enterprise application I have ever build had at least one or more data-Grid&#8217;s inside [...]]]></description>
			<content:encoded><![CDATA[<p>Usually, in our flex application we do have a data-grid, this component is very useful for displaying data and have a sorting, ordering of columns and more, out of the box.</p>
<p>I can speak for my applications and say that every enterprise application I have ever build had at least one or more data-Grid&#8217;s inside it.</p>
<p>So, what can we say about a grid that has not been said before in the past&#8230;?</p>
<p>I recently had a grid that I enabled sorting on it, it had a data-Provider (ArrayCollection) and I needed to preserver the sorting when the collection had changed.</p>
<p>the default behavior when you hookup a collection to the dataProvider property of the grid, is that when the collection changes, it will change the sorting back to default.</p>
<p>this is the code before the fix:</p>
<pre class="brush: as3;">
			&lt;mx:DataGrid  width=&quot;100%&quot;
							height=&quot;100%&quot;
							id=&quot;dataGrid&quot;
							dataProvider=&quot;{myHelper.widgetModel.data}&quot;
							itemClick=&quot;myHelper.updateCustomFieldsButtonBar()&quot;
							allowMultipleSelection=&quot;true&quot;
							updateComplete=&quot;myHelper.gridUpdateComplete(event)&quot;&gt;
				&lt;mx:columns&gt;
					&lt;mx:DataGridColumn dataField=&quot;id&quot; headerText=&quot;id&quot; visible=&quot;false&quot;/&gt;
					&lt;mx:DataGridColumn dataField=&quot;name&quot; headerText=&quot;Field Name&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;description&quot; headerText=&quot;Description&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;typeDisplayName&quot; headerText=&quot;Type&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;entityTypes&quot; headerText=&quot;Entity Type&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;listId&quot; headerText=&quot;Entity Type&quot; visible=&quot;false&quot;/&gt;
				&lt;/mx:columns&gt;

			&lt;/mx:DataGrid&gt;
</pre>
<p>this peace of code it the most important peace in the puzzle, wiring up (binding) between a model (collection) and the dataProvider</p>
<pre class="brush: as3;">
dataProvider=&quot;{myHelper.widgetModel.data}&quot;
</pre>
<p>So, we know that this way does not work.<br />
what do we need to do in order to save the sorting when the provider changes.</p>
<p>what we actually need to do is to create a view of our collection, provide it with data and wire it up to the grid</p>
<p>This is how we do it.</p>
<pre class="brush: as3;">
&lt;mx:ListCollectionView list=&quot;{helper.widgetModel.data}&quot; id=&quot;listCollectionView&quot; /&gt;

			&lt;mx:DataGrid  width=&quot;100%&quot;
							height=&quot;100%&quot;
							id=&quot;dataGrid&quot;
							dataProvider=&quot;{listCollectionView}&quot;
							itemClick=&quot;myHelper.updateCustomFieldsButtonBar()&quot;
							allowMultipleSelection=&quot;true&quot;
							updateComplete=&quot;myHelper.gridUpdateComplete(event)&quot;&gt;
				&lt;mx:columns&gt;
					&lt;mx:DataGridColumn dataField=&quot;id&quot; headerText=&quot;id&quot; visible=&quot;false&quot;/&gt;
					&lt;mx:DataGridColumn dataField=&quot;name&quot; headerText=&quot;Field Name&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;description&quot; headerText=&quot;Description&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;typeDisplayName&quot; headerText=&quot;Type&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;entityTypes&quot; headerText=&quot;Entity Type&quot; /&gt;
					&lt;mx:DataGridColumn dataField=&quot;listId&quot; headerText=&quot;Entity Type&quot; visible=&quot;false&quot;/&gt;
				&lt;/mx:columns&gt;

			&lt;/mx:DataGrid&gt;
</pre>
<p>notice that the grid&#8217;s data provider is not the collection view.</p>
<p>now, when the data will change, the sorting will not change.</p>
<p>Good luck!</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Maintain sort on a DataGrid when the dataProvider is changed - From inspiration to realization" data-url="http://www.kensodev.com/2010/09/05/maintain-sort-on-a-datagrid-when-the-dataprovider-is-changed/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/09/05/maintain-sort-on-a-datagrid-when-the-dataprovider-is-changed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memory management in flex&#160;applications</title>
		<link>http://www.kensodev.com/2010/08/22/memory-management-in-flex-applications/</link>
		<comments>http://www.kensodev.com/2010/08/22/memory-management-in-flex-applications/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 05:24:33 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Concept]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[As3]]></category>
		<category><![CDATA[Consulting]]></category>
		<category><![CDATA[Event Listener]]></category>
		<category><![CDATA[Flex memory]]></category>
		<category><![CDATA[Memory management]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=569</guid>
		<description><![CDATA[lately there is alot of buzz about flex application performance, keeping your memory low and just in general, keeping everything managed under your fingers and not just counting on the flex framework to manage your memory. flex has a garbage collector but it&#8217;s a bit special on the way it handles memory so I thought [...]]]></description>
			<content:encoded><![CDATA[<p><span>lately there is <span>alot</span> of buzz about flex application performance, keeping your memory low and just in general, keeping everything managed under your fingers and not just counting on the flex framework to manage your memory.</span></p>
<p>flex has a garbage collector but it&#8217;s a bit special on the way it handles memory so I thought I would layout some general rules on how to keep memory low.</p>
<p><span>first thing we need to understand is that any application we will build in our careers will be using some amount of memory, and because memory is not infinite we should keep our applications memory as low as possible.</span></p>
<p>I always say the best way to describe memory management is to &#8220;be smart&#8221; meaning, always have memory in mind, never let it go and by doing this your application will keep lean and thin all the time</p>
<p><span>by taking up too much memory you can get into allot of trouble, you can make your users hate the application because it is running slowly and making their computer run slowly. also, the application can simply crash.</span></p>
<p><span>I hear from programmers in my consulting that computers are getting more and more memory and you can see laptops coming with 4G of memory out of the box and so on, but actually we are also seeing a movement towards mobile devices such as mobile phones etc. these mobile devices do no allow us to use too much memory because it&#8217;s limited resource.</span></p>
<h2><span>Memory leaks</span></h2>
<p><span>memory leaks is a big issue in flex programming and it&#8217;s generally speaking divided into 2 parts, first when our application is using memory in parts we didn&#8217;t want it to use and the other part is when we didn&#8217;t handle the cleaning part efficiently enough.</span></p>
<p>Flash handles memory management through something called &#8220;references&#8221;, just to make things clear before we begin, the only way an object is cleaned by the garbage collector, is be not having any reference from that object to another object, that way you can make sure the object will be &#8220;picked up&#8221; by the garbage collector.</p>
<h3>Event Listeners</h3>
<p>Event listeners are by-far the most mis-used mis-understood part of flex applications, I have seen people/developers using those without even understanding what is actually happening behind the scenes and when (and if) those are cleaned up in memory.</p>
<p>I will try to explain<br />
let&#8217;s take this peace of code</p>
<pre class="brush: as3;">
//objectX
objectY.addEventListener(some_event, some_function)
</pre>
<p>We have two objects (ObjectX, ObjectY), Object Y has a reference to a function in objectX just by passing the function, now, if your application has a reference to objectY, object X will not get cleaned because it has a reference to a function.</p>
<p>There is actually something called weak event listeners, by default the event listeners are &#8220;strong&#8221; meaning every event listener is a function, if you specify the event listener is &#8220;weak&#8221; then the event listener does not count as a reference.</p>
<h3>Static Variables</h3>
<p>Static variables are never cleaned in the entire session of a flex application, meaning if you set the variable&#8217;s value with an object, this object will never get cleaned.</p>
<p>If you want to make sure the object is cleaned you should null out the variable.</p>
<pre class="brush: as3;">
// static variable
public static var _foo:Foo;
//setting the value
_foo = new Foo();
//clean
_foo = null;
</pre>
<h3>Dictionaries</h3>
<p>Dictionaries are another big problem and source of misunderstanding in flex applications.</p>
<p>Dictionaries are key-value collections, meaning you have a collection that is built in the form of a key and a value attached to it.</p>
<p>You can use objects as your key and your value, for example let&#8217;s say we have two objects (ObjectX, ObjectY), you add an entry to the dictionary where ObjectX is the key and ObjectY is the value.</p>
<p>By default the values in dictionaries are &#8220;strong&#8221; and you can specify a &#8220;weak&#8221; key, by doing this, you can actually make sure that if nothing else has a reference to ObjectX, it will get cleaned by the garbage collection, BUT, ObjectY will not get cleaned even though the key for it got cleaned from the dictionary.</p>
<p>There are many questions on this issue from flex experts to adobe, those questions generally start with a WHYYYYYY????</p>
<p>I would also like to understand why but this is the situation and we have to deal with it, in the Flex-Show podcast Aaron says that if you iterate through the values of the dictionary, then all values that don&#8217;t have a key (it was cleaned remember?) gets cleaned immediately.</p>
<p>I never encountered this behavior but Aaron knows what he is talking about, so I trust him <img src='http://www.kensodev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Thanks Aaron).</p>
<h2>Conclusion</h2>
<p>I think those are the main three issues in flex applications, there are a few more but if you handle those three you should be fine and your application will actually be pretty lean (at least in memory management).</p>
<p>** this post was inspired by Aaron&#8217;s talk on the podcast, I enjoyed it so much I decided to make a post on the issue.</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Memory management in flex applications - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/22/memory-management-in-flex-applications/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/22/memory-management-in-flex-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>keep your mxml files neat with View&#160;Helpers</title>
		<link>http://www.kensodev.com/2010/08/19/keep-your-mxml-files-neat-with-view-helpers/</link>
		<comments>http://www.kensodev.com/2010/08/19/keep-your-mxml-files-neat-with-view-helpers/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 16:00:53 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Concept]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[As3]]></category>
		<category><![CDATA[clean code]]></category>
		<category><![CDATA[Consulting]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=558</guid>
		<description><![CDATA[I have been working with flex and consulting about flex development for quite some time now, I guess about 3 years of consulting and 4 years of hands-on development. I have seen flex applications written in many ways, mxml files, as files, namespaces and more. I guess there is no &#8220;right&#8221; way to do so, [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working with flex and consulting about flex development for quite some time now, I guess about 3 years of consulting and 4 years of hands-on development.</p>
<p>I have seen flex applications written in many ways, mxml files, as files, namespaces and more.</p>
<p>I guess there is no &#8220;right&#8221; way to do so, or at least not just one &#8220;right&#8221; way.</p>
<p>these past few months I have started working with mxml files in a way I think is very convenient, it keeps my mxml file very lean and clean, all of the view code is in a separate action-script file which inherits from a base class.</p>
<p style="text-align: center;">I want to show you this, first, this is the sample project, this is what it looks like in flash builder:<br />
<a title="Screen shot 2010-08-19 at 5.26.08 PM by KensoDev, on Flickr" href="http://www.flickr.com/photos/51960246@N07/4907663294/"><img class="aligncenter" src="http://farm5.static.flickr.com/4142/4907663294_69ebd7233a.jpg" alt="Screen shot 2010-08-19 at 5.26.08 PM" width="385" height="349" /></a></p>
<p>as you can see, there is the main application, an mxml component, the BaseViewHelper class and that is just about it.</p>
<p>now, let&#8217;s have a look at the BaseViewHelper class<br />
note: this is a stripped down version of the class, it has many additions in my project, like a way to add validations, clean and dirty modes for the model and more, this is just to see the way I work, you can add your own additions to it.</p>
<pre class="brush: as3;">
package com.kensodev.core
{
	import mx.core.UIComponent;

	public class BaseViewHelper
	{
		private var _view:UIComponent;

		public function BaseViewHelper()
		{

		}

		public function init():void
		{

		}

		public function set view(v:UIComponent):void
		{
			_view = v;
		}

		public function get view():UIComponent
		{
			return _view;
		}
	}
}
</pre>
<p>as you can see, I kept it very simple, it has a view getter and setter to set the view it handles, it has an init function (for creation complete events).</p>
<p>now, let&#8217;s see an mxml component and how does the helper fits, but first let&#8217;s see a view helper which inherits from the BaseViewHelper class.</p>
<pre class="brush: as3;">

package com.kensodev.views.helpers
{
	import com.kensodev.core.BaseViewHelper;
	import com.kensodev.views.MyViewComponent;

	public class MyViewComponentHelper extends BaseViewHelper
	{
		public function MyViewComponentHelper()
		{
			super();
		}

		public function get myView():MyViewComponent
		{
			return MyViewComponent(this.view);
		}

		public override function init():void
		{
			//TODO Auto-generated method stub
			super.init();
		}

		public function myButton_clickHandler(event:MouseEvent):void
		{
			// TODO Auto-generated method stub
		}
	}
}
</pre>
<p>This is a helper file for the MyViewComponent, now, here&#8217;s the source code for implementing the helper inside each View component</p>
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Canvas xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
		   width=&quot;400&quot;
		   height=&quot;300&quot;
		   creationComplete=&quot;helper.init()&quot;
		   xmlns:helper=&quot;com.kensodev.views.helpers.*&quot;&gt;

	&lt;mx:Script&gt;
		&lt;![CDATA[

		]]&gt;
	&lt;/mx:Script&gt;

	&lt;helper:MyViewComponentHelper view=&quot;{this}&quot; id=&quot;helper&quot; /&gt;

	&lt;mx:Button id=&quot;myButton&quot; click=&quot;helper.myButton_clickHandler(event)&quot;

&lt;/mx:Canvas&gt;
</pre>
<p>as you can see, the file is very clean, it has only data relevant to understand the structure of the component (which is all you need in mxml), all of the logic files &#8220;seats&#8221; behind the scenes.</p>
<p>there is a naming conventions for views and view helpers<br />
its<br />
view_name<br />
view_nameHelper<br />
this way, when you navigate your way through the code, you can always see what you are looking for with ease like so:</p>
<p style="text-align: center;"><a title="Screen shot 2010-08-19 at 5.36.53 PM by KensoDev, on Flickr" href="http://www.flickr.com/photos/51960246@N07/4907684584/"><img class="aligncenter" src="http://farm5.static.flickr.com/4137/4907684584_169980e5f0.jpg" alt="Screen shot 2010-08-19 at 5.36.53 PM" width="500" height="399" /></a></p>
<p>I hope you take inspiration with this way, I assure you I did, it&#8217;s a very useful way to manage large projects with many views and view helpers.</p>
<p>the source code of the example project is on git here.</p>
<p><a href="http://github.com/KensoDev/view-helper-example" target="_blank">http://github.com/KensoDev/view-helper-example</a></p>
<p>******</p>
<p>update:</p>
<p>after a discussion with <a href="http://www.twitter.com/douglasknudsen">@douglasknudsen</a> I want to make things clear, this is not the ViewHelper implementation of cairngorm Mvc framework, it&#8217;s something you should (or can) write on your own just to make things organized and clean.</p>
<p>I am using it regardless to the MVC framework I am using which is RobotLegs B.T.W</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="keep your mxml files neat with View Helpers - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/19/keep-your-mxml-files-neat-with-view-helpers/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/19/keep-your-mxml-files-neat-with-view-helpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find truncated string (paths) in SQL&#160;server</title>
		<link>http://www.kensodev.com/2010/08/19/find-truncated-string-paths-in-sql-server/</link>
		<comments>http://www.kensodev.com/2010/08/19/find-truncated-string-paths-in-sql-server/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 08:24:22 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Sql server]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Sql 2008]]></category>
		<category><![CDATA[T-Sql]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=556</guid>
		<description><![CDATA[I recently encountered a strange bug with a client I designed a database for the &#8220;bug&#8221; was that the paths he entered into the database got truncated because it was too long of a string, I made the field length at 250 chars and he needed more. the problem was he already submitted quite some [...]]]></description>
			<content:encoded><![CDATA[<p>I recently encountered a strange bug with a client I designed a database for</p>
<p>the &#8220;bug&#8221; was that the paths he entered into the database got truncated because it was too long of a string, I made the field length at 250 chars and he needed more.</p>
<p>the problem was he already submitted quite some data into the database and could not remember where the paths were extra long.</p>
<p>so, I needed to find it for him so he could re-submit those.</p>
<p>I scratched my head for a couple of minutes on how can I fund those truncated strings, it could be quite difficult, because it&#8217;s a path to an MP3 file, I found a way to do it with a simple T-SQL script.</p>
<p>what I did was to simply find all of the song-paths that did not have an &#8220;.mp3&#8243; at the end.</p>
<p>this is the script</p>
<pre class="brush: sql;">
SELECT layerID, layerName, mp3FileUrl FROM appLayers
	WHERE
	(
		mp3FileUrl NOT LIKE '%.mp3'
	)
</pre>
<p>an example result<br />
/Maximum_Basof_Nipol/Od_Paam/Acc Gtr Chorus St 2.m</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Find truncated string (paths) in SQL server - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/19/find-truncated-string-paths-in-sql-server/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/19/find-truncated-string-paths-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Edit the hosts file on the&#160;mac</title>
		<link>http://www.kensodev.com/2010/08/18/edit-the-hosts-file-on-the-mac/</link>
		<comments>http://www.kensodev.com/2010/08/18/edit-the-hosts-file-on-the-mac/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 08:00:36 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=554</guid>
		<description><![CDATA[Sometimes, you may need to edit the hosts file on the mac. the hosts file is a file that controls the routing to websites, both localhost and other websites, for example, I can say that whenever I enter http://www.kensodev.com in the browser, the address is then traced back to 127.0.0.1 instead of going to the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you may need to edit the hosts file on the mac.</p>
<p>the hosts file is a file that controls the routing to websites, both localhost and other websites, for example, I can say that whenever I enter http://www.kensodev.com in the browser, the address is then traced back to 127.0.0.1 instead of going to the DNS server and lookup the address there.</p>
<p>this is a very efficient way to do testing to websites, so you don&#8217;t have to use localhost or everything.</p>
<p>for example, I always use a local prefix to a website to identify it&#8217;s on my machine.</p>
<p>http://local.kensodev.com will be the local version of this website and so on and so forth.</p>
<p>there are many cases where you might want to edit the hosts file, in mac it&#8217;s not that intuitive to find it like in windows so here&#8217;s a quick tip</p>
<p>(I am using textmate bug you can use whatever you want)</p>
<p>to edit the file simply enter this command into the terminal</p>
<pre class="brush: bash;">
sudo mate /private/etc/hosts
</pre>
<p>You will then be prompted to enter a password and after you edit the file and press save, you will have to enter the password again.</p>
<p>This is it, that is how you edit the hosts file on the mac</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Edit the hosts file on the mac - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/18/edit-the-hosts-file-on-the-mac/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/18/edit-the-hosts-file-on-the-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Link bag 15 August&#160;2010</title>
		<link>http://www.kensodev.com/2010/08/15/link-bag-15-august-2010/</link>
		<comments>http://www.kensodev.com/2010/08/15/link-bag-15-august-2010/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 15:48:06 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Link Bag]]></category>
		<category><![CDATA[freelancing]]></category>
		<category><![CDATA[Ruby on rails]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=551</guid>
		<description><![CDATA[After declaring the opening of the category, the first post is fresh and hot out of the oven. CSS CSS sprites workflow &#8211; Chris coyier posted a very useful tip about the workflow of creating a website when you plan to use sprite css, he suggests a two-step process. Freelancing Are You Giving Back to [...]]]></description>
			<content:encoded><![CDATA[<p>After declaring the opening of the category, the first post is fresh and hot out of the oven.</p>
<h2>CSS</h2>
<p><a href="http://css-tricks.com/css-sprites-workflow/">CSS sprites workflow</a> &#8211; Chris coyier posted a very useful tip about the workflow of creating a website when you plan to use sprite css, he suggests a two-step process.</p>
<h2>Freelancing</h2>
<p><a href="http://freelanceswitch.com/inspiration/are-you-giving-back-to-your-community/">Are You Giving Back to Your Community?</a> &#8211; FreelanceSwitch with another great post, I actually posted on a very similar subject here &#8220;<a href="http://www.kensodev.com/2010/08/03/should-all-developers-be-members-of-the-virtual-community/">should all developer be (active) members in the virtual community</a>&#8221;</p>
<p><a href="http://freelanceswitch.com/inspiration/freelance-success/">The real secret to freelance success</a> &#8211; this post talks about why freelances (some) fail and some experience great success.</p>
<p><a href="http://sixrevisions.com/productivity/9-productivity-techniques-for-freelancers/">9 productivity techniques for freelancers</a> &#8211;  as a freelancer I always look for ways to be more productive, I found this post very useful for me.</p>
<h2>Ruby on rails</h2>
<p><a href="http://mongomatic.com/">Mongomatic</a> &#8211; (from the website) Mongomatic is a Ruby library that lets you easily model your MongoDB documents in your applications.</p>
<p>That&#8217;s it (short) for the first link bag, another one is coming in about a week, be sure to keep yourself up to date though the RSS feed (link on the right)</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Link bag 15 August 2010 - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/15/link-bag-15-august-2010/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/15/link-bag-15-august-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Declaring a new category &#8220;link&#160;bag&#8221;</title>
		<link>http://www.kensodev.com/2010/08/15/declaring-a-new-category-link-bag/</link>
		<comments>http://www.kensodev.com/2010/08/15/declaring-a-new-category-link-bag/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 15:31:15 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Link Bag]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=548</guid>
		<description><![CDATA[Well, I have decided. after a while of reading very interesting blogs and stumbling upon quite a few useful links for fellow developers, I decided to put together a new category in the blog. The category will be called &#8220;link bag&#8221; and I will post new things to it on a weekly basis hopefully. The [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I have decided. after a while of reading very interesting blogs and stumbling upon quite a few useful links for fellow developers, I decided to put together a new category in the blog.</p>
<p>The category will be called &#8220;link bag&#8221; and I will post new things to it on a weekly basis hopefully.</p>
<p>The links will vary from technology links to freelancing tips, everything that is an interest to me and hopefully for the readers of this blog as well.</p>
<p>You can keep yourself up to date though the <a href="http://feeds.feedburner.com/KensoDev-en">RSS Feed</a> or come back later this week.</p>
<p>Thanks</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Declaring a new category "link bag" - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/15/declaring-a-new-category-link-bag/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/15/declaring-a-new-category-link-bag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should all developers be (active) members of the virtual&#160;community?</title>
		<link>http://www.kensodev.com/2010/08/03/should-all-developers-be-members-of-the-virtual-community/</link>
		<comments>http://www.kensodev.com/2010/08/03/should-all-developers-be-members-of-the-virtual-community/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 16:12:25 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Concept]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Product management]]></category>
		<category><![CDATA[Consulting]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=544</guid>
		<description><![CDATA[usually when I post in my blog, I make comments, raise decisions, write code or something like that, it&#8217;s never a question. This post, above anything else is a question and a try to spark a debate from my fellow developers and software craftsman out there. Earlier this week I started working on a very [...]]]></description>
			<content:encoded><![CDATA[<p>usually when I post in my blog, I make comments, raise decisions, write code or something like that, it&#8217;s never a question.</p>
<p>This post, above anything else is a question and a try to spark a debate from my fellow developers and software craftsman out there.</p>
<p>Earlier this week I started working on a very interesting project for an international company creating test suites for devices and applications, the suite is cross platform and can run on any machine both windows and Linux and test any device, from mobile phones to DVD&#8217;s to diving sensors.</p>
<p>the client side is written in flex and pure AS3, the server and services are written in Java and Perl scripts.</p>
<p>What is my point?</p>
<p>My point is that this company has some pretty strong developers, all know a thing or 2 on software developement, both in Java and Flex.</p>
<p>Another thing, usually when I get invited to consult and develop for a company saying &#8220;we have a flex application&#8221; I do see an application but it&#8217;s horrible, un-scalable, mxml+code in the same file, services calls in mxml and more.</p>
<p>in this company, that wasn&#8217;t the case, the application is actually pretty solid, stable and gone over more then a couple of QA steps inside the company and clients.</p>
<p>You can imagine that the developers over there can contribute a thing or two to the community.</p>
<p>OK, so far so good, what am I saying here?</p>
<p>From conversations I had with the developers I found out something amazing, none of them has a twitter account, none of them has a blog and none, absolutely none contributed to an open source project, not even a line of code, not even opened a case in the WIKI.</p>
<p>so, what do you think?<br />
Should all developers be active members of the community?<br />
Should every developer have a profile and answer questions on the amazing <a href="http://www.stackoverflow.com">StackOverflow</a><a href="http://www.stackoverflow.com">.com</a>?<br />
Should every developer write a blog?</p>
<p>Love to hear your thoughts on this&#8230;</p>
<p>another thing, when you interview programmers, do you care about these issues?</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="Should all developers be (active) members of the virtual community? - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/03/should-all-developers-be-members-of-the-virtual-community/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/03/should-all-developers-be-members-of-the-virtual-community/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>java.io.UnsupportedEncodingException problem &amp;&#160;solution</title>
		<link>http://www.kensodev.com/2010/08/02/java-io-unsupportedencodingexception-problem-solution/</link>
		<comments>http://www.kensodev.com/2010/08/02/java-io-unsupportedencodingexception-problem-solution/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 14:02:57 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[Jboss]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=540</guid>
		<description><![CDATA[While working today on a windows machine and trying to run an ANT task and then run JBoss to test my build I encountered this error java.io.UnsupportedEncodingException: cp1255 After quite some time of Googling and finding nothing I remembered I changed my regional settings on the machine to use Hebrew as the locale. This appeared [...]]]></description>
			<content:encoded><![CDATA[<p>While working today on a windows machine and trying to run an ANT task and then run JBoss to test my build I encountered this error</p>
<pre class="brush: bash;">
 java.io.UnsupportedEncodingException: cp1255
</pre>
<p>After quite some time of Googling and finding nothing I remembered I changed my regional settings on the machine to use Hebrew as the locale.</p>
<p>This appeared to be a mistake, once I changed the locale back to English (USA) everything got back to normal and worked absolutely fine (as always)</p>
<p>So, the conclusion is:<br />
when you get this error, verify that the machine you are using is set to English Locale and not other locales.</p>
<p>hope this saves you some time, I know I pulled more then a couple of hairs to find out what is causing this issue</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="java.io.UnsupportedEncodingException problem & solution - From inspiration to realization" data-url="http://www.kensodev.com/2010/08/02/java-io-unsupportedencodingexception-problem-solution/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/08/02/java-io-unsupportedencodingexception-problem-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RobotLegs makes me smile every&#160;time</title>
		<link>http://www.kensodev.com/2010/07/31/robotlegs-makes-me-smile-every-time/</link>
		<comments>http://www.kensodev.com/2010/07/31/robotlegs-makes-me-smile-every-time/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 10:58:49 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[RobotLegs]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=535</guid>
		<description><![CDATA[Hi All, I have been using the RobotLegs MVC framework for flex for about a month and a half now, I have been using MATE before that and PureMVC before that, I have never got so much out of an MVC framework, it is so flexible, so customizable (the code is on git) and helps [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I have been using the <a href="http://www.robotlegs.org/" target="_blank">RobotLegs</a> MVC framework for flex for about a month and a half now, I have been using <a href="http://mate.asfusion.com/" target="_blank">MATE</a> before that and <a href="http://puremvc.org/" target="_blank">PureMVC</a> before that, I have never got so much out of an MVC framework, it is so flexible, so customizable (<a href="http://github.com/KensoDev/robotlegs-framework" target="_blank">the code is on git</a>) and helps me with my tasks all of the time.</p>
<p>so, why have I posted it on the blog and not just tweeted about it? well, I have tweeted about it for quite a bit, but the real reason for posting it on the blog is that I have made a new category on the blog called <a href="http://www.kensodev.com/category/robotlegs/">RobotLegs</a>.</p>
<p>I plan on posting some example code for it and being involved in the community.</p>
<p>you can keep yourself updated through my <a href="http://feeds.feedburner.com/KensoDev-en" target="_blank">RSS FEED</a>.</p>
<p>Thanks</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="RobotLegs makes me smile every time - From inspiration to realization" data-url="http://www.kensodev.com/2010/07/31/robotlegs-makes-me-smile-every-time/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/07/31/robotlegs-makes-me-smile-every-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gitignore template for flex&#160;projects</title>
		<link>http://www.kensodev.com/2010/07/28/gitignore-template-for-flex-projects/</link>
		<comments>http://www.kensodev.com/2010/07/28/gitignore-template-for-flex-projects/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 20:03:38 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Trick]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=532</guid>
		<description><![CDATA[Hi All, Well, me being an enthusiastic flex developer is no secret, nor me being a GIT fan-boy. I thought it will be helpful to post my template for the gitignore files in all repositories containing flex projects this is how it looks like .DS_Store .actionScriptProperties .flexProperties .project .settings/* bin-debug/* The reason I&#8217;m ignoring all [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>Well, me being an enthusiastic flex developer is no secret, nor me being a GIT fan-boy.</p>
<p>I thought it will be helpful to post my template for the gitignore files in all repositories containing flex projects</p>
<p>this is how it looks like</p>
<pre class="brush: bash;">
.DS_Store
.actionScriptProperties
.flexProperties
.project
.settings/*
bin-debug/*
</pre>
<p>The reason I&#8217;m ignoring all the settings files and the properties files is because all of these are environment specific, often not all developers on the team use the same settings and properties and that can break the entire working process.</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="gitignore template for flex projects - From inspiration to realization" data-url="http://www.kensodev.com/2010/07/28/gitignore-template-for-flex-projects/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/07/28/gitignore-template-for-flex-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery colorbox plugin no opacity (overlay) &#8211;&#160;IE7</title>
		<link>http://www.kensodev.com/2010/07/26/jquery-colorbox-plugin-no-opacity-overlay-ie7/</link>
		<comments>http://www.kensodev.com/2010/07/26/jquery-colorbox-plugin-no-opacity-overlay-ie7/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 21:59:58 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=530</guid>
		<description><![CDATA[today, while checking a website I did heavy client side work on, converting PSD&#8217;s to html, CSS and JavaScript I checked everything on IE7, one of the most annoying things I encountered was that the colorbox overlay color was pitch black. On other browsers, everything seemed fine and the overlay was in the correct opacity. [...]]]></description>
			<content:encoded><![CDATA[<p>today, while checking a website I did heavy client side work on, converting PSD&#8217;s to html, CSS and JavaScript I checked everything on IE7, one of the most annoying things I encountered was that the colorbox overlay color was pitch black.</p>
<p>On other browsers, everything seemed fine and the overlay was in the correct opacity.</p>
<p>This bug is very easy to fix.</p>
<p>this was my code before:</p>
<pre class="brush: jscript;">
	$('.guestboox_more').colorbox({
		inline:true,
		href:'.guestbook_more_details',
		innerWidth:'610px',
		opacity: '.2',
		transition: 'elastic'
	});
</pre>
<p>And this is the code after (this fixed the problem)</p>
<pre class="brush: jscript;">
	$('.guestboox_more').colorbox({
		inline:true,
		href:'.guestbook_more_details',
		innerWidth:'610px',
		opacity: '0.2',
		transition: 'elastic'
	});
</pre>
<p>The problem was only that IE7 didn&#8217;t recognizance .2 as 0.2 and needed to be more specific (as often IE needs).<br />
I hope this will save you some time.</pre>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="jQuery colorbox plugin no opacity (overlay) - IE7 - From inspiration to realization" data-url="http://www.kensodev.com/2010/07/26/jquery-colorbox-plugin-no-opacity-overlay-ie7/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/07/26/jquery-colorbox-plugin-no-opacity-overlay-ie7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>flash media server security&#160;hardening</title>
		<link>http://www.kensodev.com/2010/07/25/flash-media-server-security-hardening/</link>
		<comments>http://www.kensodev.com/2010/07/25/flash-media-server-security-hardening/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 12:51:43 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Flash media server]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Consulting]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash player]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=524</guid>
		<description><![CDATA[today, while browsing my feed in google reader, I found something very interesting. this link is a hardening guide for flash media server. for quite some time now I have been developing and consulting on flash media server advanced topics, I have been teaching students and consulting companies on issues regarding this great peace of [...]]]></description>
			<content:encoded><![CDATA[<p>today, while browsing my feed in google reader, I found something very interesting.<br />
this <a href="http://www.adobe.com/devnet/flashmediaserver/articles/hardening_guide.html">link</a> is a hardening guide for flash media server.</p>
<p>for quite some time now I have been developing and consulting on flash media server advanced topics, I have been teaching students and consulting companies on issues regarding this great peace of software.</p>
<p>Adobe seemed vert silent about this product for some time, not publishing any new materials what so ever, so it was very nice to see this link, I read it and it has some good observations and very well written instructions on how to harden your server.</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="flash media server security hardening - From inspiration to realization" data-url="http://www.kensodev.com/2010/07/25/flash-media-server-security-hardening/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/07/25/flash-media-server-security-hardening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>set button width to text width in&#160;flex</title>
		<link>http://www.kensodev.com/2010/07/14/set-button-width-to-text-width-in-flex/</link>
		<comments>http://www.kensodev.com/2010/07/14/set-button-width-to-text-width-in-flex/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 08:07:18 +0000</pubDate>
		<dc:creator>Avi Tzurel</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[As3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://www.kensodev.com/?p=521</guid>
		<description><![CDATA[Well, I have been working on a very interesting project recently, really stretching flex to the limits I needed to set buttons, linkButtons, Labels and more component&#8217;s width to the width of the text inside them. Usually, flex does it for you but the width was hardcoded in compile time and I needed to change [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I have been working on a very interesting project recently, really stretching flex to the limits <img src='http://www.kensodev.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
I needed to set buttons, linkButtons, Labels and more component&#8217;s width to the width of the text inside them.<br />
Usually, flex does it for you but the width was hardcoded in compile time and I needed to change the text and the width in runtime and resize the component according to that.</p>
<p>I have written a nifty helper function for that.</p>
<p>here it is:</p>
<pre class="brush: as3;">
/**
* This function will accept the text and the UI component and set the width to the width of the text
* @param text the text or label of the component
* @param container the container casted to a UIComponent
*
*/
public static function measureTextWidthAndResizeComponent(text:String, container:UIComponent):void
{
	var _measuredWidth:Number = 0;
	var  _paddingLeft:uint = 0;
	var _paddingRight:uint = 0;
	var _horizontalGap:uint = 0;
	var _addedToWidth:int;

	if(text == null)
		return;

	if(text.length &lt;= 1)
		return;

	_paddingLeft = container.getStyle(&quot;paddingLeft&quot;);
	_paddingRight = container.getStyle(&quot;paddingRight&quot;);
	_horizontalGap = container.getStyle(&quot;horizontalGap&quot;);

	_addedToWidth = int(_horizontalGap + _paddingLeft + _paddingRight);

	var lineMetrics:TextLineMetrics = container.measureText(text);

	_measuredWidth = (lineMetrics.width + _addedToWidth);
	container.width = _measuredWidth;
}
</pre>
<p>That&#8217;s it, enjoy!</p>

	<div style="">
		<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="set button width to text width in flex - From inspiration to realization" data-url="http://www.kensodev.com/2010/07/14/set-button-width-to-text-width-in-flex/"  data-via="KensoDev">Tweet</a>
	</div>
	<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.kensodev.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.kensodev.com/2010/07/14/set-button-width-to-text-width-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
