I just realized I can do spellcheck in Pine, my unix mailer. How I managed to assume Pine could not do spellcheck for 4 years escapes me. I feel like a dunderhead.
You are currently browsing articles tagged unix.
Tags: unix
Useless Information About My B-Day
Michael Rapaport, he of Mighty Aphrodite, and I share the same birthday—both date and year—March 20, 1970. Some other folks of note who were born on March 20th (but not in 1970) include: Spike Lee, Holly Hunter, William Hurt, Hal Linden, Tracy Chapman, and Carl Reiner.
I used to be quite proud to proclaim that I shared a birthday with Mister Rogers, but the imdb has a different date. A profile of Rogers in salon from 1999 shows March 20th, as does the New York times.
Other things of note about March 20th? John Lennon and Yoko Ono were married on this day in 1969. Today is the vernal equinox, the first day of Spring. This Day in Music History from canoe.ca. On This Day in 1995, (NYT) Aum Shinrikyo gassed the Tokyo Subway.
On a completely other note, in 1970, the Unix Operating System was still being born. Unix time is measured in seconds since “the epoch,” which is the 00:00:00 UTC on January 1, 1970.
Tags: Carl Reiner, Hal Linden, Holly Hunter, John Lennon, Michael Rapaport, Spike Lee, the New York Times, Tokyo Subway, Tracy Chapman, unix, Unix Operating System, Vernal Equinox Day, William Hurt, Yoko Ono
Quickies
Joel strikes again! with great insights on what clients are looking at when they evaluate our software and web projects. As in lfe,we judge things based on surface aspects that are less important than their underpinnings.
This is a great, funny, geeky cron anecdote. It made me laugh. (Requires some unix knowledge)
I think I’m going to implement one of these weblogs.com implementations, probably one of the perl or php ones.
Tags: PHP, unix, web projects
Search Engine Upgrade to ht://Dig
Last night and this morning I installed htdig as the new search engine for this site internally. Back in August I mentioned that I would start using google because the solution I was trying had stopped working with any reliability. ht://Dig is open source and originated here in San Diego at SDSU.
Total time for installation and customization was about 5 hours total. This is valuable information in case I ever need to install an htdig search engine for a client. Lots of small details in doing this installation. I downloaded the installation as a tar.gz file, then decompressed that to a suitable location (cgi-bin). Then I had to do configure, make, make install. Installing unix software is always an adventure. This site runs FreeBSD (see: colophon, and I was delighted that it went pretty smoothly.
Then I was ready to start running it. This got tricky, but it was straightforward as I was able to tweak the conf/htdig.conf file to do what I like. rundig is the key to indexing a site. At first I had broken images, but it was working properly. The site initially indexes the htdig site itself. Just like any web robot, it goes out and looks at that site just as a browser would. This put my mind at ease, as I was not sure how it would deal with databased content, or the fact that the pages on my site are very include() driven. I was also concerned that because it is a local search engine, it would index files I don’t want indexed. The perl search engine I had originally installed had this problem. It would find older versions of files and garbage files that had become garbage for a reason.
As I got it working, and pointed it at artlung.com, I found a problem. The indexing process was taking far too long. Seems I had an infinite loop happening! In my accessibility slideshow from 1999 I had a problem. The [next] and [previous] links did not give any thought to whether they should actually show or not. The php for that I had written when I really knew very little php, and I ended up with the search engine indexing not just /words/accessibility/?i=0 to /words/accessibility/?i=10, but it was iteratively visiting the “next” and “previous” links like crazy. ?i=-1, ?i=-2, ?=-3, and on until I stopped it at ?i=-115. That would have been 115 versions of the “previous” page that was no different than the “first” poge. The PHP I had written in 1999 was smart enough to handle bad values for $i, but not smart enough to realize that there was no “previous” pages for those pages. The “next” links had the same problem. The htdig indexer was not smart enough to know that it was indexing hundreds of nearly identical pages. The solution was to fix the slideshow code so that it would not produce spurious links like that. After that fix, it was indexed properly and quickly. This is probably another reason that many search engines simply won’t touch pages with querystrings.
The next problem I had was that it was showing bad search results for certain pages. Example: I searched for the word “Zappa” – and I got far more results than I would have expected. Granted, I am a Frank Zappa Fan, but why would the bio page come up in a result for that? Turns out the indexer found the entry inside the bottom
Tags: bad search results, htdig search engine, htdig site, html, include-driven site, local search engine, Perl, perl search engine, PHP, san-diego, search page, search engine, search engines, search results, unix, unix software, unix system, web robot
New lab item: Batch File Rename By File Extension in Unix. (Not really new, but moved from the smorgasborg)
Tags: unix
Some MacOSX Links of Note for Web Geeks
Killer page of OSX Links
It appears to be down at the moment. Google it and grab a mirror today!
Apache-mySQL-PHP installation tutorial
Apple’s OSX Downloads
Building OpenSSH 2.5.2 on Mac OS X 10.0.1
Building Zope and Python on MacOS X Server
Mac OS X / Mac OS X Server Resources
MacNN’s OSX News
MacOSX Apps
MacOSX Hints
MacOSX Tips & Tricks
Set Up Hosts in NetInfo
Setting up your OSX from scratch
Tips & Tricks for OS X Unix
VersionTracker.com’s MacOSX Software Updates
XIcons from MacNN – Icons like crazy!
linklint is one of a very few perfect pieces of software around. By which I mean that it does what it sets out to do with a minimum of fuss.
I have been using it since at least 1998 to wrangle the links in large static html sites. The author, Jim Bowlin, has put the software under the GNU GPL. Free, and free to modify. If you do unix it’s a tremendous tool to do QA and testing on your sites. Generates a spiffy report too – here’s artlung.com. Looks like I got some stuff to clean up. It doesn’t do javascript based links, or onclicks, or flash—not sure if it handles CSS style refrerences like: url(‘page.image’) or @import. Much to explore with this upgrade. It’s now 2.3.3. I’ve been using 2.1 for 3 years.
Hm. Looks like urls with querystrings (like my wedding photos) get treated gently. That’s good robot behavior! You can also set a delay so that you don’t inadvertently slashdot yourself. Heh.
Tags: html, Jim Bowlin, unix
There is no undo for rm * in unix.
The files are just gone.
And you only have yourself to blame.
Tags: unix

Recent Comments