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.

Mon 02 May 2011

DuoMo

Category : Technology/Duomo.txt

This my GoLive/Dreamweaver replacement. It's tentatively called DuoMo, as in the Duomo, a cathedral. I was reading Ken Follett's Pillars of the Earth, when I started work on it and felt that building a website, or an OS X/iPhone/iPad app, for that matter, is a lot like building a cathedral.

DuoMo1.png

I was using BBEdit to write my weblog entries but I've always wanted a wysiwyg (do people still say wysiwyg? what you see is what you get?) editor, that'll look exactly like my weblog entry on my actual web page, and where I don't have to enter HTML markups like <b>bold</b> for bold text, or to set the paragraph style, like :

This is a comment.

Or where I can simply drag an image into the blog entry and the app would bring the image over to the right folder (and possibly scale it to fit the weblog page). And where I can create a web link just by control-clicking on a text range and entring the link address. 

No more messing with HTML. Plus unlimited Undo support.

BlogEditor.png

It's all done with the magic of editable WebKit, which is the basis for the Safari web browser.

That's why I've been hoping for an editable WebKit for the iPhone or iPad from Apple. That'll allow me to build something like this to update my weblog while on the move, which, strangely, is when I've often felt like I've got something to say. So far, WebKit is still not editable on iOS.

So, this is a closeup of the blog editor I built into DuoMo :

DuoMoWindow.png

So far I've managed to make DuoMo workable even over a very slow web connection, as when you're using the iPhone 4's Personal HotSpot feature to share your 3G connection with your MacBook. In such a case, GoLIve won't even work, with the spinning beach ball going on and on forever and you have to Force-Quit GoLive when you try to connect back to your web server. 

