Choosing a font in Emacs on Windows

The truth is that I haven’t read the Emacs documentation yet. I will read it, it is on the list. Until then, I’ve relied on other kinds folks to provide answers for my questions. Tommy was kind enough to provide an answer for this one.

Evaluate the following in the scratch buffer:

(insert (w32-select-font))

For more information on Fonts in Emacs on Windows, go here.

(via Tommy)

PLT Scheme 3.99 (revision 10030) for the OLPC XO

DrScheme is very, very close to its 4.0 release. I wanted to try out the newest bits on my OLPC XO using one of the nightly builds, but ran into the same problem as I did last time:

/home/olpc/apps/plt-3.99.0.25/bin/mred: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

Some folks have resolved this dependency using Mesa for OpenGL emulation, but I found it easier to prepare a build that doesn’t depend OpenGL.
Here is the tarball and the md5sum for a trunk build that I made at revision 10030.
Here is how I did the build:

./configure --prefix=$WORKDIR/$DESTDIR --disable-gl --disable-shared --enable-origtree
make
make install

Programming the Sony AIBO in Scheme

This post on the PLT discussion list shares some research into programming the Sony AIBO with Scheme, with this followup post providing additional details on a Scheme interpreter (STk) that provides a foreign function interface for the Sony AIBO C++ API.

Perhaps one day those STk libraries will be ported to PLT!

STk

STk is a free R4RS Scheme interpreter which can access the Tk graphical package. Concretely, it can be seen as the standard Tk package where Tcl has been replaced by a Scheme interpreter. STk embeds also an efficient CLOS like object oriented system, called STklos, which provides:

  • multiple inheritance
  • generic functions
  • multi-methods
  • a MOP (Meta Object Protocol)

Lucida Console Font on Emacs

Folks running Emacs on Windows (like me) might like to set their font to Lucida Console.
Until I find a tool or documentation on how to write X style font lines, I’ve copied some font-lines from other folks websites.

; (set-default-font "-outline-Lucida Console-normal-r-normal-normal-11-82-96-96-c-*-iso8859-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-11-82-*-*-c-*-*-ansi-")
; (set-default-font "-*-Lucida Console-normal-r-*-*-11-82-*-*-c-*-*-#204-")
; (set-default-font "-outline-Lucida Console-normal-r-normal-normal-12-90-96-96-c-*-iso8859-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-12-90-*-*-c-*-*-ansi-	")
; (set-default-font "-outline-Lucida Console-normal-r-normal-normal-13-78-120-120-c-*-iso10646-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-13-97-*-*-c-*-*-ansi-")
; (set-default-font "-*-Lucida Console-normal-r-*-*-14-*-96-96-c-*-iso8859-1")
; (set-default-font "*-Lucida Console-normal-r-*-*-15-*-96-96-c-*-iso8859-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-16-120-96-96-c-*-iso8859-1")

On Windows XP Pro, the difference in the font-line settings between font-sizes doesn’t seem to make any difference.
References:
http://www.crsr.net/Notes/Emacs.html
http://angg.twu.net/.emacs.local.w32.html
http://www.emacswiki.org/cgi-bin/wiki/JonathanArnoldDotEmacs
http://www.opensubscriber.com/message/emacs-devel@gnu.org/8995847.html
http://www.charlescurley.com/emacs.html
http://www.dotemacs.de/dotfiles/AndreyAKulaga.emacs.html
Addendum 05/30/08:
Here is the answer.

Programming with Functional Objects in Scala

At the JavaOne 08 presentation “Programming with Functional Objects in Scala”, Scala‘s creator Martin Odersky summed up Scala’s mission statement for the audience:

Scala is the perfect mixture of Object Oriented (OO) and Functional Programming (FP). You get the flexibility of FP along with the familiarity of OO; along with the awesome power of the Actor model. Combine that will full speed execution on the JVM (in contrast to JRuby for example) along with seamless integration with existing Java libraries and you’ve got a platform that is tough to beat”.

Well said Martin.

Exposing the Depth JDK 7.0 Applications with DTrace

“Exposing the Depth JDK 7.0 Applications with DTrace” was the only lab that I attended at JavaOne 08. As you can imagine, it was all about dtrace.

dtrace is a no-overhead, highly dynamic, powerful programming language used to report on running systems. It runs on Solaris, FreeBSD, Mac OS X, and sorely neither Linux nor AIX (the two latter camps will roll their own clones on this one).

The tool itself is really delightful; in the right hands it can really work wonders.

I wish we had this on Windows, Linux, OS/400, and AIX.