<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>1onRandom Geekery</title>
    <link>https://randomgeekery.org/note/2008/01/</link>
    <description>
      Recent contentin1 on Random Geekery
    </description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
      
      <lastBuildDate>Tue, 08 Jan 2008 00:00:00 +0000</lastBuildDate><atom:link href="https://randomgeekery.org/note/2008/01/index.xml" rel="self" type="application/rss+xml" /><item>
  <title>Note: 2008-01-08</title>
  <link>https://randomgeekery.org/note/2008/01/2008-01-08/</link>
  <pubDate>Tue, 08 Jan 2008 00:00:00 +0000</pubDate>
  
  <guid>https://randomgeekery.org/note/2008/01/2008-01-08/</guid>
  <description>&lt;h2 id=&#34;rebol-3-alpha-released&#34;&gt;REBOL 3 alpha released&lt;/h2&gt;
&lt;p&gt;I just saw Petr Krenzelok’s giddy announcement on the &lt;a href=&#34;https://randomgeekery.org/page/rebol/&#34;&gt;REBOL&lt;/a&gt; mailing list that a public alpha of REBOL 3 is available today. I’ve been waiting to see this for a while and can’t even begin to describe how excited I am.&lt;/p&gt;
&lt;p&gt;The official announcement is &lt;a href=&#34;http://www.rebol.com/article/0347.html&#34;&gt;here&lt;/a&gt;. I just need to remember that it’s an alpha. Pieces aren’t going to work. Things will be strange. But it’s out there for the bold to play with.&lt;/p&gt;</description>
   <category>note</category> 
  
   <category>blogspot</category> 
  <content:encoded><![CDATA[<h2 id="rebol-3-alpha-released">REBOL 3 alpha released</h2>
<p>I just saw Petr Krenzelok&rsquo;s giddy announcement on the <a href="/page/rebol/">REBOL</a> mailing list that a public alpha of REBOL 3 is available today. I&rsquo;ve been waiting to see this for a while and can&rsquo;t even begin to describe how excited I am.</p>
<p>The official announcement is <a href="http://www.rebol.com/article/0347.html">here</a>. I just need to remember that it&rsquo;s an alpha. Pieces aren&rsquo;t going to work. Things will be strange. But it&rsquo;s out there for the bold to play with.</p>
<p>Of course I gotta get some work done, but you can be sure I&rsquo;ll be poking at this over the next couple of days.</p>
]]></content:encoded>
</item>
<item>
  <title>Note: 2008-01-04</title>
  <link>https://randomgeekery.org/note/2008/01/2008-01-04/</link>
  <pubDate>Fri, 04 Jan 2008 00:00:00 +0000</pubDate>
  
  <guid>https://randomgeekery.org/note/2008/01/2008-01-04/</guid>
  <description>&lt;h2 id=&#34;another-link&#34;&gt;Another link&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;http://rubyonwindows.blogspot.com/&#34;&gt;This blog&lt;/a&gt; may well be the single best resource ever created for those of use who are learning how to automate &lt;a href=&#34;https://randomgeekery.org/page/windows/&#34;&gt;Windows&lt;/a&gt; with &lt;a href=&#34;https://randomgeekery.org/page/ruby/&#34;&gt;Ruby&lt;/a&gt;.&lt;/p&gt;</description>
   <category>note</category> 
  
   <category>blogspot</category> 
  <content:encoded><![CDATA[<h2 id="another-link">Another link</h2>
<p><a href="http://rubyonwindows.blogspot.com/">This blog</a> may well be the single best resource ever created for those of use who are learning how to automate <a href="/page/windows/">Windows</a> with <a href="/page/ruby/">Ruby</a>.</p>
]]></content:encoded>
</item>
<item>
  <title>Note: 2008-01-03</title>
  <link>https://randomgeekery.org/note/2008/01/2008-01-03/</link>
  <pubDate>Thu, 03 Jan 2008 00:00:00 +0000</pubDate>
  
  <guid>https://randomgeekery.org/note/2008/01/2008-01-03/</guid>
  <description>&lt;h2 id=&#34;xahs-elisp-tutorial&#34;&gt;Xah’s Elisp Tutorial&lt;/h2&gt;
