<?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>Hakkura: &#187; Ruby</title>
	<atom:link href="http://www.aterism.com/code/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aterism.com/code</link>
	<description>Of Code Snippets And Tutorials</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:32:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Some Ruby Links</title>
		<link>http://www.aterism.com/code/2010/06/some-ruby-links/</link>
		<comments>http://www.aterism.com/code/2010/06/some-ruby-links/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 16:32:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=182</guid>
		<description><![CDATA[Haven&#8217;t been posting much of anything anywhere lately. I&#8217;ve been working on a more detailed branch of the Ruby Shipping Gem. I&#8217;m hoping to be able to release some of all of the edits back as either a fork or &#8230; <a href="http://www.aterism.com/code/2010/06/some-ruby-links/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t been posting much of anything anywhere lately.</p>
<p>I&#8217;ve been working on a more detailed branch of the Ruby <a href="http://shipping.rubyforge.org/">Shipping Gem</a>.<br />
I&#8217;m hoping to be able to release some of all of the edits back as either a fork or to the main branch.</p>
<p>Other Ruby of interest:</p>
<ul>
<li><a href="http://github.com/documentcloud/cloud-crowd">Cloud-Crowd</a>: Distributed Task Handling via Cloud</li>
<li><a href="http://github.com/cheald/AuctionBoss">AuctionBoss</a>: An early look at handling the online Auction House for World of Warcraft. Looks neat though it&#8217;s just getting started since the online AH is so new.</li>
<li><a href="http://rubyeventmachine.com/">EventMachine</a>: EventMachine is a pretty neat way to handle incoming and outgoing network connections, among other things. I&#8217;m using it in a current project so thought I&#8217;d link it for those that haven&#8217;t heard of it yet.</li>
<li><a href="http://rubygame.org/">RubyGame</a>: RubyGame is like PyGame but for Ruby. Seriously. No insult to RubyGame but it has the same goals so I feel that it&#8217;s an apt summary <img src='http://www.aterism.com/code/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>That&#8217;s about it for now.<br />
Hopefully I&#8217;ll have something code based to post again soonish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2010/06/some-ruby-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium &amp; WoWHorn: My experience with PR3</title>
		<link>http://www.aterism.com/code/2009/04/titanium-wowhorn-my-experience-with-pr3/</link>
		<comments>http://www.aterism.com/code/2009/04/titanium-wowhorn-my-experience-with-pr3/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 14:49:51 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Titanium]]></category>
		<category><![CDATA[WoWHorn]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[WoW]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=130</guid>
		<description><![CDATA[WoWHorn version 1.0 is written with PR3 of Titanium. As with any new technology this experience was a little bumpy. This post will discuss some of those bumps, both those that involve Titanium and those that do not. For those &#8230; <a href="http://www.aterism.com/code/2009/04/titanium-wowhorn-my-experience-with-pr3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WoWHorn version 1.0 is written with PR3 of Titanium.</p>
<p>As with any new technology this experience was a little bumpy.<br />
This post will discuss some of those bumps, both those that involve Titanium and those that do not.<br />
For those needing more information on either of these technologies, visit:<br />
<a href="http://www.aterism.com/code/wowhorn/">WoWHorn&#8217;s Home Page</a><br />
<a href="http://www.titaniumapp.com/">Titanium&#8217;s Home Page</a></p>
<p>Read on&#8230;.<br />
<span id="more-130"></span></p>
<p><b>WoWArmory and FireFox</b>:<br />
The first thing that caught me was getting the XML for WoW&#8217;s achievements.<br />
Not only are there ten different sheets to grab for the achievements, not all browsers just grab the xml.<br />
By specifying the information to feed the site about the &#8216;agent&#8217; that is contacting it, you can get the proper results.<br />
In this case, if you tell WoWArmory that you&#8217;re using Firefox, you can get the xml sheets out of it.<br />
This technique works both in Javascript and in Ruby (as well as other langages).<br />
Thanks to <a href="http://www.quickarmory.com">Quick Armory</a> (among other places) I was able to find this out.<br />
We use this agent: &#8216;User-agent&#8217;: &#8216;Mozilla/5.0 (en-US; rv:1.8.1.3; IJustWantXML) Gecko/20070309 Firefox/2.0.0.3&#8242;.</p>
<p><b>Titanium and Ruby</b>:<br />
Titanium allows for the usage of Ruby together with your normal web development tools of HTML/CSS/JavaScript.<br />
Unfortunately there are issues using classes in this environment for PR3.  The Ruby code has a habit of losing access to the JavaScript&#8217;s window and thus losing communication with the rest of the program.  This issue is being worked on and will hopefully be smoothed out soon.</p>
<p>The work around? Don&#8217;t use classes.<br />
Ruby functions are directly callable in the Javascript of the page if they aren&#8217;t inside of a class.</p>
<p>Even though the Ruby here isn&#8217;t that heavy, the functions call each other and were meant to be in a class. So it felt a little strange to have these &#8216;free floating&#8217; functions.</p>
<p><b>Titanium and Ruby: The Major Error</b>:<br />
The strangest problem I&#8217;ve had with Titanium and Ruby is a new one.  The Titanium development team is now aware of it and diligently looking into a fix for it.</p>
<p>This issue is that systems that do not have a local copy of Ruby installed on them crash when calling the ruby code of WoWHorn, specifically the XML gathering script.  It is quite strange and, of course, not as intended as Titanium has its own Ruby build with it.<br />
So the current work around for this is to install a local copy of Ruby.</p>
<p><b>Ruby &#038; XML (x10)</b>:<br />
An issue I&#8217;ve found with gathering all these XML files is that it takes some time.<br />
As I was running late on this initial release, I didn&#8217;t push to fix it when the rest of the application did not run at all.<br />
Thanks to being able to use Ruby with Titanium, I will be able to separate these calls into threads to speed it up.</p>
<p><b>SQLite</b>:<br />
Titanium uses Webkit so has access to SQLite.<br />
Though I didn&#8217;t have too many problems feeding data into SQLite, I did keep getting errors with database locks.<br />
So a note for anyone using SQLite, it likes to lock but really only uses explicit locks on writes.<br />
If you&#8217;re encountering a lot of lock errors, check any kind of loops you may have. When I moved from a single file to all ten files, I forgot where my openDB function was and I was trying to reopen the database for every page.  SQLite did not like that.</p>
<p><b>Javascript</b>:<br />
Thanks to some heavier needs for Javascript and some instruction/help from Keeto from <a href="http://www.keetology.com">Keetology</a>, I have found that JavaScript isn&#8217;t just that nifty little language that helped with some effects back in the 90&#8242;s.<br />
The object code for javascript is nice and I like the way it works.  It is still a bit confusing to me, though.<br />
I had a lot of problems with errors caused by variable scope, variable naming, syntax, and general typos.<br />
This wouldn&#8217;t normally be an issue except for, due to calls to the Titanium framework, I couldn&#8217;t use the tools I am used to for finding these errors (names the FireFox error console).<br />
I was finally pointed to the console section of the web inspector to help find these.  Webkit&#8217;s web inspector is not a tool I&#8217;m used to so it will take some time for it to feel smooth to me.</p>
<p><b>Paths</b>:<br />
Knowing your current wording directory isn&#8217;t quite as simple as it used to be when using Titanium.<br />
For instance, when you&#8217;re testing an application out via Package and Launch, your current working directory is the Titanium Developer directory, sometimes.<br />
This is easily fixed, however, by using the path &#8216;app://&#8217; to refer to your application&#8217;s Resources directory.<br />
If the language you&#8217;re using can&#8217;t find it, like Ruby won&#8217;t, you can use the Titanium modules to help locate it with: Titanium.App.appURLToPath(&#8216;app://&#8217;).</p>
<p><b>Finally</b>:<br />
Though it had its bumps, designing with Titanium has been pretty fun.<br />
Of course I could have approached the program with only one language, such as JavaScript only, but Titanium lets me use what I want so it is my decision to decide what I want to use or what is best for the situation.</p>
<p>I expect Titanium to become even more friendly to other languages as well as smoother to find usage information about than it is now in PR3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2009/04/titanium-wowhorn-my-experience-with-pr3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>About This Blog</title>
		<link>http://www.aterism.com/code/2009/04/hello-world/</link>
		<comments>http://www.aterism.com/code/2009/04/hello-world/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 00:58:39 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Titanium]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=1</guid>
		<description><![CDATA[Initial plans for blog content: Titanium, Ruby, HTML, CSS, JavaScript, Python, and JavaScript frameworks: JQuery &#38; MooTools. <a href="http://www.aterism.com/code/2009/04/hello-world/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This blog is intended to provide interesting code snippets and tutorials for those that are interested.</p>
<p style="text-align: left;">The initial plans for content here involve: Titanium (<a title="www.titaniumapp.com" href="http://www.titaniumapp.com" target="_blank">www.titaniumapp.com</a>), Ruby (<a title="www.ruby-lang.org" href="http://www.ruby-lang.org" target="_blank">www.ruby-lang.org</a>), HTML(<a title="www.w3.org" href="http://dev.w3.org/html5/spec/Overview.html" target="_blank">www.w3.org</a>), CSS(<a title="http://www.w3.org/Style/CSS/" href="http://www.w3.org/Style/CSS/" target="_blank">www.w3.org</a>), JavaScript(<a title="https://developer.mozilla.org/en/JavaScript" href="https://developer.mozilla.org/en/JavaScript" target="_blank">developer.mozilla.org</a>), Python(<a title="http://www.python.org/" href="http://www.python.org/" target="_blank">www.python.org</a>), and various JavaScript frameworks according to whim including JQuery(<a title="http://jquery.com/" href="http://jquery.com/" target="_blank">www.jquery.com</a>) and MooTools(<a title="http://mootools.net/" href="http://mootools.net/" target="_blank">www.mootools.net</a>).</p>
<p style="text-align: left;">Why such a large range of tools?  Namely because Titanium can allow them all to work together in the same environment for huge amounts of flexability. Each of the languages listed here are things I have some experience with but I am not an expert in any of them. Hopefully something I find of interest to post here is of value to you, the reader.</p>
<p style="text-align: left;">-makkura</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2009/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
