Archive for the ‘Uncategorized’ Category

nugatory

Tuesday, January 4th, 2005

Having no force; invalid; or, of little importance. The word Bob should have known but didn’t as the antonym for effectual on the GREs (guessed and got it right anyway though).

micropsia

Sunday, January 2nd, 2005

The sensation that things are smaller, or closer, than they actually are. See also “macropsia”.

Holophrastic

Tuesday, November 23rd, 2004

Expressing a phrase or sentence in a single word, as is the case in the aboriginal languages of America.

Ergolytic

Monday, November 8th, 2004

Producing decreases in sports performance. Cf. ergogenic, producing increases in performance.

Welcome, gG

Monday, May 3rd, 2004

gG came to live with us on Valentine’s Day.

Pareidolia

Thursday, March 25th, 2004

A type of illusion or misperception involving a vague or obscure stimulus being perceived as something clear and distinct. For example, in the discolorations of a burnt tortilla one sees the face of Jesus Christ. Or one sees the image of Mother Theresa or Ronald Reagan in a cinnamon bun or the face of a man in the moon.

From the Skeptic’s Dictionary. Original post at Language Hat.

This phenomenon is discussed in Atran’s “In Gods We Trust”.

Implementing “Bob’s Listening To”

Sunday, February 29th, 2004

I put up on my web page what I am listening to at the moment. This article tells how I do that.

I listen to music through the Squeezebox, a fabulous device made by SlimDevices that plays MP3s you have on your computer through your stereo system. “SlimServer” is the server that runs on whatever computer you have handy, that you talk to through a web interface, and feeds the music wirelessly to the Squeezebox. SlimServer can also report its current status, including the current song being played, in XML format, which turns out to be useful, via the URL:

http://slimserver:9000/xml/status.html

Using wget or lwp-request, I grab this data and then process it through XSLT to get a simple string of the form SONG by ARTIST from ALBUM:

<?xml version="1.0"?>
<!-- slim-putsong.xsl:
transform slimserver XML status output into SONG by ARTIST from ALBUM -->

<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sl="http://www.slimdevices.com/slimserver/xml"
version="1.0"
>

<xsl:output method="html" omit-xml-declaration="yes"/>

<xsl:template match="/">
<xsl:for-each select="sl:status/sl:player_status/sl:current_song/sl:song">
<b><xsl:value-of select="sl:title"/></b> by
<b><xsl:value-of select="sl:artist"/></b> from
<b><xsl:value-of select="sl:album"/></b>
</xsl:for-each>
</xsl:template>

</xsl:transform>

With Slimserver 6.x, the XML format was changed. 🙁 The “sl:song” portion of the for-each statement above needs to be removed.

You can apply this XSLT through a tool such as xsltproc.

I wrote a little shell script which grabs the URL, transforms it, and FTPs it to my server:

#!/bin/sh

# shell script to create HTML of current song playing on Squeezebox,
# and ftp'ing a file containing that information to bob's blog.

wget --quiet --output-document=-  http://localhost:9000/xml/status.xml | \
xsltproc --novalid slim-putsong.xsl - > slim-putsong.html

ftp -i -n my.host.name <<EOF
user user password
cd /some/directory/
put slim-putsong.html
bye
EOF

To prevent FTP’ing an unchanged file, precede the ftp line with

diff slim-putsong.html prev-slim-putsong.html > /dev/null ||

Run this script from cron however often you want.

All that remains is to include the HTML file into the web page you want the info to appear on, with something like

<? include 'slim-putsong.html'; ?>

Omphaloskepsis

Friday, February 20th, 2004

Contemplating one’s navel as an aid to meditation. Also “omphalopsychitism”, mystical contemplation of the navel as a way of inducing hypnotic reverie.

Xylograph

Tuesday, February 3rd, 2004

An engraving on wood, or the product of printing using such an engraving. Often used for engravings of text. Xylo=wood, Graph=writing. Used as early as the eighth century. Gutenberg used this technique in the 15th century as well.

Peanut-crusted pork tenderloain

Wednesday, January 21st, 2004

We’ve grown to love this simple way to make pork tenderloin. Mix mustard and honey and coat the tenderloin with it. Then roll it in a mixture of ground peanuts and whatever spices you like—we’ve found cumin to work well. Throw this in the oven at 350 for 30 to 45 minutes, until the internal temperature is about 155.

This works great for dinner, and the leftovers make great sandwiches the next day.