The
Ultimate
Business Machine

Technology, business
and innovation.

And, not least, about
the Mac.

Weblog Archive Cutedge

by: Bernard Teo








Creative Commons License

Copyright © 2003-2012
Bernard Teo
Some Rights Reserved.

Sun 10 Aug 2003

The Rise of the Muscular Mac

Category : Technology/MetrosexualMac.txt

Today's Sunday Times chronicles "The Rise of the Metrosexual" - "he is manly, has a girlfriend and is interested in topics like hair, clothes, jewellery and skincare".

The Mac, if you think about it, is going in the reverse direction.

Just five years ago, I would be spending the majority of my time in Photoshop, QuarkXPress, Persuasion, FreeHand. If I do programming, it would be in 4th Dimension. And, when I teach a Photoshop course, it's likely to be filled with guys with long hair and scruffy jeans.

Today, I've just finished the 1.1.2 version of Sendmail Enabler, documentation, and all. I'm spending most of my time in Unix. When I search Google for a solution, I'm likely to be peering over the shoulders of Linux geeks. The Mac is twice as powerful today, and infinitely configurable.

Watch what a Linux guy does when he wants to help someone implement a solution - he sends over lines of code, or a set of shell scripts.

The Mac culture's a bit different. We send over an icon, packed with all the code you need. Just double-click, hit a button, and let the Mac do its stuff. It has put on muscles. But it's still the Mac. What's there not to like?

Posted at 11:54AM UTC | permalink

Thu 07 Aug 2003

sial.org

Category : Technology/sial.org.txt

I'd like to say a thank you to Jeremy Mates. His notes, plus the hefty sendmail "bat" book from O'Reilly, have been my constant companions these last few days. If people ever do get a one-click Sendmail Enabler with SMTP-AUTH plus STARTTLS, you know where the good stuff came from.

Why not write directly? Now, from my own experience, you get tons of mail when you put up stuff like these - things that border on the arcane. Some of the questions come from so far out, it frightens me the number of cycles I've got to use to process it. If I've read the queries and comments following the James Duncan Davidson article at MacDevCenter, I may never have dared put this up on versiontracker. I wrote to Duncan Davidson just to thank him. I never got a reply and I don't blame him. After countless such messages about problems running sendmail, I don't blame anyone for running for the hills. Talk about DontBlameSendmail.

Posted at 5:19AM UTC | permalink

Sendmail SMTP-AUTH

Category : Technology/smtp-suth.txt

I'm just re-surfacing after diving into the murky depths of the beast. For there is no other name for sendmail. It's a beast of a system.

But I'm amazed I could even compile sendmail from source. So, now I've got a version of sendmail with smtp-auth that works. And I know how to put that in, in place of the stock sendmail version that comes with OS X, and also how to take it out.

And I also know enough how to put in Postfix, swap out sendmail, and do the reverse.

And, I can confirm that the version of the pop server I bundle with Sendmail Enabler does SSL. I'm still having some problems with the Airport Extreme Base Station, but it works beautifully when it's sitting behind the original base station. If I can figure out how to set up the certification stuff with just one click, you can pull your mail down from the POP server under SSL

So, a summary. Even though I can do smtp-auth, I'm wondering what's the point? It was meant to make sure that people on the move can always get back to the home server to send out mail, because that's what smtp-auth does - it authenticates the user before authorising the user to send mail. But, if you make authentication a requirement (otherwise it makes no sense to have it), it creates a downside - this server can now only send mail out. Another mail server that is trying to send mail to this server probably won't know how to authenticate itself to this server. So you end up having to set up two servers, one for sending out mail and another for receiving mail.

But with Sendmail Enabler, people on the move can enable sendmail on their PowerBooks to send mail out themselves. They only need to go to their home server to receive their in-coming mail. For added security, this takes place under SSL so that all the communication is encrypted. They've always had to authenticate themselves anyway when they're retrieving mail.

