<?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>anilmakhijani.com &#187; Mac OS X</title>
	<atom:link href="http://anilmakhijani.com/tag/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://anilmakhijani.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Jun 2011 17:19:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Compiling a Flowplayer Plugin on Mac OS X</title>
		<link>http://anilmakhijani.com/2009/01/09/compiling-a-flowplayer-plugin-on-mac-os-x/</link>
		<comments>http://anilmakhijani.com/2009/01/09/compiling-a-flowplayer-plugin-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 20:40:14 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Flow Player]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[FlowPlayer]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[planetdev]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://anilmakhijani.com/?p=186</guid>
		<description><![CDATA[For some reason it took me a while to figure out how to compile a flash plugin for Flowplayer. Here were the steps that I took to finally get it working: Install Ant. Instructions for this can be found here Download Adobe Flex 3 SDK. You can download this here. Unzip the Flex 3 SDK [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason it took me a while to figure out how to compile a flash plugin for Flowplayer.  Here were the steps that I took to finally get it working:<br />
<span id="more-186"></span></p>
<ol>
<li>Install Ant.  Instructions for this can be found  <a href="http://www.asceticmonk.com/blog/?p=388">here</a></li>
<li>Download Adobe Flex 3 SDK.  You can download this <a href="http://www.adobe.com/products/flex/flexdownloads/#sdk">here.</a></li>
<li>Unzip the Flex 3 SDK that you just downloaded.
<pre>
% unzip flex_sdk_3.zip
</pre>
</li>
<li> Download the Flowplayer development kit.  The latest version of the development kit can be found <a href="http://flowplayer.org/plugins/flash/writing.html">here.</a></li>
<li> Unzip the Flowplayer development kit.
<pre>% upzip flowplayer.devkit-3.0.3.zip</pre>
</li>
<li> Edit the plugin-build.properties file in the Flowplayer development kit.  Specifically edit the line that says:</li>
<pre>flex3dir=/Users/api/flex3sdk</pre>
<p>to point to the location to which you unzipped the Flex 3 SDK.  After editing my file looks like this:</p>
<pre>flex3dir=/Users/anil/Desktop/flex_sdk_3</pre>
<li> Navigate to the example plugin that is contained within the Flowplayer development kit.  For me this is located here:
<pre>/Users/anil/Desktop/flowplayer.devkit/example</pre>
</li>
<li> Finally, type:
<pre>% ant</pre>
<p>The output should look like this:</p>
<pre>
Buildfile: build.xml

build:
     [echo] ++ flowplayer.helloworld.swf +++
     [echo]
     [echo] checking if flowplayer.helloworld.swf is uptodate
     [echo] main up-to-date: ${uptodate.main}

prepare:
    [unzip] Expanding: /Users/anil/env/flowplayer.devkit/flowplayer.swc into
    /Users/anil/env/flowplayer.devkit/example/build

check-compile-dirs:

check-compile-dirs2:

compile:
     [exec] Loading configuration file
           /Users/anil/Desktop/flex_sdk_3/frameworks/flex-config.xml
     [exec] /Users/anil/env/flowplayer.devkit/example/build
/flowplayer.helloworld.swf (1304 bytes)
     [copy] Copying 1 file to /Users/anil/env/flowplayer.devkit/example/build

BUILD SUCCESSFUL
Total time: 3 seconds
</pre>
</li>
</ol>
<p>Congratulations! You have compiled a flash plugin for Flowplayer!</p>
]]></content:encoded>
			<wfw:commentRss>http://anilmakhijani.com/2009/01/09/compiling-a-flowplayer-plugin-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Developing Alt Law on Mac OS X</title>
		<link>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/</link>
		<comments>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 20:30:28 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[AltLaw Development]]></category>
		<category><![CDATA[AltLaw]]></category>
		<category><![CDATA[Columbia Law and Technology Program]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Solr]]></category>

		<guid isPermaLink="false">http://anilmakhijani.com/?p=65</guid>
		<description><![CDATA[There is a neat project that I have wanted to get involved with for a while called AltLaw. AltLaw is a free open source project developed by the Columbia Law and Technology program. Resources for the project are located at the Law Commons Trac Page. I am trying to get the AltLaw &#8220;stack&#8221; working on [...]]]></description>
			<content:encoded><![CDATA[<p>There is a neat project that I have wanted to get involved with for a while called AltLaw.  AltLaw is a free open source project developed by the Columbia Law and Technology program.  Resources for the project are located at the <a href="http://lawcommons.org/trac/">Law Commons Trac Page</a>.</p>
<p>I am trying to get the AltLaw &#8220;stack&#8221; working on my Mac OS X machine.  So here we go:</p>
<p><span id="more-65"></span></p>
<p>
<strong>1) </strong>Download the file <a href="http://anilmakhijani.com/altlaw-config.zip">http://anilmakhijani.com/altlaw-config.zip</a> and unzip it.  I will refer to the location of this unzipped file as {alt-law-config-directory} throughout the rest of this tutorial.
</p>
<p>
<strong>2) </strong>Next, we have to get the Rails front end working.
</p>
<p>
(Prerequisites: sqlite, git)
</p>
<pre>
% git clone git://github.com/lawcommons/altlaw-websearch.gitInitialize altlaw-websearch/.git
% gem install -v=2.1.0 rails
% gem install htmlentities
% gem install BlueCloth
% gem install solr-ruby
% gem install ruby-debug
% gem install chronic
% gem install json
% cd altlaw-websearch
% mkdir log
% chmod -R 644 log/
% cp {alt-law-config-directory}/altlaw-config/rails-config/* config/database.yml
% rake db:migrate
</pre>
<p>In the file config/environment.rb, change the line:</p>
<p><code>SOLR = Solr::Connection.new("http://localhost:8196/v3/solr")</code></p>
<p>to:</p>
<p><code>SOLR = Solr::Connection.new("http://localhost:8983/solr/")</code></p>
<p>and:</p>
<p><code>ExceptionNotifier.exception_recipients = ['errors@altlaw.org']</code></p>
<p>to:</p>
<p><code>ExceptionNotifier.exception_recipients = ['myemail@example.com']</code></p>
<p>% ./script/server</p>
<p>This starts the Rails front end at http://localhost:3000</p>
<p><em>* To run the Rails front end in production mode do the following:</em></p>
<p>(Additional prerequisites: mysql)</p>
<p>update config/database.yml with the proper configuration for you database</p>
<pre>
% rake db:migrate RAILS_ENV=production
% rake sass:update
% RAILS_ENV=production rake asset:packager:build_all
% ./script/server -e production
</pre>
<p><strong>3)</strong> Finally, we need Solr:</p>
<p>The following tutorial seemed to work perfectly on my Mac OS X: <a href="http://lucene.apache.org/solr/tutorial.html">http://lucene.apache.org/solr/tutorial.html</a></p>
<pre>
% wget http://mirror.x10.com/mirror/apache/lucene/solr/1.2/apache-solr-1.2.0.tgz
% tar xvfz apache-solr-1.2.0.tgz
% cd apache-solr-1.2.0
% cp -r example/ alt-law/
% cd alt-law/
% cp {alt-law-config-directory}/altlaw-config/solr-config/* solr/conf/
% java -jar start.jar
</pre>
<p>This starts solr at http://localhost:8983/solr/.</p>
<p>This set of instructions worked for me.  I would love feedback on what it would take to get this to work on non Mac OS X system.</p>
]]></content:encoded>
			<wfw:commentRss>http://anilmakhijani.com/2008/08/11/developing-alt-law-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

