<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>oae&#039;s Blog</title>
	<atom:link href="http://oae9.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://oae9.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Fri, 02 Sep 2011 07:26:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='oae9.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>oae&#039;s Blog</title>
		<link>http://oae9.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://oae9.wordpress.com/osd.xml" title="oae&#039;s Blog" />
	<atom:link rel='hub' href='http://oae9.wordpress.com/?pushpress=hub'/>
		<item>
		<title>android: workaround for slow &#8216;building workspace&#8217; problem in eclipse</title>
		<link>http://oae9.wordpress.com/2011/03/22/android-workaround-for-slow-building-workspace-problem-in-eclipse/</link>
		<comments>http://oae9.wordpress.com/2011/03/22/android-workaround-for-slow-building-workspace-problem-in-eclipse/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 12:46:54 +0000</pubDate>
		<dc:creator>oae9</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://oae9.wordpress.com/?p=93</guid>
		<description><![CDATA[While developing for android on eclipse 3.6 i had the problem that each time i saved a file, eclipse blocked me several seconds with &#8216;building workspace&#8230;&#8217;. Similar to these: stackoverflow &#8211; android-compilation-is-slow-using-eclipse stackoverflow &#8211; android-eclipse-workspace-takes-a-long-time-to-build groups.google &#8211; android-developers/thread/a16202975510de39 The best workaround i found for me: disable Android Package Builder (right-click on project#Properties#Builders) use ant build [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oae9.wordpress.com&amp;blog=15684322&amp;post=93&amp;subd=oae9&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While developing for android on eclipse 3.6 i had the problem that each time i saved a file, eclipse blocked me several seconds with &#8216;building workspace&#8230;&#8217;. Similar to these:</p>
<p><a href="http://stackoverflow.com/questions/2883635/android-compilation-is-slow-using-eclipse">stackoverflow &#8211; android-compilation-is-slow-using-eclipse</a><br />
<a href="http://stackoverflow.com/questions/4596445/android-eclipse-workspace-takes-a-long-time-to-build">stackoverflow &#8211; android-eclipse-workspace-takes-a-long-time-to-build</a><br />
<a href="http://groups.google.com/group/android-developers/browse_thread/thread/a16202975510de39">groups.google &#8211; android-developers/thread/a16202975510de39</a></p>
<p><br class="spacer_" /></p>
<p>The best workaround i found for me:</p>
<ul>
<li>disable <em>Android Package Builder</em> (right-click on project#Properties#Builders)</li>
<li>use ant build to deploy on emulator</li>
</ul>
<p>This way i can work (as) fast (as usual) with eclipse, everything compiles and gets generated, but once i want the app on the emulator, i execute &#8216;<code>ant install</code>&#8216; from console.</p>
<p>Setting up the ant build is quite easy, see <a href="http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html">using-ant-to-automate-building-android</a> for details.<br />
In short you have to simply execute &#8216;<code>android update project --path .</code>&#8216; which generates your build.xml.</p>
<p><br class="spacer_" /></p>
<p><strong>Note:</strong> If you have <strong>3rd party jars</strong> put them in &#8216;libs&#8217; folder, that way ant is aware of them.</p>
<p><strong>Note:</strong> You also can build a <strong>signed apk</strong> with &#8216;<code>ant release</code>&#8216;. Add therefor a build.properties with such a keystore setup:</p>
<hr />
<code>key.store=/Users/jz/.android/debug.keystore<br />
key.alias=androiddebugkey<br />
key.store.password=android<br />
key.alias.password=android</code></p>
<hr />
<p><br class="spacer_" /></p>
<p>PS: i also stumbled into the &#8216;external folder&#8217; synchronization problem. Closing all android projects and reopening again helped!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oae9.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oae9.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oae9.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oae9.wordpress.com&amp;blog=15684322&amp;post=93&amp;subd=oae9&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oae9.wordpress.com/2011/03/22/android-workaround-for-slow-building-workspace-problem-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3779e4ae608160c85b4bcacb8d3e5c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">oae9</media:title>
		</media:content>
	</item>
		<item>
		<title>Notify me when the script is done</title>
		<link>http://oae9.wordpress.com/2010/09/26/notify-me-when-the-script-is-done/</link>
		<comments>http://oae9.wordpress.com/2010/09/26/notify-me-when-the-script-is-done/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 12:43:06 +0000</pubDate>
		<dc:creator>oae9</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://oae9.wordpress.com/?p=4</guid>
		<description><![CDATA[So here is a notification technique i assembled for my environment. Its based on mac, iterm and growl but it should be applyable to other unix environments as well. It simply fires a visual or audi-visual notification for every command which takes more then 10 seconds to complete when it is comple.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oae9.wordpress.com&amp;blog=15684322&amp;post=4&amp;subd=oae9&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you know <em>the following situation</em> ?<br />
You&#8217;ve done some work and, before commiting, you switch to the shell in order to start the testsuite which usually runs a couple of minutes (blessed are those projects where it is not hours).<br />
Now you got different choices what to do in the meantime. Sometimes i find me reading news and either completely forget about the running tests or i switch continoulsy back and forth between the browser and the shell. Both can be annoying, especially if you read news for 10 minutes and then find your testsuite failed after 10 seconds. What can help ? Proper Notification!</p>
<p>So here is a notification technique i assembled for my environment. Its based on mac, iterm and growl but it should be applyable to other unix environments as well. It simply fires a visual or audi-visual notification for every command which takes more then 10 seconds to complete when it is complete. </p>
<p></p>
<h3>Setup Growl</h3>
<p>Get <a href="http://growl.info/">Growl</a> and <a href="http://iterm.sourceforge.net/">ITerm</a>, if you havn&#8217;t yet. Growl its an notification system which integrates with all kind of applications like Mail or Skype. Once you&#8217;ve installed growl, you can configure it through the growl preference pane in <em>System Preferences</em>. Enable general ITerm notifications and make sure the specialized iterm notification &#8216;Customized Message&#8217; is enabled as well. You might want to add a sound to this notification as well.<br />
(There are bunch of standard notifications for iterm but i have found none of these working very well for the described purpose, so i found me rather disabling most of them.)</p>
<p></p>
<h3>Setup Bash</h3>
<p>You can fire growl notifications right from the bash to growl (see <a href="http://damonparker.org/blog/2006/11/13/iterm-and-growl/">this blog post</a>). To easify this add the following line to your <em>.bash_profile</em>:</p>
<pre class="brush: bash;">
growl() { echo -e $'\e]9;'${1}'07' ; return  ; }
</pre>
<p>Now you can fire notifications from iterm simply by typing:
<pre>$growl "hello world"</pre>
<p></p>
<p>
The only missing logic can be crafted in two lines of the .bash_profile as well.<br />
Set a <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_02.html">trap</a> which sets the startTime for a command once you execute one:</p>
<pre class="brush: bash;">
trap 'if [ ! -n &quot;$initTrap&quot; ]; then startTime=`date +%s`; commandName=${BASH_COMMAND}; fi; initTrap=&quot;true&quot;' DEBUG
</pre>
<p>And set a <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html">prompt-command</a> which will be executed once the executed command returns.</p>
<pre class="brush: bash;">
export PROMPT_COMMAND='if [ $? == 0 ];then exitCode='OK'; else exitCode='ERROR'; fi;now=`date +%s`; duration=`expr $now - $startTime`; startTime=$now; echo &quot;took $duration sec, $exitCode&quot;;if [ $duration -gt 10 ]; then dir=`pwd`; growl &quot;\n ${commandName} \ntook $duration sec \n $exitCode&quot;;fi; unset initTrap'
</pre>
<p>With these settings every command which takes longer then 10 seconds fires of an growl notification which may include a sound. You can adjust those 10 seconds however you want, practically i found them working very well!
</p>
<p></p>
<hr />
BTW when completing this blog post i found a  <a href="http://hints.macworld.com/article.php?story=20071009124425468">similar one</a>, with even the same kind of introduction, funny&#8230; Question: why did i find that now ? Weeks after i put the above solution together with sweat on my face ? )</p>
<p></p>
<div>And this is how it could look like:</div>
<p><a class="”thickbox”" href="http://oae9.files.wordpress.com/2010/09/iterm-growl.png"><img src="http://oae9.files.wordpress.com/2010/09/iterm-growl.png?w=150&#038;h=72" alt="" title="iterm-growl" width="150" height="72" class="alignright size-thumbnail wp-image-71" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oae9.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oae9.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oae9.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oae9.wordpress.com&amp;blog=15684322&amp;post=4&amp;subd=oae9&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oae9.wordpress.com/2010/09/26/notify-me-when-the-script-is-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3779e4ae608160c85b4bcacb8d3e5c39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">oae9</media:title>
		</media:content>

		<media:content url="http://oae9.files.wordpress.com/2010/09/iterm-growl.png?w=150" medium="image">
			<media:title type="html">iterm-growl</media:title>
		</media:content>
	</item>
	</channel>
</rss>