&lt;p&gt;I’d &lt;em&gt;really&lt;/em&gt; love to master an editor. Any editor. &lt;a href=&#34;https://randomgeekery.org/page/vim/&#34;&gt;Vim&lt;/a&gt; has been my weapon of choice for years, but &lt;a href=&#34;https://randomgeekery.org/page/emacs/&#34;&gt;Emacs&lt;/a&gt; has always intrigued me. It’s easier to use than Vim, but the Elisp language is the real draw. Vim’s configuration / scripting language is awkward at best. Elisp is cryptically lispish, but at least it is possible to break it down without wondering what the heck &lt;code&gt;&lt;sfile&gt;&lt;/code&gt; is supposed to be.&lt;/p&gt;</description>
   <category>note</category> 
  
   <category>blogspot</category> 
  <content:encoded><![CDATA[<h2 id="xahs-elisp-tutorial">Xah&rsquo;s Elisp Tutorial</h2>
<p>I&rsquo;d <em>really</em> love to master an editor. Any editor. <a href="/page/vim/">Vim</a> has been my weapon of choice for years, but <a href="/page/emacs/">Emacs</a> has always intrigued me. It&rsquo;s easier to use than Vim, but the Elisp language is the real draw. Vim&rsquo;s configuration / scripting language is awkward at best. Elisp is cryptically lispish, but at least it is possible to break it down without wondering what the heck <code>&lt;sfile&gt;</code> is supposed to be.</p>
<p>So yeah. I&rsquo;m mostly a Vim guy but I&rsquo;d love to get more out of my Emacs sessions. With that in mind, I&rsquo;ll be taking a close look at Xah&rsquo;s <a href="http://xahlee.org/emacs/emacs.html">Emacs</a> and <a href="http://xahlee.org/emacs/elisp.html">Elisp</a> tutorials.</p>
]]></content:encoded>
</item>
<item>
  <title>Note: 2008-01-02</title>
  <link>https://randomgeekery.org/note/2008/01/2008-01-02/</link>
  <pubDate>Wed, 02 Jan 2008 00:00:00 +0000</pubDate>
  
  <guid>https://randomgeekery.org/note/2008/01/2008-01-02/</guid>
  <description>&lt;h2 id=&#34;reinstalling-jruby&#34;&gt;Reinstalling JRuby&lt;/h2&gt;
