tag:blogger.com,1999:blog-72337120790271854822023-11-15T06:05:51.919-08:00A little lambdaTom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-7233712079027185482.post-76847479420220608942019-07-28T10:08:00.000-07:002019-07-28T10:08:12.812-07:00Testing @tmaynard +tmaynard @TomMaynard +TomMaynard -- Nothing seems to work.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-2746029141745900592019-07-28T10:07:00.001-07:002019-07-28T10:07:56.843-07:00<h3>
Winding the Atomic Clock </h3>
<div>
A. Install NTP</div>
<div>
<ul>
<li>Angstrom:<br />opkg install ntp-systemd</li>
</ul>
</div>
<div>
A. Set the timezone<br />
<ol>
<li>cd /usr/share/zoneinfo</li>
<li><i>Find the region closest to your own location, my own follows</i></li>
<li>ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime<br /><b>NOTE: </b><i>Back up the previous file first, if you wish</i></li>
</ol>
<div>
B. Setup NTP</div>
</div>
<div>
<ol>
<li><br /></li>
</ol>
</div>
Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-13816112854710876122019-07-28T10:07:00.000-07:002019-07-28T10:07:43.730-07:00Java Development on the BeagleBone Black<br />
<br />
<div class="sites-canvas-main" id="sites-canvas-main" sab="110">
<div id="sites-canvas-main-content" sab="111">
<table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox" sab="112" xmlns="http://www.w3.org/1999/xhtml"><tbody sab="113">
<tr sab="114"><td class="sites-layout-tile sites-tile-name-content-1" sab="115"><div dir="ltr" sab="116">
<div sab="117">
Get a JDK:</div>
<ol sab="118">
<li sab="119">opkg update</li>
<li sab="120">opkg install openjdk-6-jdk</li>
</ol>
<div sab="121">
Then you have all the familiar JRE and JDK tools, like java, javac, jar, etc.</div>
<div sab="122">
<br sab="123" /></div>
<div sab="124">
If you are able to install, but there is a dependency error, try to install all of the individual packages:</div>
<div sab="125">
<ul sab="126">
<li sab="127">opkg install openjdk-6-common</li>
<li sab="128">opkg install openjdk-6-java</li>
<li sab="129">opkg install openjdk-6-jre</li>
<li sab="130">opkg install openjdk-6-jdk</li>
<li sab="131">opkg install openjdk-6-vm-zero</li>
</ul>
</div>
<div sab="132">
</div>
<div sab="133">
<br sab="134" /></div>
<div sab="135">
It might be that your particular distribution don't have those packages in the package list. In that case:</div>
<div sab="136">
<br sab="137" /></div>
<div sab="138">
<div sab="139">
<span lang="EN-US" sab="140">URLs in required installation order:</span></div>
<ol sab="141">
<li sab="142"><a href="http://www.angstrom-distribution.org/repo/?pkgname=librhino-java" sab="143">http://www.angstrom-distribution.org/repo/?pkgname=librhino-java</a></li>
<li sab="144"><a href="http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-common" sab="145">http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-common</a></li>
<li sab="146"><a href="http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-java" sab="147">http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-java</a></li>
<li sab="148"><a href="http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jre" sab="149">http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jre</a></li>
<li sab="150"><a href="http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jdk" sab="151">http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-jdk</a></li>
<li sab="152"><a href="http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-zero" sab="153">http://www.angstrom-distribution.org/repo/?pkgname=openjdk-6-vm-zero</a></li>
</ol>
<div sab="154">
<span lang="EN-US" sab="155"> </span>Download the newest version for armv7a (or all) architecture, example:</div>
<ul sab="156">
<li sab="157"><span lang="EN-US" sab="158"> </span>librhino-java_1.7r2-r0_all.ipk</li>
<li sab="159">openjdk-6-common_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk</li>
<li sab="160">openjdk-6-java_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk</li>
<li sab="161">openjdk-6-jdk_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk</li>
<li sab="162">openjdk-6-jre_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk</li>
<li sab="163">openjdk-6-vm-zero_6b24-1.11.1+1.11.2-devel+hg1+54ceda20a02c-r17.0_armv7a.ipk</li>
</ul>
<div sab="164">
<span lang="EN-US" sab="165">Install using: opkg install <filename></span></div>
<div sab="166">
<span lang="EN-US" sab="167">Test:</span></div>
<div sab="168">
<span lang="EN-US" sab="169">root@beaglebone:/usr/src/javatest# cat HelloWorld.java</span></div>
<div sab="170">
<span lang="EN-US" sab="171">class HelloWorld {</span></div>
<div sab="172">
<span lang="EN-US" sab="173"> public static void main(String[] args) {</span></div>
<div sab="174">
<span lang="EN-US" sab="175"> System.out.println("Hello World!"); // Display the string.</span></div>
<div sab="176">
<span lang="EN-US" sab="177"> }</span></div>
<div sab="178">
<span lang="EN-US" sab="179">}</span></div>
<div sab="180">
<span lang="EN-US" sab="181">root@beaglebone:/usr/src/javatest# javac HelloWorld.java</span></div>
<div sab="182">
<span lang="EN-US" sab="183">root@beaglebone:/usr/src/javatest# java HelloWorld</span></div>
<div sab="184">
Hello World!</div>
<div sab="185">
root@beaglebone:/usr/src/javatest#</div>
</div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-35405025934556519772013-04-03T17:53:00.002-07:002013-04-03T17:53:39.559-07:00Maybe Dave will see this and decide that blogging is "for" him, after all!Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-72613922618955678742013-01-11T18:18:00.003-08:002013-01-11T18:18:31.485-08:00Hmmm. All these blogging sites are a little different from one another. Here in Google-territory, the creation of a new post presents you with a blank editing screen -- and no context within which to compose. Elsewhere, it's more Wiki-like, and you simply insert text below (or above, if that's how you roll) all prior entries.<br />
<br />
No matter. They all work, and after some floundering perhaps I'll settle on a single one.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-18898955457537736002013-01-11T07:32:00.000-08:002013-01-11T07:32:01.969-08:00Testing <a class="g-profile" href="http://plus.google.com/114173400508963545645" target="_blank">+Thomas Maynard</a> <a class="g-profile" href="http://plus.google.com/114173400508963545645" target="_blank">+Thomas Maynard</a> +carolynmaynard <a class="g-profile" href="http://plus.google.com/116070762848270921116" target="_blank">+Carolyn Maynard</a> <a class="g-profile" href="http://plus.google.com/116070762848270921116" target="_blank">+Carolyn Maynard</a><br />
<br />
So: One needs to type "+" followed by the correct case of the first name "T" or "T" -- although in my own case, "t" also works but not for Carolyn. I'm not sure I understand it fully, but at least I know the secret now. <a class="g-profile" href="http://plus.google.com/114096575091873108029" target="_blank">+David Maynard</a> <a class="g-profile" href="http://plus.google.com/101218454725069481378" target="_blank">+Martha Patterson</a> ... just like that!Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-49861398241227703052013-01-11T07:22:00.001-08:002013-01-11T07:22:47.435-08:00[01/11/2013 @ 09:18] I have invited @Carolyn Maynard to the +Trifluent blog here. Only time will tell if she accepts the invitation.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-33004227894221190312012-06-04T04:03:00.001-07:002012-06-04T04:03:59.024-07:00After a rather long time away from my Vimclojure setup, I discovered yesterday that it doesn't work! That simply can't be: it's just Dave Ray's "VimClojure Easy" -- tested and working -- and merged back into my customary setup. And yet...<br />
<br />
Oh well, time to roll up my sleeves and fix it (again). Bother.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-30426518961369694442012-05-28T20:54:00.002-07:002019-07-28T10:08:28.009-07:00I decided (somewhat reluctantly) to reinstall my Linux dual-boot setup. For reasons that were never obvious, I was running Lubuntu 12.04 32-bit, in a measly 30GB partition.<br />
<br />
My laptop has a 750GB disk, Intel Core i7 processor, and runs Win7 64 in the other partition.<br />
<br />
So, I backed up what I thought was necessary (moving stuff to Dropbox), and then installed Lubuntu 12.04/64 bit. And spent the rest of the day/evening working to reestablish my prior configuration.<br />
<br />
I'm far from done, but most of the important bits are there: gvim, my .vimrc, my pathogen-infected bundle directory, a handful of tools (my ~/bin directory contents), Java, etc.<br />
<br />
Clojure remains to do, along with plenty of other nits that I'll discover along the way.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0tag:blogger.com,1999:blog-7233712079027185482.post-28288853507235073142012-05-27T22:53:00.003-07:002012-05-27T22:53:32.587-07:00Kick OffWhat do I know about the lambda calculus? Next to nothing ... okay, nothing at all. But I harbor a long-time interest in "things lambda."<br />
<br />
I was fooling with Scheme, and decided Racket (aka PLT Scheme) was the one for me. But then I heard of Clojure, which not only is <i>a</i> Lisp, it's hosted on the JVM ... opening a vast library of code, ready to roll.<br />
<br />
So, that's where my head is at the moment. I'm constantly "seeking" (i.e. looking at languages/platforms/...) but so far nothing can dislodge Clojure for its combination of simplicity, and ubiquity (the JVM, remember?).<br />
<br />
This blog will document my experiments, my progress, my failures, as I record my own journey of discovery. Someday, perhaps, I'll make this all a bit more public, and it just might help someone else struggling and (unknowingly) retracing my steps.<br />
<br />
We'll see.Tom Maynardhttp://www.blogger.com/profile/18122838909422311102noreply@blogger.com0