General Posts

MIT/GNU Scheme in OS X

0

ИконописikoniI’ve not mentioned this previously, but I bought a Macbook Air a few months back and it’s one of the greatest purchases I have ever made. I love this thing! It is so damned sexy (observing both its hardware and software), and so damned fast. I picked-up the baller, 13″ model with the Core i7 processor and 256 GB solid-state drive … it’s portable personal computing perfection! The more Apple products I buy (and, I’ve now accumulated quite a few), the fewer reasons I can produce to not dedicate future technology spend to Cupertino. </rant>

Macbook Air in-hand (or, more appropriately, surgically fused to my hands!) and pursuing Lisp (and Scheme) as a new programming language (dialect), I needed to install MIT/GNU Scheme on my constant companion — more specifically, I wanted to install it in such a way that I can run Scheme / Lisp programs from the shell without having to fire-up the X-Windows application that is installed by the package by default (“Edwin”). A relatively straightforward process, although not particularly well-documented.

Steps to complete are below:

  • Download the OS X binary for MIT/GNU Scheme from the GNU site here.
  • Mount the binary disk image and copy the appropriate files from the disk image to /usr/local/lib

It is worth pausing here to note that one may have to create this path, as I did.  Commands to create and then copy the files are below:

$ sudo mkdir /usr/local/lib/mit-scheme-x86-64
$ sudo cp -R /Volumes/MIT\:GNU\ Scheme/MIT\:GNU\ Scheme.app/Contents/Resources/ /usr/local/lib/mit-scheme-x86-64/
  • Create a symbolic link — scheme – to the newly installed mit-scheme binary
$ sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/bin/scheme

This last step is critical in fully integrating Scheme into the shell, as one would expect it to be after installing it in a Unix environment.

Onward to Lisp hacking greatness!

Postscript:  I’m using the Lisp-in-a-Box IDE distributed by the Common Lisp software repository in OS X as my platform for development in Common Lisp in parallel … learn both dialects simultaneously — seems prudent!

vim + Python

0

икони цениBelow are my current .vimrc settings which, I find, are particularly pleasant for hacking Python.

syntax on
filetype indent plugin on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
" a useful addition to Python source files is the following:
" vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
" this requires the 'set modeline' option in vimrc
" abbreviated commands -- :set ts=8 et sw=4 sts=4
"
" Python configuration below
" Thanks to http://www.vex.net/~x/python_and_vim.html
" Configure vim to smart indent based on the following Python keywords
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
" Configure vim to trim trailing white space
autocmd BufWritePre *.py normal m':%s/\s\+$//e''

Madigan, Begin Again

0

Shortly before I left the house yesterday for the airport, the home line rang and displayed a nonsense phone number on the caller ID. (“100000000000″ was the number — clearly a spoofed number to obscure the identity of the caller.)

If I may digress, briefly, I find it particularly insidious that the campaigns of local and elected officials deliberately mask their efforts to telemarket the electorate in this manner. This is the most recent in a series of similarly obfuscated phone calls we have received — despite our private number and listing on the DNC registry. (It seems, however, that the DNC registry is only aimed at stopping for-profit telemarketing and provides a massive loophole for campaign calls from non-profit organizations.)

</tangent>

The caller identified herself as phoning from Illinois Attorney General Lisa Madigan‘s office. What followed was a surprisingly rude line of responses culminating in an insultingly xenophobic hang-up. I am shocked that the reelection campaign an accomplished politician like Lisa Madigan would have succumbed to such shoddy staff work. Lisa — whomever is running your campaign should be summarily flogged.

The content of the discussion is best relayed in conversational format.

