<?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/"
	>

<channel>
	<title>Serabe Reloaded &#187; General</title>
	<atom:link href="http://www.serabe.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serabe.com</link>
	<description>Conecto ergo sum. Non conecto ergo urgueo.</description>
	<lastBuildDate>Wed, 14 Jul 2010 18:12:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Status update for GeoGebra.</title>
		<link>http://www.serabe.com/2010/07/12/status-update-for-geogebra/</link>
		<comments>http://www.serabe.com/2010/07/12/status-update-for-geogebra/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:41:04 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[GeoGebra]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[geogebra]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=522</guid>
		<description><![CDATA[My contributions for the first part of the first part of GSoC 2010 can be divided in two: general improvements and coding. General improvements I made a few general improvements on GeoGebra: Refactored build.dir in ant build file. Previously, build.dir wasn&#8217;t in the root directory. A few ant tasks were added, such compile-grammar, compile-oe (outside [...]]]></description>
			<content:encoded><![CDATA[<p>My contributions for the first part of the first part of GSoC 2010 can be divided in two: general improvements and coding.</p>
<h3>General improvements</h3>
<p>I made a few general improvements on GeoGebra:</p>
<ol>
<li>Refactored build.dir in ant build file. Previously, build.dir wasn&#8217;t in the root directory.</li>
<li>A few ant tasks were added, such compile-grammar, compile-oe (outside Eclipse), run-easyb and run-easyb-outside-eclipse.</li>
<li>SVN properties were set in order to work outside Eclipse. This way, .class files will be kept out of the repo without the intervention of any Eclipse plugin.</li>
<li>Easyb, a BDD groovy-based framework, has been included in order to test GeoGebra. It is not RSpec, but I guess it&#8217;ll do.</li>
</ol>
<h3>Coding</h3>
<p>First, I started creating a few <strong>EquationPoint</strong> classes,  currently there are six <strong>EquationPoint </strong>children classes:</p>
<p><a href="http://www.serabe.com/wp-content/uploads/2010/07/Selección_003.png" ><img class="alignnone size-full wp-image-524" title="EquationPoint type hierarchy" src="http://www.serabe.com/wp-content/uploads/2010/07/Selección_003.png" alt="EquationPoint type hierarchy" width="384" height="254" /></a></p>
<ul>
<li><strong>EquationFreePoint</strong> represents an independent point.</li>
<li><strong>EquationSymbolicPoint</strong> represents a dependent point,  <strong>EquationSpecialSymbolicPoint</strong> standing only for the locus point.</li>
<li><strong>EquationNormalPoint</strong> and <strong>EquationPointVectorPoint</strong> are only auxiliar elements.</li>
</ul>
<p>Then, a few <strong>EquationElement</strong> classes were added, these stand for the different constructions:</p>
<p><a href="http://www.serabe.com/wp-content/uploads/2010/07/Selección_001.png" ><img class="alignnone size-full wp-image-525" title="EquationElement type hierarchy" src="http://www.serabe.com/wp-content/uploads/2010/07/Selección_001.png" alt="EquationElement type hierarchy" width="384" height="364" /></a></p>
<p><strong>EquationElement</strong> is an abstract class containing a few basic methods:</p>
<ul>
<li><strong>forPoint</strong>: Given an EquationPoint, returns a String with the equation that means that the point is in the construction.</li>
<li><strong>isAlgebraic</strong>: returns true if the construction is algebraic, and false otherwise.</li>
</ul>
<p>Both <strong>EquationGenericCircle</strong> and <strong>EquationGenericLine</strong> are abstractions of specific line and circle contructions, all of them algebraic. <strong>EquationGenericSegment</strong> is to segment what <strong>EquationGenericLine</strong> is to lines. Obviously, <strong>EquationGenericSegment</strong> is not algebraic.</p>
<p>All of these classes are used together by<strong> EquationScope</strong>.</p>
<h3>A pause for a screenshot.</h3>
<p><a href="http://www.serabe.com/wp-content/uploads/2010/07/Selección_002_modificada.png" ><img title="Screenshot" src="http://www.serabe.com/wp-content/uploads/2010/07/Selección_002_modificada-300x132.png" alt="Screeenshot" width="300" height="132" /></a></p>
<p>Click for enlarge.</p>
<h3>A glimpse into the future.</h3>
<p>What to do next?:</p>
<ul>
<li><span style="text-decoration: line-through;">Maybe Equation should be a proper class, not just a String.</span></li>
<li>More equations.</li>
<li>Working out the locus equation.</li>
<li><span style="text-decoration: line-through;">Not using an algorithm twice.</span></li>
</ul>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2010/07/12/status-update-for-geogebra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About WordPress automatic upgrade.</title>
		<link>http://www.serabe.com/2010/06/30/about-wordpress-automatic-upgrade/</link>
		<comments>http://www.serabe.com/2010/06/30/about-wordpress-automatic-upgrade/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 23:06:44 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=517</guid>
		<description><![CDATA[I&#8217;m stupid, and here is why: Long, long time ago,  when WordPress 2.7 was released I got excited about  the automatic upgrade feature. I never got to get it working, but I didn&#8217;t care at all. I don&#8217;t have that many plug-ins, and sometimes in a while, I just uploaded all the files via FTP. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m stupid, and here is why:</p>
<p>Long, long time ago,  when WordPress 2.7 was released I got excited about  the automatic upgrade feature. I never got to get it working, but I didn&#8217;t care at all. I don&#8217;t have that many plug-ins, and sometimes in a while, I just uploaded all the files via FTP. But I moved sergio.arbeo.net to WordPress after 3.0 release and then I realize that it was working there!</p>
<p>Then, wondering why, found out <a href="http://paheli.net/blog/2009/07/22/solved-wordpress-automatic-upgrade-problem/" >this post</a> with its really easy solution: just add the following two lines to the WordPress .htaccess:</p>
<blockquote><p><code># Ensure PHP5 being used</p>
<p># For WordPress auto upgrade</p>
<p>AddType x-mapp-php5 .php</p>
<p>AddHandler x-mapp-php5 .php</p>
<p></code></p></blockquote>
<p>As I said, I&#8217;m stupid.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2010/06/30/about-wordpress-automatic-upgrade/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Writing your own JRuby extension. Part II: Creating your first class.</title>
		<link>http://www.serabe.com/2010/03/12/writing-your-own-jruby-extension-part-ii-creating-your-first-class/</link>
		<comments>http://www.serabe.com/2010/03/12/writing-your-own-jruby-extension-part-ii-creating-your-first-class/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 23:06:04 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[JRuby]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=481</guid>
		<description><![CDATA[What&#8217;s the point of coding a JRuby extension if you don&#8217;t create classes? Well, I cannot think of any case, but if you find one, please, let me know. Do you remember Java&#8217;s classes hierarchy? If so, you&#8217;ll realize  that Java objects inherit from java.lang.Object by default but that is not actually what we need. [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.flickr.com/photos/53326337@N00/3783473433/" title="More Mormon Matryoshki"  target="_blank"><img class="alignright" style="border: 0px initial initial;" src="http://farm4.static.flickr.com/3057/3783473433_98d837343a_m.jpg" border="0" alt="More Mormon Matryoshki" width="240" height="143" title="Writing your own JRuby extension. Part II: Creating your first class." /></a><br />
What&#8217;s the point of coding a JRuby extension if you don&#8217;t create classes? Well, I cannot think of any case, but if you find one, please, let me know.</p>
<p>Do you remember Java&#8217;s classes hierarchy? If so, you&#8217;ll realize  that Java objects inherit from java.lang.Object by default but that is not actually what we need. But how can we tell JRuby that our object inherits from Object, the king of Ruby world? The answer is so simple: just extend RubyObject! (There is a RubyBasicObject too) Taken from Nokogiri::XML::Node:</p>
<p><script src="http://gist.github.com/281421.js"></script></p>
<p>Of course, you can extend any other class, as long as it is a &#8220;Ruby object&#8221;. For example, Nokogiri::XML::Document extends from Nokogiri::XML::Node, and we do not need to do anything special to reflect it, just extend XmlNode like XmlDocument does:</p>
<p><script src="http://gist.github.com/281426.js"></script></p>
<p>After talking a bit about hierarchy, let&#8217;s talk about Java constructors. At least two parameters are needed: a org.jruby.Ruby object and a org.jruby.RubyClass object. Being the importance of the former quite obvious, the reason for the latter may not be so clear. Let me show you some real world code: Nokogiri::XML::Node&#8217;s dup method. Take a look at the following test:</p>
<p><script src="http://gist.github.com/284316.js"></script></p>
<p>Both new and dup methods in subclass rely on Nokogiri::XML::Node&#8217;s. In <a href="http://github.com/tenderlove/nokogiri/blob/master/ext/nokogiri/xml_node.c#L281" >here</a>, you can see the this snippet of code:</p>
<p><script src="http://gist.github.com/284318.js"></script></p>
<p>The <code>rb_obj_class</code> method returns the class of an object, in this case, <em>self</em>. This way, the new node will be an instance of the same class as the original node. That&#8217;s the reason a RubyClass is needed in the constructor, in order to know which is the actual class being instantiated.</p>
<p>By the way, do not forget to call super with the Ruby and RubyClass objects.</p>
<p>Next step: creating methods.</p>
<p><a href="http://creativecommons.org/licenses/by-sa/2.0/" title="Attribution-ShareAlike License"  target="_blank"><img src="http://www.serabe.com/wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" title="Writing your own JRuby extension. Part II: Creating your first class." /></a> <a href="http://www.photodropper.com/photos/"  target="_blank">photo</a> credit: <a rel="nofollow" href="http://www.flickr.com/photos/53326337@N00/3783473433/" title="quinn.anya"  target="_blank">quinn.anya</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2010/03/12/writing-your-own-jruby-extension-part-ii-creating-your-first-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Do you wanna help us with pure-Java Nokogiri?</title>
		<link>http://www.serabe.com/2009/12/01/do-you-wanna-help-us-with-pure-java-nokogiri/</link>
		<comments>http://www.serabe.com/2009/12/01/do-you-wanna-help-us-with-pure-java-nokogiri/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:07:39 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[JRuby]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[nokogiri]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=449</guid>
		<description><![CDATA[First things first, if you wanna help, you&#8217;ll need to clone the git repo. Just: git clone git://github.com/tenderlove/nokogiri.git cd nokogiri git checkout --track -b java origin/java Install the dependencies. Just: rake install:deps Because it uses some native libraries, you&#8217;ll need to do that with MRI. Finally, you&#8217;ll need to generate some files, just run jruby [...]]]></description>
			<content:encoded><![CDATA[<p>First things first, if you wanna help, you&#8217;ll need to clone the git repo. Just:</p>
<p><code>git clone git://github.com/tenderlove/nokogiri.git</code><br />
<code>cd nokogiri</code><br />
<code>git checkout --track -b java origin/java</code></p>
<p>Install the dependencies. Just:</p>
<p><code>rake install:deps</code></p>
<p>Because it uses some native libraries, you&#8217;ll need to do that with MRI. Finally, you&#8217;ll need to generate some files, just run <code>jruby -S rake java:spec</code>. For having a hprof file, you&#8217;ll need to run <a href="http://gist.github.com/245784" >this script</a> with the following command:</p>
<p><code>jr -J-Xmx32m -J-XX:+HeapDumpOnOutOfMemoryError nokogiri_doc_frag.rb</code></p>
<p><em>-J-Xmx32m</em> limits the heap space to 32 Mb, and the other options makes the JVM to write a hprof file when a OutOfMemoryError is thrown. After that, you can inspect that file with the profiler you can find in NetBeans.</p>
<p>In next post, I&#8217;ll comment where I think the problem is.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/12/01/do-you-wanna-help-us-with-pure-java-nokogiri/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Status Update: RMagick4J, Nokogiri, ruby2java and a possible MagickWand4J</title>
		<link>http://www.serabe.com/2009/06/06/status-update-rmagick4j-nokogiri-ruby2java-and-a-possible-magickwand4j/</link>
		<comments>http://www.serabe.com/2009/06/06/status-update-rmagick4j-nokogiri-ruby2java-and-a-possible-magickwand4j/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 10:00:30 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[JRuby]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[magickwand]]></category>
		<category><![CDATA[nokogiri]]></category>
		<category><![CDATA[rmagick4j]]></category>
		<category><![CDATA[ruby2java]]></category>
		<category><![CDATA[siesta]]></category>
		<category><![CDATA[status update]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=429</guid>
		<description><![CDATA[It&#8217;s been long time since last status update, but there are some things to tell, so here I am. Thankfully, this year I&#8217;m a GSoC student again (and my mentor is Tom too). The main part of my project would be porting Nokogiri to JRuby, so I haven&#8217;t code for RMagick for a while now. [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been long time since last <a href="http://www.serabe.com/2009/03/23/rmagick4j-037-happy-birthmonth-released/" >status update</a>, but there are some things to tell, so here I am.</p>
<p>Thankfully, this year I&#8217;m a GSoC student again (and my mentor is Tom too). The main part of my project would be porting Nokogiri to JRuby, so I haven&#8217;t code for RMagick for a while now.</p>
<p>Let&#8217;s start with the status update then.</p>
<p><strong>Nokogiri</strong></p>
<p>I&#8217;ve been working on Nokogiri for a while. I forked <a href="http://github.com/headius/nokogiri/tree/master" >Charles&#8217; repo</a> in Github, and I&#8217;ve implemented some cool features. For example, today I got my <a href="http://github.com/Serabe/nokogiri/commit/9634a4509ba77e6062c2bad5cfc742a557b46717" >XML::Reader implementation to pass all tests in test_reader.rb</a>. I hope I&#8217;ll be able to make a release this month (cross your fingers).</p>
<p>On the other hand, I got my <a href="http://github.com/tenderlove/nokogiri/commit/53a62edb8bf057b1a85e2af8462b01aa3fafee16" >first patch accepted in Nokogiri&#8217;s main repo</a>.</p>
<p><strong>RMagick4J</strong></p>
<p>Not to much work done here, sorry. I haven&#8217;t code anything for a while now. Migrating from mercurial to git is already planned, but before that I would like to do a few commits more. Anyway, I&#8217;m quite happy with this project. Some people are using it and <a href="http://kenai.com/jira/browse/RMAGICK4J-9" >reporting bugs</a> (in the end, those little things are all that matters). What else can I ask for?</p>
<p>Please, if you find a bug, report it <a href="http://kenai.com/jira/browse/RMAGICK4J" >here</a>.</p>
<p><strong>MagickWand</strong></p>
<p>Tim Hunter (creator of <a href="http://rmagick.rubyforge.org/" >RMagick</a>) released <a href="http://magickwand.rubyforge.org/" >MagickWand</a> recently. I&#8217;ve been considering porting it to JRuby too. I have to take a deeper look at the C code, but, by now, I think it could be a good way to lead RMagick4J development. If finally I port it, I will split <a href="http://kenai.com/projects/rmagick4j" >RMagick4J</a> in two projects (Magick4J and RMagick4J). This way, MagickWand4J and <a href="http://kenai.com/projects/rmagick4j" >RMagick4J</a> would share the same java codebase, as <a href="http://magickwand.rubyforge.org/" >MagickWand</a> and <a href="http://rmagick.rubyforge.org/" >RMagick</a> share <a href="http://www.imagemagick.org/script/index.php" >ImageMagick</a>.</p>
<p><strong>ruby2java</strong></p>
<p>Take a look <a href="http://kenai.com/projects/ruby2java/pages/Home" >here</a>. Awesome, isn&#8217;t it? And as soon as I have some time to work on it, <a href="http://kenai.com/projects/siesta" >siesta</a> will be out too&#8230;</p>
<p><strong>P.D.</strong> By the way, no more personal stuff in this blog. That stuff is now <a href="http://sergio.arbeo.net" >here</a>, and only in Spanish (sorry about that).</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/06/06/status-update-rmagick4j-nokogiri-ruby2java-and-a-possible-magickwand4j/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s all about expectations.</title>
		<link>http://www.serabe.com/2009/04/25/its-all-about-expectations/</link>
		<comments>http://www.serabe.com/2009/04/25/its-all-about-expectations/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 23:59:42 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Vi­deos]]></category>
		<category><![CDATA[expectation]]></category>
		<category><![CDATA[i do not like susan boyle]]></category>
		<category><![CDATA[susan boyle]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=416</guid>
		<description><![CDATA[Two days ago, I was talking about Susan Boyle with a friend. I do not like her, my friend didn&#8217;t even know who she is. I told her about Susan, she has a good voice (not a great one) and she can sing pretty well. The only difference is that she is quite ugly (in [...]]]></description>
			<content:encoded><![CDATA[<p>Two days ago, I was talking about <a rel="nofollow" href="http://www.youtube.com/watch?v=9lp0IWv8QZY" title="Susan Boyle on YouTube" >Susan Boyle</a> with a friend. I do not like her, my friend didn't even know who she is. I told her about Susan, she has a good voice (not a great one) and she can sing pretty well. The only difference is that she is quite ugly (in Spanish I would say that she is uglier than hitting your own father with a sweaty sock). Her answer was pretty simple: It's all about expectations.</p>
<p>She said that by looking at her, my expectations were low, so when she sang even with a good-but-not-extraordinary-as-they-want-us-to-believe voice.</p>
<p>Other way of making things look better is the Bluetooth-Cooper theorem ("Averything is better with bluetooth"), in this case, with the Jackson-Vader corollary:<br />
<p><a href="http://www.serabe.com/2009/04/25/its-all-about-expectations/"><em>Aquí va un vídeo</em></a></p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/04/25/its-all-about-expectations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RMagick4J: Status Update 15/03/09</title>
		<link>http://www.serabe.com/2009/03/16/rmagick4j-status-update-150309/</link>
		<comments>http://www.serabe.com/2009/03/16/rmagick4j-status-update-150309/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 12:12:09 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=402</guid>
		<description><![CDATA[This week I've been fixing some bugs, adding some minor effects and adding wave effect. In order to add wave effect I've had to read a lot of ImageMagick code. Lucky me, there was an if that made all too much simpler. Unlucky me, I didn't realize until the third reading-code day. Anyway, after sweating [...]]]></description>
			<content:encoded><![CDATA[<p>This week I've been fixing some bugs, adding some minor effects and adding wave effect.<br />
In order to add wave effect I've had to read a lot of ImageMagick code. Lucky me, there was an if that made all too much simpler. Unlucky me, I didn't realize until the third reading-code day.<br />
Anyway, after sweating blood, here you are the images:</p>
<table>
<tr>
<td>RMagick</td>
<td>RMagick4J</td>
</tr>
<tr>
<td colspan="2">original</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/jruby.jpg" alt="JRuby logo" title="JRuby logo" width="150" height="148" class="alignnone size-full wp-image-394" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/jruby.jpg" alt="JRuby logo" title="JRuby logo" width="150" height="148" class="alignnone size-full wp-image-394" /></td>
</tr>
<tr>
<td colspan="2">charcoal 0.75</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/charcoalrmi.jpg" alt="charcoal RMI" title="charcoal RMI" width="150" height="148" class="alignnone size-full wp-image-393" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/charcoaljruby.jpg" alt="charcoal JRuby" title="charcoal JRuby" width="150" height="148" class="alignnone size-full wp-image-392" /></td>
</tr>
<tr>
<td colspan="2">negate</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/negatermi.jpg" alt="negate RMI" title="negate RMI" width="150" height="148" class="alignnone size-full wp-image-396" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/negatejruby.jpg" alt="negate JRuby" title="negate JRuby" width="150" height="148" class="alignnone size-full wp-image-395" /></td>
</tr>
<tr>
<td colspan="2">normalize</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/normalizermi.jpg" alt="normalize RMI" title="normalize RMI" width="150" height="148" class="alignnone size-full wp-image-398" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/normalizejruby.jpg" alt="normalize JRuby" title="normalize JRuby" width="150" height="148" class="alignnone size-full wp-image-397" /></td>
</tr>
<tr>
<td colspan="2">blur_image 2</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/blurrmi.jpg" alt="blur RMI" title="blur RMI" width="150" height="148" class="alignnone size-full wp-image-391" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/blurjruby.jpg" alt="blur JRuby" title="blur JRuby" width="150" height="148" class="alignnone size-full wp-image-390" /></td>
</tr>
<tr>
<td colspan="2">wave</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/wavermi.jpg" alt="wave RMI" title="wave RMI" width="150" height="198" class="alignnone size-full wp-image-401" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/wavejruby.jpg" alt="wave JRuby" title="wave JRuby" width="150" height="198" class="alignnone size-full wp-image-400" /></td>
</tr>
</table>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/03/16/rmagick4j-status-update-150309/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RMagick4J: Status Update 09/03/09</title>
		<link>http://www.serabe.com/2009/03/09/rmagick4j-status-update-090309/</link>
		<comments>http://www.serabe.com/2009/03/09/rmagick4j-status-update-090309/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 12:54:25 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=369</guid>
		<description><![CDATA[Finally I figure out the problem with the convolve method. The code I wrote was only prepared to deal with TYPE_INT_ARGB BufferedImages but when reading a image from a file, it doesn't ensure this type. Now this is fixed and working. Furthermore, I added charcoal, solarize and shade effects. The latter gave some problem while [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I figure out the problem with the convolve method. The code I wrote was only prepared to deal with <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html#TYPE_INT_ARGB" >TYPE_INT_ARGB</a> <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/BufferedImage.html" >BufferedImages</a> but when reading a image from a file, it doesn't ensure this type. Now this is fixed and working.</p>
<p>Furthermore, I added charcoal, solarize and shade effects. The latter gave some problem while testing, but finally the problem was in test not in code. From now on, the to_threshold method must be used in test when dealing with numbers that depend on the <a href="http://www.imagemagick.org/api/MagickCore/magick-type_8h-source.html#l00068" >QuantumRange</a>. This problem is due that QuantumRange can differ from one ImageMagick installation to another, but RMagick4J always uses 255.</p>
<p>Here you are some examples (the guy that looks like me is actually my non-existent twin brother):</p>
<table>
<tr>
<td>RMagick</td>
<td>RMagick4J (This is what I do)</td>
</tr>
<tr>
<td colspan=2>original</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/original.jpg" alt="original RMagick4J: Status Update 09/03/09" title="original" width="100" height="75" class="alignnone size-full wp-image-383" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/original.jpg" alt="original RMagick4J: Status Update 09/03/09" title="original" width="100" height="75" class="alignnone size-full wp-image-383" /></td>
</tr>
<tr>
<td colspan=2>charcoal 0.75 (RMagick4J is not normalized)</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/charcoal_rmagick.jpg" alt="Charcoal RMagick" title="Charcoal RMagick" width="100" height="75" class="alignnone size-full wp-image-378" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/charcoal.jpg" alt="CharcoalEffect" title="CharcoalEffect" width="100" height="75" class="alignnone size-full wp-image-377" /></td>
</tr>
<tr>
<td colspan=2>edge 5</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/edge_rmagick.jpg" alt="Edge RMagick" title="Edge RMagick" width="100" height="75" class="alignnone size-full wp-image-379" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/edge.jpg" alt="EdgeEffect" title="EdgeEffect" width="100" height="75" class="alignnone size-full wp-image-374" /></td>
</tr>
<tr>
<td colspan=2>shade true, 50, 50</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/shade_rmagick.jpg" alt="Shade RMagick" title="Shade RMagick" width="100" height="75" class="alignnone size-full wp-image-380" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/shade.jpg" alt="ShadeEffect" title="ShadeEffect" width="100" height="75" class="alignnone size-full wp-image-375" /></td>
</tr>
<tr>
<td colspan=2>solarize 27.5/255*QuantumRange</td>
</tr>
<tr>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/solarize_rmagick.jpg" alt="Solarize RMagick" title="Solarize RMagick" width="100" height="75" class="alignnone size-full wp-image-381" /></td>
<td><img src="http://www.serabe.com/wp-content/uploads/2009/03/solarize.jpg" alt="SolarizeEffect" title="SolarizeEffect" width="100" height="75" class="alignnone size-full wp-image-376" /></td>
</tr>
</table>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/03/09/rmagick4j-status-update-090309/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PredicciÃ³n.</title>
		<link>http://www.serabe.com/2009/03/06/prediccion/</link>
		<comments>http://www.serabe.com/2009/03/06/prediccion/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 21:00:45 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=358</guid>
		<description><![CDATA[Escribo esto el miÃ©rcoles 4 de marzo a las 21:52 y predigo que Alba no habrÃ¡ escrito nada nuevo para cuando esta entrada vea la luz... ActualizaciÃ³n: Esto de predecir no es tan chungo. Â¡He acertado!]]></description>
			<content:encoded><![CDATA[<p>Escribo esto el miÃ©rcoles 4 de marzo a las 21:52 y predigo que Alba no habrÃ¡ escrito nada nuevo para cuando esta entrada vea la luz...<br />
<strong>ActualizaciÃ³n:</strong> Esto de predecir no es tan chungo. Â¡He acertado!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/03/06/prediccion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dead Like Me: Life After Death</title>
		<link>http://www.serabe.com/2009/03/05/dead-like-me-life-after-death/</link>
		<comments>http://www.serabe.com/2009/03/05/dead-like-me-life-after-death/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 12:47:30 +0000</pubDate>
		<dc:creator>Serabe</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.serabe.com/?p=360</guid>
		<description><![CDATA[I remember this TV show fondly. It was the last TV show I got up early (I mean, befor 13:00) only to watch it with my family. It was all about a girl who died in the pilot when a toilet crashed into her. Then, Georgia (the only girl I know had died because a [...]]]></description>
			<content:encoded><![CDATA[<p>I remember this TV show fondly. It was the last TV show I got up early (I mean, befor 13:00) only to watch it with my family. It was all about a girl who died in the pilot when a toilet crashed into her. Then, Georgia (the only girl I know had died because a toilet crashed into her) became a grim reaper, her work was to reap souls of time-to-go people. Furthermore, she was in the External Influence Division (accidents, nature disasters and others).<br />
Later in the story we knew about the gravelings, a beings that cause deathly accidents. They are suppose to be invincible (spoiler, spoiler, spoiler) in the second season's finale Georgia reaped a graveling, and it turned to dust (you can read now safely).</p>
<p>So, this week I read a film about <a href="http://www.deadlikeme.tv/" alt="Official Website" >Dead Like Me</a> was released and few hours ago, I finally saw it. No Rube (<a rel="nofollow" href="http://www.imdb.com/name/nm0001597/" alt="IMDB" >Mandy Patinkin</a>, the 'I'm IÃ±igo Montoya, you killed my father. Prepare to die.' guy), no original Daisy,  no Der Waffel Haus (it is even burned to dust!), suddenly the George's other face is not hard to look at. Ok, I can stand it. Maybe I can even enjoy it (no, I'm not kidding). But not graveling reaping? But not (the same spoiler comes again) graveling reaping? OMG! It was the cliffhanger of the second season!(you can read the rest of the post) And lostie Desmond instead of Rube!</p>
<p>Anyway, the film is watchable. It is not like Street Fighter: The Legend of Chun-Li (I'm still considering killing every people involved in that crime against humanity).</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.serabe.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.serabe.com/2009/03/05/dead-like-me-life-after-death/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