Doing a sync with the home site is still rather slow with DuoMo (if via the iPhone's shared 3G connection, but it'll simply fly over WiFi because I've spent hours figuring out where the app spends its network connection time) but that's the great thing about writing your own code and building your own tools. I feel that I should be able to fix that also somehow, given time.

Posted at 11:39PM UTC | permalink

Some preliminary thoughts on OS X Lion Development

Category : Technology/OSXLionDev.txt

I've prepared one machine to run OS X Lion on one partition and Lion Server on another, so I should be all set to go to move all my apps over to Lion.

But it's not quite as easy as that.

First, all Lion development is done on the new version 4 of Xcode, which brings about significant changes to the way things used to be done. So far, I'm loving the new software development workflow in Xcode 4. After one month of work, I believe I'm really more productive on it than on Xcode 3.

Xcode4.png

But it's not all good, of course. Things inevitably break - e.g., my database access frameworks for MySQL, Postgres and SQLite. I needed some time to get used to the new Xcode build settings before I could figure out how to get them working again, including building for iPhone and iPad which are, of course, on another platform architecture altogether (i.e., Arm 6 and 7, as opposed to Intel x386, 32 or 64 bit). There are all these variations to build fat binaries for, and every time Apple changes something major like this, I go through this sinking feeling that I may never get things to work again.

Then there's this thing about FTP not being supported in Lion, i.e., you can't seem to be able to ftp onto a Lion server. There's no obvious way to turn it on - not in Sharing Preferences or even in Lion Server (I think).

I've been using this decade-old Adobe GoLive technology to manage my web site's static web pages, so this seems like the end of the road for it. I don't want to use any Adobe stuff when I move to Lion (or Microsoft stuff, for that matter). 

So I've been building this GoLive/DreamWeaver replacement for myself, that I'm now using to write this weblog on (among the things I've made it able to do), and that'll be my key web site creation/management tool in Lion.

More on all these developmen later. But, in summary, I've got the piececs I need to move on to Lion development in earnest now. Hope I won't be too late for its launch.


Posted at 7:40AM UTC | permalink

Fri 25 Mar 2011

Downloading Xcode 4.0.1

Category : Technology/DownloadingXcode4dot0dot1.txt

There's a new Xcode version 4.0.1 for download from Apple Developer Connection. Just in time to try my new download speed.

Everything is working well so far with my new broadband plan. Except for one thing. I don't seem to be able to connect my Mac directly to the broadband modem anymore via PPPoE, bypassing the Airport Extreme Base Station.

I think I've tried everything - like switching off the modem completely to drain it of all power and to clear out any "memory" problems with the previous connection - but the Mac refuses to connect.

Just to make sure it's not just a Mac-only problem, I tried it also with the Singnet technician's Windows laptop. Was perversely happy to see that that didn't work either.

Maybe I need to reset the modem. Hadn't tried that yet. But that would mean bringing the site down again. Didn't want to do that.

Will try again when maybe I get a parallel duplicate broadband line that I can devote to doing such testing. I do have a Mio TV connection that could have its Internet connection activated - maybe with the new 200 Mbps optic fibre connection (that comes with a 100 Mbps upload path, so downloads from my site go that much faster). That may look like quite attractive but I don't think I can afford that yet.

P.S.: In the time I took to write this, Xcode 4.0.1 is already halfway downloaded, at my new 15 Mbps download speed. That's a 4.3 GB download. If I have a 200 Mbps line, that would all have come down in a jiffy. Whatever speed you have, you will always want more.

Posted at 6:48AM UTC | permalink

Thu 24 Mar 2011

Our Site is Up Again

Category : Technology/SiteUpAgain.txt

OK, our broadband connection is up again and I do get 50% better line speed. The site was down for the last two hours. So if you've been trying to get in to download something a short while ago, that was the reason why.

Posted at 11:58PM UTC | permalink

Upgrading my Broadband Line

Category : Technology/BroadbandLineSpeedUpgrade.txt

I'm going to be upgrading my broadband line speed. I'm not sure exactly when but it should be done sometime from now till tomorrow.

So if you find the site down, it'll come right back up after my ISP has done the upgrade. Hope to get 50% more speed by then and make all this disruption worthwhile.

Posted at 12:20PM UTC | permalink

Tue 22 Mar 2011

Why our server apps are not in The Mac App Store

Category : Technology/MacAppStore.txt

I've been asked, why are our apps like MailServe and DNS Enabler not in the Mac App Store?

There's this small matter of rule 2.27 in Apple's Mac App Store Review Guidelines:

It says, "Apps that request escalation to root privileges or use setuid attributes will be rejected". And that's that.

In order to configure the mail, web, or DNS server, my apps need to be granted superuser status by the user. There's no other way around it. Or is there? But I can't quite think how. At least for the moment.

Of course, there are the other apps that should probably be OK with the Apple Thought Police. Luca, Liya, etc. But one thing at a time. There's always so much to do and so little time.

Posted at 9:43AM UTC | permalink

Live Server is now on 10.6.7

Category : Technology/LiveServerOn10dot6dot7.txt

I've updated the cutedgesystems.com live server to 10.6.7. All the mail services, including Fetchmail and Dovecot, and DNS, web and the SSL stuff continue to work. So it's probably safe for all the people who're users of all our apps to update, too.

Posted at 8:18AM UTC | permalink

Narra

Category : Technology/Narra.txt

Here's the other tech update I have. I've finished a first, usable version of something I'm calling Narra - a tool for creating and editing iBooks. My friend, Hai Hwee, is already using it to create notes that her tuition kids can review on their iPhones or iPads.

This is how it looks like :

You can use it to create a new .epub iBook, drag and drop images into it, design the cover layout, and add and re-arrange pages. Right now, it only supports the placement of images (I haven't yet added tables or support for the other HTML elements), but it has support for drag and drop and unlimited undos. That should be enough to create a basic, yet good-looking .epub iBook.

To get the epub into the iPad or iPhone, just look for the saved .epub file, drag it into the Books section in iTunes and then sync the iPhone or iPad. The epub will appear in the iBooks app. It's that simple.

I haven't yet created a web page for Narra, but you can download Narra.zip from here. (I've only built it for Snow Leopard). Just use it and send me feedback. It was fun building this and there are even more things that I'm planning to do with it.

Posted at 8:17AM UTC | permalink

More Wireless Speed

Category : Technology/MoreWirelessSpeed.txt

While I'm waiting for the Macs to all get up to 10.6.7, a couple of tech updates that might help some people.

Here's one about getting the best speed out of your Airport Extreme wireless network.

All my Macs are now capable of operating at 802.11n speeds and so I should be able to switch my Airport Extreme Base Station to work exlusively on the less crowded and much faster 802.11n 5 GHz space, right? And get 300 Mbit/s Link Speed for all my Macs instead of the anaemic 120 Mbit/s at 802.11b/g/n mode. Right?

In practice, it's not so simple. It should be and one day it'll be but now it's not.

That's because, if you switch the Airport Extreme Base Station to the 802.11n 5 GHz range, you will find that some of the Macs will mysteriously lose contact with the base station's network when they come out of sleep or when they restart. All my Macs do that except, fortunately, the new Thunderbolt early 2011 MacBook Pro.

I spent a few days tracing this and found that it coincides with the Airport cards in the Macs thinking that they have a different country code from what they should be, e.g., DE or TW instead of SG in my case. When this happens, they can't find the Airport Base Station.

So this makes some sense, because my Airport Extreme Base Station's country is set to Singapore and this probably determines the range of frequencies or channels the base station would use. If the Airport card on the client Mac thinks it's operating in a different country, that will set that airport card's operating frequencies and these two - the range carried by the station and the one listened to by the client - may not coincide and that would explain why the client Mac can't find an obviously operating Airport base station.

So the question really boils down to, why does the Airport card randomly think it's operating in a different country (from what it should most obviously be) when the Mac comes out of sleep or when it's been rebooted?

The answer is, if you'll search the web, it's not random but it's definitely a bug. It's not random because the wireless cards of the world, and not just the Airport cards, determine the country code from the first operating beacon that they encounter and not just the base station that they're supposed to tune in to. So among the 2Wires and Linksys in my neighbourhood, there are many that still think that they're operating in Germany (DE) or Taiwan (TW), because their owners neglected to set the operatng country parameter correctly.

This is what happens when you give people too many buttons than they know how to press or too many options than they know how to fill in. This is the PC-everything-and-the-kitchen-sink mentality that is the blight in the neighbourhood.

The new MacBook Pro seems to have that bug fixed because it always (or maybe, mostly) gets the country code right when it comes out of sleep. But the other Macs need some help. I've determined empirically that the country most of the Airport cards think they are operating from, when they come out of sleep, is DE, probably because of the preponderance of PC-type wireless routers that have their operating country left as Germany in my neighbourhood.

In the Aiport Extreme Base Station, you can select a specifc channel to use in 802.11n 5 GHz mode, overriding the default choice ("Automatic"), if you hold down the option key while clicking on the pop-up menu. I've set the channel to 36, which is one that is used both by DE and SG.

And this has solved the problem. So I get all my Macs now operating at 300 Mbit/s over our Airport network. And things like file transfers feel that much zippier.

End of a happy story? Mostly. But occasionally, a rogue router that thinks it's in Taiwan will pipe in with TW please, before the DE's could respond and the Mac that is so stupid to listen to it will lose contact with the Airport base station (because TW doesn't operate with the channel 36, that DE and SG do). Usually for me, that Mac is an old MacBook that my kid uses and I've taught him to turn off and on Airport to get that out of the way because DE usually prevails here.

It's definitely a bug. It seems to have gone away with the new MacBook Pros. Apple should provide a firmware update to fix this for the older cards. Otherwise people will be operating far below the Nirvana they have the right to attain, just by being smart enough to use a Mac, or an iPhone or an iPad.

Posted at 8:17AM UTC | permalink

Mac OS X 10.6.7

Category : Technology/10dot6dot7.txt

The Mac OS X Snow Leopard 10.6.7 Software Update is out and I'm applying it to all my Macs. So far I've updated my iMac and the new Thunderbolt MacBook Pro, and they're both OK.

Doing the update now for two other MacBooks and, after that, it'll be the iMac that is the cutedgesystems.com live server. So you may see some minutes of downtime later on. If you do, don't worry. This site will come right back up after it.

P.S.: And I'll know if there are any problems with the mail, dns, web servers, etc., and if there is anything that will need to be fixed because of that software update.

Posted at 8:14AM UTC | permalink

Mon 21 Mar 2011

More Speed

Category : Technology/MoreSpeed.txt

I'll be upgrading my broadband line to 15 mbps on Friday. I'm currently on 10 mbps but I'm only getting about 6 mbps when doing the speedtest. So I thought I'd better find out where the bottleneck is, otherwise I'll never get the 15 mbps that I would be paying for.

Turns out it's the broadband modem.

I've been using an old one from Efficient Networks, called the SpeedStream. I replaced it today with the Aztech DSL1000ER and I get the 10 mbps now.

So why did I live with this limitation for so long now? It's mainly because bridge modems as so hard to find.

I hate the PC-centric modem-cum-wireless-router (plus the kitchen sink) ones like the 2Wire, etc, because they're so hard to configure. It's all so easy with the Apple Airport Extreme Base Station. So I always need only a dumb bridge modem, where the configuration is all done on the AEBS.

So I found the Aztech. It's true plug-and-play, straight out-of-the-box, with the AEBS, no configuration required on the modem. Actually the DSL1000E model is good enough. But I could only get the DSL1000ER in Singapore, which I purchased from the Singtel Helllo store.

P.S.: If you've been coming here the last few days and found the site down intermittently, this was why. I've been experimenting with a whole lot of modems.

Posted at 1:27PM UTC | permalink

Preparing for Lion

Category : Technology/lion.txt

I bought a new 15 inch MacBook Pro - the one with the Thunderbolt port - to run the developers' preview of Lion, the next version of Mac OS X, and then realised that Lion wouldn't (yet) run on it, probably because it's so new.

So I created two other partitions of my iMac, which is the machine I've been doing all my development work on - and so I've got one partition to run Lion, and the other to run Lion Server.

So we'll see, what I've got to do with all my apps on Lion.

Posted at 12:33PM 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.