Archive for the 'Tech' Category

Emacs Again

Monday, November 3rd, 2003

Word count: 2145 (100 of which was a Stargate drabble)
Helpful link of the day: Trackback for Beginners

My NetNewsWire demo expired, so I’ve downgraded to NetNewsWire Lite and am posting to the blog from the MovableType web interface again. Forty dollars was just too high a price to pay for the convenience of posting from NetNewsWire itself.

On the upgrade side, I’ve built a new Emacs that no longer crashes in Panther. I’ve also forced it to run ispell. I was getting a Searching for program: no such file or directory, ispell error, even though I had installed ispell with fink. Rather than try to figure out what path the Emacs shell process was using, I decided to put a symbolic link to ispell in /usr/bin: sudo ln -s /sw/bin/ispell. Presto!

Cool Kitty Tricks

Friday, October 31st, 2003

I had a Safari crash, which leads me to believe that Emacs isn’t really my problem. I still haven’t rebooted - that would probably be a good idea after installing a new OS, but Kitty never asked me to reboot. Anyway, I’ve found some neat tricks while playing with Kitty - some are my own discovery, but most are from MacOSXHints.

The whole command-shift-left/right arrow thing for Safari is new to me, but that’s the quick way to switch tabs. Command-tabbing in Panther has changed a bit, too - now there’s a big program switching popup.

To make your own keyboard shortcuts, open the Keyboard and Mouse panel in System Preferences and choose the Keyboard Shortcuts tab. I added a shortcut to all apps (choose All Applications at the bottom of the shortcut list and hit the plus button). I typed Show All to add that menu item and gave it the shortcut control-alt-command-H. I’m also adding a Hide Chat Participants shortcut to iChat.

When I first set up iTunes to play Filk Radio, I went through a whole song and dance to get the correct Live365 streaming URL into iTunes. I wanted to add some others today and discovered a much simpler method:

  1. Find your station at Live365.
  2. You should arrive at the station page, which will have a URL like http://www.live365.com/stations/filk_com or http://www.live365.com/stations/295422. Each station has both a name and a number, and it doesn’t seem to matter which you use.
  3. Edit the URL in your location bar - replace stations with play.
  4. If you want to listen to the station in Safari, just hit return and the stream will play as embedded Quicktime (though I thought embedding was illegal now).
  5. If you want to listen to the stream in iTunes, which I find more convenient, then don’t hit return. Just copy the new URL http://www.live365.com/play/295422 from the location bar (command-C), go to iTunes and choose Open Stream from the Advanced menu (or just hit command-U), and paste in your URL (command-V). The stream will start playing.
  6. Any time you play a stream in iTunes, it ends up in your Library. (In fact, I have three or four versions of Filk Radio resulting from these experiments.) To put it in a more convenient playlist, just drag it from the Library playlist (it will be the one playing) into your playlist of choice. For some reason you can’t drag a stream into the official Radio playlist, but you can make a new playlist for Live365 stations.
  7. Now anytime you click on that tune in iTunes your Live365 feed will start playing. The free version includes commercials. I don’t know how the paid version works - probably by adding your username and password to the URL. That project is left to the reader.

Here’s Kitty!

Friday, October 31st, 2003

So I’ve finally backed up my home directories and (wisely, it turned out) my Apache configuration files and installed Panther. I just did the upgrade, not the archive and install option, and I customized it just to drop most of the printer drivers and foreign languages. They take up space better spent on educational videos.

The first odd thing Kitty did was pull up my first preferred keyboard in alphabetical order (Dvorak) rather than the one I’d been using before the upgrade (US). I caught on to that pretty quick and switched back. I played with Exposé and Mail, and configured my new Finder windows. Exposé was definitely worth the upgrade. I took a short stroll through Font Book, but my main concern has been Emacs. I can’t start NaNoWriMo without my text editor. Fortunately I’m outlining my novel with the free copy of OmniOutliner, so the situation isn’t quite desperate yet. (Note that OmniOutliner has an upgrade available for Panther.)

Rumor has it that Emacs’ pty bug is gone, which I think means that ispell and other spawned processes will now work from within the GUI version. (It was an OSX bug rather than an Emacs bug, and now Kitty is all better.) It would be much nicer if Emacs actually worked.

The trouble began the first time I tried to rebuild Emacs, probably because I’d forgotten to install the developer’s tools (now called Xcode). My old build of Emacs wouldn’t run, either. I also had trouble the second time, but that looks like it was a CVS problem. I managed to get everything out of CVS and and my last build compiled, though make install didn’t move Emacs.app to the Applications folder like I expected it to. You can’t have everything, especially not at 3 a.m. Now that I look at my emacs build at a reasonable hour of the morning, I find it crashes occasionally. Such is CVS, I guess.

The other thing I did last night was redo my Apache config files, which were moved to a backup spot in the upgrade. I’m wasn’t sure what had changed so I reinstalled Entropy PHP. I’m getting a [warn] module mod_php4.c is already added, skipping, which I can’t figure out, since there’s only one AddModule statement in the conf file. I hear that may mean I have the wrong Apache build installed, but I never touched it, really, Senator. Otherwise PHP seems to work.

Maybe I should have gone with Archive and Install after all…

Big Mac Up

Thursday, October 30th, 2003

Virginia Tech’s supercomputer built out of 1100 Macintosh G5 computers has jumped to #3 in the “semi-official” rankings of the world’s fastest supercomputers. It spent a little time at #2 in the preliminary rankings, then dropped to #4. The final numbers will be out in November, and the Big Mac will be upgraded from Jaguar to Panther next month as well.

