<?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>Confessions of a Struggling Researcher</title>
	<atom:link href="http://confessionsofastrugglingresearcher.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://confessionsofastrugglingresearcher.wordpress.com</link>
	<description>Come Learn with Me! :-)</description>
	<lastBuildDate>Thu, 03 Mar 2011 14:23:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='confessionsofastrugglingresearcher.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Confessions of a Struggling Researcher</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://confessionsofastrugglingresearcher.wordpress.com/osd.xml" title="Confessions of a Struggling Researcher" />
	<atom:link rel='hub' href='http://confessionsofastrugglingresearcher.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Android App Installation Problem: INSTALL_FAILED_UPDATE_INCOMPATIBLE</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/android-app-installation-problem-install_failed_update_incompatible/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/android-app-installation-problem-install_failed_update_incompatible/#comments</comments>
		<pubDate>Sun, 09 May 2010 18:58:31 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[INSTALL_FAILED_UPDATE_INCOMPATIBLE]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=402</guid>
		<description><![CDATA[Problem: When trying to install an Android application (APK) using adb -install, the message &#8220;INSTALL_FAILED_UPDATE_INCOMPATIBLE&#8221; appears Possible Solution: Wipe emulator with the following command emulator -wipe-data -avd TheNameOfYourAVD<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=402&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong>When trying to install an Android application (APK) using adb -install, the message &#8220;INSTALL_FAILED_UPDATE_INCOMPATIBLE&#8221; appears</p>
<p><strong>Possible Solution: </strong>Wipe emulator with the following command</p>
<pre style="padding-left:30px;">emulator -wipe-data -avd TheNameOfYourAVD</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=402&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/android-app-installation-problem-install_failed_update_incompatible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Debug.keystore Expired</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/debug-keystore-expired/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/debug-keystore-expired/#comments</comments>
		<pubDate>Sun, 09 May 2010 18:53:57 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[debug.keystore]]></category>
		<category><![CDATA[expired]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=399</guid>
		<description><![CDATA[Problem: Android doesn&#8217;t compile in debug mode anymore (Using command: ant debug -f build.xml) Probable Cause: Expired Debug certificate Solution: Delete the debug.keystore file located at Mac /Users/MyName/.android Windows C:\Documents and Settings\&#60;user&#62;\.android Reference: http://developer.android.com/guide/appendix/faq/troubleshooting.html#signingcalendar<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=399&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: <span style="font-weight:normal;">Android doesn&#8217;t compile in debug mode anymore (Using command: ant debug -f build.xml)</span></strong></p>
<p><strong>Probable Cause: <span style="font-weight:normal;">Expired Debug certificate</span></strong></p>
<div><strong>Solution: </strong>Delete the <span style="color:#ff0000;">debug.keystore</span> file located at</div>
<div style="padding-left:30px;">
<ul>
<li>Mac
<ul>
<li><span style="font-family:monospace, sans-serif;line-height:14px;color:#007000;">/Users/MyName/.android</span></li>
</ul>
</li>
<li>Windows
<ul>
<li><span style="font-family:monospace, sans-serif;line-height:14px;color:#007000;">C:\Documents and Settings\&lt;user&gt;\.android</span></li>
</ul>
</li>
</ul>
</div>
<div><strong>Reference:</strong></div>
<div>http://developer.android.com/guide/appendix/faq/troubleshooting.html#signingcalendar</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=399&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2010/05/09/debug-keystore-expired/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Passing and Checking Arguments in Shell Script</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2010/04/07/passing-and-checking-arguments-in-shell-script/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2010/04/07/passing-and-checking-arguments-in-shell-script/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 11:55:04 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Shell/Batch]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[checking]]></category>
		<category><![CDATA[passing]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=396</guid>
		<description><![CDATA[Here is an example shell script that checks the number of arguments: #!/bin/bash if[ $# -eq 1 ] echo You've entered one argument: $1 else echo Please enter one argument fi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=396&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is an example shell script that checks the number of arguments:</p>
<pre>#!/bin/bash
if[ $# -eq 1 ]
echo You've entered one argument: $1
else
echo Please enter one argument
fi</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=396&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2010/04/07/passing-and-checking-arguments-in-shell-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Let the thesis writing begin&#8230;</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/12/18/let-the-thesis-writing-begin/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/12/18/let-the-thesis-writing-begin/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 17:06:14 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Research Methods]]></category>
		<category><![CDATA[Thesis Writing]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[initial stages]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=391</guid>
		<description><![CDATA[&#8230; and hopefully end/finish it one day &#8230; This week, I have &#8220;formally&#8221; started writing my thesis. I&#8217;m trying to emphasize the &#8220;formally&#8221; here since I&#8217;ve been trying to start it like&#8230; I don&#8217;t know&#8230; n-weeks ago(?)&#8230; writing bits and pieces of junk that I don&#8217;t know if it will even be part of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=391&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230; and hopefully end/finish it one day <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> &#8230;</p>
<p>This week, I have &#8220;formally&#8221; started writing my thesis. I&#8217;m trying to emphasize the &#8220;formally&#8221; here since I&#8217;ve been trying to start it like&#8230; I don&#8217;t know&#8230; n-weeks ago(?)&#8230; writing bits and pieces of junk that I don&#8217;t know if it will even be part of the final paper later on, or will just be thrown out and rewritten entirely in the end.</p>
<p>I just discussed and &#8220;finalized&#8221; my outline last week with my adviser, that is why this week, I have tried to focus on trying to reorganize it and put it all together again. So far, I spent this week just trying to organize stuff that I have written/gathered before (old publications, notes, etc.), and trying to battle with latex to come up with a nice formatting for my thesis. If you&#8217;re not familiar with latex, it&#8217;s sort of a scripting language that you use to format your documents&#8230; you know, simple formatting that will take a second if you use NORMAL word processors, will take a hell-lot of time just to accomplish in latex. I think half of the time I&#8217;ve spent this week on my <em><strong>\emph{thesis writing}</strong></em> was just trying to figure out how to do simple formatting stuff in Latex! It&#8217;s a good excuse for procrastinating though&#8230; I can always tell myself&#8230;<strong><em> \quote{this is for my thesis}</em></strong>&#8230; and worry about the &#8220;ACTUAL&#8221; content of the thesis  later <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> .</p>
<p>I&#8217;m voicing my frustrations in my blog instead since the only living thing I&#8217;ve communicated in person so far for the past 5 days is my husband <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8230;  I&#8217;ve been living like a hermit (with a husband :-O) and is expecting to be one for the next N-months. Anyway, for those planning to write their thesis soon, just some hints and tips which I can offer for now&#8230; The next tips will come soon&#8230; when I&#8217;m still sane enough to blog by then&#8230;</p>
<p><strong>\begin{itemize}</strong></p>
<p style="padding-left:30px;"><strong>\item</strong> Make an outline (major chapters, possible subsections, a possible summary of contents, keywords, questions that you want to be answered at the end of the chapter)</p>
<p style="padding-left:30px;"><strong>\item</strong> Discuss your outline with your adviser&#8230; he/she might not like what you have so far, and may have valuable ideas that you need to incorporate in your thesis. After all, he/she is the one who should be pleased enough when reading your thesis (and possibly the only one who will be reading it anyway <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' />  hehehe).</p>
<p style="padding-left:30px;"><strong>\item</strong> Re-write your outline</p>
<p style="padding-left:30px;"><strong>\item </strong>Write an initial abstract. This will most likely change when you&#8217;re done with writing your first draft. Re-write it again after the first draft&#8230; then re-write after the second draft&#8230; and so on and so forth.</p>
<p style="padding-left:30px;"><strong>\item</strong> Write an introduction that contains: the motivation for your work (why the hell are you doing it?), the goals and contributions of your work (assuming you have one&#8230; hopefully you do&#8230; or else&#8230;), a summary of the chapters (hopefully, this is not the only part your reviewers will read&#8230;)</p>
<p style="padding-left:30px;"><strong>\item</strong> Re-write your outline again&#8230; this time, try to incorporate some of the stuff you have written so far to the chapters you have foreseen your thesis will contain. This may be old publications, notes and other ideas you have scribbled on a napkin while  eating at Mc Donalds.</p>
<p><strong>\end{itemize}</strong></p>
<p>Well&#8230; that&#8217;s all I can share for now&#8230;</p>
<p>Have a nice weekend everyone!</p>
<p>*by the way, the crazy scripts are just examples of latex commands</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=391&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/12/18/let-the-thesis-writing-begin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the PATH environment variable on Mac OSX</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/30/setting-environment-variables-on-max-osx/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/30/setting-environment-variables-on-max-osx/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:41:26 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[setting]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=382</guid>
		<description><![CDATA[export command export PATH = $PATH:[add new path here] by convention, environment variables are all uppercase values are COLON (:) separated this is only valid for a certain terminal session. To create a more permanent runtime configuration, follow the instruction on [this link] Examples (taken from reference): Variable Name Description Example PATH A list of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=382&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>export command</h2>
<blockquote><p><strong>export PATH = $PATH:[add new path here]</strong></p></blockquote>
<ul>
<li>by convention, environment variables are all uppercase</li>
<li>values are COLON (:) separated</li>
<li>this is only valid for a certain terminal session. To create a more permanent runtime configuration, follow the instruction on <a href="http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html">[this link]</a></li>
</ul>
<p><strong>Examples (taken from reference):</strong></p>
<table style="font-size:inherit;border-collapse:collapse;empty-cells:show;margin:1em 0 0 1px;" border="0" cellspacing="0" cellpadding="3">
<thead>
<tr>
<th>Variable Name</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>PATH</td>
<td>A list of colon-separated directories where the shell will look for executable files</td>
<td>/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin</td>
</tr>
<tr>
<td>CLASSPATH</td>
<td>A list of colon-separated directories and/or JAR files that contain Java class files that may be required in the <a title="Java Runtime Environment" href="http://developer.apple.com/java/">Java Runtime Environment</a>.</td>
<td>/Users/dave/FVL/Java/xerces.jar:<br />
/Users/dave/FVL/mckoi.jar</td>
</tr>
<tr>
<td>JAVA_HOME</td>
<td>The root directory of your Java installation.</td>
<td>/Library/Java/Home</td>
</tr>
<tr>
<td>PWD</td>
<td>Your current directory in the file system.</td>
<td>/Applications</td>
</tr>
<tr>
<td>USER</td>
<td>Your login name.</td>
<td>dave</td>
</tr>
</tbody>
</table>
<p><strong>Reference:</strong> http://macdevcenter.com/pub/a/mac/2004/02/24/bash.html?page=last</p>
<h2>Editing the /etc/paths file</h2>
<ul>
<li>go to the /etc/ directory</li>
<li>edit the <strong>paths </strong>file
<ul>
<li>sudo vi paths</li>
</ul>
</li>
</ul>
<h2>Adding path files to the /etc/paths.d directory</h2>
<ul>
<li>go to the /etc/paths.d directory</li>
<li>create a file (e.g. myExes)
<ul>
<li>sudo vi myExes</li>
</ul>
</li>
<li>edit file and add the directory path (e.g. /Developer/myExes)</li>
<li>save</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=382&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/30/setting-environment-variables-on-max-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>XSD Stuff</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/24/xsd-stuff/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/24/xsd-stuff/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 19:52:16 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[XSD]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=364</guid>
		<description><![CDATA[Substitution Group vs. Abstract Reference: http://docstore.mik.ua/orelly/xml/schema/ch12_01.htm How to Declare Elements with Attributes and Values Reference: http://www.learn-xml-schema-tutorial.com/Attributes.cfm Suppose we want the definition for the following: &#60;FirstName Full="false"&#62;Nat&#60;/FirstName&#62; The XSD schema is: &#60;xs:element name="FirstName"&#62; &#60;xs:complexType&#62; &#60;xs:simpleContent&#62; &#60;xs:extension base="xs:string"&#62; &#60;xs:attribute name="Full" type="xs:boolean"/&#62; &#60;/xs:extension&#62; &#60;/xs:simpleContent&#62; &#60;/xs:complexType&#62; &#60;/xs:element&#62; How to Reference Another XSD File from another XSD File Reference: http://www.w3schools.com/schema/el_include.asp [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=364&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Substitution Group vs. Abstract</h2>
<p>Reference: http://docstore.mik.ua/orelly/xml/schema/ch12_01.htm</p>
<h2>How to Declare Elements with Attributes and Values</h2>
<p>Reference: http://www.learn-xml-schema-tutorial.com/Attributes.cfm</p>
<p>Suppose we want the definition for the following:</p>
<pre>
<blockquote>
<pre><strong>
&lt;FirstName Full="false"&gt;Nat&lt;/FirstName&gt;</strong></pre>
</blockquote>
</pre>
<p>The XSD schema is:<strong><br />
</strong></p>
<pre>
<blockquote>
<pre> &lt;xs:element name="FirstName"&gt;
        &lt;xs:complexType&gt;<strong>
         &lt;xs:simpleContent&gt;
          &lt;xs:extension base="xs:string"&gt;
           &lt;xs:attribute name="Full" type="xs:boolean"/&gt;
          &lt;/xs:extension&gt;
         &lt;/xs:simpleContent&gt;</strong>
        &lt;/xs:complexType&gt;
       &lt;/xs:element&gt;</pre>
</blockquote>
</pre>
<h2><em> </em>How to Reference Another XSD File from another XSD File</h2>
<p>Reference: http://www.w3schools.com/schema/el_include.asp<br />
Example:</p>
<blockquote>
<pre>&lt;?xml version="1.0"?&gt;
 &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3schools.com/schema"&gt;<span style="color:#ff0000;"> </span>
<span style="color:#ff0000;">&lt;xs:include schemaLocation="http://www.w3schools.com/schema/customer.xsd"/&gt;
 &lt;xs:include schemaLocation="http://www.w3schools.com/schema/company.xsd"/&gt;</span></pre>
</blockquote>
<h2>How to extend Existing Types</h2>
<p>Reference: http://www.codeproject.com/KB/cpp/XSDTutorial_03.aspx<br />
Example:</p>
<blockquote>
<pre><span style="color:#ff0000;">&lt;xs:complexType name="UKAddressType"&gt;</span></pre>
<pre style="margin-top:0;"><span style="color:#ff0000;">    &lt;xs:complexContent&gt;</span>
        <span style="color:#ff0000;"><strong>&lt;xs:extension base="AddressType"&gt; </strong></span>
            &lt;xs:sequence&gt;
                &lt;xs:element name="County" type="xs:string"/&gt;
                &lt;xs:element name="Postcode" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
        &lt;/xs:extension&gt;
    &lt;/xs:complexContent&gt;
&lt;/xs:complexType&gt;

<span style="color:#ff0000;">&lt;xs:complexType name="USAddressType"&gt;
    &lt;xs:complexContent&gt;
        <strong>&lt;xs:extension base="AddressType"&gt; </strong></span>
            &lt;xs:sequence&gt;
                &lt;xs:element name="State" type="xs:string"/&gt;
                &lt;xs:element name="Zipcode" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
        &lt;/xs:extension&gt;
    &lt;/xs:complexContent&gt;
&lt;/xs:complexType&gt;</pre>
</blockquote>
<h2>How to do Restrictions</h2>
<p>Reference: http://www.w3schools.com/schema/schema_facets.asp</p>
<p>Example: Restrictions on Values</p>
<blockquote>
<pre> &lt;xs:minInclusive value="0"/&gt;
 &lt;xs:maxInclusive value="120"/&gt;&lt;xs:restriction base="xs:integer"&gt;
 &lt;/xs:restriction&gt;
&lt;xs:simpleType&gt;
 &lt;/xs:simpleType&gt;
&lt;xs:element name="age"&gt;
 &lt;/xs:element&gt;</pre>
</blockquote>
<h2>Derivation by Extension of Complex Types</h2>
<blockquote>
<pre>Use xsd:type</pre>
</blockquote>
<h2>Declaring Abstract Elements</h2>
<p>Reference: http://www.xfront.com/ElementHierarchy.html<br />
Example:</p>
<p>Create an abstract element, and then create elements that are substitutable for it.</p>
<blockquote>
<pre>&lt;xsd:element name="Publication" abstract="true"
             type="PublicationType"/&gt;

&lt;xsd:element name="Book" substitutionGroup="Publication"
             type="BookType"/&gt;
&lt;xsd:element name="Magazine" substitutionGroup="Publication"
             type="MagazineType"/&gt;
</pre>
</blockquote>
<p>where BookType and MagazineType both derive from PublicationType:</p>
<blockquote>
<pre>            PublicationType
              /         \
          BookType   MagazineType
</pre>
</blockquote>
<p>The variable content container then is declared to contain the abstract element:</p>
<blockquote>
<pre>&lt;xsd:element name="Catalogue"&gt;
    &lt;xsd:complexType&gt;
        &lt;xsd:sequence&gt;
            &lt;xsd:element ref="Publication" maxOccurs="unbounded"/&gt;
        &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
&lt;/xsd:element&gt;
</pre>
</blockquote>
<p>Thus, the contents of &lt;Catalogue&gt; can be any element that is in the substitution group with Publication.  Here&#8217;s a sample instance document:</p>
<pre>&lt;Catalogue&gt;
    &lt;Book&gt;...&lt;/Book&gt;
    &lt;Magazine&gt;...&lt;/Magazine&gt;
    &lt;Book&gt;...&lt;/Book&gt;
&lt;/Catalogue&gt;
</pre>
<h2>How to Redefine Existing Types when using Include:</h2>
<p>File1.xsd:</p>
<blockquote>
<pre>&lt;xs:simpleType name="<span style="color:#0000ff;">MobiaTypeSensorConfigProperty</span>"&gt;....</pre>
</blockquote>
<p>File2.xsd:</p>
<blockquote>
<pre>&lt;<span style="color:#ff0000;">xs:redefine</span> schemaLocation="File1.xsd"&gt;  
 &lt;xs:simpleType name="<span style="color:#0000ff;">MobiaTypeSensorConfigProperty</span>"&gt;
 &lt;xs:restriction <span style="color:#ff0000;">base="MobiaTypeSensorConfigProperty"</span>&gt;
<span style="color:#ff0000;">  ....(the new definition here)</span>
 &lt;/xs:restriction&gt;            
 &lt;/xs:simpleType&gt;
 &lt;/xs:redefine&gt;</pre>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=364&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/24/xsd-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Android and Netbeans</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/15/android-and-netbeans/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/15/android-and-netbeans/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:56:58 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=362</guid>
		<description><![CDATA[Here&#8217;s a link to some information on how to develop Android applications using Netbeans. http://wiki.netbeans.org/IntroAndroidDevNetBeans<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=362&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a link to some information on how to develop Android applications using Netbeans.</p>
<p><a href="http://wiki.netbeans.org/IntroAndroidDevNetBeans">http://wiki.netbeans.org/IntroAndroidDevNetBeans</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/362/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=362&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/15/android-and-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Android How Tos</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/14/android-how-tos/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/14/android-how-tos/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 19:42:33 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[activities]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[dialer]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[intents]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=351</guid>
		<description><![CDATA[Thanks to all the people who shared their source code . HOW TO&#8230; How to access the dialer via Intents http://stuffthathappens.com/blog/2008/11/19/accessing-the-dialer/ How to send SMS, email, etc. http://mobiforge.com/developing/story/sms-messaging-android How to send email, sms, etc. http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html Running Tasks in Background Thread http://developerlife.com/tutorials/?p=290 Frequently Used Android APIs (link to docs) Activity http://developer.android.com/reference/android/app/Activity.html Intent http://developer.android.com/reference/android/content/Intent.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=351&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thanks to all the people who shared their source code <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<h2>HOW TO&#8230;</h2>
<ul>
<li>How to access the dialer via Intents
<ul>
<li><a href="http://stuffthathappens.com/blog/2008/11/19/accessing-the-dialer/">http://stuffthathappens.com/blog/2008/11/19/accessing-the-dialer/</a></li>
</ul>
</li>
<li>How to send SMS, email, etc.
<ul>
<li><a href="http://mobiforge.com/developing/story/sms-messaging-android">http://mobiforge.com/developing/story/sms-messaging-android</a></li>
</ul>
</li>
<li> How to send email, sms, etc.
<ul>
<li><a href="http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html">http://www.itwizard.ro/how-to-create-a-new-android-activity-82.html</a></li>
</ul>
</li>
<li>Running Tasks in Background Thread
<ul>
<li><a href="http://developerlife.com/tutorials/?p=290">http://developerlife.com/tutorials/?p=290</a></li>
</ul>
</li>
</ul>
<h2>Frequently Used Android APIs (link to docs)</h2>
<ul>
<li>Activity
<ul>
<li><a href="http://developer.android.com/reference/android/app/Activity.html">http://developer.android.com/reference/android/app/Activity.html</a></li>
</ul>
</li>
<li>Intent
<ul>
<li><a href="http://developer.android.com/reference/android/content/Intent.html">http://developer.android.com/reference/android/content/Intent.html</a></li>
</ul>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=351&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/09/14/android-how-tos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
		<item>
		<title>Annotated Java and EMF</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/10/annotated-java-and-emf/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/10/annotated-java-and-emf/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 11:00:25 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[EMF]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[annotated]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[generation]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=328</guid>
		<description><![CDATA[Recap: A core model is made up of EClass contains: EAttributes, EReferences, EOperations EPackage may contain: EDatatTypes, EEnums Core Component Java Equivalent Eclass Java interfaces EAttributes, EReferences, EOperations Methods in the interface EEnums Java classes EPackages May be specified as Java interfaces.In most cases they do not need to be specifiedexplicitly because they can be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=328&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Recap:</h1>
<p>A core model is made up of</p>
<ul>
<li>EClass
<ul>
<li>contains: EAttributes, EReferences, EOperations</li>
</ul>
</li>
<li>EPackage
<ul>
<li>may contain: EDatatTypes, EEnums</li>
</ul>
</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td><strong>Core Component</strong></td>
<td><strong>Java Equivalent</strong></td>
</tr>
<tr>
<td>Eclass</td>
<td>Java interfaces</td>
</tr>
<tr>
<td>EAttributes, EReferences, EOperations</td>
<td>Methods in the interface</td>
</tr>
<tr>
<td>EEnums</td>
<td>Java classes</td>
</tr>
<tr>
<td>EPackages</td>
<td>May be specified as Java interfaces.In most cases they do not need to be specifiedexplicitly because they can be inferred fromthe package statements to define EClasses.</td>
</tr>
<tr>
<td>EDataTypes</td>
<td>May be specified explicitly.Usually inferred by references to Java types.</td>
</tr>
</tbody>
</table>
<h1><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoremodel.jpg"><img class="size-full wp-image-297 alignnone" title="ecoremodel" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoremodel.jpg?w=620" alt="ecoremodel"   /></a></h1>
<hr />
<h1>Anotating Java Interfaces with @model</h1>
<p><strong>Syntax:</strong></p>
<pre>/**
 * @model [ property="value" | property="value" ] ...
 */</pre>
<p><strong>Notes:</strong></p>
<ul>
<li>The Java source code specified does not need to be complete</li>
<li>The code only needs enough information to describe the model</li>
<li>Example
<ul>
<li>You need to provide Java interface FOR EACH EClass, BUT do not need to provide the implementation class</li>
<li>You need to provide a get() method FOR EACH attribute and reference, but do not need to do it for other accessor methods</li>
</ul>
</li>
</ul>
<h1>Java Specification</h1>
<h2>Package</h2>
<ul>
<li>Name with Suffix Package</li>
<li>NOT  preceded by @model</li>
<li>Attributes (String)
<ul>
<li>eName</li>
<li>eNS_URI</li>
<li>eNS_PREFIX</li>
</ul>
</li>
</ul>
<h3><strong>Example (Package):</strong></h3>
<pre>public interface <span style="color:#0000ff;">MOBIAPPPackage</span> {

 <span style="color:#0000ff;">String eNAME = "mobiapp";
 String eNS_URI = "http:///com/example/mobiapp.ecore";
 String eNS_PREFIX = "com.example.mobiapp";</span>
}</pre>
<h2>Classes</h2>
<h3>EClass</h3>
<ul>
<li>An <strong>EClass</strong> is specified by creating any Java Interface with the @model tag</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for a Class</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>abstract</td>
<td>true | false</td>
<td>the abstract attribute of this EClass</td>
</tr>
<tr>
<td>interface</td>
<td>true | false</td>
<td>the interface attribute of this EClas</td>
</tr>
</tbody>
</table>
<h3>EAttribute</h3>
<ul>
<li>An <strong>EAttribute</strong> is specified as an accessor method
<ul>
<li>must precede with @model tag</li>
<li>name begins with <strong>get</strong></li>
<li>if the return type of the method is booean, must begin with <strong>is</strong></li>
<li>character after <strong>get|is</strong> must be uppercase
<ul>
<li>the name of the attribute is derived from the name of the method and the uppercase is converted to lowercase</li>
</ul>
</li>
</ul>
</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for an Attribute</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>changeable</td>
<td>true|false</td>
<td></td>
</tr>
<tr>
<td>dataType</td>
<td><em>data-type</em></td>
<td>Used as the EDataType for this EAttribute</td>
</tr>
<tr>
<td>default or defaultValue</td>
<td><em>default-value</em></td>
<td></td>
</tr>
<tr>
<td>id</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>lower or lowerBound</td>
<td><em>integer-value</em></td>
<td></td>
</tr>
<tr>
<td>many</td>
<td>true | false</td>
<td>if true, the upperBound of this EAttribute is set to -1 (unbounded)</td>
</tr>
<tr>
<td>required</td>
<td>true | false</td>
<td>if true, the upperBound of this EAttribute is set to 1. Else set to 0.</td>
</tr>
<tr>
<td>transient</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td><em>type-name</em></td>
<td>the eType reference of this attribute is set to an EDatatype corresponding to <em>type-name</em></td>
</tr>
<tr>
<td>unique</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>unsettable</td>
<td>true | false</td>
<td>The value must be &gt;0 or -1 (unbounded)</td>
</tr>
<tr>
<td>upper or upperBound</td>
<td><em>integer-value</em></td>
<td></td>
</tr>
<tr>
<td>volatile</td>
<td>true | false</td>
<td></td>
</tr>
</tbody>
</table>
<h3><strong>Example (Class and Attributes)</strong></h3>
<pre><span style="color:#0000ff;">/**
 * @model abstract="true" interface="false"
 * Maps to an abstract class named AndroidActivity
 */
public interface AndroidActivity {</span>

 //EAttributes
<span style="color:#0000ff;"> /**
 * @model
 */
 String getActivityName();</span>
 ....</pre>
<h3>EReference</h3>
<ul>
<li>An <strong>EReference</strong> is specified as a method in the interface corresponding to the EClass that contains the attribute
<ul>
<li>should be preceded by @model tag</li>
<li>does <strong>NOT</strong> include property called PARAMETERS</li>
<li>name begins with <strong>get</strong> followed by an uppercase character</li>
<li>return type is an <strong>EClass</strong>
<ul>
<li>if not, then it should be a <strong>List or EList, </strong>in which case, the eType of the EReference must be specified as part of the @model tag and upperbound of the eReference is set to -1</li>
</ul>
</li>
</ul>
</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for a Reference</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>changeable</td>
<td>true|false</td>
<td></td>
</tr>
<tr>
<td>containment</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>lower or lowerBound</td>
<td><em>integer-value</em></td>
<td></td>
</tr>
<tr>
<td>many</td>
<td>true | false</td>
<td>if true, the upperBound of this EAttribute is set to -1 (unbounded)</td>
</tr>
<tr>
<td>opposite</td>
<td>reference-name</td>
<td>The opposite EReference must belong to the EClasss identified by the eType of this EReference</td>
</tr>
<tr>
<td>resolveProxies</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>required</td>
<td>true | false</td>
<td>if true, the upperBound of this EAttribute is set to 1. Else set to 0.</td>
</tr>
<tr>
<td>transient</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td><em>type-name</em></td>
<td>the eType reference of this attribute is set to an EDatatype corresponding to <em>type-name</em></td>
</tr>
<tr>
<td>unique</td>
<td>true | false</td>
<td></td>
</tr>
<tr>
<td>unsettable</td>
<td>true | false</td>
<td>The value must be &gt;0 or -1 (unbounded)</td>
</tr>
<tr>
<td>upper or upperBound</td>
<td><em>integer-value</em></td>
<td></td>
</tr>
<tr>
<td>volatile</td>
<td>true | false</td>
<td></td>
</tr>
</tbody>
</table>
<h3>Example (Reference)</h3>
<pre>/**
 * @model abstract="true" interface="false"
 * Maps to an abstract class named AndroidActivity
 */
public interface AndroidActivity {

 //EAttributes
 /**
 * @model
 */
 String getActivityName();

 //EReferences
<span style="color:#0000ff;"> /**
 * @model
 */
 AndroidActivity getNextActivity();</span>
...</pre>
<h3>EOperation</h3>
<ul>
<li>An <strong>EOperation</strong> is specified as a method in the Java interface
<ul>
<li>must precede with @model tag</li>
<li>@model tag has a property called parameters OR the method name does not conform to the EAttribute or EReference patterns</li>
<li>name<strong> </strong>of the EOperation is the same name as the method</li>
<li>the eType reference of the operation is the EClass or EDataType that corresponds to the return type of the Java method</li>
</ul>
</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for an Operation</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>dataType</td>
<td><em>data-type</em></td>
<td>the specific <em>data-type</em> is used as the EDataType for this operation&#8217;s return type</td>
</tr>
<tr>
<td>parameters</td>
<td><em>list-of-types</em></td>
<td>A list of space-separated entries, one per parameter.Each entry is either a single character &#8220;-&#8221;, or a specific data-type specified in <strong><em>Data Types* (see section below)</em></strong></td>
</tr>
</tbody>
</table>
<h3>Example (Reference and Operation)</h3>
<pre>/**
 * @model abstract="true" interface="false"
 * Maps to an abstract class named AndroidActivity
 */
public interface AndroidActivity {

 //EAttributes
 /**
 * @model
 */
 String getActivityName();

 //EReferences
<span style="color:#000000;"> /**
 * @model
 */
 AndroidActivity getNextActivity();
 </span>
 //EOperations
 //Automatic creation of EDatatype by EMF
<span style="color:#0000ff;"> /**
 * @model parameters="android.os.Bundle"
 */
 void onCreate(android.os.Bundle savedInstanceState);</span>

OR
//Explicit creation of EDataType (see next section)
<pre><span style="color:#0000ff;"> /**
 * @model parameters="emf.mode.android.Bundle"
 */
 void onCreate(Bundle savedInstanceState);</span></pre>
<p>}</pre>
<h2>Data Types*</h2>
<ul>
<li>EDataTypes can be EXPLICITLY defined in the java specification of the model</li>
<li>HOWEVER, you usually don&#8217;t need to do this since <strong>EMF will automatically create an EDataType </strong>whenever any attribute or operation in the Java specification makes use of a data type that has not been explicitly defined in the model or in ECore</li>
<li><strong>When to define explicitly</strong>
<ul>
<li>when there is an existing EDataType corresponding to a Java type for which you wished to provide an alternate serialization format</li>
</ul>
</li>
<li>To Define
<ul>
<li>precede with the @model tag</li>
<li>return type of the method is EDataType</li>
<li>name of the method begins with <strong>get</strong></li>
</ul>
</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for a DataType<br />
</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>instanceClass</td>
<td><em>java-type</em></td>
<td>java-type should be a fully qualified name of a Java interface or class</td>
</tr>
<tr>
<td>serializable</td>
<td><strong>true</strong> | false</td>
<td></td>
</tr>
</tbody>
</table>
<h3>Example (Data Types)</h3>
<pre>public interface ANDROIDPackage {

 String eNAME = "android";
 String eNS_URI = "http:///emf/model/android.ecore";
 String eNS_PREFIX = "emf.model.android";

 /**
 * @model instanceClass="android.os.Bundle
 */
 EDataType getBundle();
}</pre>
<h2>Enumerations</h2>
<ul>
<li>any FINAL STATIC class declaration in your Java package is preceded by a @model tag is mapped to <strong>EEnum</strong></li>
<li><strong>eLiterals</strong> reference for the EEnum is constructed from the list of <strong>EEnumLiterals </strong>that are derived from the fields that belong to the Java class</li>
</ul>
<table border="1" cellpadding="1">
<tbody>
<tr>
<td colspan="3"><strong>@model properties for an Enum Literal<br />
</strong></td>
</tr>
<tr>
<td><em>Property</em></td>
<td><em>Value</em></td>
<td><em>Usage</em></td>
</tr>
<tr>
<td>name</td>
<td><em>literal-name</em></td>
<td>the name of EEnumLiteral is set to the specified name</td>
</tr>
</tbody>
</table>
<h3>Example (Enumerations)</h3>
<pre>/**
 * @model
 */
public final class ActivityStatus extends AbstractEnumerator {

 /**
 * @model name="Started"
 */
 public static final int started = 0;

 /**
 * @model name="Running"
 */
 public static final int running = 1;

 /**
 * @model name="Pause"
 */
 public static final int pause = 2;

 /**
 * @model name="Shutdown"
 */
 public static final int shutdown = 3;
}</pre>
<h1>What&#8217;s next?</h1>
<p>After defining the model using Java annotated code, proceed with generating the Ecore model</p>
<p>STEP 1: Right-click on SRC folder and choose New-&gt; Other&#8230;</p>
<p><img class="size-medium wp-image-341 alignnone" title="01New" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/01new.png?w=300&#038;h=291" alt="01New" width="300" height="291" /></p>
<p>Step 2: Choose Eclipse Modeling Framework -&gt; EMF Model and then press Next</p>
<p><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/02select.png"><img class="alignnone size-medium wp-image-342" title="02Select" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/02select.png?w=300&#038;h=288" alt="02Select" width="300" height="288" /></a></p>
<p>Step 3: Choose which folder the sources are from and write the desired name for the model (suffix with .genmodel) and then press Next</p>
<p><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/03source.png"><img class="alignnone size-medium wp-image-343" title="03Source" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/03source.png?w=224&#038;h=300" alt="03Source" width="224" height="300" /></a></p>
<p>Step 4: Choose where the model was created from. In this case, choose Annotated Java, then press Next</p>
<p><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/04annotatedjava.png"><img class="alignnone size-medium wp-image-344" title="04AnnotatedJava" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/04annotatedjava.png?w=219&#038;h=300" alt="04AnnotatedJava" width="219" height="300" /></a></p>
<p>Step 5: Specify the package to generate and then press Finish</p>
<p><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/05selectpkg.png"><img class="alignnone size-medium wp-image-345" title="05SelectPkg" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/05selectpkg.png?w=264&#038;h=300" alt="05SelectPkg" width="264" height="300" /></a></p>
<h1>The generated Files</h1>
<p>After doing the steps above, the following files are generated</p>
<ul>
<li>a .ecore file</li>
<li>a .genmodel file</li>
</ul>
<div id="attachment_346" class="wp-caption alignnone" style="width: 224px"><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/outputfromemf.png"><img class="size-full wp-image-346" title="OutputFromEMF" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/outputfromemf.png?w=620" alt="OutputFromEMF"   /></a><p class="wp-caption-text">The generated files</p></div>
<p>As mentioned before (http://confessionsofastrugglingresearcher.wordpress.com/2009/06/08/emf-generating-code-overview/)</p>
<ul>
<li>The .genmodel is
<ul>
<li>where all the data needed by the EMF code generator is stored</li>
<li>It is itself an EMF model</li>
<li>It is tightly bounded to the Ecore model -&gt; Generator model classes are <em>decorators </em>Ecore classes
<ul>
<li>defn: The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime. This works by adding a new <em>decorator</em> class that wraps the original class.</li>
</ul>
</li>
<li>Relevance of separating the Ecore model to the Generator Model
<ul>
<li>makes the Ecore model pure and independent of any information that is only relevant for code generation</li>
</ul>
</li>
</ul>
</li>
</ul>
<div id="attachment_348" class="wp-caption alignnone" style="width: 438px"><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoreoutput.png"><img class="size-full wp-image-348" title="EcoreOutput" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoreoutput.png?w=620" alt="The Ecore Output"   /></a><p class="wp-caption-text">The Ecore Output</p></div>
<div id="attachment_349" class="wp-caption alignnone" style="width: 386px"><a href="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/genmodeloutput.png"><img class="size-full wp-image-349" title="GenmodelOutput" src="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/genmodeloutput.png?w=620" alt="The GenModel Output"   /></a><p class="wp-caption-text">The GenModel Output</p></div>
<h2>Reference</h2>
<ul>
<li>Eclipse Modeling Framework (A Developer’s Guide): http://www.informit.com/store/product.aspx?isbn=0131425420</li>
</ul>
<pre></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/328/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=328&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/10/annotated-java-and-emf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoremodel.jpg" medium="image">
			<media:title type="html">ecoremodel</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/01new.png?w=300" medium="image">
			<media:title type="html">01New</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/02select.png?w=300" medium="image">
			<media:title type="html">02Select</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/03source.png?w=224" medium="image">
			<media:title type="html">03Source</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/04annotatedjava.png?w=219" medium="image">
			<media:title type="html">04AnnotatedJava</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/05selectpkg.png?w=264" medium="image">
			<media:title type="html">05SelectPkg</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/outputfromemf.png" medium="image">
			<media:title type="html">OutputFromEMF</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/ecoreoutput.png" medium="image">
			<media:title type="html">EcoreOutput</media:title>
		</media:content>

		<media:content url="http://confessionsofastrugglingresearcher.files.wordpress.com/2009/06/genmodeloutput.png" medium="image">
			<media:title type="html">GenmodelOutput</media:title>
		</media:content>
	</item>
		<item>
		<title>EMF Generating Code (Overview)</title>
		<link>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/08/emf-generating-code-overview/</link>
		<comments>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/08/emf-generating-code-overview/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 11:57:56 +0000</pubDate>
		<dc:creator>ftbalagt</dc:creator>
				<category><![CDATA[EMF]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[generation]]></category>
		<category><![CDATA[modeling]]></category>
		<category><![CDATA[overview]]></category>

		<guid isPermaLink="false">http://confessionsofastrugglingresearcher.wordpress.com/?p=309</guid>
		<description><![CDATA[Basic Steps for Generating Code: Download Eclipse Modeling Tools Create a project using EMF Project Wizard [Create the model] Select Generate Model Code from Menu Generated Model Classes The EClass (Ecore class) is equivalent to two classes in Java a Java interface class extends the base interface EObject (equivalent to Java&#8217;s Object class) a Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=309&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Basic Steps for Generating Code:</h1>
<ol>
<li>Download <a href="http://www.eclipse.org/downloads/">Eclipse Modeling Tools</a></li>
<li>Create a project using <em>EMF Project Wizard</em></li>
<li>[Create the model]<em><br />
</em></li>
<li>Select <em>Generate Model Code</em> from Menu</li>
</ol>
<h1>Generated Model Classes</h1>
<ul>
<li>
<h3>The <strong>EClass </strong>(Ecore class)</h3>
</li>
</ul>
<ul>
<li>
<ul>
<li>is equivalent to two classes in Java
<ul>
<li>a Java interface class
<ul>
<li>extends the base interface <strong>EObject</strong> (equivalent to Java&#8217;s Object class)</li>
</ul>
</li>
<li>a Java implementation class</li>
</ul>
</li>
</ul>
</li>
<li>
<h3>The <strong>EObject interface</strong></h3>
<ul>
<li>has the following methods
<ul>
<li><strong>eClass()</strong>
<ul>
<li>returns<strong> </strong>the object&#8217;s metaobject (an EClass)</li>
</ul>
</li>
<li><strong>eContainer() and eResource()</strong>
<ul>
<li>returns the object&#8217;s containing object and resource</li>
</ul>
</li>
</ul>
<ul>
<li><strong>eGet(), eSet(), eIsSet(), eUnset()</strong>
<ul>
<li>provide an API for accessing the objects reflectively</li>
</ul>
</li>
</ul>
</li>
<li>extends from another interface called <strong>Notifier</strong></li>
</ul>
</li>
<li>
<h3>The <strong>Notifier</strong></h3>
<ul>
<li>introduces an important characteristic to a modeled object which is the model change notification as in the <em>Observer Design Pattern</em> (<strong>defn</strong>: a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods).</li>
</ul>
</li>
<li>
<h3>The Factory</h3>
<ul>
<li>Includes a <strong>create</strong> method for each class in the model</li>
</ul>
</li>
<li>
<h3>The Package</h3>
<ul>
<li>Provides convenient accessors for all the Ecore metadata for the model</li>
</ul>
</li>
</ul>
<h1>(Optional) Other Generated &#8220;Stuff&#8221;</h1>
<ul>
<li>A skeleton adapter factory class</li>
<li>A switch class that implements a &#8220;switch statement&#8221;-like callback mechanism for dispatching based on an object&#8217;s type</li>
<li>A plug-in manifest file (so that the model can be used as an Eclipse plugin)</li>
<li>An XML-schema for the model</li>
</ul>
<h1>@Generated (Regenerate Me!)</h1>
<p>This Javadoc marker is used to identify generated parts. Without this tag, those part of the code will be left alone.</p>
<pre>/**
 * @generated
 */
public String someMethod(){...</pre>
<h1>The Generator Model (.genmodel file)</h1>
<ul>
<li>This is where all the data needed by the EMF code generator is stored</li>
<li>It is itself an EMF model</li>
<li>It is tightly bounded to the Ecore model -&gt; Generator model classes are <em>decorators </em>Ecore classes
<ul>
<li>defn: The decorator pattern can be used to make it possible to extend (decorate) the functionality of a class at runtime. This works by adding a new <em>decorator</em> class that wraps the original class.</li>
</ul>
</li>
<li>Relevance of separating the Ecore model to the Generator Model
<ul>
<li>makes the Ecore model pure and independent of any information that is only relevant for code generation</li>
</ul>
</li>
</ul>
<h1>Advantages of EMF Generated code</h1>
<ul>
<li>clean, simple and efficient</li>
<li>does not pull in large base classes or generate inefficient code</li>
</ul>
<hr />
<h2><strong>References:</strong></h2>
<ul>
<li>http://www.eclipse.org/modeling/emf/</li>
<li>Eclipse Modeling Framework (A Developer’s Guide): http://www.informit.com/store/product.aspx?isbn=0131425420</li>
<li>Download for Eclipse Modeling Tools &#8211; http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-modeling-ganymede-SR2-incubation-win32.zip</li>
<li>http://en.wikipedia.org/wiki/Observer_pattern</li>
<li>http://en.wikipedia.org/wiki/Decorator_pattern</li>
<li>http://en.wikipedia.org/wiki/Reflection_API</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/confessionsofastrugglingresearcher.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/confessionsofastrugglingresearcher.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=confessionsofastrugglingresearcher.wordpress.com&amp;blog=6853902&amp;post=309&amp;subd=confessionsofastrugglingresearcher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://confessionsofastrugglingresearcher.wordpress.com/2009/06/08/emf-generating-code-overview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a26b3f3b298fbc014fb3ee0c29a7bb08?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ftbalagt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
