January 6, 2002 Header January 14, 2002 Header January 18, 2002 Header January 23, 2002 Header January 30, 2002 Header
san diego california usa artlung.com is the personal website of joe crawford

Fun Fact

For some people most everyone on the planet, black, crushed-velvet pants are a terrible idea.

Tamales Ancira Contact Information

I’m (already!) starting to get hits from yahoo for searches for this Tamale joint. I blogged it a few days ago, and they have no website, so I get hits instead of them. Crazy! Here’s their info — it’s from their business card, transcribed 30 Feb 2002:

They make these kinds of tamales: Chicken; Beef; Pork; Cheese with Jalapeno; Pineapple; Nuts with Raisins.

2 Locations on this card:

2015 Garnet Avenue Ave, Suite 103
Pacific Beach, California
Tel: 858-273-3521

707 South Escondido Blvd
Escondido, California
Tel: 760-739-8421

Splash, Header, Sleep

New splash page up front, new header here on the blog. Fancy schmancy xhtml up front. Old school tables in here. Fun. The picture, by the way, is of me, age 5 or so. Rocking out.

Music Mutations

These music mutations are genius. I love the Strokes / Christina Aguilera mishmash – A Stroke of Genie-us [mp3]. Jenny loves The Strokes, and I love Christina. And this is either the perfect blend or something to displease us both.

Either way, sonic stimulation in spades. [ via metafilter ]

Surveillance State

The surveillance state is beginning. 1984 is no longer the relevant text. We need to look to how information flows in Cyberpunk novels like those of William Gibson and Bruce Sterling. Where having surveillance and databases out there in the aether don’t necessarily make anyone safer or happier or more secure. We must think carefully about how information tracking technologies can and will be used, abused, and subverted.

It may also be time to learn more about the EFF.

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 <select> box for my Frank Zappa piece. So the search engine was indeed finding an instance of the word “Zappa,” but not a useful one. The solution is to not include the bottom navigation in the pages served to the search engine. I also did the same thing with the blog such that the archived pages don’t show the outbound links to the indexer. In this way you don’t get each and every instance in navigation when you use the search engine. I suspect there will be more tweaks like this.

Next I began playing with the look and feel to match the rest of artlung.com. I used my preexisting styles and made graphical widgets for search results. They are pretty cute, actually. Buttons should look like they want to be clicked, and these even have a bevel! You can’t go wrong with a subtle bevel. I added the ht://Dig logo in a way to my liking (a banner along the bottom). I ended up changing several pages in htdig’s common directory: footer.html , header.html, long.html , and nomatch.html. I also edited the template_map variable to point to my own long.html file.

Once I got it working to my satisfaction I reran rundig manually for the last time, and swapped out the old google include for the new htdig include on the search page. With a highly include-driven site it’s very easy to make these kinds of changes.

The last thing I did was add a daily unix system cron job to reindex the site daily. The indexing process takes about 2 minutes and the best part about it is that I shouldn’t have to think about it. And it should always be up to date (plus or minus 24 hours I suppose).

With luck, this search engine will work well. If you have comments or questions, feel free to ask!

Tamales Ancira’s

Jenny picked some great tamales up. Ancira’s is running ads on the local cable company, and they’re good. She got two each of chicken, beef, and raisin and nut. Fresh tasting, excellent texture. There’s a definite trend of Mexican food today. And that’s fine by me.

It just don’t get any better than this

Great joy can be simple. A satisfying game of intense cutthroat racquetball. Cheap taquitos, beans and rice.

←December 2001February 2002→