&lt;p&gt;I’m still getting everything back together after the iMac upgrade fiasco. &lt;a href=&#34;http://jruby.org&#34;&gt;JRuby&lt;/a&gt;, my favorite &lt;a href=&#34;https://randomgeekery.org/page/ruby/&#34;&gt;Ruby&lt;/a&gt; implementation, is still missing. I think I’ll fix that now.&lt;/p&gt;</description>
   <category>note</category> 
  
  
  <content:encoded><![CDATA[<h2 id="reinstalling-jruby">Reinstalling JRuby</h2>
<p>I&rsquo;m still getting everything back together after the iMac upgrade fiasco. <a href="http://jruby.org">JRuby</a>, my favorite <a href="/page/ruby/">Ruby</a> implementation, is still missing. I think I&rsquo;ll fix that now.</p>
<ul>
<li>Grab the binary of 1.03 from the <a href="http://jruby.org">JRuby</a> site.</li>
<li><code>cd /usr/local</code></li>
<li><code>sudo tar xfvz ~/jruby-bin-1.0.3.tar.gz</code></li>
<li><code>sudo ln -s /usr/local/jruby-1.0.3/ /usr/local/jruby</code></li>
<li>Add JRuby details to my (somewhat busy) bash profile</li>
</ul>

  <details open>
  <summary><tt>Code Sample</tt>
  </summary>

<figure class="highlight">
  <pre tabindex="0" class="chroma">
    <code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#b0bec5"># ~/.bash_profile</span>
</span></span><span style="display:flex;"><span>export JRUBY_HOME<span style="color:#ffb8d1">=</span><span style="color:#1bc5e0">&#34;/usr/local/jruby&#34;</span>&lt;/strong&gt;
</span></span><span style="display:flex;"><span><span style="color:#b0bec5"># OS X is normally conservative about paths, while I am generous about them.</span>
</span></span><span style="display:flex;"><span>export LOCALBINS<span style="color:#ffb8d1">=</span>/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/X11R6/bin
</span></span><span style="display:flex;"><span>export APPBINS<span style="color:#ffb8d1">=</span>$JRUBY_HOME/bin
</span></span><span style="display:flex;"><span>export PATH<span style="color:#ffb8d1">=</span>$APPBINS:$LOCALBINS:$PATH
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#c2ffdf">if</span> <span style="color:#ffb8d1">[</span> -r ~/.bashrc <span style="color:#ffb8d1">]</span>; <span style="color:#c2ffdf">then</span>
</span></span><span style="display:flex;"><span>    . ~/.bashrc
</span></span><span style="display:flex;"><span><span style="color:#c2ffdf">fi</span></span></span></code>
  </pre>
</figure><p>Source the file and test my path &hellip;</p>

  <details open>
  <summary><tt>Code Sample</tt>
  </summary>

<figure class="highlight">
  <pre tabindex="0" class="chroma">
    <code class="language-console" data-lang="console"><span style="display:flex;"><span>$ . ~/.bash_profile
</span></span><span style="display:flex;"><span>$ which jruby
</span></span><span style="display:flex;"><span>/usr/local/jruby/bin/jruby
</span></span><span style="display:flex;"><span>$ which gem
</span></span><span style="display:flex;"><span>/usr/local/jruby/bin/gem
</span></span></code>
  </pre>
</figure><p>Test with the sample code from <a href="https://github.com/jruby/jruby/wiki/GettingStarted">JRuby wiki&rsquo;s Getting Started</a> entry.</p>

  <details open>
  <summary><tt>Code Sample</tt>
  </summary>

<figure class="highlight">
  <pre tabindex="0" class="chroma">
    <code class="language-ruby" data-lang="ruby"><span style="display:flex;"><span>require <span style="color:#1bc5e0">&#34;java&#34;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>include_class <span style="color:#1bc5e0">&#34;java.util.TreeSet&#34;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>puts <span style="color:#1bc5e0">&#34;Hello from JRuby&#34;</span>
</span></span><span style="display:flex;"><span>set <span style="color:#ffb8d1">=</span> <span style="color:#c5a3ff">TreeSet</span><span style="color:#ffb8d1">.</span>new()
</span></span><span style="display:flex;"><span>set<span style="color:#ffb8d1">.</span>add( <span style="color:#1bc5e0">&#34;foo&#34;</span> )
</span></span><span style="display:flex;"><span>set<span style="color:#ffb8d1">.</span>add( <span style="color:#1bc5e0">&#34;Bar&#34;</span> )
</span></span><span style="display:flex;"><span>set<span style="color:#ffb8d1">.</span>add( <span style="color:#1bc5e0">&#34;baz&#34;</span> )
</span></span><span style="display:flex;"><span>set<span style="color:#ffb8d1">.</span>each { <span style="color:#ffb8d1">|</span>v<span style="color:#ffb8d1">|</span> puts <span style="color:#1bc5e0">&#34;value: </span><span style="color:#1bc5e0">#{</span>v<span style="color:#1bc5e0">}</span><span style="color:#1bc5e0">&#34;</span> }</span></span></code>
  </pre>
</figure><p>Run it.</p>

  <details open>
  <summary><tt>Code Sample</tt>
  </summary>

<figure class="highlight">
  <pre tabindex="0" class="chroma">
    <code class="language-" data-lang="">$ jruby call_java.rb</code>
  </pre>
</figure><p>Wait a very long time (why does Java startup have to be so slow on our Mac and how the heck can I make it faster? It&rsquo;s one thing that&rsquo;s significantly worse on our Mac compared to my PC). <em>Eventually</em> see:</p>

  <details open>
  <summary><tt>Code Sample</tt>
  </summary>

<figure class="highlight">
  <pre tabindex="0" class="chroma">
    <code class="language-console" data-lang="console"><span style="display:flex;"><span>$ jruby call_java.rb
</span></span><span style="display:flex;"><span>Hello from JRuby
</span></span><span style="display:flex;"><span>value: Bar
</span></span><span style="display:flex;"><span>value: baz
</span></span><span style="display:flex;"><span>value: foo
</span></span></code>
  </pre>
</figure><p>Excellent, it worked. It&rsquo;s 2:46 now. I better post this and go to bed.</p>]]></content:encoded>
</item>
</channel>
</rss>
