John Borwick’s blog

Neat stuff John likes.

February 23rd, 2004

No Internet Yet

Though Earthlink told us that cable Internet was available in our apartment, the contractor found out that we don’t have a cable box in back of the building.

The contractor believed that Time Warner might send an engineer to look at the building and perhaps eventually install a cable box. Our other option is to get written permission from our landlord and the person who own the building joined to ours, so that a contractor could mount cable and run it along the outside of the building to our apartment.

February 17th, 2004

Getting cable…

Well, perhaps I’ll be able to go on-line w/o going to Chelsee’s. We’re getting Earthlink cable installed, by a Time Warner Cable person, this Saturday.

They are running a $29.95/mo for six months deal. Hopefully they will be able to install cable in our place, because the closest thing we have to “access” is an exposed cable hanging outside our (second story) front window.

February 11th, 2004

bash options

Seth showed me that the WFU Library lets you check out books on-line through NetLibrary. Well, they’ve got Learning the Bash Shell on-line, and well, bash is the default shell for Red Hat. So I read some of it yesterday, and then went through the first half of the info docs (info bash) last night and this morning.

The resulting options added to my .bashrc are

shopt -s cdspell
# physical directories only
set -P
export CDPATH=~:~/cvs
PROMPT_COMMAND='echo -ne "�33]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}${STATUS:+" "}${STATUS}�07"'

Read the rest of this entry »

February 10th, 2004
February 9th, 2004

Free web-based rss aggregator?

I’m looking for a website that offers free news aggregation; I use several computers, and if I set up say, NetNewsWire on my Mac, I can’t view the same news on my PC or my Dell laptop somewhere else. I’ve seen Bloglines.com, but they seem to have a hairy clause in their terms of service which would allow them to send out anything I provide to them for service (i.e. my email address) to any of their “contracted parties”. I don’t want more spam. It’s the same way with Feedster.

If this isn’t feasible, has anyone used something like CVS to synchronize the settings for some cross-platform agg (i.e. amphetadesk) across several machines? This might be as good of a solution. I am going to toy with the idea once I finish studying for my upcoming Physics 208 exam. :P

Thanks in advance!

February 8th, 2004

Perl/Tk and Perl 5.8.3 in Panther

I wanted to install Perl 5.8.3 and Perl/Tk under Panther, and I had a hell of a time trying to get this to work, simply because there isn’t a good HOWTO or anything that I was able to find. So here are the steps I had to take, for future reference:

note: where you see “%” and “cpan>”, these indicate input at a prompt in the UNIX shell or in the cpan utility. The portion of the line to be typed is after the “%” or “cpan>”. You would be surprised at how often this confuses newbies, but I can understand why.

You may want to remove fink, if you have it installed. Follow the directions in this earlier post by John; you may have to prepend sudo to some of those commands.

Install Apple’s X11 and, from the developer CD or from Apple’s developer site, install the X11SDK — this is necessary because Apple only provides the libraries with their X11 distribution, but none of the header files. DON’T download the X11 source. I made that mistake and it wasn’t helpful.

Download the Perl source from www.perl.org or whereever. I used 5.8.3, but most 5.8.x versions should be fine — perhaps even earlier versions might work?

Un-tgz the source to the directory of your choice, then in the terminal run the configure script like so:

% sh ./Configure -des -Duseshrplib -Dprefix=directory to install to

**This is really important.** Make sure the directory you install to has nothing else in it. I pointed my -Dprefix= to /opt, and then once I was certain everything was working, I moved everything from /opt to /usr and it worked fine.

After running Configure, of course you want to run % make && make test && sudo make install.

Test your new Perl to make sure that it works, i.e. if you installed to /opt, run

% /opt/bin/perl -e 'print "hello, world!\n";'

The make test directive a few lines above runs a more thorough test suite — we are just checking to make sure Perl is where you think it is.

Change directories to wherever you installed perl; **THIS IS UBER-IMPORTANT!** Make ABSOLUTELY CERTAIN that you are in the correct directory. For example, if I ran Configure with the option -Dprefix=/opt, then I would now change directories by typing:

% cd /opt

If you don’t change to the correct directory, the mv command ahead could seriously cramp your style. Once you are in the correct directory, the output of % ls should list just 3 directories: bin, lib, and man (I think.) Run this command next:

% sudo mv * /usr

That will overwrite your old perl installation in a fairly brute-force manner. It’s ugly, but it works. Did I mention that you should know a little about what you are doing before you attempt this? Well I meant to. :)

Now you have Perl and X11 installed, time to set up Perl/Tk! What you should do now is navigate to Applications->Utilities under the Finder and execute X11. This will open up a terminal titled “xterm”. **This is also really important** You MUST have X11 running during the Tk install process — it runs many tests that depend on X11 running, and it will fail to install if you try to do this without having X11 running.

In the xterm, execute

% sudo cpan

If this is your first time running cpan, it will want you to set up a number of things. You can accept the defaults on most of the options, but you really should choose a different mirror for downloading Perl modules from, since the main repository is pretty regularly hosed these days.

Once you have cpan set up, you should run:

cpan> install Tk

A lengthy download, compile, and install process will follow, and while the installer is testing the Tk stuff, it will pop up multiple windows in the upper left corner of the display — this is normal. If all things went well, you should have Tk installed in about 30 minutes to an hour.

To test Tk, try running % perl -e 'use Tk;' and if it gives you an error, then you don’t have Tk installed. If it doesn’t do anything at all, then chances are you have Tk installed properly. Now do a real test by writing something useful that uses Tk. See? That wasn’t so bad.

I hope that this is helpful to anyone who may read it. Comments, complaints, whatever — they are all appreciated.

–edit: moved body back into main post so that search engines will see more data.

February 8th, 2004
February 6th, 2004

In the interest of open minds…

It’s been a long time since I have posted here; I just feel so busy, and it’s not as big a part of my routine since I tend to spend my “in front of the computer” time doing homework. Also, I haven’t got any of my machines optimized for RSS/Blog stuff like I had my laptop when I first had Debian on it. In any case, I thought I had something to say here because…
Read the rest of this entry »

February 2nd, 2004

Down at the coffeehouse

I’ve got internet access for just a bit, here at Chelsee’s.

A listserv I’m on is switching to mailman. I found Mail::Box, the most comprehensive Mail module (for Perl) EVER.

Also I’ve been reading Will’s copy of The Mythical Man-Month, which has been “borrowed” (purloined) for the last few years by Y.T.

The Unitarians have been keeping me grounded a little. We went to a CHANGE meeting in Winston-Salem last week about the state of public schools in Forsyth County.

Must. Get. Internet.

|