<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for jcon</title><link>http://disqus.com/by/jcon/</link><description></description><atom:link href="http://disqus.com/jcon/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 25 Aug 2011 11:34:53 -0000</lastBuildDate><item><title>Re: newfoo: Performance Tuning Android Applications</title><link>http://newfoo.net/2009/04/18/performance-tuning-android-applications.html#comment-295171445</link><description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;The content ended up being so specific I couldn't make a suitable post about it.  Fortunately, someone asked me about this once -- here are more of the details:&lt;/p&gt;&lt;p&gt;In getView() we originally followed the efficient list view example (it looks as if it's moved here: &lt;a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html" rel="nofollow noopener" target="_blank" title="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html"&gt;http://developer.android.co...&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;The problem for us was that we were updating a lot of text every time getView() was being called. The way we worked around it was this way:&lt;/p&gt;&lt;p&gt;1.) I observed that we had a small number of items in the entire list: (never more than 24)&lt;br&gt;2.) the convertView argument (second argument of getView) was often forcing us to redraw a lot of text.  Even though we reduced the calls to inflator#inflate(), we still losing efficiency.&lt;/p&gt;&lt;p&gt;If you have a small number of rows (say less than 30), with complicated drawing operations, a similar approach might suit you.&lt;/p&gt;&lt;p&gt;To fix our problem, I introduced a second cache that cached the final bitmap displayed by the listView depending on what the row we were using (see below method called cacheFetch).  If cacheFetch failed, we fell back to the original logic used in efficient list views.  The "key" value used was the underlying data that was used for the row being drawn.&lt;/p&gt;&lt;p&gt;Unfortunately, formatting seems pretty bad on disqus commnts, so here's a short GIST outlining what the code looked like: &lt;a href="https://gist.github.com/1170947" rel="nofollow noopener" target="_blank" title="https://gist.github.com/1170947"&gt;https://gist.github.com/117...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Thu, 25 Aug 2011 11:34:53 -0000</pubDate></item><item><title>Re: newfoo</title><link>http://newfoo.net/2009/02/01/javafx-path-animation.html#comment-9129203</link><description>&lt;p&gt;Hi Warjan,&lt;/p&gt;&lt;p&gt;Thanks for letting me know.  What OS &amp;amp; JVM do you have installed?  I'd like&lt;br&gt;to see if I can figure it out on a similar setup here.  I'm about to upload&lt;br&gt;a more substantial JavaFX app and I want to make sure it works on everyone's&lt;br&gt;computer :)&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Jim&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Fri, 08 May 2009 10:57:30 -0000</pubDate></item><item><title>Re: newfoo: Google App Engine Will Change Java Web Development</title><link>http://newfoo.net/2009/04/08/google-app-engine-will-change-java-web-development.html#comment-8561166</link><description>&lt;p&gt;That's a good question Kaan.  There's an excellent JavaScript library called SyntaxHighlighter from Alex Gorbatchev that does all the hard work for me (&lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter)" rel="nofollow noopener" target="_blank" title="http://alexgorbatchev.com/wiki/SyntaxHighlighter)"&gt;http://alexgorbatchev.com/w...&lt;/a&gt;.  I was able to get it up and running very quickly using his excellent documentation here: &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Usage" rel="nofollow noopener" target="_blank" title="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Usage"&gt;http://alexgorbatchev.com/w...&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Tue, 21 Apr 2009 23:56:41 -0000</pubDate></item><item><title>Re: newfoo: Google App Engine Will Change Java Web Development</title><link>http://newfoo.net/2009/04/08/google-app-engine-will-change-java-web-development.html#comment-8054475</link><description>&lt;p&gt;Hi Mike, it's something I've been working on in my spare time. I was inspired by Jekyll (&lt;a href="http://github.com/mojombo/jekyll)" rel="nofollow noopener" target="_blank" title="http://github.com/mojombo/jekyll)"&gt;http://github.com/mojombo/j...&lt;/a&gt;, a Ruby-based static CMS.  Jekyll is really great, but I wanted to add some features.  I was discouraged by the Liquid template language, so I decided to cook up a static CMS tool using Python and Django's template system.   It's coming together nicely, so I'm going to open-source it after I get back from vacation in two weeks if you're interested.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Fri, 10 Apr 2009 10:47:48 -0000</pubDate></item><item><title>Re: newfoo: Google App Engine Will Change Java Web Development</title><link>http://newfoo.net/2009/04/08/google-app-engine-will-change-java-web-development.html#comment-8024777</link><description>&lt;p&gt;Thanks for the pointer.  I haven't ever heard of Click.  It's project goals sound pretty appealing.  What sort of sites have you been using it on?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Thu, 09 Apr 2009 22:46:00 -0000</pubDate></item><item><title>Re: newfoo: Google App Engine Will Change Java Web Development</title><link>http://newfoo.net/2009/04/08/google-app-engine-will-change-java-web-development.html#comment-8024733</link><description>&lt;p&gt;It's true competent Java developers can write apps quickly, once they've got a good framework in place.  There's nothing inherent to Java that makes it less productive than say something like Ruby on Rails or Django.  What I feel Java is lacking is a killer framework like those two.  If you consider the productivity gains you see in teams using Django though, there aren't any comparably popular Java web stacks.  It's true that we've had some emerging over the past few years -- Stripes, as you mentioned and Grails really seem to have some potential.  I believe app engine will only grow the user communities of these and other frameworks like them.  In the end it'll help increase Java as the choice for more startup sites.&lt;/p&gt;&lt;p&gt;I hadn't seen the restriction to only java.util.Logging.  Util Logging is on the white-list, but the GAE Eclipse plugin generates a &lt;a href="http://log4j.properties" rel="nofollow noopener" target="_blank" title="log4j.properties"&gt;log4j.properties&lt;/a&gt; in it's new project wizard.  From what I can tell the output in the local environment seems to work with Log4j.&lt;/p&gt;&lt;p&gt;By the way, I've been off my unfortunate struts habit for 6 years and I'll never go back!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Thu, 09 Apr 2009 22:43:38 -0000</pubDate></item><item><title>Re: newfoo: Google App Engine Will Change Java Web Development</title><link>http://newfoo.net/2009/04/08/google-app-engine-will-change-java-web-development.html#comment-8024355</link><description>&lt;p&gt;I agree totally Java makes great sense for sites like e-Bay because of all the reasons you mentioned.  I believe that app engine will begin make it a better choice for little blogging apps.  As it gets more adoption in projects like this, we'll see more innovation in simpler web stacks.  We should also see more adoption of the frameworks like Grails.  In the end, it should mean that Java will not only be a good choice for the ridiculously massive sites like e-Bay, but emerging start-up sites too.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Thu, 09 Apr 2009 22:23:56 -0000</pubDate></item><item><title>Re: newfoo</title><link>http://newfoo.net/2009/02/01/javafx-path-animation.html#comment-6935492</link><description>&lt;p&gt;Hi Matt -- Thanks!  The image has a link to the real animation if you're interested.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Connell</dc:creator><pubDate>Thu, 05 Mar 2009 22:25:29 -0000</pubDate></item></channel></rss>