Home | Categories | Sources | Sites | Languages | About
Note: The project has been discontinued
Dev Notes :: Web [Site] [XML]
Description: Notes and tutorials for creative web professionals and Mac OS X users.
Last Update: 20:35:18 12/21/2004
 

Additional Info

First Fetched: 00:16:25 01/31/2004
Last Updated: 20:35:18 12/21/2004

Headlines

mod_rewrite for One File method
mod_rewrite, the Apache module, does something seemingly simple; it takes an http request and rewrites it according to relatively straightforward conditional pattern matching. There are 9 directives for mod_rewrite but only two of them, RewriteCond and RewriteRule, require much study or thought. But, these two require considerable study and thought followed by lots of hard experimentation and testing. What I'm trying to say here is mod_rewrite is pretty damn complex after all. But, man, is it useful. The use to which I want to put mod_rewrite is to simply send ALL requests through a single, central file. This file contains just Lasso code. That script, we'll call it "_hub.lasso", parses out the request and puts together the page with that information. There are lots of reasons to do this. Nice URLs is one. One File allows for URLs that are both user-friendly AND search engine friendly. Essentially, it makes dynamic content appear static. For instance "search.lasso?category=Gizmos" ...
03:12:00 December 16, 2003, Tuesday (PST) Source: Dev Notes :: Web
Product Launch
With much help from my friend Will Porter, I've managed to put together a respectable press release. As noted below, for immediate release: DATALOGIC SYSTEMS 591 Redwood Hwy., Suite 2125 Mill Valley, CA 94941 http://www.datalogic.ws info@datalogic.ws (415) 462-1614 Contact: John T. Cowley FOR IMMEDIATE RELEASE DATALOGIC INTRODUCES SOFTWARE SOLUTION FOR INTEGRATED INVENTORY MANAGEMENT AND ELECTRONIC COMMERCE Mill Valley, CA, December 16, 2003 — DATALOGIC SYSTEMS, a privately owned software development and web services company with offices in the San Francisco Bay Area and Chicago unveiled its flagship product today. FM Inventory & eCommerce is a complete solution for inventory and order management and electronic commerce. It features key integration between a Filemaker Pro-based desktop business management solution and a remote web based e-commerce system. DATALOGIC deploys the very popular MySQL database engine on the e-commerce side for its speed and reliability. "FM Inventory & ...
01:34:32 December 16, 2003, Tuesday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part Six: Courier
Courier IMAP works with MySQL authentication too and that's why I'm using it. Unlike Postfix, Courier uses configure and we can tell it to use MySQL in the configure options. But first we should set some environmental variables. You will see in how-tos, and in the Courier documentation itself, that environmental variables are created thusly: RANLIB="ranlib -c"CFLAGS=\"-traditional-cpp\"CXXFLAGS=\"-traditional-cpp\"export RANLIBexport CFLAGSexport CXXFLAGS If you're using Jaguar's default tcsh, the above is NOT how you do it. This is: setenv RANLIB \"ranlib -c\"setenv CFLAGS \"-traditional-cpp\"setenv CXXFLAGS \"-traditional-cpp\" Here are the configure options I used: ./configure \\--prefix=/usr/local/lib/courier-imap \\--mandir=/usr/local/man \\--with-waitfunc=wait3 \\--enable-mimetypes \\--enable-unicode \\--with-authmysql \\--without-ipv6 \\--enable-workarounds-for-imap-clients-bugsCourier doesn't use inetd but runs standalone processes: an authentication daemon, an imap daemon ...
06:18:36 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part Five: Postfix
Postfix doesn't use configure. Instead you do this as the first step to get MySQL support in Postfix: make -f Makefile.init makefiles \\ \'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include\' \\ \'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm\' That's how you do it 'cept upon running make I got this: cc -DHAS_MYSQL -I/usr/local/mysql/include -g -O -I. -I../../include -DRHAPSODY5 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/mysql/lib -lmysqlclient -lz -lm -flat_namespace ld: Undefined symbols: _db_create _db_version make: *** [master] Error 1 make: *** [update] Error 1 The "undefined symbols" error is coming from Berkeley DB. When I installed Postfix previously, I had placed symlinks to the Berkeley DB libraries in /usr/local/lib and /usr/local/include so Postfix would find them. I used DBD ...
05:27:21 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part Four: Sendmail
Getting your existing sendmail install out of the way is covered everywhere and I don't have anything special to say about it. I don't plan on restoring sendmail at any point so I'm moving it permanently as per the Postfix documentation. It used to be necessary to repeat the steps of moving Sendmail and putting Postfix's sendmail command back in place after Apple updates. But now that I'm at 10.2.8 and Panther has been released this might not be an issue any longer. A future security update could still make it necessary, I suppose. In any case, it's only important to restore Postfix's sendmail for those Unix applications that call it directly. It's not important for the functioning of your internet mail server.
05:19:47 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part Three: NetInfo
Postfix now ships with scripts to get NetInfo configured for you. Because I was already using an older version of Postfix I didn't use these. Presumably, they will get the postfix user/group and maildrop group set up for you. Or you can follow these instructions to create the necessary NetInfo entries. Pay close attention to the step of giving your Mac a fully qualified domain name. Postfix won't work (but will complain loudly, thankfully) if your Mac thinks it's name is "serverName.local.". That name works for Rendezvous but it won't work for Postfix. •The myhostname parameter in /etc/postfix/main.cf and your Mac's name in NetInfo must match. This must be a fully qualified internet domain name (mail.domain.tld or similar) •You'll probably need to restart after configuring NetInfo. I tried sudo kill -SIGHUP `cat /var/run/lookup.pid` but couldn't get rid of serverName.local. until I restarted. Tell me in the comments if you know why this seems to be so. •Be careful with NetInfo. Or ...
05:12:36 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part Two: MySQL
My original Postfix installation used a binary flat file "virtual" database. The postmap command creates these from a text configuration file. When I wanted to add or remove email accounts from my system, I'd use System Preferences -> Accounts and the /etc/postfix/virtual text file. The last step would be to use postmap to create virtual.db from that text file. As I mentioned in the Intro, I wanted to move to a system that didn't use system users but could authenticate against a MySQL database of users. I'm also moving from Postfix 1.1.2 to Postfix 2.0.16, the current release at the time of this writing. You'll need to install MySQL, obviously. The official package installer for 4.0.15 works nicely. •Make note of the location of the socket. /tmp/mysql.sock by default if you use the package installer. •Install the Startup Item too. Beyond that I followed this setup which will also allow you to use postfixadmin, a php application for managing your postfix database.
05:08:56 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Part One: Links
A few disclaimers: First, rather than provide a complete how-to, I'm just offering some notes with background information on my installation of Postfix. Second, Postfix is part of Apple's Panther release. But I'm doing this on Jaguar which has Sendmail installed by default, not Postfix. I expect to continue to use Jaguar on my server for a while. Until I replace it next year with new hardware, most likely. Third, in addition to reading the install instructions that come with the Postfix source, I relied on information from many sources to get Postfix up and running. Look at the official Postfix site for links to how-tos and mailing list archives. Plus you'll want to investigate these before starting: Email Servers and Mac OS X (older Postfix tutorial) Postfix + Courier-IMAP + MySQL + Postfixadmin Replacing sendmail with postfix (Mac OS X-specific) Courier Imap 2.1.2 on OSXS 10.2 (Jaguar) The first in this list is the tutorial I followed to get Postfix 1.1.2 running last year. It ...
05:05:07 November 8, 2003, Saturday (PST) Source: Dev Notes :: Web
Postfix - Courier-IMAP - MySQL4 Installation Notes Intro
I've been using Postfix as my email server for just about a year now. I selected Postfix because I couldn't spend any money for a personal mail server, because I wanted something very reliable, and because I wanted a server easier to manage than Sendmail. Postfix turned out to be a good choice and now that Apple has adopted Postfix as the MTA for its Panther release, an almost prescient one. I've used Postfix from the start with traditional Unix mailboxes. I've ran UW IMAP and Qualcomm's Qpopper for POP3. This required creating a new user account for each email address I wanted to host on the system. That's fine for a personal email server but now, because my DATALOGIC work is a managed e-commerce solution, I needed a new system that allowed me to create new email users more efficiently. Postfix can use MySQL for user authentication. So can Courier-IMAP. I set out to use Postfix and Courier with MySQL 4 with these helpful tips. I ended up using postfixadmin as well. It provides ...
01:16:05 November 5, 2003, Wednesday (PST) Source: Dev Notes :: Web
Preview Release
DATALOGIC announces preview release of inventory and e-commerce solution Designed to fit the needs of small and medium-sized business, DATALOGIC FM Inventory & eCommerce makes complete inventory control, order management, and electronic commerce easy and affordable. FM Inventory & eCommerce is an office solution for managing products, supply, distribution and sales. It's fully networkable and can easily accommodate 20 or more users making it ideal for small companies or for workgroups within larger organizations. It's inventory control features integrate management of products, purchase orders, multiple warehouses, customer and vendor contacts, and more. FM Inventory & eCommerce connects seamlessly to your custom e-commerce web site allowing you to manage your inventory and your online catalog in one step. Whether your sales are B2C (business to consumer) or B2B (business to business) DATALOGIC FM Inventory & eCommerce makes managing your products, your contacts, and your orders ...
23:30:17 November 4, 2003, Tuesday (PST) Source: Dev Notes :: Web
Japanese Safari Hack
Boblet, aka "Oli", "Oliboblet", "Oliver", finds a great Safari hack for switching between the four common Japanese charsets: Shift JIS, euc-jp, iso-2022-jp, and utf-8. Safari has each of these encodings in its View menu but that setting won't stick on sites where the charset isn't specified at all. HetimaSafariHackEX fixes that problem allowing you to pick an encoding from the "Hack" menu it adds to Safari. But there's more! HetimaSafariHackEX also has a Search Bookmarks feature that works much like Apple's iApps searching (or Apple Mail's search, for another example). The F4 function key or another key you specify will bring up the search window. The other feature of interest to web-heads is a bit of syntax coloring in View Source. Overall, this is a pretty useful hack even if you don't surf Japanese sites. Download it and put it in ~/Library/InputManagers to make it work.
09:32:56 September 9, 2003, Tuesday (PDT) Source: Dev Notes :: Web
New and Improved pitond killer
My esteemed colleague, Johan Solve, has written a greatly improved version of my shell script to kill Retrospect Client's "pitond" daemon. I've known Johan for years via Lasso-Talk, Blueworld's mailing list for Lasso developers, and even met him in person at the Lasso Summit in 2001. But he happened upon my old script via Google, just like everyone else. Dantz recently release Retrospect 5.1. It costs money to upgrade from 5.0 to 5.1. And who knows if this bug has even been fixed? If you want to keep using 5.0, this script may be useful for you too.
21:38:24 August 22, 2003, Friday (PDT) Source: Dev Notes :: Web
DATALOGIC PR
A brief return from a long hiatus. I've been hard at work on a number of projects since last posting here. DATALOGIC is a new company I've formed that ties together a Filemaker Pro based inventory, contacts, and order management solution with an e-commerce web site of my design. A demo, mostly complete may be viewed here. Soon to launch using the DATALOGIC FM Connect & eCommerce system: peak62.com is an outdoor sporting goods site with exceptionally good prices on high quality, brand name stuff. TOSS is the web site of a Japanese teachers' organization. The user/pass is toss/toss until the site is complete. I'll be traveling to Tokyo this fall to work with my client on the content issues, to train them to use this new system, and to continue the Japanese localization of the Filemaker system. If you know of an excellent and reliable native-speaking Japanese Filemaker developer that may be interested in continuing development of this product for the Japanese market, please tell me. ...
03:26:53 August 9, 2003, Saturday (PDT) Source: Dev Notes :: Web
Not all about RSS
I had an RSS post that I was working on about a month ago. This isn't it. I'm still in a crunch for time and money and my blogging brain is on vacation while I sort out my real life. This is just a post to note that I fixed the RSS link over there under my logo which has been broken since forever. Only I didn't realize it until just now. Now, you may subscribe again. Do it. Someday I'll write something here and you'll want to read it. Sorry this isn't it, but it's coming.
22:51:57 May 19, 2003, Monday (PDT) Source: Dev Notes :: Web
I slip, Will blogs
Busy and stressed the past several weeks. I've been very much focussed on a new shopping cart application. A demo, in progress, is viewable here. Eventually, this will be tied to a MySQL backend and generate XML on the fly for importation to Filemaker Pro. I've not only not being writing posts for this blog, I haven't been reading other blogs much either. Perhaps I'll get back to both if I can get my rent paid this month. In the meantime, I've learned that my friend Will Porter finally has his own blog. I say finally because Will has opinions and lotsa lotsa words to back them up. He's a smart guy and a good writer too which can't hurt.
12:56:10 May 13, 2003, Tuesday (PDT) Source: Dev Notes :: Web