<?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>creanium.net &#187; cappuccino</title>
	<atom:link href="http://www.creanium.net/tag/cappuccino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.creanium.net</link>
	<description>The Thoughts and Ramblings of John Crean</description>
	<lastBuildDate>Tue, 02 Mar 2010 04:09:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Downloading and Building Cappuccino 0.7b on OS X Leopard</title>
		<link>http://www.creanium.net/2009/04/20/downloading-and-building-cappuccino-07b-on-os-x-leopard/</link>
		<comments>http://www.creanium.net/2009/04/20/downloading-and-building-cappuccino-07b-on-os-x-leopard/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:21:20 +0000</pubDate>
		<dc:creator>John Crean</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[cappuccino]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.creanium.net/2009/04/20/downloading-and-building-cappuccino-07b-on-os-x-leopard/</guid>
		<description><![CDATA[As you may have read already, I&#8217;m in the process of learning and developing web applications with Cappuccino. I&#8217;ve been building against the latest stable release of Cappuccino, which at the time of this writing was 0.6.5, and I saw the Cappuccino team released a new version: 0.7 beta. I wanted to play with 0.7b, [...]]]></description>
			<content:encoded><![CDATA[<p>As you may have read already, I&#8217;m in the process of learning and developing web applications with Cappuccino. I&#8217;ve been building against the latest stable release of Cappuccino, which at the time of this writing was 0.6.5, and I saw the Cappuccino team released a new version: 0.7 beta. I wanted to play with 0.7b, to see the new features and possibly contribute to testing.</p>
<p>Right now, the only way to use 0.7b is to download and build it from source. Since I develop on a MacBook Pro using Mac OS X Leopard (10.5), these instructions will be based on that. These instructions also assume you are familiar with the Terminal application.</p>
<h4>Prerequisites<br /></h4>
<p>You will need the following:</p>
<ul>
<li><a href="http://code.google.com/p/git-osx-installer/downloads/list">Git</a></li>
<li><a href="http://hivelogic.com/articles/view/ruby-rails-leopard">Ruby, Rubygems and Rails</a> &#8211; If you&#8217;re using OS X Leopard, the default install that comes with the OS is sufficient. (Cappuccino will <strong>not</strong> compile on Ruby 1.9, make sure you&#8217;re using Ruby 1.8)</li>
</ul>
<h3>Installing Needed Gems</h3>
<p>Cappuccino 0.7b requires the plist Ruby Gem. The installer is supposed to automatically install it for you, but it can be flakey, so just for safety&#8217;s sake, install the plist gem by running the following command:</p>
<p><code>sudo gem install plist</code></p>
<h3>Getting the Source Code</h3>
<p>Once you have Git and Ruby installed, you need to get the source from the Cappuccino project on GitHub. I keep all my source code in <em>/usr/local/src/</em> (for more info on why, Hivelogic has <a href="http://hivelogic.com/articles/view/using_usr_local">an article</a> about this very subject).</p>
<p>Let&#8217;s go into the <em>src</em> directory and check out the source code</p>
<p><code>cd /usr/local/src/<br />
git clone git://github.com/280north/cappuccino.git</code></p>
<p>This will download all the source and create a directory name cappuccino. Let&#8217;s go into that directory and select the 0.7b branch as the active target.</p>
<p><code>cd cappuccino<br />
git checkout -b 0.7b origin/0.7b</code></p>
<p>This sets 0.7b as the current target.</p>
<h3>Building the Cappuccino Code</h3>
<p>Now, let&#8217;s go ahead and build the code</p>
<p><code>rake release</code></p>
<p>This should have built Cappuccino 0.7b. You may have experienced the following error while trying to build the code:</p>
<p><code>subrake missing: ojunit</code></p>
<p>If so, don&#8217;t panic. It&#8217;s just looking for additional software, build by the Cappuccino team, that isn&#8217;t provided in the Cappuccino source by default.</p>
<p>Just run the following commands:</p>
<p><code>cd Tools<br />
git clone git://github.com/280north/ojunit.git<br />
cd ..</code></p>
<p>Then run</p>
<p><code>rake release</code></p>
<p>again and you should have happy compiled code.</p>
<h3>Installing the Cappuccino Code</h3>
<p>Now, to install the Cappuccino tools, you just run the following command:</p>
<p><code>sudo rake install</code></p>
<p>This will install all the Cappuccino binaries in <em>/usr/local/bin/</em>. This should already be in your PATH, so you should be able to run the Cappuccino binaries.</p>
<h3>Using capp</h3>
<p>Building and installing the Cappuccino code created some new useful tools for you. One of them is the <em>capp</em> application that generates all the Cappuccino frameworks and shell code for you. It can also be used to upgrade the frameworks in your existing application.</p>
<h4>Creating a new Cappuccino Application</h4>
<p>You can use the <em>capp</em> application to create a new Cappuccino application for you. From within any directory you want your new cappuccino application created, just issue the following command:</p>
<p><code>capp <em>Application Name</em> [options]</code></p>
<p>If, for instance, you want to create a new app called &#8220;HelloWorld&#8221; to be placed on your desktop, then you can easily enter the following command:</p>
<p><code>capp ~/Desktop/HelloWorld</code></p>
<p>This will create, quite literally, a Hello World application. You can use this as the basis for your app and build on top of it.</p>
<h4>Upgrading an Existing Cappuccino Application</h4>
<p>If you already have developed (or are developing) a Cappuccino application and you just want to see how your application will function in the latest beta, the easiest method is to create a dummy application with <em>capp</em> using the instructions above, and then just replacing the <em>Frameworks</em> folder in your application&#8217;s folder with the new one created by capp.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.creanium.net/2009/04/20/downloading-and-building-cappuccino-07b-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Building Better Web Apps in Cappuccino</title>
		<link>http://www.creanium.net/2009/04/18/building-better-web-apps-in-cappuccino/</link>
		<comments>http://www.creanium.net/2009/04/18/building-better-web-apps-in-cappuccino/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 18:21:34 +0000</pubDate>
		<dc:creator>John Crean</dc:creator>
				<category><![CDATA[SPARTA]]></category>
		<category><![CDATA[cappuccino]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.creanium.net/2009/04/18/building-better-web-apps-in-cappuccino/</guid>
		<description><![CDATA[Believe it or not, we have several applications built using Excel and Excel macros that employees at SPARTA use. So each time we update the Excel file, we have to send it out to the users manually. There are issues with these apps running in Excel 2007 that we haven&#8217;t fixed yet, so whenever someone [...]]]></description>
			<content:encoded><![CDATA[<p>Believe it or not, we have several applications built using Excel and Excel macros that employees at SPARTA use. So each time we update the Excel file, we have to send it out to the users manually. There are issues with these apps running in Excel 2007 that we haven&#8217;t fixed yet, so whenever someone inadvertently upgrades, we have to get them to downgrade to Excel 2003.</p>
<p>So for many reasons, we&#8217;re replacing these Excel-based apps with a web-based system. As is typical with SPARTA, we&#8217;re the exception to every rule, so no Commercial of the Shelf (COTS) system really did everything we needed it to do. So now it falls on us to develop the web application. One decision we&#8217;ve made was to make the web version similar to the Excel-based versions to reduce the learning curve. Then as users get used to the web apps, we&#8217;ll gradually make changes and redesigns as we find necessary.</p>
<p>One of the apps is mostly just a report viewer, so it will be built using a traditional XHTML/JavaScript interface to mimic the Excel functionality. Of course, we will be offering methods to export the data so the users can use the data in a way they&#8217;re more comfortable, but we&#8217;ll take care of all the calculations and data persistence on the web server.</p>
<p>The second web app, of which I am in charge, is mostly just a data-capture application. It needs to do a lot more than the reporting app, so we decided to go down the path of creating a full-on web application. For that, we have decided on developing the app in <a href="http://cappuccino.org/">Cappuccino</a>.</p>
<p><a href="http://cappuccino.org/">Cappuccino</a> is a JavaScript-based framework for developing web applications. For anyone familiar with programming for the Mac or iPhone, it&#8217;s touted as &#8220;Cocoa for the web&#8221;. Just like how Cocoa is built on the Objective-C language, <a href="http://cappuccino.org/">Cappuccino</a> uses its own Objective-J language. Where Objective-C is a superset of the C language, Objective-J is a superset of JavaScript. Which means even when coding in Objective-J, you still have access to all the regular built-in JavaScript functionality, much like C functionality is available to Objective-C applications.</p>
<p>In fact, the <a href="http://cappuccino.org/">Cappuccino</a> team has already ported many of the frameworks available in Cocoa to <a href="http://cappuccino.org/">Cappuccino</a>. So really, any seasoned Cocoa developer could easily create a <a href="http://cappuccino.org/">Cappuccino</a> application with minimal learning required. The <a href="http://cappuccino.org/">Cappuccino</a> team even points out that one iPhone developer was able to port a game he created for the iPhone from Cocoa to <a href="http://cappuccino.org/">Cappuccino</a> in just one hour.</p>
<p>They&#8217;ve also created an impressive web application, written entirely in <a href="http://cappuccino.org/">Cappuccino</a> and Objective-J, that is essentially a web-based version of PowerPoint called <a href="http://280slides.com">280 Slides</a>.</p>
<p>How is <a href="http://cappuccino.org/">Cappuccino</a> any different than any of the other JavaScript libraries like jQuery, MooTools, Script.aculo.us, etc? Well, they all use the same basic fundamental design: you build your site using HTML and CSS, then you plug in the library where necessary. <a href="http://cappuccino.org/">Cappuccino</a> apps require no knowledge of HTML or CSS; it builds the HTML and CSS for you in your application. So you spend more time developing the application, and less time worrying about design or attaching your JavaScript to your HTML.</p>
<p>We&#8217;ve had a chance to test out and develop a few test applications in <a href="http://cappuccino.org/">Cappuccino</a> and I&#8217;ve been <em>very</em> impressed so far with the results. We&#8217;re finally moving ahead on these applications, so as I use <a href="http://cappuccino.org/">Cappuccino</a> and Objective-J, I will likely be posting up some thoughts and maybe some tutorials as I see fit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.creanium.net/2009/04/18/building-better-web-apps-in-cappuccino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: www.creanium.net @ 2010-09-07 08:14:33 -->