So, I believe that's the optimal solution. Freed from the need to act as a relay for roaming users, the home server can be set up with the tightest of security, including a variety of strategies for blocking spam. Also, you get a freer hand to tie the workings of the mail server with back-office e-commerce applications - there are variety of hooks in sendmail to do that - since most of the users are sending mail out directly from their own workstations.

I had a concern that Sendmail Enabler could have made it even easier for spammers to equip themselves with their own spamming engine. But, if you free your mail server from having to relay anything from outside your local network, you cut off one source of free bandwith for the spammers. You can't stop them from trying, but at least they're being pushed back to use their own bandwidth. You can, however, put in all the blocks you can muster to kick them out before they can even come into your network. And you can do it better if you don't have to make allowances now and then to let in one of your own guys to use the mail relay. If this works, Sendmail Enabler could have changed the rules of the game - at least for the Mac-speaking world.

Posted at 4:48AM UTC | permalink

Sat 02 Aug 2003

"It's stuff like this that makes us love OS X"

Category : Commentary/geeklove.txt

Nice words from the O'Reilly MacDevCenter. Thanks, whoever wrote that. Just as the slash-dotters were packing up and leaving us alone... It's an interesting phenomena this, watching the successive waves coming down and pounding on the server - first when Jon Udell wrote about Sendmail Enabler, then when Slash Dot picked up on it, and now this. It gives new meaning to the surfing metaphor.

But it's Cocoa that makes us love OS X. Just wrapped up our exploration of Cocoa using Java. We've got most of the interface elements covered - tables, data source, outline views, notification, sheets, drawers, and alerts. Plus the backend - access to MySQL and Oracle, and web services. Just one more - how do you interface with the Unix command line the way you can with AppleScript Studio? It'll be nice to load in a MySQL database on the fly, making it all work invisibly for the user.

We're not trying to be funny, using Java instead of Objective-C. After years of seeing the Mac thrown out of one database after another, we've now got JDBC on the Mac, and access to all the databases we've ever wanted. And you can use 80% of the code you've written for a web server application. Write once, deploy many, and re-write only the user interface. Objective-C may be nice but you don't get to use a Tomcat or J-Boss. And, it's a point that's often overlooked, you've got a better chance of avoiding getting thrown out by corporate IT departments (just because you use a Mac!) if you come in with the Java/Open Source stuff. It's hard stuff to swallow, but I believe it's worth it if it keeps the Mac relevant to businesses. Being marginalised is just one step away from the Death Spiral. Or have we forgotten that?

Posted at 12:45AM UTC | permalink

Wed 30 Jul 2003

The brick only wants to get laid

Category : Commentary/brick.txt

I've always thought that that was the answer to the question posed by the American architect Louis Kahn, "What does the brick want?" But, of course, the studious will say that he merely meant that we should understand the nature of the material we're working with, as well as the situation we find ourselves. If we feel the brick straining to be an arch, we should build the arch.

That's the same way with software design. It's quite possible, if you care enough, to feel the way the design wants to be. So you keep whittling away at it, pruning away the things that are merely ornamental, until all you're left with are the things that really matter - in the case of the One-Click Sendmail Enabler, it's that single field and that single button.

If you zoom out a bit, you see the same thing happening around that product. I built this little thing for myself, but I thought I'd share it, source code and all. You know, Linus Torvalds and Linux. But the market is saying "we want support". "More documentation, please. Docs should be written as if the user is a complete newb, examples all the way", says one entry at versiontracker.

Now, how do you support that? But, you know Louie Kahn? Go with the flow. If that's what the brick wants, build it the way it wants. Build the support, answer the queries, improve the product, release frequently, and see what else people need. Will it pay? I don't know. We'll start with a PayPal donation button and see how it goes. Hang on for the ride.

Posted at 3:11PM UTC | permalink

Mon 28 Jul 2003

Biz Stone, Genius

Category : Commentary/bizstone.txt

While going through the server logs, I occasionally come across interesting sites that, somehow, contained a reference to our site.