CG: “Good evening?”
LM: <Protracted pause as the auto-dialer routes the answered call> “Uh … yes, may I speak with [my wife]?”
CG: “May I ask who is calling?”
LM: “Uh … this is from Attorney General Lisa Madigan’s office.”
CG: “Is this a campaign call?”
LM: “Umm … not really. We were just calling to see if she was going to vote this year.”
CG: “That sounds like something we’d probably classify as a campaign call and decline to receive it …”
LM: <Before I can complete my polite closure to the conversation> “Well, I’d need to hear that from her.”
CG: “No, you don’t. You’ve phoned my home, my phone number. I’m telling you that we are not interested in receiving campaign calls on this number.”
LM: “Well, she signed up to receive them.”
CG: <Growing vexed>”No, she certainly did not!
LM: “Well, I’m looking at the details right here on her voter registration.”
CG: “Right — she registered to vote. She didn’t sign-up to be campaigned to.”
LM: “Well, I don’t know how this works, but …”
CG: <Interrupting>”I’m telling you that this is how this works.”
LM: “… And you’re from this country, and you know how this works?”
CG: <Stunned speechless for a moment> “Are you kidding me? This is Lisa Madigan’s office phoning, you say?”

<My question was met by the silence of a dead line>

Troubling, indeed, to endure rudeness and ignorance of this magnitude from a woman who interrupted my evening by phoning my home. Hopefully Steve Kim has a more enlightened view on immigration, given his parents’ Korean background.

Ubuntu Global Jam — Chicago

0

We’ve finally agreed on a venue and, so, the Chicago Ubuntu LoCo (“Local Community”) will be meeting for the Ubuntu Global Jam this Sunday, October 4th at the Schaumburg Library from Noon until 9 pm CDT in the Rassmussen South room. For those of you who are unaware of the purpose of the Global Jam, details from the столовеUbuntu Wiki:

The Ubuntu Global Jam is an incredible opportunity for the Ubuntu community to unite together around the weekend of 2nd – 4th Oct 2009 to work together to improve Ubuntu. Everyone is able to contribute to the Jam, and everyone is welcome and encouraged to get involved. Curious about how to make a real difference to Ubuntu? This is a great chance to make that difference.

The Ubuntu Global Jam incorporates events that have been organized over the world to get Ubuntu contributors and fans together to have a great time and improve Ubuntu. Each event has one or more of our four themes:

* Bugs – finding, triaging and fixing bugs.
* Testing – testing the new release and reporting your feedback.
* Documentation – writing documentation about how to use Ubuntu and how to join the community.
* Translations – translating Ubuntu and helping to make it available in everyone’s local language.
* Packaging – work on Ubuntu packages and improve them
* Other – other types of contribution such as marketing, packaging, advocacy etc.

The Schaumburg Library is located on the southwest corner of Schaumburg and Roselle Roads.

Ubuntu in VirtualBox

2

I travel nearly every week to my clients’ offices. I have recently become quite keen on the idea of videoconferencing with my wife and children each night, as a means to span the miles between us. Skype is the software I’ve settled on, as the most promising open-source competitor (Wengo) didn’t instill much confidence. The firm I work for blocks Skype installation through its use of McAfee’s enterprise product — a fact which makes me a saaaad panda! (If this turn of phrase is foreign to you, might I suggest viewing the South Park episode from which it emanates?) (Tangentially, my firm is also staunchly anti-open source, as evidenced through our open source software policy — a fact which makes me an equally bereaved bear!) I digress …

The solution to my predicament? Sun’s brilliant VirtualBox open source virtualization package running the latest Ubuntu release — currently 9.04 (or “Jaunty Jackelope,” as they call it). The installation of VirtualBox took a bit on my lappy, but it went fairly seamlessly. The only hitch was that the installation of the VirtualBox Host-Only Network adapter in Windows XP SP3 broke my wireless networking. (It may well have broken all networking, but I didn’t try plugging a cable in to check.) The solution to this was fairly simple — disable the newly installed adapter! It seems that VirtualBox doesn’t need this adapter enabled in order to provide the virtual OS networking. (I’ve no idea what this adapter is used for at the moment. Perhaps I’ll figure this out as I work with VBox a bit more.)

The only Ubuntu image I had lying around was a Hardy (8.04) disc I burned some time ago. I added a new machine to VBox, installed Ubuntu from the disc, updated to Jaunty using apt, and installed Skype from the Medibuntu repository. So, I’ve got a virtual Jaunty up and running and, I must say, it is bloody fantastic! Good show, Sun!

Go to Top