<?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:</title>
	<atom:link href="http://www.aterism.com/code/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>WordPress: Reload</title>
		<link>http://www.aterism.com/code/2010/06/wordpress-reload/</link>
		<comments>http://www.aterism.com/code/2010/06/wordpress-reload/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 15:47:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=175</guid>
		<description><![CDATA[My code blog apparently died and I was unable to revive it via normal methods. I&#8217;ve restored the data from a straight sql dump so some things may work incorrectly until I notice them and fix them. On a further &#8230; <a href="http://www.aterism.com/code/2010/06/wordpress-reload/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My code blog apparently died and I was unable to revive it via normal methods.</p>
<p>I&#8217;ve restored the data from a straight sql dump so some things may work incorrectly until I notice them and fix them.</p>
<p>On a further note, the HDDs were never replaced as they did not come back as faulty from SeaGate&#8217;s utilities and I&#8217;m too cheap to buy new ones right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2010/06/wordpress-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HDD Failing</title>
		<link>http://www.aterism.com/code/2010/03/hdd-failing/</link>
		<comments>http://www.aterism.com/code/2010/03/hdd-failing/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:23:43 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=173</guid>
		<description><![CDATA[System is reporting that my HDD is failing. I&#8217;ll be backing it up soon then. It just strikes me as strange that it&#8217;s failing after a little over a year. I&#8217;ve only had one other hard drive fail on me &#8230; <a href="http://www.aterism.com/code/2010/03/hdd-failing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>System is reporting that my HDD is failing.<br />
I&#8217;ll be backing it up soon then.</p>
<p>It just strikes me as strange that it&#8217;s failing after a little over a year.<br />
I&#8217;ve only had one other hard drive fail on me and that was at 11 months.<br />
I still have some older drives that work perfectly should I choose to use them and their monstrous 1 gig of space around somewhere.</p>
<p>Anyway, backing up to a large drive sometime soon.<br />
Down time should be minimal for those that care.</p>
<p>~makkura </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2010/03/hdd-failing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium Beta Launch Party</title>
		<link>http://www.aterism.com/code/2009/06/titanium-beta-launch-party/</link>
		<comments>http://www.aterism.com/code/2009/06/titanium-beta-launch-party/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 14:56:30 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Titanium]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=142</guid>
		<description><![CDATA[If you&#8217;re in the San Francisco area on June 9th, check out the Titanium Beta Launch Party. I can&#8217;t go so you should go for me! Full details found here: http://bit.ly/5YAv I know it&#8217;s a little redundant because most people &#8230; <a href="http://www.aterism.com/code/2009/06/titanium-beta-launch-party/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re in the San Francisco area on June 9th, check out the Titanium Beta Launch Party.<br />
I can&#8217;t go so you should go for me!</p>
<p>Full details found here: <a href="http://bit.ly/5YAv">http://bit.ly/5YAv</a></p>
<p>I know it&#8217;s a little redundant because most people stumbling here will already know about it but just in case you don&#8217;t, well now you do.</p>
<p>~makkura</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2009/06/titanium-beta-launch-party/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>Titanium: Starting Your Project</title>
		<link>http://www.aterism.com/code/2009/04/titanium-starting-your-project/</link>
		<comments>http://www.aterism.com/code/2009/04/titanium-starting-your-project/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 15:09:33 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Titanium]]></category>
		<category><![CDATA[Titanium Tutorials]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=34</guid>
		<description><![CDATA[Starting Your Project There have been some articles written giving overviews of the Titanium Developer application. This is the application that helps you manage your Titanium projects, test code samples, and keep up with the Titanium community. This tutorial isn&#8217;t &#8230; <a href="http://www.aterism.com/code/2009/04/titanium-starting-your-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Starting Your Project</h2>
<p>There have been some articles written giving overviews of the Titanium Developer application.<br />
This is the application that helps you manage your Titanium projects, test code samples, and keep up with the Titanium community.<br />
This tutorial isn&#8217;t about the application so much as what is involved in making your application.<br />
For a more broad look at Titanium Developer check out the official screencast for PR3: <a href="http://www.vimeo.com/3930183">Titanium Developer &#8211; Preview Release 3 Features</a>.<br />
<strong>Notes:</strong> Due to a reload of the database the images for this section have been lost. The plugin handling toggling the subsections is also no longer in support. For now all divs are visible and no images are available.<br />
This is an old tutorial now so it will stay as is unless a request comes in.<br />
<span id="more-34"></span></p>
<h3>Installation / Upgrading: <a id="button_install" style="text-decoration: none;" onclick="wp_showhide('installation')">[+/-]</a></h3>
<div id="installation" style="display: block;">I&#8217;m going to assume you already have Titanium installed as a prerequisite.<br />
If not, visit www.titaniumapp.com/download/ and get the latest version.<br />
If you are running an older version and are upgrading, please delete the previous Titanium folders before doing so.<br />
The folders you need to remove are:<br />
<u>Windows</u> &#8211; C:\Documents and Settings\All Users\Application Data\Titanium  and  C:\Program Files\Titanium Developer<br />
<u>OS-X</u> &#8211; /Library/Application Support/Titanium and /Applications/Titanium Developer<br />
<u>Linux</u> &#8211; ./TitaniumApp, usually /home/user/TitaniumApp</div>
<h3>Project Creation: <a id="button_creation" style="text-decoration: none;" onclick="wp_showhide('creation')">[+/-]</a></h3>
<div id="creation" style="display: block;">Alright, you should be inside the Titanium Developer program after your installation finished or you went and opened it because you&#8217;re abit ahead fo the game here.<br />
If you&#8217;re looking at the listing of projects, hit the Create Project button, it is a small plus sign in a circle.<br />
If you&#8217;re looking a list of frameworks like JQuery and MooTools, you&#8217;re in the right place.</p>
<div id="attachment_96" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/project-list.jpg"><img class="size-full wp-image-96" title="project-list" src="http://www.aterism.com/code/wp-content/uploads/2009/04/project-list.jpg" alt="Project Listing" width="300" height="177" /></a><p class="wp-caption-text">Project Listing</p></div>
<div id="attachment_91" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/create.jpg"><img class="size-full wp-image-91" title="create" src="http://www.aterism.com/code/wp-content/uploads/2009/04/create.jpg" alt="Creating a Project" width="300" height="177" /></a><p class="wp-caption-text">Creating a Project</p></div>
<p>From here you want to select the additional tools you may want to use for your project.<br />
Just highlight want you want and hit Continue.<br />
Don&#8217;t fret too much! You can always add them later or add other libraries just like you would on a normal webpage.</p>
<p>The next page is your projects information.<br />
Fill it out and hit Create.<br />
It&#8217;s simple, I promise.</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/create_details.jpg"><img class="size-full wp-image-92" title="create_details" src="http://www.aterism.com/code/wp-content/uploads/2009/04/create_details.jpg" alt="Creating a Project: Details" width="300" height="177" /></a><p class="wp-caption-text">Creating a Project: Details</p></div>
<p>The <i>Project Name</i> is the name of your application to be.<br />
This will also be used to help organize it by giving it a dedicated folder with a matching name.<br />
The <i>Project Description</i> is a summary of what your application is for or does.<br />
The <i>Publisher Name</i> is you or your company.<br />
The <i>Publisher URL</i> is your home page or your company&#8217;s home page.<br />
The <i>Project Location</i> is the local location to store your project&#8217;s folder. It has a standard browse button there next to it.<br />
The <i>Application Image</i> is the icon that will be used for your application. It aslo has a standard browse button next to it.</p>
<p>Got everything filled in and ready to go?<br />
Hit Create and we&#8217;ll move on.</p></div>
<h3>Adding Content: <a id="button_content" style="text-decoration: none;" onclick="wp_showhide('content')">[+/-]</a></h3>
<div id="content" style="display: block;">Alright, your project exists and you&#8217;re ready to add some code!<br />
Where do you do that?<br />
Well your project has its own folder so let&#8217;s go there and take a look.<br />
You&#8217;ll have to find this one yourself as you specified that directory when you were filling out the basic project information.<br />
Once you get there, take a look at the folder structure.</p>
<div id="attachment_94" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/file_structure.jpg"><img class="size-full wp-image-94" title="file_structure" src="http://www.aterism.com/code/wp-content/uploads/2009/04/file_structure.jpg" alt="File Structure of a Project" width="300" height="222" /></a><p class="wp-caption-text">File Structure of a Project</p></div>
<p>The main things to notice here are the &#8216;tiapp.xml&#8217;, the &#8216;dist&#8217; folder, and the &#8216;Resources&#8217; folder.<br />
The &#8216;tiapp.xml&#8217; file is filled with the information you filled in when creating your project but it also handles some window sizing and control material.<br />
You can see more information on it in my post: TiApp.xml &#8211; Some Detail On Defaults.</p>
<p>The &#8216;dist&#8217; folder will populate with data when you Package and Launch your project. It pretty much holds the local data for your project then.</p>
<p>The &#8216;Resources&#8217; folder is the most important thing for you here.<br />
It acts like your base web directory of a website.<br />
Remember how Titanium uses web languages, right?<br />
Well this is where it starts treating things like a website or webapp.</p>
<div id="attachment_95" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/file_structure_resources.jpg"><img class="size-full wp-image-95" title="file_structure_resources" src="http://www.aterism.com/code/wp-content/uploads/2009/04/file_structure_resources.jpg" alt="File Structure of a Project: Resources Folder" width="300" height="222" /></a><p class="wp-caption-text">File Structure of a Project: Resources Folder</p></div>
<p>Open it up and you&#8217;ll see an &#8216;index.html&#8217; file.<br />
The &#8216;index.html&#8217; file is the first file that is displayed when your application opens.<br />
<i>Note: The icon you chose for your application may be here as well. As of PR3 it appears your icon file may be linked to rather than copied to your Resources folder.</i></p>
<p>Understand this &#8216;Resources&#8217; directory is just base folder of a web site.<br />
That means you can add any content you want under this folder and get access to it just like you would in a normal website.<br />
Want to make a &#8216;js&#8217; folder for your javascript files? An &#8216;images&#8217; folder for your images? Go for it! Just remember to add &#8216;js/&#8217; or &#8216;images&#8217;/ to your path when referencing them.</p>
<p>Speaking of referencing to this folder, Titanium saves you some effort by making the &#8216;Resources&#8217; folder equivalent to &#8216;app://&#8217;.<br />
So your &#8216;images&#8217; folder above would be &#8216;app://images/&#8217; and your javascript files would be &#8216;app://js/&#8217;.<br />
Your index is &#8216;app://index.html&#8217; as well.</p>
<p>Open up that &#8216;index.html&#8217; file and take a peek inside.<br />
You&#8217;ll see it is a very basic webpage welcoming you to Titanium.<br />
Any frameworks that you chose to include when you created your project are also here.<br />
You can add more by adding them in the code here. Don&#8217;t worry you don&#8217;t have to add references or anything somewhere else. It&#8217;s all right here.<br />
Take a few moments to edit it, add in some custom text or your favorite feature.<br />
Need some inspiration? Try out a <a href="http://doc.titaniumapp.com/notification_tutorial">Notification Tutorial</a>.<br />
Save and close your editor.</p>
<div id="attachment_93" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/editor.jpg"><img class="size-full wp-image-93" title="editor" src="http://www.aterism.com/code/wp-content/uploads/2009/04/editor.jpg" alt="Index.html with default content" width="300" height="148" /></a><p class="wp-caption-text">Index.html with default content</p></div>
<h3>Testing Your Application: <a id="button_testing" style="text-decoration: none;" onclick="wp_showhide('testing')">[+/-]</a></h3>
<div id="testing" style="display: block;">#image: TiDev in project window with project selected</p>
<p>Back in the Titanium Developer application on the Projects tab your project should be listed along with any others you have started.<br />
Click its name to open up some details on it.<br />
Replacing the date next to the project name are a couple of icons.<br />
The minus sign will let you delete your project.<br />
The &#8216;box&#8217; icon will let you run or package your project for installation.<br />
Go ahead and click the box.</p>
<div id="attachment_100" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_options.jpg"><img class="size-full wp-image-100" title="project_packaging_options" src="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_options.jpg" alt="Project Package / Install / Launch Options" width="300" height="177" /></a><p class="wp-caption-text">Project Package / Install / Launch Options</p></div>
<p>You should be presented with some options:<br />
- Package and Launch<br />
- Run Application Installer<br />
- Package for Distribution</p>
<p>To test your application you&#8217;ll want to use Package and Launch.<br />
This will prepare your application to run and then run it so you can see it in action.<br />
Feel free to give it a whirl and see some of your code in action.</p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/running_app.jpg"><img class="size-full wp-image-109" title="running_app" src="http://www.aterism.com/code/wp-content/uploads/2009/04/running_app.jpg" alt="Simple Titanium App Running w/ Debugger" width="300" height="184" /></a><p class="wp-caption-text">Simple Titanium App Running w/ Debugger</p></div>
</div>
<h3>Packing for Distribution: <a id="button_packaging" style="text-decoration: none;" onclick="wp_showhide('packaging')">[+/-]</a></h3>
<div id="packaging" style="display: block;">If you followed the Testing Your Application section you&#8217;ll be in the right place to begin packing your application.<br />
If not, open up the Titanium Developer, go to the Projects tab, select your project, and push the box icon next to your project name.</p>
<div id="attachment_97" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_bundle.jpg"><img class="size-full wp-image-97" title="project_packaging_bundle" src="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_bundle.jpg" alt="Package for Distribution Options" width="300" height="177" /></a><p class="wp-caption-text">Package for Distribution Options</p></div>
<p>Here you are greeted with icons to select the platforms (OS-X, Windows, and Linux) to build the application for.<br />
Go ahead and at select one or more of them and we&#8217;ll move on.<br />
You can then choose if the Titanium runtime files will be bundled with your installer or downloaded when the installer is installing your application.<br />
The Network option is smaller and a good idea in case the user already has the runtime files.<br />
Since I&#8217;m just testing, I usually use the Bundled options even though it can be pretty large.</p>
<p>Below the basic Network /Bundled option is a listing of the different modules.<br />
You can choose to Exlude a module entirely, leave it downloadable on install, or bundle it.<br />
This will let you customize what is actually going with your application and is your best bet when you get to the point when you&#8217;re trying to make your installer a little smaller.<br />
Before you jump down to the Package button look down there for a little check box.<br />
See him? He&#8217;s there to let you make your application public in the cloud.<br />
If you check him and Package he&#8217;ll show up on the Apps tab and make your application easier for others to access.<br />
Once you&#8217;ve at least selected a general packaing method hit Package along the bottom.</p>
<div id="attachment_98" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_cloud.jpg"><img class="size-full wp-image-98" title="project_packaging_cloud" src="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_cloud.jpg" alt="Packaing Project: In Progress Cloud" width="300" height="177" /></a><p class="wp-caption-text">Packaing Project: In Progress Cloud</p></div>
<p>You will be packaged via the Titanium Cloud.<br />
You will see an animation with a cloud to show you it is packaing the application.<br />
When it is done you will be given a link to your application for each of the operating systems you chose.<br />
There is also a link to visit a page containing them all.</p>
<div id="attachment_99" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_downloads.jpg"><img class="size-full wp-image-99" title="project_packaging_downloads" src="http://www.aterism.com/code/wp-content/uploads/2009/04/project_packaging_downloads.jpg" alt="Packing Project: Finished - Download Options" width="300" height="177" /></a><p class="wp-caption-text">Packing Project: Finished - Download Options</p></div>
<p>Follow a link and grab your application.<br />
<strong>Congratulations on completing your application in Titanium!</strong></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2009/04/titanium-starting-your-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TiAppxml &#8211; Some Detail On Defaults</title>
		<link>http://www.aterism.com/code/2009/04/tiappxml/</link>
		<comments>http://www.aterism.com/code/2009/04/tiappxml/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 18:33:55 +0000</pubDate>
		<dc:creator>makkura</dc:creator>
				<category><![CDATA[Titanium]]></category>
		<category><![CDATA[Titanium Tutorials]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.aterism.com/code/?p=12</guid>
		<description><![CDATA[What&#8217;s this TiApp.xml you speak of? There hasn&#8217;t been much discussion of what&#8217;s in the tiapp.xml file since PR1 of Titanium. Since this file controls a lot of how your program starts up and acts initially, it is important to &#8230; <a href="http://www.aterism.com/code/2009/04/tiappxml/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>What&#8217;s this TiApp.xml you speak of?</h2>
<p>There hasn&#8217;t been much discussion of what&#8217;s in the tiapp.xml file since PR1 of Titanium.<br />
Since this file controls a lot of how your program starts up and acts initially, it is important to know what it does.<br />
The tiapp.xml file is generated automatically when your project is created via the Titanium Developer.<br />
It can, however, be edited manually after that.</p>
<p><span id="more-12"></span><br />
Here&#8217;s a sample tiapp.xml:</p>
<pre name="code" class="xml">
<?xml version='1.0' encoding='UTF-8'?>
<ti:app xmlns:ti='http://ti.appcelerator.org'>
<id>com.makkura.test_application_demo</id>
	<name>test_application_demo</name>
	<version>1.0</version>
<publisher>makkura</publisher>
	<url>www.aterism.com</url>
	<copyright>2009 by makkura</copyright>
	<window>
		<id>initial</id>

		<url>app://index.html</url>
		<width>700</width>
		<max-width>3000</max-width>
		<min-width>0</min-width>
		<height>800</height>
		<max-height>3000</max-height>
		<min-height>0</min-height>
		<fullscreen>false</fullscreen>
		<resizable>true</resizable>
		<chrome scrollbars="true">true</chrome>
		<maximizable>false</maximizable>
		<minimizable>false</minimizable>
		<closeable>true</closeable>
	</window>
</ti:app>
</pre>
<h2>The Details:</h2>
<p>Most of the code here is self explainitory.<br />
We&#8217;ll be going out of order a little in this explaination.<br />
The first couple lines set up the xml version and allow Titanium to parse it correctly.</p>
<h3>Publisher Information:</h3>
<p>The &lt;publisher&gt; tag gives the name of the publisher of the application. This is usually &#8216;you&#8217; or &#8216;your company&#8217;.<br />
The &lt;url&gt; tag gives the URL of the publisher.<br />
The &lt;name&gt;, &lt;publisher&gt;, and &lt;url&gt; tags cover the information about you, the publisher.</p>
<h3>Application Information:</h3>
<p>The &lt;id&gt; tag identifies your application.<br />
It follows the convention of &#8216;com.&lt;publisher&gt;.&lt;application_name&gt;&#8217;.<br />
Data on your program will be stored in a folder with that tag name.<br />
Windows: C:\Documents and Settings\All Users\Application Data\Titanium\appdata<br />
OS-X: /Library/Application Support/Titanium/appdata<br />
Linux: /TitaniumApp/appdata/</p>
<p>The &lt;version&gt; tag shows the version number of your program.<br />
It starts at 1.0 and is not changed automatically. If you keep this number up to date, it can help identify what version your users have and if they need updates.<br />
The &lt;copyright&gt; tag is filled with &lt;current_year&gt; by &lt;publisher&gt; on creation of the project.</p>
<h3>Window Information:</h3>
<p>The rest of the file specifies things about your application for when it opens.<br />
Notice these are all enclosed by the &lt;window&gt; tags.</p>
<h3>Identification:</h3>
<p>The &lt;id&gt; tag specifies the window name for the first application window.<br />
This is set by default to &#8216;initial&#8217;.<br />
Using the Titanium API you can refer to this window with Titanium.UI.windows["initial"] or Titanium.UI.windows[0].<br />
You can use either the id name or the index number to refer to your windows.</p>
<p>The &lt;title&gt; tag refers to the title that will be placed on the window.<br />
This is equivalent to the HTML &lt;title&gt; tag.</p>
<p>The &lt;url&gt; tag specifies what file is going to be opened as content for this window.<br />
It is set by default to &#8216;app://index.html&#8217;.<br />
&#8216;app://&#8217; points to your current project&#8217;s Resources folder so this is the same as &#8216;path/application/Resources/index.html&#8217;.<br />
In my example&#8217;s case that would be &#8216;/test_application_demo/Resources/index.html&#8217;.</p>
<h3>Size:</h3>
<p>The &lt;min-height&gt; and &lt;max-height&gt; tags control the minimum and maximum height of the window respectively.<br />
Similarly the &lt;min-width&gt; and &lt;max-width&gt; tags control the minimum and maximum width of the window.<br />
By default these are set to extreme values to not interefere with the application&#8217;s sizing.</p>
<p>The &lt;height&gt; and &lt;width&gt; tag assign the default size of the window when it opens.</p>
<p>If you need your window to conform to a specific size then these are the values you&#8217;ll need to edit.</p>
<h3>Control:</h3>
<p>The &lt;maximizable&gt;, &lt;minimizable&gt;, and &lt;closable&gt; tags handle the standard actions you expect from the Minimize, Maximize, and Close buttons in the corner of the title bar.<br />
These are all set to &#8216;true&#8217; by default.<br />
Any that are disabled will be &#8216;greyed out&#8217; and unusable.<br />
If they are all disabled then they will not appear on the title bar at all.<br />
(Greying out and being removed from the title bar completely may depend on the OS the application is run on.)</p>
<p>The &lt;fullscreen&gt; tag handles if the application is full screen or not.<br />
It is set to &#8216;false&#8217; by default.<br />
If it is set to &#8216;true&#8217; the application will take up the whole window and will not have the standard title bar and Minimize, Maximize, Close controls visible.</p>
<h3>Chrome:</h3>
<p>The &lt;chrome&gt; tag handles what custom chrome is available.<br />
It is set to &#8216;true&#8217; by default.<br />
If it is set to &#8216;false&#8217; the title bar will not appear.<br />
The &lt;chrome&gt; tag also contains a value &#8216;scrollbars=&#8221;true&#8221;&#8216;.  This value handles if there are usuable scrollbars if the content reaches far enough horizontally or vertically.<br />
If it is set to &#8216;false&#8217; there will be no scrollbars to use.</p>
<p>That covers everything in the TiApp.xml file by default.<br />
There may be additional fields used by the different OS builds or fields the developes have added but not used by default.<br />
I leave it to those more adventurous to handle those.</p>
<p>If you have additional fields that are specific to your OS in your tiapp.xml by default, please let me know and I will add in a refernce to them here.<br />
<em>~makkura</em><em></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aterism.com/code/2009/04/tiappxml/feed/</wfw:commentRss>
		<slash:comments>0</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>