Here's one - Biz Stone, Genius - "Yes, my name is Biz. If I have to live with it, so do you." So it starts, and he's a lot of fun to read. Highly recommended. If you're wondering why people bother to write weblogs, go read some of his essays, like "The Blogging Revolution - An Early Exploration of Blogging", or "Keeping a Professional Blog - it'll change your life".

Here's another interesting item. Last Saturday, he mentioned his visit to the Peabody Essex Museum where they actually transported an entire Chinese house from somewhere near Shanghai, through the Panama Canal, and reconstructed it in Salem, Massachusetts. This is an astounding idea, when you think of the scale and painstaking reconstruction needed. They mean to exhibit "beautiful and captivating works of art in the world in which they were created". It seems like this is just one of twenty-three other historic houses in the Peabody Essex collection.

One day, after I've created the Ultimate Business Machine that will make money for me even when I'm not working, I want to be a guide at the Asian Civilisations Museum. That is something that I've been really wanting to do.

Posted at 11:16AM UTC | permalink

Turning Night to Day

Category : Commentary/nightandday.txt

I'm reaching a point where I'm aware that sleep is just a nap we take at night. Late in the night, when mails start coming in about Sendmail Enabler, I make a mental note that it is quite likely that the day has just begun for the sender. So I avoid writing a reply. There's an impedance mismatch here (like we used to say when we mixed and matched our stereo systems). I'm out of juice and these guys are just raring to go.

So you go to sleep, knowing that it's daylight where these people (who have somehow intersected with your life) are.

And just last night I was working on a Mac 5000 km away like it was sitting right in front of me. I was thinking, Unix is good.

And I think we must be the first generation in the history of the world to ever work on this scale.

Posted at 11:13AM UTC | permalink

Fri 25 Jul 2003

Cocoa Notification works in Java

Category : Commentary/notificationjava.txt

At my wit's end, I created a fresh project just to see if there were other side effects that prevented the Cocoa notification feature from working in Java. I'm happy to say, it now works.

So it means that there was probably something wrong with my project files. I had taken a short cut and duplicated a nib file just to create another that was a bit different. I searched Google and read that you could get a corrupted nib file this way. That seems far too fragile, so I'll have to check it further. But right now, I'm happy to keep on moving.

If you're into programming Cocoa using Java, rather than Objective-C, there's a web site WhiningDog.net that has quite a few sample code. Thanks, you guys at WhiningDog.

So, right now, I've got table views, outline views, and notification working in Java. On to drawers, next.

Posted at 4:37PM UTC | permalink

Smart Host

Category : Technology/smartHost.txt

I received a request from Hunter King to include a "smart host" feature in Sendmail Enabler. According to the James Duncan Davidson article on MacDevCenter, it requires the addition of just one line to the /etc/mail/config.mc file to make this work.

Looks easy enough. So I did that. But I couldn't test it. So I've sent it back to Hunter for testing. If it does, it'll be in the next release.

Other requests are not so easy to do (yet). For example, do SMTP-AUTH, POP before SMTP, ESMTP, Postfix. I would love to do all these. But the great dampener is that Sendmail seems to have been dropped from Panther. They've got Postfix there, but not enabled. Perhaps there'll be a Postfix Enabler.

I'm going to do a more full featured DNS setup next, then I'll see what I need to know about all those SMTP stuff. But right now, I wish I can make the notification feature work in Cocoa when I code in Java. I've got lots of Objective-C examples, but I'm tearing my hair out making this work in Java.

Back to work.

Posted at 10:43AM UTC | permalink

Tue 22 Jul 2003

About Hits and How Artists Work

Category : Commentary/hits.txt

Do you know how many people read Jon Udell's weblog at InfoWorld (Jon's Radio)? I believe it's a huge lot, judging by the number of people who hit the Sendmail Enabler page after he wrote about his experience using it. Thanks, Jon, if you ever read this. That, and other nice notes like that, have made it all worthwhile.