Here’s Kitty

Friday, October 24th, 2003

Panther has arrived! I wasn’t planning to rush into upgrading - I just wanted the $20 upgrade copy safe in my hands before Apple changed their minds about the new mac qualifying.

I checked out Mark Pilgrim’s article (with screenshots) on What’s New in Panther and now I’m tempted to upgrade now. My favorite new feature (besides, obviously, Exposé) is the Font Book. I’ve always wanted a good way to view my fonts, but I’m too cheap to pay for the popular font programs.

I suppose I should get the upgrade out of the way before NaNoWriMo, but there will always be new cats to vacuum.

Tabs Slide Forward

Thursday, October 23rd, 2003

Panther update: Kitty got on the plane in Oakland, CA.

A List Apart is back, with a new design and a nice article about making navigation tabs out of Sliding Doors. It’s chic, but I think I’ll stick with my boxy tabs for a while yet.

Here kitty, kitty, kitty

Wednesday, October 22nd, 2003

Word count: 100
Weird link of the day: Hummingbirds reenact the Book of Genesis (by way of my friend Kendice)

According to Apple my copy of Panther has shipped already, but the FedEx site can’t find my tracking number. It’s a sly OS, sneaking around their warehouse, pouncing on unsuspecting Windows users and eating them for lunch…

I’ve been using Safari since I got the new mac, but this week I finally discovered something that Camino does better. Its XML+CSS is better than Safari’s - I spotted a few font substitutions in Safari that didn’t happen with Camino (which means the font is on my system, though I knew that already). Also, Camino has basic XLink support and Safari has none.

Safari has at least one HTML+CSS issues as well, which I spotted while playing with Jade’s stylesheet: it doesn’t seem to support font-variant: - at all. Camino does.

I’m not saying I’m going back to Camino or Mozilla, but the old pointy-planet icon is back in my dock now.

[P.S.] The Big Mac at Virginia Tech achieved a preliminary ranking of 4th fastest supercomputer in the world. Wired claims it may hit #2 soon.

[P.P.S.] New iBooks are out!

Garbage Strike

Monday, October 20th, 2003

I’ve been having Emacs crashes lately, though I didn’t notice the problem when I first built Emacs. According to the Emacs for MacOS X guy, this is a garbage collection problem that’s been going on for a few weeks and has now been fixed in CVS. So I updated my tree and I’m about to rebuild. Wish me luck.

iTerm Tab Customization

Wednesday, October 15th, 2003

Word count: 200
Weird science of the day: an ancient frog - thanks to Seema for the link

With my new mac, I can take full advantage of all the iTerm tricks out there. iTerm itself is easy enough to download, but after that, things get hairy. Here’s a report on my struggle.

I’d already installed iTerm on the new mac, so I went straight to the iTerm tab customization instructions. From there I downloaded the file custom_iterm.dmg.tgz. None of the other links on this page are important, and the instructions themselves leave much to be desired.

I needed to download pos to the new mac. There was a version of it in the file above, but I wanted the fink version. Unfortunately, there are three files with the same name on that page, and no instructions anywhere on installing an unsupported fink package. I downloaded all three and diffed them to see which had the bug fixes - it seemed to be the one labelled “version 3″ so I went with that.

I’ve installed unsupported fink packages before, so I knew to sudo mv ~/Desktop/pos.info /sw/fink/dists/local/main/finkinfo/utils/ from the command line in iTerm. (I added the utils directory myself - it’s not necessary.)

For some reason I don’t quite understand, the traditional fink install pos still didn’t work - it kept telling me Failed: no package found for specification ‘pos’! Eventually I tried fink selfupdate, and after that fink install pos worked. The basics of pos, the little program that passes the directory name between the Finder and a terminal like iTerm, are explained on the Terminal-Finder Interaction page also maintained by wgscott.

So next up was installing that lovely Finder icon. I went to the fink-dependent folder in the disk image I downloaded earlier. Besides the link to fink.info, it contained an application and an applescript. Needless to say, there were no instructions. I copied the app, simple_iterm_cdf_fink, to my /Applications/Utilities folder and renamed it iTermer for brevity. Then I dragged it up into my finder toolbar, right next to the View options. It worked!

Next up was the Holy Grail of my iTerm efforts, the promised iterm tab customization. I was pleased to see that this step, at least, was well documented. I use tcsh, so I took the iterminal_custom.tcsh file from the Tab_title_customization folder in the disk image and put it, as advised, in ~/Library/Scripts/. Well, actually, there was no Scripts folder so I made one first. I put the .sh file in there, too, just in case I have a shell change-of-heart in the future. I added the line source ~/Library/Scripts/iterminal_custom.tcsh to my ~/.tcshrc file. Note that it should be all on one line.

I didn’t even quit iTerm - I just opened a new tab (command-t, if you haven’t figured it out) and voila! My tab had the directory name on it. It certainly beats a row of tabs all saying “Default session,” but with a little more documentation it would have been a lot less work.

There was one last issue - my prompt had been changed to the rather pedestrian test>. I opened ~/Library/Scripts/iterminal_custom.tcsh and the instructions for fixing that were right inside. I commented out the line with the boring prompt in it, and all was well with iTerm.

Mac Minute

Tuesday, October 14th, 2003

Word count: 100

New on the Mac: I installed wget from fink and Adobe Reader 6 (formerly known as Acrobat Reader). I also set up my webserver with a copy of my website so I can read and play with it locally.

I’m posting this with the latest NetNewsWire beta.