<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Facing new challenges everyday</title>
	<atom:link href="http://faces.eti.br/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://faces.eti.br</link>
	<description>This site talks about the many challenges on computer programming.</description>
	<lastBuildDate>Tue, 24 Apr 2012 11:08:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on How to add a ViewDeck into a StoryBoard scene by Darius</title>
		<link>http://faces.eti.br/2012/04/03/how-to-add-a-viewdeck-into-a-storyboard-scene/comment-page-1/#comment-25537</link>
		<dc:creator>Darius</dc:creator>
		<pubDate>Tue, 24 Apr 2012 11:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1205#comment-25537</guid>
		<description>Done it by my self:
http://dl.dropbox.com/u/107952/inferisStoryboardExample.zip</description>
		<content:encoded><![CDATA[<p>Done it by my self:<br />
<a href="http://dl.dropbox.com/u/107952/inferisStoryboardExample.zip" rel="nofollow">http://dl.dropbox.com/u/107952/inferisStoryboardExample.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to add a ViewDeck into a StoryBoard scene by Darius</title>
		<link>http://faces.eti.br/2012/04/03/how-to-add-a-viewdeck-into-a-storyboard-scene/comment-page-1/#comment-25536</link>
		<dc:creator>Darius</dc:creator>
		<pubDate>Mon, 23 Apr 2012 21:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1205#comment-25536</guid>
		<description>Could you serve little demo somewhere? :)</description>
		<content:encoded><![CDATA[<p>Could you serve little demo somewhere? <img src='http://faces.eti.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello World with Qtopia (Part 5 &#8211; Building, Installing and Running Applications) by Twitter Follow Me</title>
		<link>http://faces.eti.br/2008/08/16/hello-world-with-qtopia-part-5-building-installing-and-running-applications/comment-page-1/#comment-25535</link>
		<dc:creator>Twitter Follow Me</dc:creator>
		<pubDate>Thu, 12 Apr 2012 00:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=141#comment-25535</guid>
		<description>Its remarkable for me to have a web page, which is useful in 
support of my know-how. thanks admin</description>
		<content:encoded><![CDATA[<p>Its remarkable for me to have a web page, which is useful in<br />
support of my know-how. thanks admin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Information Retrieval and Search solutions for Java platform by html5 media player</title>
		<link>http://faces.eti.br/2008/04/03/search-solutions-for-java-platform/comment-page-1/#comment-25533</link>
		<dc:creator>html5 media player</dc:creator>
		<pubDate>Tue, 03 Apr 2012 10:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/2008/04/03/search-solutions-for-java-platform/#comment-25533</guid>
		<description>Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android ResizeAnimation with a starting height by Sean Wallis</title>
		<link>http://faces.eti.br/2011/12/13/android-resizeanimation-with-a-starting-height/comment-page-1/#comment-25532</link>
		<dc:creator>Sean Wallis</dc:creator>
		<pubDate>Sun, 19 Feb 2012 10:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1177#comment-25532</guid>
		<description>A more elegant algorithm is to get the start height from the view and the height from start+diff*interpolated time, where diff = end height - start height. 

Leaving out animation of adjacent elements this gives us:

[cc lang=&quot;java&quot;]
public class ResizeAnimation extends Animation 
{
    View view;
    int startH;
    int endH;
    int diff;

    public ResizeAnimation(View v, int newh)
    {
        view = v;
        startH = v.getLayoutParams().height;
        endH = newh;
        diff = endH - startH;
    }
        
    @Override
    protected void applyTransformation(float interpolatedTime, Transformation t) 
    {
    	view.getLayoutParams().height = startH + (int)(diff*interpolatedTime);
        view.requestLayout();
    }

    @Override
    public void initialize(int width, int height, int parentWidth, int parentHeight) 
    {
        super.initialize(width, height, parentWidth, parentHeight);
    }

    @Override
    public boolean willChangeBounds() 
    {
        return true;
    }
}
[/cc]

However my final observation is that resizing is not as slick as hardware animations like TranslateAnimation. So if you are using this to reveal an element you are likely to get a better result with TranslateAnimation, particularly on lesser devices.</description>
		<content:encoded><![CDATA[<p>A more elegant algorithm is to get the start height from the view and the height from start+diff*interpolated time, where diff = end height &#8211; start height. </p>
<p>Leaving out animation of adjacent elements this gives us:</p>
<div class="codecolorer-container java mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ResizeAnimation <span style="color: #000000; font-weight: bold;">extends</span> Animation <br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aview+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">View</span></a> view<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> startH<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> endH<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> diff<span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> ResizeAnimation<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aview+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">View</span></a> v, <span style="color: #000066; font-weight: bold;">int</span> newh<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; view <span style="color: #339933;">=</span> v<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; startH <span style="color: #339933;">=</span> v.<span style="color: #006633;">getLayoutParams</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">height</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; endH <span style="color: #339933;">=</span> newh<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; diff <span style="color: #339933;">=</span> endH <span style="color: #339933;">-</span> startH<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> applyTransformation<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">float</span> interpolatedTime, Transformation t<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; view.<span style="color: #006633;">getLayoutParams</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">height</span> <span style="color: #339933;">=</span> startH <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>diff<span style="color: #339933;">*</span>interpolatedTime<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; view.<span style="color: #006633;">requestLayout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> initialize<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> width, <span style="color: #000066; font-weight: bold;">int</span> height, <span style="color: #000066; font-weight: bold;">int</span> parentWidth, <span style="color: #000066; font-weight: bold;">int</span> parentHeight<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">initialize</span><span style="color: #009900;">&#40;</span>width, height, parentWidth, parentHeight<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> willChangeBounds<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>However my final observation is that resizing is not as slick as hardware animations like TranslateAnimation. So if you are using this to reveal an element you are likely to get a better result with TranslateAnimation, particularly on lesser devices.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on bodyguard &#8211; Facelets EL functions for Spring Security by Rafael Ponte</title>
		<link>http://faces.eti.br/2008/11/09/bodyguard-facelets-el-functions-for-spring-security/comment-page-1/#comment-25529</link>
		<dc:creator>Rafael Ponte</dc:creator>
		<pubDate>Fri, 18 Nov 2011 17:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=289#comment-25529</guid>
		<description>Hi Rogerio,

For necessity of a project i had to adapt the bodyguard project to work with Spring Security 3.x. You may see the new classe at my Gist, https://gist.github.com/1377051</description>
		<content:encoded><![CDATA[<p>Hi Rogerio,</p>
<p>For necessity of a project i had to adapt the bodyguard project to work with Spring Security 3.x. You may see the new classe at my Gist, <a href="https://gist.github.com/1377051" rel="nofollow">https://gist.github.com/1377051</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding Mask to UITextField by Sarah</title>
		<link>http://faces.eti.br/2010/02/19/adding-mask-to-uitextfield/comment-page-1/#comment-25528</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1013#comment-25528</guid>
		<description>Thanks for great solution, I needed to use a different mask like the following:
 mask=@&quot;9 (999) 999 99 99&quot; and I was wondering about the changes I need to make to the code.
thanks again,</description>
		<content:encoded><![CDATA[<p>Thanks for great solution, I needed to use a different mask like the following:<br />
 mask=@&#8221;9 (999) 999 99 99&#8243; and I was wondering about the changes I need to make to the code.<br />
thanks again,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding Mask to UITextField by Boris</title>
		<link>http://faces.eti.br/2010/02/19/adding-mask-to-uitextfield/comment-page-1/#comment-25527</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Tue, 01 Nov 2011 19:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1013#comment-25527</guid>
		<description>First of all thanks a lot for this snippet. I ill add a little functionality to work with spaces :

1 - add a flag to the begining of :

- (void)formatInput:(UITextField*)aTextField string:(NSString*)aString range:(NSRange)aRange

ej:
int flag =0;

2.

        if (! [regextest evaluateWithObject:_mask]) {
          set the flag to 1
        flag = 1;

3.
 in the
        if (aRange.location + 1 &lt; [self.mask length]) {

 set the _mask to
   _mask =  (temp ==1) ? [self.mask substringWithRange:NSMakeRange(aRange.location+1, 1)]:[self.mask substringWithRange:NSMakeRange(aRange.location-1, 1)];

First of all thanks a lot for this snippet. I ill add a little functionality to work with spaces :

1 - add a flag to the begining of :

- (void)formatInput:(UITextField*)aTextField string:(NSString*)aString range:(NSRange)aRange

ej:
int flag =0;

2.

        if (! [regextest evaluateWithObject:_mask]) {
          set the flag to 1
        flag = 1;

3.
 in the
        if (aRange.location + 1 &lt; [self.mask length]) {

 set the _mask to
   _mask =  (temp ==1) ? [self.mask substringWithRange:NSMakeRange(aRange.location+1, 1)]:[self.mask substringWithRange:NSMakeRange(aRange.location-1, 1)];

And voila!
works great

And voila!
works great</description>
		<content:encoded><![CDATA[<p>First of all thanks a lot for this snippet. I ill add a little functionality to work with spaces :</p>
<p>1 &#8211; add a flag to the begining of :</p>
<p>- (void)formatInput:(UITextField*)aTextField string:(NSString*)aString range:(NSRange)aRange</p>
<p>ej:<br />
int flag =0;</p>
<p>2.</p>
<p>        if (! [regextest evaluateWithObject:_mask]) {<br />
          set the flag to 1<br />
        flag = 1;</p>
<p>3.<br />
 in the<br />
        if (aRange.location + 1 &lt; [self.mask length]) {</p>
<p> set the _mask to<br />
   _mask =  (temp ==1) ? [self.mask substringWithRange:NSMakeRange(aRange.location+1, 1)]:[self.mask substringWithRange:NSMakeRange(aRange.location-1, 1)];</p>
<p>First of all thanks a lot for this snippet. I ill add a little functionality to work with spaces :</p>
<p>1 &#8211; add a flag to the begining of :</p>
<p>- (void)formatInput:(UITextField*)aTextField string:(NSString*)aString range:(NSRange)aRange</p>
<p>ej:<br />
int flag =0;</p>
<p>2.</p>
<p>        if (! [regextest evaluateWithObject:_mask]) {<br />
          set the flag to 1<br />
        flag = 1;</p>
<p>3.<br />
 in the<br />
        if (aRange.location + 1 &lt; [self.mask length]) {</p>
<p> set the _mask to<br />
   _mask =  (temp ==1) ? [self.mask substringWithRange:NSMakeRange(aRange.location+1, 1)]:[self.mask substringWithRange:NSMakeRange(aRange.location-1, 1)];</p>
<p>And voila!<br />
works great</p>
<p>And voila!<br />
works great</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unrar4iOS &#8211; A port of unrar to iOS platform by Martin</title>
		<link>http://faces.eti.br/2010/11/15/unrar4ios-a-port-of-unrar-to-ios-platform/comment-page-1/#comment-25523</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 21 Sep 2011 22:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1097#comment-25523</guid>
		<description>I find a leak memory with the framework, is very importan because when extract a weight cbr all of these data keep in memory</description>
		<content:encoded><![CDATA[<p>I find a leak memory with the framework, is very importan because when extract a weight cbr all of these data keep in memory</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unrar4iOS &#8211; A port of unrar to iOS platform by rogerio</title>
		<link>http://faces.eti.br/2010/11/15/unrar4ios-a-port-of-unrar-to-ios-platform/comment-page-1/#comment-25509</link>
		<dc:creator>rogerio</dc:creator>
		<pubDate>Mon, 04 Jul 2011 02:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://faces.eti.br/?p=1097#comment-25509</guid>
		<description>I need help from you and the others developers to implement missing features, thanks!</description>
		<content:encoded><![CDATA[<p>I need help from you and the others developers to implement missing features, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

