<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Nodding Politely]]></title>
  <link href="http://javier.pedemonte.us//atom.xml" rel="self"/>
  <link href="http://javier.pedemonte.us//"/>
  <updated>2012-02-04T21:57:59-06:00</updated>
  <id>http://javier.pedemonte.us//</id>
  <author>
    <name><![CDATA[Javier Pedemonte]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Reconcile OpenAjax Metadata for use with AMD/Module Specs]]></title>
    <link href="http://javier.pedemonte.us//blog/2011/11/17/reconcile-openajax-metadata-for-use-with-amd-slash-module-specs/"/>
    <updated>2011-11-17T19:33:00-06:00</updated>
    <id>http://javier.pedemonte.us//blog/2011/11/17/reconcile-openajax-metadata-for-use-with-amd-slash-module-specs</id>
    <content type="html"><![CDATA[<p>For the <a href="http://maqetta.org">Maqetta Designer</a> project, we use <a href="http://www.openajax.org/member/wiki/OpenAjax_Metadata_1.0_Specification_Widget_Metadata">OpenAjax Metadata</a> (OAM) to provide information about the widgets that can be dropped on the page – mainly the widget content, required resources and properties.</p>

<p>We stick to the spec and keep the metadata files “toolkit-agnostic”, by storing Maqetta-specific widget metadata elsewhere.  Ideally, another product that implemented the OAM spec could make use of our metadata files.</p>

<p>Lately, though, we’ve started to transition to using the AMD loader for Dojo 1.7; and we found that the existing OAM files didn’t really work that well with AMD.</p>

<p>For that reason, we had to deviate from the OAM spec and add extensions to support AMD and other module specs.  <a href="https://gist.github.com/1347093">Read on here for a detailed explanation of the changes and some examples.</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Anti-intellectualism]]></title>
    <link href="http://javier.pedemonte.us//blog/2011/11/06/anti-intellectualism/"/>
    <updated>2011-11-06T23:29:00-06:00</updated>
    <id>http://javier.pedemonte.us//blog/2011/11/06/anti-intellectualism</id>
    <content type="html"><![CDATA[<blockquote>
  <p>“Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that ‘my ignorance is just as good as your knowledge.’” </p>

  <p><strong>Isaac Asimov</strong></p>
</blockquote>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Kicking off Movember 2011!]]></title>
    <link href="http://javier.pedemonte.us//blog/2011/11/01/kicking-off-movember-2011/"/>
    <updated>2011-11-01T12:43:00-05:00</updated>
    <id>http://javier.pedemonte.us//blog/2011/11/01/kicking-off-movember-2011</id>
    <content type="html"><![CDATA[<p><img src="http://javier.pedemonte.us//media/2011/11/transition.jpeg" width="574" height="288" title="[beard to clean shaven]" /></p>

<p>It&rsquo;s that time of the year again, time to kick Cancer&rsquo;s * ass by growing some ridiculous facial hair!  For those of you who aren&rsquo;t familiar with Movember, at the beginning of the November, dude&rsquo;s shave their face, completely.  Then, grow a mustache through the end of the month.  And as always, comport yourself like a true gentleman.</p>

<p>You can check out my progress throughout the month on my <a href="http://mobro.co/javped">Movember.com space</a>.  There, you can also <strong>donate to the cause</strong> and help improve men&rsquo;s health.</p>

<p><em>* testicular <strong>and</strong> prostate!</em></p>

<hr />

<p><br />
Having a full beard leading up to Movember gives you the opportunity to experiment and plan the &lsquo;stache you are going to grow.  I tried a few different styles, but my two favorites were <strong>The Bronco</strong>:</p>

<p><img src="http://javier.pedemonte.us//media/2011/11/stache-bronco.png" title="[The Bronco]" /></p>

<p>and <strong>The Fuzzy Caterpillar</strong>:</p>

<p><img src="http://javier.pedemonte.us//media/2011/11/stache-caterpillar.png" title="[The Fuzzy Caterpillar]" /></p>

<p>I don&rsquo;t think The Fuzzy Caterpillar works well for me &ndash; I just don&rsquo;t have the clothes for it.  But I&rsquo;m digging The Bronco&hellip;</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Setup Octopress on GoDaddy]]></title>
    <link href="http://javier.pedemonte.us//blog/2011/10/31/setup-octopress-on-godaddy/"/>
    <updated>2011-10-31T08:35:00-05:00</updated>
    <id>http://javier.pedemonte.us//blog/2011/10/31/setup-octopress-on-godaddy</id>
    <content type="html"><![CDATA[<p>I’ve had a GoDaddy hosting account for far too long, but decided to use it anyway, to host an Octopress instance.  Yes, I know I can use GitHub Pages or Heroku for free, and they would be much simpler to use.  But I felt like taking on a challenge.  Below is (roughly) the steps I had to take to host Octopress on a GoDaddy Linux server.</p>

<h2 id="required-software">Required Software</h2>

<p>I followed the Octopress installation and setup docs as best I could.  But if you are trying to setup on GoDaddy, you’ll immediately discover that the GoDaddy Linux servers are missing some essential software – in particular, <strong>rsync</strong> and <strong>git</strong>.</p>

<p>First, let’s check what version the server is running and which CPU architecture (32 or 64 bit):</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span /></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
</pre></td><td class="code"><pre><code class="bash"><span class="line">cat /etc/redhat-release   <span class="c"># OS version</span>
</span><span class="line">uname -a                  <span class="c"># CPU arch (amongst other things)</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>

<p>At the time I ran this command, the returned values were <code>CentOS release 5.5 (Final)</code> and 64-bit (<code>i386</code> or <code>i686</code>) for the CPU arch.</p>

<p>I then searched online for appropriate RPMS for rsync and git and installed them in my home directory on the GoDaddy server.  First with <strong>rsync</strong>:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span /></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
<span class="line-number">4</span>
<span class="line-number">5</span>
<span class="line-number">6</span>
<span class="line-number">7</span>
<span class="line-number">8</span>
<span class="line-number">9</span>
<span class="line-number">10</span>
<span class="line-number">11</span>
<span class="line-number">12</span>
</pre></td><td class="code"><pre><code class="bash"><span class="line"><span class="c"># on GoDaddy server</span>
</span><span class="line">
</span><span class="line"><span class="c"># get rsync RPM</span>
</span><span class="line">curl -O http://mirror.centos.org/centos/5/os/i386/CentOS/rsync-3.0.6-4.el5.i386.rpm
</span><span class="line">
</span><span class="line"><span class="c"># unpack RPM locally</span>
</span><span class="line"><span class="c">#  You may want to do this in a temporary folder, so that the unpacking doesn&#39;t</span>
</span><span class="line"><span class="c">#  litter the $HOME dir.</span>
</span><span class="line">rpm2cpio rsync-3.0.6-4.el5.i386.rpm | cpio -id
</span><span class="line">
</span><span class="line"><span class="c"># copy rsync app to local bin dir</span>
</span><span class="line">cp usr/bin/rsync ~/bin
</span></code></pre></td></tr></table></div></figure></notextile></div>

<p>Then with <strong>git</strong> (if you choose to also host your remote git repository):</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span /></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
</pre></td><td class="code"><pre><code class="bash"><span class="line">curl -O http://download.fedora.redhat.com/pub/epel/5/i386/git-1.7.4.1-1.el5.i386.rpm
</span><span class="line">rpm2cpio ../git-1.7.4.1-1.el5.i386.rpm | cpio -id
</span><span class="line">cp usr/bin/git* ~/bin/
</span></code></pre></td></tr></table></div></figure></notextile></div>

<p><strong>Note:</strong> The URLs above may no longer be valid for the hosting system you use.  Make sure you have the right one.</p>

<p>However, it’s still not 100% perfect, since the apps we added aren’t in the path when using a non-interactive session to the GoDaddy server.  We need to tell the local app where to look for any of its dependencies on the server.  For example, to do a clone of a git repository on that server, it would look something like this:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span /></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
<span class="line-number">4</span>
<span class="line-number">5</span>
</pre></td><td class="code"><pre><code class="bash"><span class="line"><span class="c"># The -u option tells git where to find the necessary app on the server.</span>
</span><span class="line">git clone -u bin/git-upload-pack myexample.com:git/octopress.git
</span><span class="line">
</span><span class="line"><span class="c"># rsync has a similar option</span>
</span><span class="line">rsync --rsync-path<span class="o">=</span>bin/rsync foo/ baz/
</span></code></pre></td></tr></table></div></figure></notextile></div>

<h2 id="octopress-configuration">Octopress Configuration</h2>

<p>In general, I followed the documentation, especially <a href="http://octopress.org/docs/deploying/rsync/">Deploying with Rsync</a>.</p>

<p>In the Rakefile, I had to change how <strong>rsync</strong> was invoked, in order to specify the necessary <code>--rsync-path</code>:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>Rakefile  </span></figcaption>
 <div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
<span class="line-number">4</span>
<span class="line-number">5</span>
<span class="line-number">6</span>
<span class="line-number">7</span>
<span class="line-number">8</span>
</pre></td><td class="code"><pre><code class="diff"><span class="line"> desc &quot;Deploy website via rsync&quot;
</span><span class="line"> task :rsync do
</span><span class="line">   puts &quot;## Deploying website via Rsync&quot;
</span><span class="line"><span class="gd">-  ok_failed system(&quot;rsync -avze &#39;ssh -p #{ssh_port}&#39; --delete #{public_dir}/ #{ssh_user}:#{document_root}&quot;)</span>
</span><span class="line"><span class="gi">+  ok_failed system(&quot;rsync --rsync-path=bin/rsync -avze &#39;ssh -p #{ssh_port}&#39; --delete #{public_dir}/ #{ssh_user}:#{document_root}&quot;)</span>
</span><span class="line"> end
</span><span class="line">
</span><span class="line"> desc &quot;deploy public directory to github pages&quot;
</span></code></pre></td></tr></table></div></figure></notextile></div>

<h2 id="setup-git-repository">Setup Git Repository</h2>

<p>I decided to host my own version control repository, again on the GoDaddy server.  I followed the instructions <a href="http://octopress.org/docs/deploying/rsync/">here</a> to first set up my remote repository and then to update the git config.  One thing different is that I didn’t input the <code>pwd</code> URL as the new repo URL (<code>git config branch.master.remote origin</code>) – instead, I have <code>myexample.com:git/octopress.git</code>, where “myexample.com” is an entry in <code>.ssh/config</code>:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>.ssh/config </span></figcaption>
<div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
</pre></td><td class="code"><pre><code class=""><span class="line">Host myexample.com
</span><span class="line">User myusername
</span><span class="line">IdentityFile ~/.ssh/identity</span></code></pre></td></tr></table></div></figure></notextile></div>

<p>The main reason I created this config file is because my GoDaddy username is different than my local username, and i got tired of always doing <code>ssh -i ~/.ssh/identity myusername@myexample.com</code>.  With that config, I can now just type <code>ssh example.com</code>.  It’s also useful for the Octopress scripts.</p>

<p>Now, after creating the repository on the server, running any <em>git</em> commands locally won’t work, complaining that it can’t find <em>git-upload-pack</em>.  You can fix that by specify that executables location on the server:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span /></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
<span class="line-number">4</span>
<span class="line-number">5</span>
</pre></td><td class="code"><pre><code class="bash"><span class="line"><span class="c"># clone</span>
</span><span class="line">git clone -u bin/git-upload-pack myexample.com:git/octopress.git
</span><span class="line">
</span><span class="line"><span class="c"># pull</span>
</span><span class="line">git pull --upload-pack bin/git-upload-pack
</span></code></pre></td></tr></table></div></figure></notextile></div>

<p>An easier way is to add these to the <strong>.git/config</strong> file, under the heading for the GoDaddy server:</p>

<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>.git/config </span></figcaption>
<div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class="line-number">1</span>
<span class="line-number">2</span>
<span class="line-number">3</span>
<span class="line-number">4</span>
<span class="line-number">5</span>
</pre></td><td class="code"><pre><code class=""><span class="line">[remote "origin"]
</span><span class="line">	url = myexample.com:git/octopress.git
</span><span class="line">	fetch = +refs/heads/*:refs/remotes/origin/*
</span><span class="line">	receivepack = bin/git-receive-pack
</span><span class="line">  uploadpack = bin/git-upload-pack</span></code></pre></td></tr></table></div></figure></notextile></div>

<p>With that, it should all work.</p>

<h2 id="references">References</h2>

<p>Here are some sites that helped me with this task:</p>

<p><a href="http://erikfantasia.wordpress.com/2009/03/18/subversion-on-godaddy-shared-hosting/">Subversion on GoDaddy shared hosting</a></p>

<p><a href="http://www.adac-solutions.com/?p=94">Using Git on Godaddy’s Ssh-Enabled Virtual Webhosts</a></p>
]]></content>
  </entry>
  
</feed>