I guess that's the kind of high Steve Jobs and the people at Apple feel when they launched something that has been well received. It's addictive. And you want to work towards topping it.

I remember reading in Business Week or Fortune a criticism (perennial aren't they?) of Apple's business model - that they're dependent on a string of hits. One barren quarter and they're sunk. It's like, we're all business here. The only model worth emulating is that of the Microsoft money machine.

But if you do software, you may get an inkling that the business is closer to the chorus line than the production line on the factory floor.

I've just been loaned a book, "Artful Making - What managers need to know about how artists work" by Rob Austin and Lee Devin. From the blurb : "Despite years of trying, businesses have still not learned how to innovate reliably under deadlines. Collaborative artists, however, do it all the time - few business deadlines are as inflexible as opening night for a theatre company, for example. Today's knowledge-based, project-focused businesses can learn powerful lessons from artists about improvisation, innovation, and leadership."

"Collaborative artists" - that's closer to my experience of the mood surrounding good software development teams. You see the acceptance of uncertainty, the creativity to improvise solutions, and the readiness to make the tradeoffs that will keep you close to the deadlines.

This is a much more fun way of working. I believe there's nothing inherently wrong about working towards making hits. If you think back, ask yourself which company of the two, Apple or Microsoft, had invariably delivered OS updates when they said they would? The answer shows which model actually works.

Posted at 3:55PM UTC | permalink

Mon 21 Jul 2003

The World Wide Web

Category : Commentary/www.txt

I like looking through our server logs and finding a new site that refers to ours. New ones include Macintosh Paranoia, Prisoner of the Mind, iMacGuru, and Apfelgerüchte.

I love looking at the unfamiliar text but, of course, not being able to read Japanese, German, or even Chinese, I can't tell whether it's for the good or the bad. But I think I really see the world as this huge globe (around which the sun shines its torch) when I flip through these sites.

Posted at 8:51AM UTC | permalink

Sun 20 Jul 2003

Geometric Progression

Category : Commentary/geometricprogression.txt

I put Sendmail Enabler up on versiontracker.com on Sunday. Around midnight, I had confirmation that it had been listed. I went to sleep and woke up to find almost a thousand downloads had occured.

To put this in perspective, there was one download of Sendmail Enabler in the first three months (by a guy called Hari). Then Google picked it up and I had a hundred downloads in one month.

When I put it up on MacUpdate, I had a thousand downloads in one week. Finally, on Version Tracker, I get a thousand downloads in 12 hours. (At last count, it was 1553 at Version Tracker vs 1212 at MacUpdate).

I'm hooked. I'm hard at work porting our accounting system from 4D to Cocoa using Java and MySQL. There seems to be a shortage of accounting/personal finance management software for the Mac. Could this take off, too? It'll be fun to find out.

Posted at 4:06PM UTC | permalink

Read more ...

Mac@Work
Put your Mac to Work

Sivasothi.com? Now how would you do something like that?

Weblogs. Download and start a weblog of your own.

A Mac Business Toolbox
A survey of the possibilities

A Business Scenario
How we could use Macs in businesses

VPN Enabler for Mavericks

MailServe for Mavericks

DNS Enabler for Mavericks

DNS Agent for Mavericks

WebMon for Mavericks

Luca for Mavericks

Liya for Mountain Lion & Mavericks

Postfix Enabler for Tiger and Panther

Sendmail Enabler for Jaguar

Services running on this server, a Mac Mini running Mac OS X 10.9.2 Mavericks:

  • Apache 2 Web Server
  • Postfix Mail Server
  • Dovecot IMAP Server
  • Fetchmail
  • SpamBayes Spam Filter
  • Procmail
  • BIND DNS Server
  • DNS Agent
  • WebDAV Server
  • VPN Server
  • PHP-based weblog
  • MySQL database
  • PostgreSQL database

all set up using MailServe, WebMon, DNS Enabler, DNS Agent, VPN Enabler, Liya and our SQL installers, all on Mavericks.