|
Sat 11 Oct 2003
Yeh! Postfix on Panther works again
Category : Technology/postfix-watch.txt
The following instructions are for 7B74 onwards. 7B74 introduces postfix-watch, which looks like an Apple "innovation", and which threw me off quite a bit. To enable Postfix on Panther, make sure you have eveything set as Apple had intended things to be. If you had ever changed things around in a bid to enable Postfix, and was not successful, try reverting everything to the default and start again. Specifically, the files that need to be reset to the original are : /etc/hostconfig, /etc/postfix/main.cf, and /etc/postfix/master.cf. I needed to do this before I could find the answer. By default, in /etc/hostconfig, HOSTNAME=-AUTOMATIC- and MAILSERVER=-AUTOMATIC-. Leave these as they are, to keep your sanity. Then when your Mac boots up, /usr/sbin/postfix-watch will be launched. If I am right in my guessing, Apple is being very thoughtful here. At this point, the usual Postfix processes are not yet launched, thus conserving CPU processes. But, try using the "mail" command from the command line in Terminal.app. You will find that, unlike the case in Jaguar where you're required to enable sendmail first, the "mail" command is already working out of the box. I think postfix-watch's job is to watch for the need to call Postfix and it will then lauunch the required Postfix processes on your behalf. So why can't you telnet port 25 on localhost? That's because Apple has commented out the smtp line in the master.cf file. Use BBedit, open /etc/master.cf, look for the smtp line and take out the leading "#" to uncomment the smtp directive. Then do a "sudo postfix reload" from the command line to activate smtp. Do a "telnet localhost 25". You will find that your Mac will now listen on port 25. So, launch Mail.app, create an account that will allow you to send mail out from localhost (i.e., by setting the outgoing mail server to either "localhost" or "127.0.0.1"). You will find that you can now send mail out from Mail.app using your own Mac as a roving smtp server. This is what Sendmail Enabler does for people on the road, but we're able to get here much faster by editing just that one line in the /etc/postfix/master.cf file. Just one more thing. Add these lines to the end of your /etc/postfix/main.cf file : myhostname = iBook.cutedgesystems.com myorigin = cutedgesystems.com Replace "cutedgesystems.com" with your own domain name. Now, myorigin acts like the Masquerade_As field in sendmail. Do a "sudo postfix reload". Now, use Mail.app to send mail out again, perhaps to yourself, so that you can examine the headers. You will find that you're now able to make the message look like it's coming from "bernard@cutedgesystems.com", say, rather than "bernard@iBook.local", which was what you would get before you made that last change. A bonus : with Postfix, using myorigin, you don't get the "May be forged" warning that you may sometimes get when using sendmail with the Masquerade_As feature. This is what I found from a test that I made. So, it's really quite easy to enable Postfix on Panther. I like to think that, maybe, Apple learnt from the response to Sendmail Enabler that there is a demand from Mac users for the ability to do such a thing. So they've made it easy, this time. So where does this leave Postfix Enabler. I don't know. Maybe there's no need for Postfix Enabler, now. It's gotten so ridiculously easy. But then again, who knows, maybe people will still find this hard to do. Also, I've only once managed to get SMTP-AUTH to work with sendmail, and even then, only fleetingly. But with Postfix, I've got SMTP-AUTH working on the cutedgesystems and roadstead.com server that four of us are using for more than a month now. And it works great. I hope this helps. I think Apple has done a great job on Postfix and Panther's really going to be a must-have upgrade. Please note : if you write to me for trouble-shooting help and I don't respond, please try to understand. It's really hard to help everyone.
Posted at 3:37PM UTC | permalink
Thu 09 Oct 2003
Efficient SpeedStream Model 5260 End-of-Lifed
Category : Commentary/SpeedStream5200.txt
I got a message from Mike at ABF Technical Support (ABF is the local distributor of Efficient products) that the ADSL Modem Model 5260 has been replaced by the newer 5200 model. Interestingly, Mike signs off with a line, "We support Macs". So, maybe we should support them back. I've updated my Mac OS X Broadband tutorial page to reflect the change.
Posted at 8:06AM UTC | permalink
Mon 06 Oct 2003
The Millionaire Next Door
Category : Commentary/millionaire.txt
There's this book "The Millionaire Next Door", by Thomas Stanley and William Danko, that I enjoyed reading and just realised that, if I had looked carefully, much of what they described also happens here in Singapore. The other day, we were talking to the owner of a noodle shop about why he's decided to move his operations somewhere else. He said that he's paying $10,000 a month in rent and the landlord refused to cut the rent by even $500 to help him out of the current recession. As we were talking, he pointed out the landlord, and it was the little lady who runs a fruit stall in the next shop. Not only does she own the two shops, she also owns the third and all three are in a high pedestrian traffic area. And as we were talking, she was clearing up what's left on a table. It can't be true, can it? Yes, it can, because a few days later I met her in the lift, on her way to a management meeting for people who own units in the building, and she confirmed it. Down the street where I live, there are a couple of other little old ladies who have no evident sources of income, who have no cars, and who wear the same clothes almost everyday. Yet their houses are always well-maintained. And they seem happy and they do live well, if not ostentatiously. How do they do it? Passive income, from either property or other investments that they or their family had made. So I asked my friend Hai Hwee who would she rather be? The guys who are visibly rich with their beemers and condos bought on credit. Or one who is really rich though nobody can tell? Her answer? She'd rather be that little lady. Of course.
Posted at 10:04AM UTC | permalink
Java and Cocoa
Category : Technology/javacocoa.txt
My colleague, Hai Hwee, just found an answer as to why simply opening and closing windows will eventually crash an application written in Java that uses Apple's Cocoa framework for creating the user-interface. It's got to do with "garbage collection". Java has automatic garbage collection that will reclaim memory that is not in use. But garbage collection needs to be explicitly specified in Objective-C, which is the language Apple used to build Cocoa. I've often wondered how you use these two conflicting schemes together. The answer is : you get crashes - unless you manage it in some way. Now we know why, the crashes have stopped and we're happy coding again. So the bottomline is: it's really possible to create "native" OS X applications using Java. There are tons of stuff in Java out there for which the cource code is available. And there are a whole lot more Java programmers than Objective-C programmers. This is one religious argument for which I will gladly take the side of the pragmatists. So, Java is it, for us. It brings the Mac back to the mainstream and every little thing helps, if you want to see the Mac accepted by the enterprise market.
Posted at 8:59AM UTC | permalink
Postfix breaks in 7B74
Category : Technology/postfixbreaks.txt
I like the look of Panther so much that I'm now running it permanently on my iBook. Otherwise I can't start work a Postfix Enabler, can I? But Postfix seems to break with the 7B74 release. It's hard to find answers because everybody is supposed to be on NDA. Will have to see if the problem goes away in the 7B80 or 85 release. Other than that, everything else that I need survived the upgrade (even the rsync command that I use to update this weblog). I think Panther really does improve the Mac experience, in terms of end-user productivity. So there's no going back, as far as I'm concerned. Panther is going to be good for the Mac.
Posted at 8:31AM UTC | permalink
Fri 26 Sep 2003
News Gothic
Category : Commentary/newsgothic.txt
Actually, as a follow on from the previous article, I just realised that the font I used to simulate the classified ad pages is News Gothic, not Times. It matches the font used by the newspaper most closely. So, the ability to play with all these typefaces on the Mac has other direct commercial uses besides just benefiting graphic artists and DTP designers. While on the same subject, I just used a system that allows you to see how the ad will look, directly, while you're submitting the advertising copy. And it does away with an operator entirely. The ad gets queued up for publishing on the dates you specified, exactly as you had set it. And the cost is 70% cheaper (30 cents per line as opposed to $1.00). Score a point for technology.
Posted at 8:31AM UTC | permalink
Abracadabra
Category : Commentary/abracadabra.txt
Words are like magic. When we were children, we read stories about how sorcerers could cast a spell or make something supernatural happen just by chanting the magic word. Words do hold real power. The key is to find the right combination that will unlock the power. Am I talking nonsense? I'm putting out ads in the local newspaper to find tenants for some office space that we manage. But the market is bad. Last month, I managed to find a suitable tenant for an apartment that we own. But it took two months of searching when, only the previous year, we found a tenant within 45 minutes of taking the calls. Advertisements cost money. The effectiveness of the advertisement is measured by the number of calls that you get. And the effectiveness of your handling the calls is measured by the number of viewings that you get. Like Dennis Wee, our real estate guru says, "Only when buyers come, can the home sell." The more calls you get, the more your chances of getting a viewing, out of which, hopefully, one will result in the sale. You can see how words can affect the number of calls you get. Put aside a budget, write a series of ads in diifferent styles. And watch how many calls each one pulls. In today's market, an ad put out without any idea of how to push the right buttons in the mind of the busy, fussy, squeezy, tenant-to-be will most likely result in zero calls. That's $40 to $50 bucks down the drain. Better not to have put it out, unless it has thought you something. Now, back to the Mac as the Ultimate Business Machine. How do we use our favourite toy in this situation? Ads are charged by the number of lines that you use, which is not exactly determined by the number of words that you use. To see what I mean, use something like InDesign. Create a column that is about the size of the column in the newspaper classified page. Then use a font like Times that corresponds as closely as possible to the font the newspapers use. Then set the appropriate font size and kerning (the space between the letters). Take an ad that you've submitted previously, and type it into the column. Then adjust the font size and column size until the words break just like way the ad looked on the newspaper. You can test it by simulating other ads on the same page. If you can get similar line breaks and the same number of lines as they appear on the newspaper, you've got a really valuable tool. Because, when you next write an ad, you can use this column to get a feel for how many lines it's going to take and, therefore, how much it's going to cost you to place the ad. You can see how making just one change in the wording (for example, by finding a shorter word - the Bartleby site is a great on-line resource for finding synonymns) can save you a whole line. Or where you've got space to use a longer and more appropriate word without adding to the line count. The benefits don't end here. When you submit your ad (the smart kids use e-mail rather than the phone because you can get an idea how much you've spent on adverts to date just by counting the ads you've sent), you can have the InDesign column ready when the operator calls back to confirm that you did get the number of lines that you've planned for. More times than not, you would have got it right. If you don't, you can look at your own copy to suggest dropping or changing words, and you should be able to do it fast enough before the operator gets impatient. It's magic. It's now possible to really concentrate on finding the most impact you can make with your words, at the lowest possible cost. Note : See how fast we can switch from talking about technology, and sendmail and SASL, to English, and design and artwork, and commerce and business? If the Mac is not a machine for those who want to live life to the full, I don't know what else is.
Posted at 8:31AM UTC | permalink
Wed 24 Sep 2003
A Hiatus
Category : Commentary/hiatus.txt
Just realised that it's been some time since this weblog was last updated. But I've needed to take that break. I remember reading about how William Gibson ("Neuromancer") has stopped writing a weblog because it interfered with his writing. When writing gets to be a chore, we should stop. Fullstop. And give time for the daily impressions to settle. And germinate. And hopefully, sprout fresher ideas. I've just finished reading "Artful Making - What Managers Need to Know about How Artists Work". I believe that it's an important book, putting aside the rather clumsy phrase, "Artful Making". It describes, quite accurately, what we actually do in software development projects. But I've realised that it may be totally at odds with my objective of making my business work like a well-oiled business machine, like a MacDonald's. I know it's possible to help our clients make their businesses work like a smoothly efficient business machine - we know we've done that - but it takes a whole lot of care, improvisation, and not a little bit of doggedness on our part to do it. It does not help that, at the end of the book, the authors (Rob Austin and Lee Devin) describe how artists often do their work for the sake of doing their work - as if the need to uphold the standards of their craftsmanship takes higher precedence than the mere thought of remuneration. ("Most actors earn considerably less than $20K a year doing acting.") Shades of the starving artist. And that's what sends a chill through me. I often see the Bangladeshi workers toiling under the sun, being paid pittance, yet their work is the hardest any man can do. It may surprise people but high-tech is not any different. The guys who work out the programs, design the loops, fix the bugs - the software coolies - they're paid, if at all, rather grudgingly. The legions of Linux programmers contribute their work for free, yet it's the people at Red Hat who, by and large, benefitted from being able to do an IPO. Maybe craftsmanship does not pay. Just look at Apple. But I never want to be the starving artist. It's silly. If you're smart enough to make a complex piece of software work flawlessly, you must believe that you're smart enough to make yourself reasonably rich. How do you make this work? That's the question.
Posted at 9:35AM UTC | permalink
Fri 12 Sep 2003
SMTP-AUTH actually works on Postfix on OS X
Category : Commentary/postfixsmtpauth.txt
We've finally got SMTP-AUTH working on Postfix on OS X. So it's really going to be exciting this move to Panther. We're going to have this first-class Unix system to work on that loses nothing to Linux. It wasn't easy and I wanted to give up a few times. But I felt that this was going to be a key piece of technology, if the Mac is going to be accepted as a first-class computing platform for the enterprise. I can imagine corporate IT departments frowning on the use of a roving SMTP server enabled by either Sendmail or Postfix Enabler. They'll be pushing to have all mail sent out exclusively from the corporate server. So we'll always want have this SMTP-AUTH option working when we need to. And this is just the start. Imagine being able to authenticate against an enterprise-wide LDAP server or against a MySQL database, or both. The tools on OS X just gets better and better.
Posted at 9:52AM UTC | permalink
Yet another PC Guy goes Mac
Category : Commentary/computerworldguygoesmac.txt
From InfoWorld to ComputerWorld, yet another PC guy goes Mac. The thing about these conversions is that these are probably the guys who were most vociferously anti-Mac in the days of OS 9. How can I tell? Well, the first thing he recommends you do is to activate the OS X firewall. After all, he found the Mac after a search for an easy to use and secure operating system. And he writes a book, "Securing the Network from Malicious Code." The first thing a real Mac user does, in the days of OS 9, is to create a printed page and experiment with all the fonts and the layout, and dream about impressing the boss or the client with all the printed stuff, viruses and hackers be damned. But try to get another Mac into the department? Not if the IT guy can help it. I've gone through all these fights. Come on, Apple. Play the game well. You're going to get a stab at the huge enterprise market. Just don't lose it this time. It may be your last.
Posted at 3:34AM UTC | permalink
Thu 11 Sep 2003
Otterman's Blog
Category : Commentary/sivablog.txt
My friend Siva the Otterman has been filling up his weblog lately. I've just been too busy to notice. I've always enjoyed reading his posts to the local Mac Users' Group and felt that he is one person who should write a blog. So here it is, at last. You'll get a feel for what's going on up there at the National University of Singapore, and he is into conservation and nature, and biking, and stuff like that. Definitely off the beaten track, and you may just find a place or two you don't even know exist in Singapore.
Posted at 5:07PM UTC | permalink
Notable Quotes
Category : Commentary/timhoward.txt
I like this quote from Tim Howard, Manchester United's solid new goalkeeper, comparing life in the English Football League with his old one in the United States. "When you're at Manchester United, everything is scrutinised, every little thing. There's a pressure to perform every day that is greater. Pressure can bust pipes or make diamonds. I turn that pressure into something I can enjoy. "The real unfortunate part is when I make the saves it's 'brilliant save by Howard'. When I make a mistake, it's 'the American has a lot to learn'. You could get consumed by that, but you have to let it slide off your back." I love that - 'you can get consumed by that, but you have to let it slide your back'. Tim Howard looks tough enough, mentally, to stay up with the Roy Keanes of the world, and that's alright with me. On the subject of United, I've just finished a book I salvaged from the discards, "Manchester Unlimited, The Money, Egos, and Infighting Behind the World's Richest Football Club" by Mihir Bose. Interesting views of football as serious business, especially if you're soccer fan like me. Best three bucks I've spent lately. Now, how about the Triads as a serious business? I'm enjoying Timothy Mo's "Sour Sweet" about life in Chinese Soho in the sixties, which I bought umpteen years ago but which I've only just managed to find time to read. This is really the purpose of this weblog - to figure out how to get close to running the ideal business, from learning from all these different perspectives.
Posted at 4:39PM UTC | permalink Read more ...
|