<?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>Life&#039;s One Big Playground</title>
	<atom:link href="http://dianajayne.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dianajayne.wordpress.com</link>
	<description>Let&#039;s play, shall we?</description>
	<lastBuildDate>Sun, 25 Jul 2010 04:38:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dianajayne.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Life&#039;s One Big Playground</title>
		<link>http://dianajayne.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dianajayne.wordpress.com/osd.xml" title="Life&#039;s One Big Playground" />
	<atom:link rel='hub' href='http://dianajayne.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Programming Languages and Semantics</title>
		<link>http://dianajayne.wordpress.com/2010/07/25/programming-languages-and-semantics/</link>
		<comments>http://dianajayne.wordpress.com/2010/07/25/programming-languages-and-semantics/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 04:38:05 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=92</guid>
		<description><![CDATA[In learning a programming language, it&#8217;s not enough that we study only the syntax. We have to know what is underlying meaning of the syntax we&#8217;re typing &#8211; i.e. what your code actually does. There are basically three ways to &#8230; <a href="http://dianajayne.wordpress.com/2010/07/25/programming-languages-and-semantics/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=92&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In learning a programming language, it&#8217;s not enough that we study only the syntax. We have to know what is underlying meaning of the syntax we&#8217;re typing &#8211; i.e. what your code actually does.</p>
<p>There are basically three ways to formally define a language through its&#8217; semantics: (a) <strong>operational</strong> &#8211; through algorithm, (b) <strong>denotational</strong> &#8211; through mathematical equations and objects , and (c) <strong>axiomatic</strong> &#8211; through logic to prove the correctness of a program.</p>
<p><strong>Operational Semantics</strong></p>
<p>The purpose of this approach is to describe how a computation is performed step-by-step. For instance, in a Java program, the Java Virtual Machine (JVM) does that for us. This type of semantics is very familiar especially those who read how-to books of a programming language since we can understand the operational semantics of a program using pseudocode.</p>
<p>For instance, in Java:</p>
<blockquote><p><code>if (condition) {<br />
doSomething1();<br />
} else {<br />
doSomething2();<br />
}</code></p></blockquote>
<p>Its&#8217; operational sematics:</p>
<blockquote><p><code>if condition = true goto doSomething1()<br />
else goto doSomething2()</code></p></blockquote>
<p>Given that condition is a boolean that can have a value of either true or false.</p>
<p><strong>Denotational Semantics</strong></p>
<p><strong> </strong>Denotational Semantics is an approach that describes the meaning (denotation) of a program using mathematical objects. Usually, they are functions of some sort.</p>
<p>Let Σ be the set of all program states in a programming language. A boolean expression Bexp can be described in a denotation as:</p>
<blockquote><p>B: Bexp → (Σ → {true, false})</p></blockquote>
<p>A variable that has been assigned as a boolean can only have values true or false, and the whole assignment expression means that it can only be true or false. The syntactic equivalent of this expression depends on the programming language (i.e. in Java it is boolean b = true; or boolean b = false;)</p>
<p><strong><strong>Axiomatic Semantics</strong></strong></p>
<p>Axiomatic Semantics asserts the relation will always be true for an input and output interface in a program, each time the program is executed.</p>
<p>The semantic formula is of the form</p>
<blockquote><p><code>{P} S {Q}</code></p></blockquote>
<p>where P is a a pre-condition, S is the command or the control structure, and Q is the post-condition. It is read as the statement S is correct with respect to pre-condition P and post-condition Q. If P is satisfied and S halts, S terminates in a state where assertion Q is satisfied.</p>
<p>For instance, we would like to prove that:</p>
<blockquote><p><code>{x = X ∧ y = Y ∧ z = Z} min(X, Y, Z) {min = min(X, Y, Z)}</code></p></blockquote>
<p>So,</p>
<blockquote><p><code>{x = X ∧ y = Y ∧ z = Z}<br />
min = x; {min = X}<br />
if (min &gt; y) {x = X ∧ y = Y ∧ z = Z ∧ X &gt; Y}<br />
min = y;<br />
{min = Y}<br />
if (min &gt; z) {x = X ∧ y = Y ∧ z = Z ∧ (X &gt; Z ∨ Y &gt; Z)}<br />
min = z;<br />
{min = Z}<br />
{min = min(X, Y, Z)}</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=92&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/07/25/programming-languages-and-semantics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Of Determination and Wanting Something So Bad</title>
		<link>http://dianajayne.wordpress.com/2010/06/06/of-determination-and-wanting-something-so-bad/</link>
		<comments>http://dianajayne.wordpress.com/2010/06/06/of-determination-and-wanting-something-so-bad/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 09:20:16 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[gradschool]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=88</guid>
		<description><![CDATA[I just started my studies for my master's degree last week at the University of the Philippines Open University. I attended the orientation last Saturday, 29 May. The orientation made me realize the seriousness of what I have put myself into. Distance education isn't that easy. I realize, for someone to be a successful distance education student, one must really WANT to study and graduate. No ifs, no buts, just pure determination to finish what he/she has started. <a href="http://dianajayne.wordpress.com/2010/06/06/of-determination-and-wanting-something-so-bad/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=88&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just started my studies for my master&#8217;s degree last week at the University of the Philippines Open University. I attended the orientation last Saturday, 29 May. The orientation made me realize the seriousness of what I have put myself into. Distance education isn&#8217;t that easy. I realize, for someone to be a successful distance education student, one must really WANT to study and graduate. No ifs, no buts, just pure determination to finish what he/she has started.</p>
<p>Right now I am taking two subjects &#8211; IS201: Computer Ethics, and IS214: Principles of Programming Languages. I&#8217;ve started IS201 sometime this week, while IS214&#8242;s course website hasn&#8217;t been opened. I hope next week I&#8217;ll start working on that course.</p>
<p>Yes, I&#8217;m studying while working.</p>
<p>I really am enjoying this new mode of learning for me. I&#8217;ve been learning through the net a lot for the past few years, and it is only now that I&#8217;ve been a DE student. I&#8217;m meeting new people (online or otherwise), and I am certainly pleased. But I can&#8217;t judge much since it&#8217;s only been like a week. But so far, so good.</p>
<p>To end this post, I would like to share an inspiring quotation from <em>Jack Canfield </em>about self-esteem and believing in oneself<em>:</em></p>
<blockquote><p>Self-esteem is a huge piece of my work. You have to believe it&#8217;s possible and believe in yourself. Because after you&#8217;ve decided what you want, you have to believe it&#8217;s possible, and possible for you, not just for other people. Then you need to seek out models, mentors, and coaches.<br />
<em><br />
</em></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=88&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/06/06/of-determination-and-wanting-something-so-bad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Lessons Worth Keeping</title>
		<link>http://dianajayne.wordpress.com/2010/02/18/lessons-worth-keeping/</link>
		<comments>http://dianajayne.wordpress.com/2010/02/18/lessons-worth-keeping/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:13:48 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/2010/02/18/lessons-worth-keeping/</guid>
		<description><![CDATA[1. STFU. It saves lives. 2. Improve communication skills. 3. Never assume.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=74&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. STFU. It saves lives.<br />
2. Improve communication skills.<br />
3. Never assume.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=74&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/02/18/lessons-worth-keeping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Sleeping Experiment: Night 2, 3</title>
		<link>http://dianajayne.wordpress.com/2010/02/17/sleeping-experiment-night-2-3/</link>
		<comments>http://dianajayne.wordpress.com/2010/02/17/sleeping-experiment-night-2-3/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 08:58:49 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=71</guid>
		<description><![CDATA[Night 2: 15 February 2010 – 22:30: Went home  quite late from work, so I wasn&#8217;t able to either take Sleepasil, or do some exercises to induce sleepiness. Went to my dorm mate&#8217;s room to have a little chat with &#8230; <a href="http://dianajayne.wordpress.com/2010/02/17/sleeping-experiment-night-2-3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=71&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Night 2: 15 February 2010 – 22:30: </strong>Went home  quite late from work, so I wasn&#8217;t able to either take Sleepasil, or do some exercises to induce sleepiness. Went to my dorm mate&#8217;s room to have a little chat with my officemates in Japan, then went to sleep ASAP. I wasn&#8217;t even able to unpack my things. Dang.</p>
<p><strong>Total Sleeping Hours: </strong>8 hours (23:30-07:30). Yay!</p>
<p><strong>Night 3: 16 February 2010 – 18:30: </strong>Logged off early to have a walk in the park with my officemate. I had to unwind due to pressure at work and some personal stuff going on. I had to literally let things off my chest. That gave me enough strength to drive myself home, do errands, finally unpack,  and prepare myself to sleep. Besides, I had to go to QC the next morning to do some errands.</p>
<p><strong>Total Sleeping Hours:</strong> 7 hours (00:30-07:30). Yay!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=71&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/02/17/sleeping-experiment-night-2-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Sleeping Experiment: Night 1</title>
		<link>http://dianajayne.wordpress.com/2010/02/15/sleeping-experiment-night-1/</link>
		<comments>http://dianajayne.wordpress.com/2010/02/15/sleeping-experiment-night-1/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:23:31 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/2010/02/15/sleeping-experiment-night-1/</guid>
		<description><![CDATA[Background. It&#8217;s been almost a month since I had a good night&#8217;s sleep. Ever since this year started, I&#8217;ve been thinking about A LOT of stuff before going to sleep. It came to a point that I&#8217;ve been looking forward &#8230; <a href="http://dianajayne.wordpress.com/2010/02/15/sleeping-experiment-night-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=68&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Background. </strong>It&#8217;s been almost a month since I had a good night&#8217;s sleep. Ever since this year started, I&#8217;ve been thinking about A LOT of stuff before going to sleep. It came to a point that I&#8217;ve been looking forward more to the nights before going to bed than what I have to do on my day-to-day life. It&#8217;s frustrating.</p>
<p>I finally had a wake-up call when I&#8217;ve been acting really weird lately, even close to depression. I NEED MY EFFIN&#8217; SLEEP!</p>
<p><strong>Night 1: 14 February 2010 &#8211; 19:57.</strong> I bought Sleepasil to aid my sleeping. I always have this habit of thinking A LOT before going to sleep. I always find myself waking up in the wee hours of morning, and having a hard time going back to sleep after. 10 minutes after taking Sleepasil, I felt really sleepy so I switch off my PC, and went straight to bed. Good, right? But after an hour (9PM) some kid banged the door that woke me up &#8212; JUST to get her toothpaste from our bathroom inside the room. Now I know why my mom always gets mad at me whenever I knock her door whenever she&#8217;s sleeping. I swear, I&#8217;ll never wake up my Mom from her sleep again.</p>
<p>Anyway, I tried going back to sleep for an hour but to no avail, so I went online, replied to a few stuff on Facebook, checked my email, read some feeds, and finally went back to sleep at almost 12MN. Woke up at 5AM the next day:</p>
<p>Total sleeping hours: 1 + 5 hours = 6 hours (FAIL!)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=68&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/02/15/sleeping-experiment-night-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Keeping The Fun</title>
		<link>http://dianajayne.wordpress.com/2010/02/01/keeping-the-fun/</link>
		<comments>http://dianajayne.wordpress.com/2010/02/01/keeping-the-fun/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 09:08:52 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=64</guid>
		<description><![CDATA[In case you didn&#8217;t notice, I&#8217;ve stopped updating this blog because I&#8217;ve been playing around Tumblr. It&#8217;s really fun and addicting at the same time. The thing is, I realized I miss writing long paragraphs, and so I decided to &#8230; <a href="http://dianajayne.wordpress.com/2010/02/01/keeping-the-fun/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=64&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In case you didn&#8217;t notice, I&#8217;ve stopped updating this blog because I&#8217;ve been playing around Tumblr. It&#8217;s really fun and addicting at the same time.</p>
<p>The thing is, I realized I miss writing long paragraphs, and so I decided to bring this blog back to life.</p>
<p>In case you&#8217;re interested, here&#8217;s my <a href="http://godiane.net/" target="_blank">Tumblr</a>.</p>
<p>Long post coming in a few days.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=64&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2010/02/01/keeping-the-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Terribly Confused</title>
		<link>http://dianajayne.wordpress.com/2009/10/23/terribly-confused/</link>
		<comments>http://dianajayne.wordpress.com/2009/10/23/terribly-confused/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 03:18:03 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[career]]></category>
		<category><![CDATA[gradschool]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=60</guid>
		<description><![CDATA[I&#8217;ve been offered an assignment to Japan 3 times in a row the past few weeks. First offer was for 2 years: I accepted. I was terribly confused since I really want to study for Graduate School next year, but &#8230; <a href="http://dianajayne.wordpress.com/2009/10/23/terribly-confused/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=60&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been offered an assignment to Japan 3 times in a row the past few weeks.</p>
<p>First offer was for 2 years: I accepted. I was terribly confused since I really want to study for Graduate School next year, but didn&#8217;t want to pass up an opportunity to work in Japan. But I failed on the interview since I was really bad in conversational Japanese, and I wasn&#8217;t really prepared.</p>
<p>Second offer was good for 3 years. I declined since it&#8217;s too long for me. Besides, I had other plans. After I declined I decided to stay here in the Philippines in the meantime and study for Graduate Studies instead. I gave myself two years to finish the degree. The past few weeks were spent thinking about my thesis &#8211; and I decided to continue what I was working on when I was still an undergrad &#8211; Crime Profiling in the Philippines, which incorporates all that I will learn in Grad School. I also decided to focus on Web Science, since it has been my interest since time immemorial.</p>
<p>Yesterday, I got an offer again: I&#8217;ll be in Japan for a year. That was perfect for me, except that they want me to leave by January. While I was being asked, I decided to move my studies by 2011. That will be perfect since my target is to finish my degree by 29 years old. (Yes, I have a deadline LOL.) I asked what are the other options, since I have plans for February and April. They told me that my other teammates are scheduled to leave by April &#8211; and they want me to go to Japan first. I requested to exchange with my other teammate who is scheduled to leave on April &#8211; that means he&#8217;ll leave this January, and I&#8217;ll leave in April with my other teammate.</p>
<p>Personally, I feel really bad. I&#8217;ve been spending my energy the past few weeks thinking about graduate school, but at the same time I want to experience working abroad.</p>
<p>BUT, I&#8217;ve been thinking a lot about the Google screening I just had the past few months. I didn&#8217;t make it on my technical interview &#8211; too bad, huh. I&#8217;d like to think it&#8217;s because I was both nervous and distraught emotionally during the time of the technical interview since my father died the morning before &#8211; but I know I&#8217;m just making an excuse. The questions were really interesting, and that Google experience inspired me to study more and strive to get better in computing &#8211; particularly Web Science.</p>
<p><strong>If I go to Japan:</strong></p>
<p><strong>April 2010-2011:</strong> Japan</p>
<p><strong>May 2011-2013:</strong> Philippines while finishing Master in Info Systems (UPOU)</p>
<p>Pros:</p>
<ul>
<li>working in another country</li>
<li>able to save more</li>
<li>nice place, etc.</li>
</ul>
<p>Cons:</p>
<ul>
<li>stuck with one technology for a year (I can study on my free time, but God knows experience counts a lot)</li>
<li>must pass up other opportunities (i.e. surprise interview from Google)</li>
<li>homesick (can deal with it since I&#8217;m used to it already)</li>
</ul>
<p><strong>If I stay here/Original Plan:</strong></p>
<p><strong>June 2010-March 2011:</strong> Part-time student &#8211; Master in Computer Science (UP Dil)</p>
<p><strong>June 2011-March 2012:</strong> Full-time student- Master in Computer Science (UP Dil)</p>
<p>Pros:</p>
<ul>
<li>studying what I love</li>
<li>learning more</li>
<li>more exposure to research</li>
<li>more opportunities after grad school</li>
<li>more opportunities to be more exposed to FOSS</li>
<li>more free time, yay!</li>
</ul>
<p>Cons:</p>
<ul>
<li>lesser money (yes I can do part-time)</li>
<li>might get bored (still not sure, it&#8217;s just a fear)</li>
<li>might not finish grad school (still not sure, it&#8217;s just a fear)</li>
</ul>
<p><strong>Grad School wins big time.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=60&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2009/10/23/terribly-confused/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>I&#8217;m All About GS and WS</title>
		<link>http://dianajayne.wordpress.com/2009/10/04/im-all-about-gs-and-ws/</link>
		<comments>http://dianajayne.wordpress.com/2009/10/04/im-all-about-gs-and-ws/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:10:08 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[career]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=58</guid>
		<description><![CDATA[...I mean Graduate Studies. <a href="http://dianajayne.wordpress.com/2009/10/04/im-all-about-gs-and-ws/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=58&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;I mean <strong>G</strong>raduate <strong>S</strong>tudies and <strong>W</strong>eb <strong>S</strong>cience.</p>
<p>I&#8217;ve been thinking a whole lot about where to study, what I should focus on during my studies, and what my thesis will be about.</p>
<p>I&#8217;m looking for a university which focuses on <a title="Scientific American: Web Science" href="http://www.scientificamerican.com/article.cfm?id=web-science" target="_blank">Web Science</a>, which I&#8217;m very interested in. It&#8217;s a fairly young discipline which integrates Computer Science, Artificial Intelligence, Business, Law, Sociology, Psychology, etc. that shapes the future of the web.</p>
<p>I&#8217;m also keen on continuing my research work on crime profiling in the Philippines, or work on something else for my thesis.</p>
<p>Right now, I&#8217;m just plain amazed how Facebook turned into a tool for information dissemination about the typhoon Peping which wreck havoc in Metro Manila.</p>
<p><a title="MyGlobalPerspective" href="http://myglobalperspective.org/" target="_blank">MyGP</a>, which I am part of, is also working on projects that might benefit a lot of people in the long run.</p>
<p>It&#8217;s web science at work &#8211; and I&#8217;m interested to be of help in shaping the Filipino web.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=58&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2009/10/04/im-all-about-gs-and-ws/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>I Missed Watching TV</title>
		<link>http://dianajayne.wordpress.com/2009/09/20/i-missed-watching-tv/</link>
		<comments>http://dianajayne.wordpress.com/2009/09/20/i-missed-watching-tv/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 14:08:16 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/2009/09/20/i-missed-watching-tv/</guid>
		<description><![CDATA[&#8230;and I never thought I&#8217;d say that again. I stopped watching TV way back 2006, thinking I&#8217;d rather be online, pursue my passions in programming, development, and FOSS, meet new people, and download Japanese Drama shows or other interesting programs &#8230; <a href="http://dianajayne.wordpress.com/2009/09/20/i-missed-watching-tv/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=56&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;and I never thought I&#8217;d say that again.</p>
<p>I stopped watching TV way back 2006, thinking I&#8217;d rather be online, pursue my passions in programming, development, and FOSS, meet new people, and download Japanese Drama shows or other interesting programs when I&#8217;m bored.</p>
<p>It&#8217;s not that I NEVER watched TV since 2006. Of course I co-watch with my friends and family whenever I visit their homes, but it&#8217;s not as if I volunteered myself to open the TV and switch to my favorite channel.</p>
<p>Last weekend, when our internet cable operator failed to bill us last month, and thought we didn&#8217;t pay up, our internet was cut down. While waiting for the internet to get back, I decided to watch TV instead with my nephew downstairs. I realized I missed watching Discovery Channel, etc.</p>
<p>I did it again yesterday when we were resting for a while at my co-AS2 alumni&#8217;s office at University of the Philippines Open University (UPOU) after manning the UPOU (and International Open Source Network &#8211; IOSN &#8211; booth, for a few minutes) at the Software Freedom Day 2009 at UP National Computer Center (NCC). I watched E! Channel without feeling guilty or feeling stupid. Haha.</p>
<p>It definitely feels good to watch TV (voluntarily) again after some time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=56&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2009/09/20/i-missed-watching-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
		<item>
		<title>Big Decimal&#8217;s Divide and Arithmetic Exception</title>
		<link>http://dianajayne.wordpress.com/2009/09/17/big-decimals-divide-and-arithmetic-exception/</link>
		<comments>http://dianajayne.wordpress.com/2009/09/17/big-decimals-divide-and-arithmetic-exception/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 05:02:40 +0000</pubDate>
		<dc:creator>Diane</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://dianajayne.wordpress.com/?p=50</guid>
		<description><![CDATA[I encountered a problem a few weeks ago at work. Apparently, this isn't working:

BigDecimal one = new BigDecimal("1");
BigDecimal oneWithDecimal = new BigDecimal("1.25");
BigDecimal result = one.divide(oneWithDecimal); <a href="http://dianajayne.wordpress.com/2009/09/17/big-decimals-divide-and-arithmetic-exception/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=50&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I encountered a problem a few weeks ago at work. Apparently, this isn&#8217;t working:</p>
<blockquote>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><span style="color:#2040a0;">BigDecimal one = new BigDecimal("1");
BigDecimal oneWithDecimal = new BigDecimal("1.25");
BigDecimal result = one.divide(oneWithDecimal);</span></pre>
</blockquote>
<p>This will throw an arithmetic exception, since as I&#8217;ve read from the <a title="J2SE 7 Application Program Interface" href="http://java.sun.com/javase/7/docs/api/" target="_blank">Java API</a>,</p>
<pre><a title="class in java.math" href="http://java.sun.com/javase/7/docs/api/java/math/BigDecimal.html">BigDecimal</a> <strong>divide</strong>(<a title="class in java.math" href="http://java.sun.com/javase/7/docs/api/java/math/BigDecimal.html">BigDecimal</a> divisor)</pre>
<blockquote><p>Returns a <code>BigDecimal</code> whose value is <code>(this / divisor)</code>, and whose preferred scale is <code><strong>(this.scale() - divisor.scale())</strong></code><strong>;</strong> if the exact quotient cannot be represented (because it has a non-terminating decimal expansion) an <code>ArithmeticException</code> is thrown.</p></blockquote>
<p>This is to say that the example above will throw an <code>ArithmeticException</code> since the dividend and the divisor have different scales.</p>
<p>The code below should work.</p>
<blockquote>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><span style="color:#2040a0;">one.divide(oneWithDecimal, 3, RoundingMode.HALF_UP);</span></pre>
</blockquote>
<p>めんどくさい。(Tedious.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dianajayne.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dianajayne.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dianajayne.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dianajayne.wordpress.com&amp;blog=5529099&amp;post=50&amp;subd=dianajayne&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dianajayne.wordpress.com/2009/09/17/big-decimals-divide-and-arithmetic-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f00da5800a1b3e657b79f13ac08d88dd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godiane</media:title>
		</media:content>
	</item>
	</channel>
</rss>
