<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Whinging Pom</title>
	
	<link>http://mitek.id.au/blog</link>
	<description>Entia non sunt multiplicanda praeter necessitatem (El sueño de la razón produce monstruos)</description>
	<pubDate>Fri, 10 Jul 2009 05:40:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WhingingPom" /><feedburner:info uri="whingingpom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Bugzilla: Email::MIME::Modifier module is missing</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/BdLXi658TbU/</link>
		<comments>http://mitek.id.au/blog/2009/04/11/bugzilla-emailmimemodifier-module-is-missing/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 13:55:46 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=164</guid>
		<description><![CDATA[I have recently update FreeBSD system and have encountered a problem with Bugzilla 3.2.2 and perl 5.8.9
After running checksetup.pl I&#8217;ve got the message, that required module Email::MIME::Modifier is missing and script suggested me to install it with the following command:
/usr/bin/perl -MCPAN -e &#8216;install &#8220;Email::MIME::Modifier&#8221;&#8216;
I did it several times, but nothing happened. After some digging I [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently update FreeBSD system and have encountered a problem with Bugzilla 3.2.2 and perl 5.8.9</p>
<p>After running checksetup.pl I&#8217;ve got the message, that required module Email::MIME::Modifier is missing and script suggested me to install it with the following command:</p>
<p>/usr/bin/perl -MCPAN -e &#8216;install &#8220;Email::MIME::Modifier&#8221;&#8216;</p>
<p>I did it several times, but nothing happened. After some digging I found that the real culprit is a missing dependency from Email::MIME::Modifier to Email::MessageId. </p>
<p>So, you have to run the following command:</p>
<p>/usr/bin/perl -MCPAN -e &#8216;install &#8220;Email::MessageID&#8221;&#8216;</p>
<p>or I prefer to use ports:<br />
mail/p5-Email-MessageID</p>
<p>And everything will be just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2009/04/11/bugzilla-emailmimemodifier-module-is-missing/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2009/04/11/bugzilla-emailmimemodifier-module-is-missing/</feedburner:origLink></item>
		<item>
		<title>FlexBuilder.ini is ignored under Vista</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/hpIK_tzFmek/</link>
		<comments>http://mitek.id.au/blog/2009/01/21/flexbuilderini-is-ignored-under-vista/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 02:49:27 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=160</guid>
		<description><![CDATA[Just bumped into another nasty bug. FlexBuilder under Vista ignores C:\Program Files\Adobe\Flex Builder 3\FlexBuilder.ini file.
It seems like due to Vista &#8220;smarts&#8221; with user directories, compatibility issues and general MS idiocy FlexBuilder have no idea where to pick up the FlexBuilder.ini file. It works perfectly well on XP, but not on Vista.
It also grabs all default [...]]]></description>
			<content:encoded><![CDATA[<p>Just bumped into another nasty bug. FlexBuilder under Vista ignores C:\Program Files\Adobe\Flex Builder 3\FlexBuilder.ini file.</p>
<p>It seems like due to Vista &#8220;smarts&#8221; with user directories, compatibility issues and general MS idiocy FlexBuilder have no idea where to pick up the FlexBuilder.ini file. It works perfectly well on XP, but not on Vista.<br />
It also grabs all <a href="http://mitek.id.au/flex/builder_crash.jpg">default JVM parameters</a> twice for some reason. Kind of an Irish approach <img src='http://mitek.id.au/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="https://bugs.adobe.com/jira/browse/FB-16668">Bug</a> is submitted.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2009/01/21/flexbuilderini-is-ignored-under-vista/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2009/01/21/flexbuilderini-is-ignored-under-vista/</feedburner:origLink></item>
		<item>
		<title>Binding to the members of the parent class</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/Nk5FL7p2QeU/</link>
		<comments>http://mitek.id.au/blog/2009/01/13/binding-to-the-members-of-the-parent-class/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 04:11:16 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=135</guid>
		<description><![CDATA[This is not an obvious fact and this is not mentioned anywhere in the documentation: to bind to the member of the parent class both (child &#38; parent classes) should be declared as [Bindable].
Here is the example:
public class Parent
&#123;
public var m_sText:String;
public function Parent()
{
}
}
&#91;Bindable&#93;
public class Child extends Parent
&#123;
public function Child&#40;&#41;
&#123;
super&#40;&#41;;
&#125;
&#125;
&#160;
If you don&#8217;t specifically tell to compiler [...]]]></description>
			<content:encoded><![CDATA[<p>This is not an obvious fact and this is not mentioned anywhere in the documentation: to bind to the member of the parent class both (child &amp; parent classes) should be declared as [Bindable].</p>
<p>Here is the example:</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw1">public</span> <span class="kw4">class</span> Parent<br />
<span class="br0">&#123;</span><br />
<span class="kw1">public</span> <span class="kw2">var</span> m_sText<span class="sy0">:</span><a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">String</span></a>;</div></div>
<p>public function Parent()<br />
{<br />
}<br />
}</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="br0">&#91;</span>Bindable<span class="br0">&#93;</span><br />
<span class="kw1">public</span> <span class="kw4">class</span> Child extends Parent<br />
<span class="br0">&#123;</span><br />
<span class="kw1">public</span> <span class="kw3">function</span> Child<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
<span class="kw1">super</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace">&nbsp;</div></div>
<p>If you don&#8217;t specifically tell to compiler that class Parent is bindable, compiler will give you the <a href="http://mitek.id.au/blog/2008/08/18/binding-to-static-variables-in-mxml/">infamous warning</a> on the attempt to bind to any public member of the Parent class:</p>
<p><strong> </strong></p>
<pre><strong>Data binding will not be able to detect assignments to "m_sText".</strong></pre>
<p><strong></strong></p>
<p>P.S. It is logical if you think about the meaning of the [Bindable] directive and and you know the fact that PropertyChange events is not fired for changes happened inside of the complex members.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2009/01/13/binding-to-the-members-of-the-parent-class/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2009/01/13/binding-to-the-members-of-the-parent-class/</feedburner:origLink></item>
		<item>
		<title>Nissan Patrol wheel nuts torque setting</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/DL7kgu9K4JE/</link>
		<comments>http://mitek.id.au/blog/2008/12/17/nissan-patrol-wheel-nuts-torque-setting/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 05:27:29 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[4WD]]></category>

		<category><![CDATA[Patrol]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=132</guid>
		<description><![CDATA[As soon as I have biten by a 4WD bug a while ago, I &#8216;ve been trying to do almost everything by myself in servicing &#38; maintenance department for my Nissan Patrol GU 3.0 Diesel ST.
I&#8217;ve got 2 sets of wheels - one set is BFGoodrich/AT - All-Terrains mounted on factory&#8217;s  alloy wheels and another [...]]]></description>
			<content:encoded><![CDATA[<p>As soon as I have biten by a 4WD bug a while ago, I &#8216;ve been trying to do almost everything by myself in servicing &amp; maintenance department for my Nissan Patrol GU 3.0 Diesel ST.</p>
<p>I&#8217;ve got 2 sets of wheels - one set is BFGoodrich/AT - All-Terrains mounted on factory&#8217;s  alloy wheels and another set is BFGoodrich/MT -  Mud-Terrains mounted on steel Pro-Comp wheels.</p>
<p>Every time before a trip I change the wheels by myself, it takes the time, but gives a perfect opportunity to have a good look under the truck and check for any signs of rust or other problems.</p>
<p>Recently, it appeared that my exercising with weights finally gave the result. A little bit unusual though - when I last time changed the wheels, I over tightened the nuts, so the thread were nearly stripped off and I had to replace all the rear axle studs (which cost me a 3 digit figure).  Ouch!</p>
<p>I&#8217;ve been told by FerntreeGully Nissan that if I want to prevent this from happening in the future I have to use the torque wrench. It is also appeared that Patrol&#8217;s studs are very susceptible for the over &#038; under tightening. </p>
<p>So, the whole idea of this post is this: Use the Torque, Luke!<br />
<strong>Use the torque setting of 135 Nm or 100 ft-lbs for GU Patrol wheel nuts!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/12/17/nissan-patrol-wheel-nuts-torque-setting/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/12/17/nissan-patrol-wheel-nuts-torque-setting/</feedburner:origLink></item>
		<item>
		<title>Flex popup window disappears if x or y becomes negative number with fraction</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/y4LLD6Z7sqA/</link>
		<comments>http://mitek.id.au/blog/2008/12/09/flex-popup-window-disappears-if-x-or-y-coordinate-becomes-negative/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:35:33 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=127</guid>
		<description><![CDATA[There is a strange glitch in the Flex SDK - if you center PopUp window by yourself, then you should check that x &#38; y properties are always casted to integer values.
If x or y coordinate becomes negative number with fraction, the whole popup window disappears.  This is strange as positive numbers with fraction are [...]]]></description>
			<content:encoded><![CDATA[<p>There is a strange glitch in the Flex SDK - if you center PopUp window by yourself, then you should check that x &amp; y properties are always casted to integer values.</p>
<p>If x or y coordinate becomes negative number with fraction, the whole popup window disappears.  This is strange as positive numbers with fraction are valid. And what is most frustrative, DesignView sets them with fractional parts when you re-arrange elements. </p>
<p> </p>
<p>UPD: <a href="https://bugs.adobe.com/jira/browse/SDK-18368" target="_blank">bug submitted</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/12/09/flex-popup-window-disappears-if-x-or-y-coordinate-becomes-negative/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/12/09/flex-popup-window-disappears-if-x-or-y-coordinate-becomes-negative/</feedburner:origLink></item>
		<item>
		<title>Troubleshooting DELL SAS 5/iR RAID controller</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/d4my662gKMI/</link>
		<comments>http://mitek.id.au/blog/2008/11/28/troubleshooting-dell-sas-5ir-raid-controller/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 02:04:12 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Dell]]></category>

		<category><![CDATA[idiocy]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=122</guid>
		<description><![CDATA[My first server was Dell SC1435. Well, the experience is always built on mistakes  I realised it when I&#8217;ve bought HP 360 G4p servers from my hosting company.  Now I know why HP costs more and why this is justified.
Well, I still have to live with a couple of SC1435s as they are still [...]]]></description>
			<content:encoded><![CDATA[<p>My first server was Dell SC1435. Well, the experience is always built on mistakes <img src='http://mitek.id.au/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I realised it when I&#8217;ve bought HP 360 G4p servers from my hosting company.  Now I know why HP costs more and why this is justified.</p>
<p>Well, I still have to live with a couple of SC1435s as they are still doing their job, not so good though. Each Dell server had problems with RAID on the 13th month after the shipment date (maybe it is hard coded in their chips?). I was a cunning fox second time, so I&#8217;ve bought additionally 3 year warranty for the next server. And this is already paid off, as one of the WD hard drives collapsed last Friday (for some reason these type of things are happening only on Friday arvos).</p>
<p>Well, first sign of problem was an mpt-status utility which reported RAID status DEGRADED, and HDD1 status FAILED, OUT_OF_SYNC. And after a couple of hours HDD1 changed its status do MISSING.</p>
<p>I thought that this problem is similar to the problem I had before, when RAID array just become unsynchronised for some reason, so I was looking for an utility which will allow me to start remotely RAID re-synchronisation process (rebuild). I was surprised to find that Dell provides only 2 types of utilities - for Windows and for RedHat Linux. Well, Linux is Linux, even if I don&#8217;t run RedHat and I hate it, there was a good chance that I will be able to run the executables under Gentoo.  First ominous sign was the size of the download - 44Mb, which is too much for an utility. When I unpacked it with rpm2targz I found that most of the contents is Java crap which uses GUI to handle the RAID.</p>
<p>I know that I am weird, but none of my servers are running Windows (M$ or X, does not matter). My concept is that server is something which could be managed via the smartphone &amp; ssh. GUI is not an option for servers. They are sitting in the hot hell of data centre and every single piece of processor &amp; memory resources should be doing the primary task - running Apache/database/you name it, but not the Java+X+KDE for occasional maintenance.</p>
<p>Well, my attempt to use Dell&#8217;s utility failed. I looked up the controller&#8217;s chip (LSI Logic 1068) and went on their site for help.  The idiocy is spread there as well. They had a CLI tool for RAID management, but is was for the superseded MegaRAID, not for SAS 5 i/R anymore. They have this RedHat/Java rpm to manage controllers. Damn!</p>
<p>I googled for a while and finally found sane people at IBM who use command line tool called <a href="http://www-304.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-63501&amp;brandind=5000008">cfggen</a> to manage SAS 5 i/R RAIDs on their servers.<br />
NB HP servers also have <a href="http://docs.hp.com/en/J6369-90071/ch03s05.html">it</a>, not online though.</p>
<p>Well, at that point of time I already faced a fact that the hard drive went hanky-panky and never came back, so cfggen could only display the RAID and HDD0 status and all attempts to start rebuild failed, as there was nothing to rebuild.</p>
<p>There was another option - to use BMC facility of the server. Because Dell servers come without documentation (well, there were unpacking instructions packed inside of the box), I had no idea that BMC is accessible via shared network interface, and there is no need to use DRAC (Dell Remote Access Card), which is actually unavailable for SC1435 due to the space limitations. So I even didn&#8217;t bother to setup BMC in BIOS.<br />
(On the controrary, HP servers have iLO, which is implemented more thoughtfully - separate interface which could use a separate or shared network and they are shipped with tons of documentations in PDFs.)</p>
<p>So, on the next business day, i.e. Tuesday (remember, that it happened on Friday arvo? <img src='http://mitek.id.au/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> technician from Dell changed the hard drive and RAID was back in business in a couple of hours.</p>
<p>So, what is the lesson I&#8217;ve learnt?</p>
<ul>
<li> Use Nagios plugin <a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2236.html;d=1">check_mpt</a></li>
<li> cfggen from IBM website/ HP server utilities disk is a must for lucky Dell customers</li>
<li> Out-Of-Band access is something which should not be ignored.</li>
<li> think 3 times next time before buying Dell servers <img src='http://mitek.id.au/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/11/28/troubleshooting-dell-sas-5ir-raid-controller/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/11/28/troubleshooting-dell-sas-5ir-raid-controller/</feedburner:origLink></item>
		<item>
		<title>TortoiseSVN uses root account to check-in</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/aV4ZZR9__Hs/</link>
		<comments>http://mitek.id.au/blog/2008/11/28/tortoisesvn-uses-root-account-to-check-in/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 00:47:21 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[bugs]]></category>

		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=114</guid>
		<description><![CDATA[Normally I prefer the command line tools over the tools with GUI. CLI usually means that interface is clear, simple and it could be wrapped up in the script and run automatically.
I worked with all mainstream source control systems, but Subversion is the one which still puzzles me after a year of use.  That&#8217;s why [...]]]></description>
			<content:encoded><![CDATA[<p>Normally I prefer the command line tools over the tools with GUI. CLI usually means that interface is clear, simple and it could be wrapped up in the script and run automatically.</p>
<p>I worked with all mainstream source control systems, but Subversion is the one which still puzzles me after a year of use.  That&#8217;s why I prefer to use TortoiseSVN, which seems to me really great thing (not the Subversion itself though). It&#8217;s a pity that it exists only in Windows version.</p>
<p>Anyhow, I was trying to understand why when I&#8217;ve got source tree checked out under my username, TortoiseSVN checks in modifications using root account, instead of my username. Subclipse does not have this problem at all.</p>
<p>Then I found the answer in the TortoiseSVN FAQ:</p>
<blockquote><p><strong>Why is there no &#8216;author&#8217; shown in the logs when I commit changes via svn+ssh?</strong><br />
Since SSH completely takes care of the authentication process, Subversion won&#8217;t even see the author who does the commit. So to tell Subversion an author you have to specify the author in the URL itself. E.g. svn+ssh://username@server.com. You should do that when you check out your working copy.</p></blockquote>
<p>When I tried it, TortoiseSVN used my username. Perfect! But Subclipse went nuts. It started to think that the repostory URL is username@ssh+svn://host/repository or similar. I tried both PureJava &amp; SVNKit implementations with no luck. Nuts!</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/11/28/tortoisesvn-uses-root-account-to-check-in/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/11/28/tortoisesvn-uses-root-account-to-check-in/</feedburner:origLink></item>
		<item>
		<title>“Will someone please think of the children?”</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/U6yOrh2T3-k/</link>
		<comments>http://mitek.id.au/blog/2008/11/05/will-someone-please-think-of-the-children/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 04:12:46 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[idiocy]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=106</guid>
		<description><![CDATA[&#8220;Will someone please think of the children?&#8221;
So says Helen Lovejoy in many episodes of the Simpsons, and so says our beloved Senator Conroy.
The problem in two words: to stop child pornography and protect children from the Evil Internet  Government plans to set a filtering mechanism through all Australian ISPs, so they will filter out [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Will someone please think of the children?&#8221;<br />
So says Helen Lovejoy in many episodes of the Simpsons, and so says our beloved Senator Conroy.<br />
The problem in two words: to stop child pornography and protect children from the Evil Internet  Government plans to set a filtering mechanism through all Australian ISPs, so they will filter out all illegal websites (sic!!!) .</p>
<p>Here is more to <a href="http://www.computerworld.com.au/index.php?id=355409327&#038;fp=16&#038;fpid=0">read</a>.</p>
<p>Seems that we have at least one sane <a href="http://www.somebodythinkofthechildren.com/greens-senator-quizzes-conroy-on-filtering/">Senator though</a>.</p>
<p>And further <a href="http://www.nocleanfeed.com/action.html">reading</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/11/05/will-someone-please-think-of-the-children/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/11/05/will-someone-please-think-of-the-children/</feedburner:origLink></item>
		<item>
		<title>ComboBox madness continues</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/GY7bqglZupE/</link>
		<comments>http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 01:45:25 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=76</guid>
		<description><![CDATA[The saga with data binding problems in ComboBox component continues. The selectedIndex/selectedItem concept seems to be  just undeveloped. 
My previous fix has not covered all possible scenarios of the property assignment order. If you set dataProvider property it kicks out selectedItem/selectedIndex values. Here is attempt to make Combobox more conscious about its data.
package
{
    import [...]]]></description>
			<content:encoded><![CDATA[<p>The saga with data binding problems in ComboBox component continues. The selectedIndex/selectedItem concept seems to be  just undeveloped. </p>
<p>My previous <a href="http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/">fix</a> has not covered all possible scenarios of the property assignment order. If you set dataProvider property it kicks out selectedItem/selectedIndex values. Here is attempt to make Combobox more conscious about its data.</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px;height:300px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">package<br />
{<br />
    import mx.controls.ComboBox;<br />
    public class SmartComboBox extends ComboBox<br />
    {<br />
        public function CSmartComboBox()<br />
        {<br />
            super();<br />
        }<br />
<br />
        /**<br />
        *  bind to this property instead of selectedItem<br />
        */<br />
        private var _selectedItemEx:Object;<br />
<br />
        public function set selectedItemEx(value:Object):void<br />
        {<br />
            _selectedItemEx = value;<br />
        }<br />
<br />
        public function get selectedItemEx():Object<br />
        {<br />
            return _selectedItemEx;<br />
        }<br />
<br />
        /**<br />
         * This method fixes the nasty bug in ComboBox<br />
         * If value is null, it tries to find in dataProvider, can't find it, so it leaves controls as is it is,<br />
         * instead of resetting it.<br />
         */<br />
        override public function set selectedItem(value:Object):void<br />
        {<br />
            if (value == null)<br />
            {<br />
                //first check if our real selectedItem is set<br />
                if (_selectedItemEx)<br />
                {<br />
                    //assign real value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // NB if _selectedItemEx contains invalid data, setter from the parent class <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //will ignore the value and set the property to null.<br />
                    super.selectedItem = _selectedItemEx;<br />
                }<br />
                else<br />
                {<br />
                    //reset the control<br />
                    super.selectedIndex = -1;<br />
                }<br />
            }<br />
            else<br />
            {<br />
                super.selectedItem = value;<br />
            }<br />
        }<br />
 <br />
<br />
        /**<br />
        * After dataProvider assignment, restore real selectedItem<br />
        */<br />
        override public function set dataProvider(value:Object):void<br />
        {<br />
            super.dataProvider = value;<br />
            //after assignment, restore real selectedItem<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //NB this is still safe, as setter check the value against the dataProvider<br />
            super.selectedItem = _selectedItemEx;<br />
        }<br />
<br />
<br />
        /**<br />
        *  reset control (-1) only if real selectedItem is null<br />
        */<br />
        override public function set selectedIndex(value:int):void<br />
        {<br />
            if (value == -1)<br />
            {<br />
                //reset only if we don't have a saved value!<br />
                if (!_selectedItemEx)<br />
                {<br />
                     super.selectedIndex = value;<br />
                }<br />
            }<br />
            else<br />
            {<br />
                super.selectedIndex = value;<br />
            }<br />
        }<br />
    }<br />
}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/</feedburner:origLink></item>
		<item>
		<title>Looking closely at setters &amp; getters</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/aqQaNtlRPx8/</link>
		<comments>http://mitek.id.au/blog/2008/10/27/looking-closely-at-setters-getters/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 01:28:20 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=91</guid>
		<description><![CDATA[AS3 has a mechanism for defining setters &#38; getters for the member variables (pardon, properties).

private var _property:uint
public function set property(value:uint):void
{
&#160; &#160; _property = value;
}
public function get property():uint
{
&#160; &#160; return _property;
}

Recently, I&#8217;ve bumped into the the strange thing: if you change directly the value:

_property = 17;

this won&#8217;t generate propertyChangeEvent and all you bound variables won&#8217;t be [...]]]></description>
			<content:encoded><![CDATA[<p>AS3 has a mechanism for defining setters &amp; getters for the member variables (pardon, properties).</p>
<div>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">private var _property:uint</div></div>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">public function set property(value:uint):void<br />
{<br />
&nbsp; &nbsp; _property = value;<br />
}</div></div>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">public function get property():uint<br />
{<br />
&nbsp; &nbsp; return _property;<br />
}</div></div>
</div>
<p>Recently, I&#8217;ve bumped into the the strange thing: if you change directly the value:</p>
<div>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">_property = 17;</div></div>
</div>
<p>this won&#8217;t generate propertyChangeEvent and all you bound variables won&#8217;t be notified about the change. So, instead when you need to notify others about the change, you have to do this:</p>
<div>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">property = 17;</div></div>
</div>
<p>This will cause the setter to be executed and propertyChangeEvent will be dispatched.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/10/27/looking-closely-at-setters-getters/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/10/27/looking-closely-at-setters-getters/</feedburner:origLink></item>
		<item>
		<title>MacOS, Flex Builder, libs directory and nightmares</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/wh93quls3DE/</link>
		<comments>http://mitek.id.au/blog/2008/10/16/mac-os-flex-builder-libs-and-nightmares/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 00:13:11 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[MacOS]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=78</guid>
		<description><![CDATA[At some point of time I decided to be cool for once in my life and try to use this &#8220;libs&#8221; folder feature (See the overexcited Ted&#8217;s article here). Because I had to add a number of SWCs to the project I decided not to add them manually one by one as I usually do, but instead I [...]]]></description>
			<content:encoded><![CDATA[<p>At some point of time I decided to be cool for once in my life and try to use this &#8220;libs&#8221; folder feature (See the overexcited Ted&#8217;s article <a href="http://www.onflex.org/ted/2008/03/fxb3-tip-that-libs-folder.php">here</a>). Because I had to add a number of SWCs to the project I decided not to add them manually one by one as I usually do, but instead I created a sub-directory under libs (I should be listening to that ominous voices) and placed a bunch of SWCs there.  Then I just added a new &#8220;SWC Folder&#8221; location to the library path and I was enjoying the fact that as soon as I place anything in that directory, Flex Builder catches it up (after a refresh though).  But then storm cloud gathered. I.e. our Mac designer updated the code from the SVN.  The symptoms were:</p>
<p> </p>
<p>a) Flex Builder hangs (freezes) at the startup while loading the project which referes to that libs/cool_dir directory.</p>
<p>b) In the log file we saw the following:<br />
Caused by: org.eclipse.core.internal.resources.ResourceException: The resource tree is locked for modifications.</p>
<p>After 4 hours of the tambourine dancing around Mac we have figured out that the cause of the problem was my libs/cool_directory. As soon as you remove it, everything gets back to normal. And only Flex Builder for MacOs is prone to this problem.</p>
<p>Damn it!  The number of hours I&#8217;ve already spent in the last 2 years troubleshooting Mac&#8217;s problems is now probably equal to the unforgettable hours I&#8217;ve spent installing SCSI board drivers for WinNT3.51/4.0 on SMP servers.  Oh&#8230;. sweet unpretentious Windows&#8230;</p>
<p> </p>
<p>NB On the way, I&#8217;ve been really pissed off  by MacOS again - if you download zip file in Safari, it automatically unpacks it. And if folder in the archive is org.eclipse.core smart Safari-MacOs-SteveJobs-whatever unpacks it into the org/eclipse/core.  This is so sweet, caring and mindful.<br />
I&#8217;ve been told that there is a setting somewhere in Safari to stop doing this, but we&#8217;ve got a presumption of innocence, right? Why should arrogant, ill-mannered and unsophisticated bloke like me know, that there is an option somewhere in the MacOs which says &#8220;let&#8217;s be stupid, OK/Agree?&#8221;</p>
<p>Anyway, enough about this bloody MacOs.  Allons! Revenons à nos moutons! Qu’en fut-il?</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/10/16/mac-os-flex-builder-libs-and-nightmares/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/10/16/mac-os-flex-builder-libs-and-nightmares/</feedburner:origLink></item>
		<item>
		<title>Easy multiple items selection in DataGrid</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/PgGnxmbT8tM/</link>
		<comments>http://mitek.id.au/blog/2008/08/24/easy-multiple-items-selection-in-datagrid/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 11:48:24 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=72</guid>
		<description><![CDATA[Using Ctrl or Shift keys in multiple items selection is a common thing. Unfortunately, it is appeared that it is common only among the advanced users. So, I decided to simplify the interface: simulate Ctrl key, so user will  use single mouse click to select/unselect items in the DataGrid.

package
{
&#160; &#160; import mx.controls.DataGrid;
&#160; &#160; import [...]]]></description>
			<content:encoded><![CDATA[<p>Using Ctrl or Shift keys in multiple items selection is a common thing. Unfortunately, it is appeared that it is common only among the advanced users. So, I decided to simplify the interface: simulate Ctrl key, so user will  use single mouse click to select/unselect items in the DataGrid.</p>
<pre>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px;height:300px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">package<br />
{<br />
&nbsp; &nbsp; import mx.controls.DataGrid;<br />
&nbsp; &nbsp; import mx.controls.listClasses.IListItemRenderer;<br />
<br />
&nbsp; &nbsp; public class EasySelectionDataGrid extends DataGrid<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //this flag simulates holding a Ctrl key<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _holdCtrl:Boolean = false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function EasySelectionDataGrid()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function set holdCtrl(value:Boolean):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _holdCtrl = value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function get holdCtrl():Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return _holdCtrl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; override protected function selectItem(item:IListItemRenderer, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shiftKey:Boolean, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ctrlKey:Boolean, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transition:Boolean=true):Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //override values if necessary<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return super.selectItem(item, shiftKey, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _holdCtrl ? true: ctrlKey, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transition);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</div></div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/24/easy-multiple-items-selection-in-datagrid/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/24/easy-multiple-items-selection-in-datagrid/</feedburner:origLink></item>
		<item>
		<title>“Error #2046: The loaded file did not have a valid signature.”</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/RjHXHXBY5y4/</link>
		<comments>http://mitek.id.au/blog/2008/08/21/error-2046-the-loaded-file-did-not-have-a-valid-signature/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 19:10:06 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=66</guid>
		<description><![CDATA[After I&#8217;ve updated to Flex SDK 3.1.0 I&#8217;ve got  this Error #2046: The loaded file did not have a valid signature.
Everything in the projects was pointing to the new sdk 3.1.0, instead of 3.0.0, but RSL libraries in the bin-debug folder were still from the old SDK (framework_3.0.0.477.swf, rpc_3.0.0.477.swf, datavisualization_3.0.0.477.swf along with corresponding SWZs)
After [...]]]></description>
			<content:encoded><![CDATA[<p>After I&#8217;ve updated to Flex SDK 3.1.0 I&#8217;ve got  this Error #2046: The loaded file did not have a valid signature.</p>
<p>Everything in the projects was pointing to the new sdk 3.1.0, instead of 3.0.0, but RSL libraries in the bin-debug folder were still from the old SDK (framework_3.0.0.477.swf, rpc_3.0.0.477.swf, datavisualization_3.0.0.477.swf along with corresponding SWZs)</p>
<p>After some head scratching I&#8217;ve opened up the properties of the main application,<br />
Flex Builder path =&gt; Library path and looked into the settings of the framework libraries -bingo! It was still using the old settings.</p>
<p>So, all you have to do is to remove old RSLs and add new ones (both swf &#038; swz), so it will look like that:</p>
<p><img src="http://mitek.id.au/blog/wp-content/uploads/2008/08/RSL_setup.jpg" alt="RSL setup screen" /></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/21/error-2046-the-loaded-file-did-not-have-a-valid-signature/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/21/error-2046-the-loaded-file-did-not-have-a-valid-signature/</feedburner:origLink></item>
		<item>
		<title>Diff on mxml files in Flex 3 sucks big time</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/4RL-shepcEE/</link>
		<comments>http://mitek.id.au/blog/2008/08/21/diff-on-mxml-files/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:03:20 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=7</guid>
		<description><![CDATA[Internal diff tool in FB3 sucks big time. It worked in FB2, but someone decided that this thing is too good for this world and changed it. This ugly proportional font and this terrible performance are just unbearable!
Single diff on 1000 lines files takes around 50 seconds. Multiply it by 10-20 per day and this [...]]]></description>
			<content:encoded><![CDATA[<p>Internal diff tool in FB3 sucks big time. It worked in FB2, but someone decided that this thing is too good for this world and changed it. This ugly proportional font and this terrible performance are just unbearable!</p>
<p>Single diff on 1000 lines files takes around 50 seconds. Multiply it by 10-20 per day and this is a stolen time from you.</p>
<p>It is time to change this. Here is the place to vote for this bug:</p>
<p><a href="http://bugs.adobe.com/jira/browse/FB-12492">http://bugs.adobe.com/jira/browse/FB-12492</a></p>
<p>Sweet Adobe, please have a mercy on us all and give us back the<br />
simple, no-gimmick diff, which just works.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/21/diff-on-mxml-files/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/21/diff-on-mxml-files/</feedburner:origLink></item>
		<item>
		<title>Data binding will not be able to detect assignments to “SOME_STATIC_VARIABLE”.</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/RRhBt5XM0uE/</link>
		<comments>http://mitek.id.au/blog/2008/08/18/binding-to-static-variables-in-mxml/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 09:50:05 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek17.wordpress.com/?p=39</guid>
		<description><![CDATA[If you want to bind in MXML to some static variable compiler will warn you that data changes to the value will be unnoticed with the following warning:

Data binding will not be able to detect assignments to "SOME_STATIC_VARIABLE".

I don&#8217;t like compiler errors and don&#8217;t like compiler warnings as well. So, to avoid this warning you [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to bind in MXML to some static variable compiler will warn you that data changes to the value will be unnoticed with the following warning:<br />
<b>
<pre>Data binding will not be able to detect assignments to "SOME_STATIC_VARIABLE".</pre>
<p></b></p>
<p>I don&#8217;t like compiler errors and don&#8217;t like compiler warnings as well. So, to avoid this warning you can do the following:</p>
<p>Instead of:</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx<span class="sy0">:</span>TextInput <span class="kw7">enabled</span>=<span class="st0">&quot;{iUserAccessId == GLOBAL.m_iAllowTextInput}&quot;</span> <span class="sy0">/&gt;</span>;</div></div>
<p>you can do this:</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx<span class="sy0">:</span>Script<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;!</span><span class="br0">&#91;</span>CDATA<span class="br0">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span>Bindable<span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">private</span> <span class="kw2">var</span> iCanEdit<span class="sy0">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">uint</span></a> = GLOBAL.g_iAllowTextInput;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#93;</span><span class="br0">&#93;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx<span class="sy0">:</span>Script<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx<span class="sy0">:</span>TextInput <span class="kw7">enabled</span>=<span class="st0">&quot;{iUserAccessId == iCanEdit}&quot;</span> <span class="sy0">/&gt;</span></div></div>
<p>Voilà!</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/18/binding-to-static-variables-in-mxml/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/18/binding-to-static-variables-in-mxml/</feedburner:origLink></item>
		<item>
		<title>ComboBox selectedItem problem</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/gGZmbiMCiA0/</link>
		<comments>http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 09:32:27 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek17.wordpress.com/?p=43</guid>
		<description><![CDATA[ComboBox is definitely one of the lousiest Flex components.
First, you can&#8217;t customise the itemRenderer for the main control (not the drop-down list).
Second, it has very uncertain behaviour with item selection.
Problem 1:
setting ComboBox.selectedItem = null does not do anything. Logically, it should be equivalent to setting selectedIndex=-1. But it does not work.
There is Flex bug registered [...]]]></description>
			<content:encoded><![CDATA[<p>ComboBox is definitely one of the lousiest Flex components.<br />
First, you can&#8217;t customise the itemRenderer for the main control (not the drop-down list).<br />
Second, it has very uncertain behaviour with item selection.</p>
<p>Problem 1:<br />
setting ComboBox.selectedItem = null does not do anything. Logically, it should be equivalent to setting selectedIndex=-1. But it does not work.<br />
There is <a href="https://bugs.adobe.com/jira/browse/SDK-11282">Flex bug</a> registered and it is marked as Fixed in Flex 3 (Released), which is a bullshit. It is still there.</p>
<p>Problem 2:<br />
The whole Flash/Flex framework is event-driven thing. But sometimes developers forget about it. Unfortunately, including the framework designers.<br />
Somehow, someone thought that dataProvider property will be always set first, and selectedItem second. <a href="https://bugs.adobe.com/jira/browse/SDK-16492">This is wrong</a>. Here is an example how it could be in a real world:</p>
<p>A multi-state Panel has Combobox. The Panel is cached (after creation it is saved to be reused in later calls).</p>
<p>Here is the sequence of events:<br />
1. Already cached Panel is opened up by PopUpManager<br />
2. Panel is initialised with new data<br />
3. selectedItem property is getting initialised first (by data binding)<br />
4. Panel performs the state change<br />
5. Panel in new state initialises ComboBox by setting the dataProvider (by databinding)</p>
<p>Because there are no new dataChange events coming after this point, selectedItem won&#8217;t be set.</p>
<p>Touché!</p>
<p>Here is the overridden class which addresses both problems.</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:435px;height:300px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw4">package</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">import</span> mx.controls.ComboBox;<br />
<br />
&nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">class</span> RightComboBox extends ComboBox<br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">public</span> <span class="kw3">function</span> RightComboBox <span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">super</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; override <span class="kw1">public</span> <span class="kw3">function</span> <span class="kw1">set</span> selectedItem<span class="br0">&#40;</span><span class="kw7">value</span><span class="sy0">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Object</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="kw7">value</span> == <span class="kw1">null</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">super</span>.selectedIndex = <span class="sy0">-</span><span class="nu0">1</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">super</span>.selectedItem = <span class="kw7">value</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; override <span class="kw1">public</span> <span class="kw3">function</span> <span class="kw1">set</span> dataProvider<span class="br0">&#40;</span><span class="kw7">value</span><span class="sy0">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Object</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> l_savedSelectedItem<span class="sy0">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Object</span></a> = <span class="kw1">super</span>.selectedItem;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">super</span>.dataProvider = <span class="kw7">value</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">super</span>.selectedItem = l_savedSelectedItem;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/</feedburner:origLink></item>
		<item>
		<title>call validateNow() on parent for correct results</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/qWdOAdqxJW4/</link>
		<comments>http://mitek.id.au/blog/2008/08/02/call-validatenow-on-parent-for-correct-results/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 22:20:22 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flash Player]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek17.wordpress.com/?p=8</guid>
		<description><![CDATA[It is never too late to learn. After a lot of time spent on fixing the mighty &#8220;Flex Printing Engine&#8221;(tm), I&#8217;ve learnt an important lesson: you have to call validateNow() on parent component as well to get child component properly measured and rendered.
]]></description>
			<content:encoded><![CDATA[<p>It is never too late to learn. After a lot of time spent on fixing the mighty &#8220;Flex Printing Engine&#8221;(tm), I&#8217;ve learnt an important lesson: you have to call validateNow() on parent component as well to get child component properly measured and rendered.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/02/call-validatenow-on-parent-for-correct-results/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/02/call-validatenow-on-parent-for-correct-results/</feedburner:origLink></item>
		<item>
		<title>Midnight Commander under Cygwin/Vista</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/Msv7aukpIZc/</link>
		<comments>http://mitek.id.au/blog/2008/08/02/midnight-commander-under-cygwinvista/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 22:15:10 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Cygwin]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek17.wordpress.com/?p=25</guid>
		<description><![CDATA[For many years I&#8217;ve been using Far Manager which is really great commander for Windows.
It has many useful plugins like SCP/SFTP, Network Browser, reasonably good editor with Colorer,  PocketPC connection etc.
On the downside FAR editor has a couple of problems which bothered me a lot:
- Internal editor which is quite powerful, sometimes starts using [...]]]></description>
			<content:encoded><![CDATA[<p>For many years I&#8217;ve been using <a href="http://farmanager.com/">Far Manager</a> which is really great commander for Windows.<br />
It has many useful plugins like SCP/SFTP, Network Browser, reasonably good editor with Colorer,  PocketPC connection etc.</p>
<p>On the downside FAR editor has a couple of problems which bothered me a lot:<br />
- Internal editor which is quite powerful, sometimes starts using Windows line endings (CRLF) and because I am working in a mixed environment I had to run the dos2unix utility on the routine basis to convert all the files into the UNIX format.</p>
<p>- FAR has a mysterious feature of changing file permissions or file sharing by adding user &#8220;None&#8221; with special permissions which were preventing files from to be executed. I.e. you&#8217;ve download ZIP file using FAR&#8217;s FTP browser, unpack it, try to run EXE file, Windows says:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">&quot;You don't have permissions to run the file&quot;</div></div>
<p>. So you have to Explorer-&gt;Security settings and kill this None user.</p>
<p>After my recent upgrade from XP to Vista these problems became even worse.<br />
So, I tried to start using the Midnight Commander, which I&#8217;ve been using for ages in Unix environment.<br />
But under Cygwin/Vista it behaves quite differently.</p>
<p>Problems I&#8217;ve met so far are:</p>
<p>- no mouse support under Vista.<br />
I&#8217;ve even tried to use Cygwin&#8217;s SSH port with PuTTY and then run MC - no way to have mouse working in Cygwin window.</p>
<p>- I am unable to browse/open any .zip files.<br />
MC says:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">./file.zip: ./file.zip: cannot execute binary file</div></div>
<p>.<br />
What the heck? Somehow it opens the TAR files, but only by F4(Edit) command. If you try to open TAR file it writes similar bullshit about running a binary file.</p>
<p>-And the last thing which drives me mad - I am unable to save some of the MC&#8217;s config files, such as  .mc/bindings. Every time it accesses it, it sets up the sharing, adding this infamous user None with special permissions and this file becomes read-only for MC.</p>
<p>PS While writing this post, I have found that you can get a Midnight Commander&#8217;s subshell working under Cygwin - you have to explicitly enable the subshell support via parameter (even if it is a default):</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">#&amp;gt; mc.exe -U</div></div>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/02/midnight-commander-under-cygwinvista/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/02/midnight-commander-under-cygwinvista/</feedburner:origLink></item>
		<item>
		<title>Flex debugging session is stuck at the loading stage (IE only)</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/-wArt_j332U/</link>
		<comments>http://mitek.id.au/blog/2008/08/02/flex-debugging-session-is-stuck-at-the-loading-stageie-only/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 21:53:34 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flash Player]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[IE]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek17.wordpress.com/?p=27</guid>
		<description><![CDATA[I&#8217;ve found that when you start debugger from Flex using IE, in most of the cases the debugging session is stuck at the stage when Flash Player shows Loading/Initialising progress bar.
I can&#8217;t recall this happening in the Firefox. I still have got intermittent problem with debugging in both browsers but at the later stages, when [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found that when you start debugger from Flex using IE, in most of the cases the debugging session is stuck at the stage when Flash Player shows Loading/Initialising progress bar.<br />
I can&#8217;t recall this happening in the Firefox. I still have got intermittent problem with debugging in both browsers but at the later stages, when I load and initialise dynamically SWFs and loading/screen update is stuck.</p>
<p>To overcome this I used to a trick: right-click to get into the Flash Player menu -&gt;  click &#8220;Play&#8221; to  shove the debugging session. Sometimes it worked, sometimes it was crashing in the guts of the SystemManager. So I had to restart the whole thing all over again.</p>
<p>It is appeared that the culprit for this freezing is an Anti-Phishing filter.<br />
As soon as added my sites to the Trusted domain and in the IE settings disabled the anti-phishing filter it immediately stopped doing this nasty thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/08/02/flex-debugging-session-is-stuck-at-the-loading-stageie-only/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/08/02/flex-debugging-session-is-stuck-at-the-loading-stageie-only/</feedburner:origLink></item>
		<item>
		<title>svn: This client is too old to work with working copy; please get a newer Subversion client</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/RxY8MJ5xwo0/</link>
		<comments>http://mitek.id.au/blog/2008/07/11/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 17:37:10 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=22</guid>
		<description><![CDATA[I&#8217;ve bumped into this problem again - Subclipse was refusing to do anything (Share the project, update, commit, etc) with the source files.
It is appeared that the culprit was a Tortoise SVN - it is already built on subversion 1.5, while Subclipse is using 1.4.x.
The problem appears everytime when you do anything using newer client, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve bumped into this problem again - Subclipse was refusing to do anything (Share the project, update, commit, etc) with the source files.</p>
<p>It is appeared that the culprit was a Tortoise SVN - it is already built on subversion 1.5, while Subclipse is using 1.4.x.</p>
<p>The problem appears everytime when you do anything using newer client, like Tortoise SVN.  Newer client  leaves a different footprint, so Subclipse is getting upset with that fact.</p>
<p>To overcome the problem I&#8217;ve added subversione client into the Cygwin port - it is still some relatively old version (1.4.6-3). Then I checked out the project via cygwin version of svn.</p>
<p>It also helps when only a part of the source tree is damaged by a newer client, so you can simply overwrite these bits from an tree checked out using older version.  Just be sure to copy modified files to some safe location first.</p>
<p><em>UPD  The final solution is to upgdade to Subclipse &gt;=1.4.2 as it is using Subversion 1.5.x. The problem will be completely fixed.</p>
<p>To do this you have to simply add new remote site in Eclipse:<br />
    Name: Subclipse 1.4.x (Eclipse 3.2+)<br />
    URL:  http://subclipse.tigris.org/update_1.4.x</p>
<p>and remove the old one which refers to Subclipse 1.2.x.</p>
<p>The full installation instructions could be found here:<br />
http://subclipse.tigris.org/install.html<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/07/11/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/07/11/svn-this-client-is-too-old-to-work-with-working-copy-please-get-a-newer-subversion-client/</feedburner:origLink></item>
		<item>
		<title>“She’ll be right!”</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/fHXjZiGmsBU/</link>
		<comments>http://mitek.id.au/blog/2008/06/11/shell-be-right/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 04:41:55 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=21</guid>
		<description><![CDATA[Just after I wrote a previous post I realised that when Adobe is committed to bug fixing it does not bring much excitement as well.
My first bug submitted to Adobe was that one: the last comment on the page
Guess what happened in the next Flex2 hotfix? This bug was fixed. In the shortest period of [...]]]></description>
			<content:encoded><![CDATA[<p>Just after I wrote a previous post I realised that when Adobe is committed to bug fixing it does not bring much excitement as well.</p>
<p>My first bug submitted to Adobe was that one: <a href="http://livedocs.adobe.com/flex/2/langref/mx/controls/listClasses/ListBase.html">the last comment on the page</a></p>
<p>Guess what happened in the next Flex2 hotfix? This bug was fixed. In the shortest period of time.<br />
Was it mentioned in the Release Notes?  No, it wasn&#8217;t.<br />
As the result my app started to crash on List selection as if you process selected cells you have to rely  on the order of indices.</p>
<p>ComboBox selection behavior was fixed in Flex3. Perfect!<br />
Was it mentioned in the Release Notes? Nope. Crash, crash and one more crash!<br />
Who cares?</p>
<p>Do you need to mention <strong>everything </strong> you fix in the Release Notes?<br />
No. She&#8217;ll be right!</p>
<p>PS This is how losers do - they put every bug fixed in the <a href="http://www.php.net/ChangeLog-5.php">Release Notes</a></p>
<p>This is so boring to read! It is much better to read some overexcited evangelist&#8217;s diary about new cool features.</p>
<p>[UPD] Looks like this thing <a href="http://tech.groups.yahoo.com/group/flexcoders/message/122492">bothers </a>some other people as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/11/shell-be-right/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/11/shell-be-right/</feedburner:origLink></item>
		<item>
		<title>Security.loadPolicy() doesn’t support error recovery</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/-Ls9dEXItEU/</link>
		<comments>http://mitek.id.au/blog/2008/06/11/securityloadpolicy-does-not-support-error-recovery/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 04:35:58 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Flash Player]]></category>

		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=20</guid>
		<description><![CDATA[Flash Player does not support error recovery when it comes to loading policy file.
If for some reason socket policy server does not respond on the first call of Security.loadPolicy(url) there is no way to recover from this situation. All subsequent call to Security.loadPolicy() will be in vain.
I&#8217;ve submitted this bug in January 2008 and after [...]]]></description>
			<content:encoded><![CDATA[<p>Flash Player does not support error recovery when it comes to loading policy file.<br />
If for some reason socket policy server does not respond on the first call of Security.loadPolicy(url) there is no way to recover from this situation. All subsequent call to Security.loadPolicy() will be in vain.</p>
<p>I&#8217;ve submitted this bug in January 2008 and after 2 FlashPlayer releases there is no sign of a progress on this issue. FP 10 beta does not show any signs of the addressed problem either.</p>
<p>https://bugs.adobe.com/jira/browse/FP-67<br />
https://bugs.adobe.com/jira/browse/SDK-14483</p>
<p>Adobe&#8217;s attitude is well described by <a href="http://flexpearls.blogspot.com/2008/04/software-patches-goodbadugly.html">Screenivas</a></p>
<blockquote><p>Version 1.0 release : We are releasing a great product which would help our users in a great way by boosting their productivity. We would fix all serious bugs soon.</p>
<p>Customer: Great. Let me use it.</p>
<p>Version 2.0 release : We have lot of new features for you. In this release we have addressed all serious bugs (read it as bugs reported by great partners and volume customers) in the previous release.</p>
<p>Customer: But what about other serious bugs faced by me?</p>
<p>Company: We would fix all bugs soon.</p>
<p>Customer: They are only fixing bugs for the new features and few more bugs from volume customers.</p>
<p>Version 3.0 release : We have lot of new features. We have revelutionized the workflow. We have rewritten many parts of the code to boost performance. etc&#8230; Of-course now we are open-source !</p>
<p>Customer: Now it is Open-source ? Great! But what about bugs which were in 1.0 release?</p>
<p>Company: Oh! our customers have lived with these bugs for more than 2 years, now they have almost stopped complaining&#8230;..they can live with it! If they complain more, let us ask them to upgrade to the new version and follow a new workflow/API for the same feature which we have introduced. And anyway we are open-source let them grab the source and fix the bug themselves. We can&#8217;t spend our precious development time over fixing those old bugs.</p>
<p>Customer: Where I can find a developer and time to study this piece of open-source product and fix bugs for me? &#8230;?&#8230;.?</p></blockquote>
<p>There are 6385 unresolved or deferred bugs in the Flex bugs database. And they are now actively working on Flex4. This is so great! I could not wait for another version for Flex - this so exciting!</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/11/securityloadpolicy-does-not-support-error-recovery/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/11/securityloadpolicy-does-not-support-error-recovery/</feedburner:origLink></item>
		<item>
		<title>Date &amp; daylight savings</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/kCEyEa3ywOs/</link>
		<comments>http://mitek.id.au/blog/2008/06/11/date-daylight-savings/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 15:48:50 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=17</guid>
		<description><![CDATA[Date class has a bug related to the daylight savings.
If you want to change the date using number of seconds it will cause a problem going over the dates when daylight savings change.
E.g.

private var mydate:Date = new Date(2008, 3, 4, 0, 0, 0, 0);


mydate = new Date (mydate.getTime() + 1000 * 60 * 60 * [...]]]></description>
			<content:encoded><![CDATA[<p>Date class has a bug related to the daylight savings.</p>
<p>If you want to change the date using number of seconds it will cause a problem going over the dates when daylight savings change.</p>
<p>E.g.</p>
<pre>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">private var mydate:Date = new Date(2008, 3, 4, 0, 0, 0, 0);</div></div>
</pre>
<pre>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mydate = new Date (mydate.getTime() + 1000 * 60 * 60 * 24)</div></div>
</pre>
<pre>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mydate = new Date(mydate);</div></div>
</pre>
<p>If it goes over the date when daylight savings is changed, instead of adding 24 hours it will add 23 or 25 hours (depending on the time of the year  - summer or winter)</p>
<p>So, to do perform Date manipulation correctly you have to use date field, i.e.:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mydate.date +=1;</div></div>
<p>This method correctly handles the daylight savings and it will keep initial 00:00:00 time.</p>
<p>PS <a href="https://bugs.adobe.com/jira/browse/SDK-14983">https://bugs.adobe.com/jira/browse/SDK-14983</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/11/date-daylight-savings/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/11/date-daylight-savings/</feedburner:origLink></item>
		<item>
		<title>unselect in ComboBox</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/meH-JMdKjH8/</link>
		<comments>http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 13:32:21 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=13</guid>
		<description><![CDATA[If you need to unselect value in the ComboBox control, setting the
selectedIndex = -1
is not enough, you have to set
prompt = &#34;something&#34;
, otherwise it selects the first element. Despite
selectedIndex = -1
. Weird&#8230;
]]></description>
			<content:encoded><![CDATA[<p>If you need to unselect value in the ComboBox control, setting the</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">selectedIndex = -1</div></div>
<p>is not enough, you have to set</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">prompt = &quot;something&quot;</div></div>
<p>, otherwise it selects the first element. Despite</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:435px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">selectedIndex = -1</div></div>
<p>. Weird&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/</feedburner:origLink></item>
		<item>
		<title>Create php_error.log</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/glHohyzCpTg/</link>
		<comments>http://mitek.id.au/blog/2008/06/09/create-php_errorlog/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 06:54:39 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=12</guid>
		<description><![CDATA[I have bumped into the problem with PHP5 &#38; Apache 2.2 (not sure about other versions) - PHP does not bother itself with creation of the error log file. If you want to log errors, create the file first with the appropriate permissions.
]]></description>
			<content:encoded><![CDATA[<p>I have bumped into the problem with PHP5 &amp; Apache 2.2 (not sure about other versions) - PHP does not bother itself with creation of the error log file. If you want to log errors, create the file first with the appropriate permissions.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/09/create-php_errorlog/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/09/create-php_errorlog/</feedburner:origLink></item>
		<item>
		<title>Up we go!</title>
		<link>http://feedproxy.google.com/~r/WhingingPom/~3/BvsaM0ym4bs/</link>
		<comments>http://mitek.id.au/blog/2008/06/09/up-we-go/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 06:22:30 +0000</pubDate>
		<dc:creator>mitek</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mitek.id.au/blog/?p=10</guid>
		<description><![CDATA[I&#8217;ve been steering away from having any blogs/diaries/livejournals for quite a while. But at some point I realised that times have changed and in the modern world a man without a blog is like a dog without wings.
I&#8217;ll keep this blog mostly for whinging on Flex, Adobe and other stuff I am currently working with.
Also, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been steering away from having any blogs/diaries/livejournals for quite a while. But at some point I realised that times have changed and in the modern world a man without a blog is like a dog without wings.</p>
<p>I&#8217;ll keep this blog mostly for whinging on Flex, Adobe and other stuff I am currently working with.</p>
<p>Also, it is good place to keep some technical notes &amp; tips.</p>
<p>PS Technically speaking I am not a <a href="http://www.urbandictionary.com/define.php?term=Whinging+Pom">Pom</a> but after 9 years  in Australia I began to understand the roots of this phenomenon.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://mitek.id.au/blog/2008/06/09/up-we-go/feed/</wfw:commentRss>
		<feedburner:origLink>http://mitek.id.au/blog/2008/06/09/up-we-go/</feedburner:origLink></item>
	</channel>
</rss>
