Showing posts with label apple. Show all posts
Showing posts with label apple. Show all posts

Thursday, 19 June 2008

Web Sharing and PHP on Mac OS-X Leopard

Mac OS-X comes with a version the Apache web server that is configured to allow users of the system to publish their own web pages directly from the Sites directory in their home folder. This is of limited use for the average user but is just great for web developers who can test their work directly, using a real web server. However, there is a glitch: if you upgrade from OS-X Tiger (10.4) to Leopard (10.5), existing users will suddenly get an HTTP error 403 Forbidden when navigating to their web pages. This is because in Leopard, Apache's security is tightened by default.

Apple provide an article that describes how to re-enable access for those users. However, their version will still deny access to sub-directories. So I slightly adapted the shortname.conf file to make it more flexible. Here is my version:

<Directory "/Users/shortname/Sites/*">
Options Indexes MultiViews
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>

The star (*) at the end of the directory name on the first line ensures that the rule applies not only to the ~/Sites directory but also all sub-directories. The FileInfo value for the AllowOverride option on the third line tells Apache to allow settings override in a .htaccess file in that directory or any sub-directory thus allowing much finer grained control.

After getting this to work, it appears that, although PHP5 is installed, it is not enabled in Leopard's Apache installation. Enabling it is very easy and very well explained at Foundation PHP.

There you go: a full blown web server with PHP support is just what you need to locally test drive you beautiful web creations and you don't even have to install any extra software.

Sunday, 23 September 2007

Bad Interface Design

Apple Computers are reknown for some of the best user interfaces. Like everybody else, they can occasionally get it wrong. I just had an amusing example of this. If you go to the HSBC web site and download any of their PDF documents such as their terms and conditions, you will notice that there is a slight bug that adds ;jsessionid= followed by a lot of gobbledygook at the end of the file name, after the extension, thus producing a file with an unusually long extension that OS-X doesn't recognise. So the first thing you'd want to do is change that file name and remove all the jsessionid malarkey at the end of the file name. When you do that, OS-X thinks you want to change the extension and are in risk of ending up with a file name it can't handle automatically. So it warns you and asks if you really want to do this, assuming you don't, as shown below:

Error dialogue with inaccessible button

Error dialogue with inaccessible button

In this example, you can just about see the other button pushed all the way left and therefore click on it as you really, really want to change that extension. But if you had just one more letter or if you changed the j in the ID for an M, the right button would be that little bit much wider and the left button would completely disappear. As you can't change the dialogue window's size, you're stuffed and you have no choice but to click on the highlighted button and leave your file name as is. The only way I found around this is to open the terminal and use the command line to change the name. That's one thing that OS-X has going for it: as it's UNIX underneath, you can always bypass the user interface when it gets in the way. On the other hand, that's not something that is very accessible to the average user.

There are a couple of solutions that Apple could apply to their dialogue boxes when such a problem occurs:

  • make the dialogue window's resizable and/or scrollable;
  • extend the window accordingly, although you'd get the same problem if you got to stupid extension lengths as long as the width of the screen;
  • make the buttons stack up and extend the window vertically.

The moral of the story is: when designing user interfaces, test them with very stupid values that make it break. Someone is bound to use such values one day or another, if only by accident.

Tuesday, 16 January 2007

OS-X Instant Messaging

Apart from iChat, that comes bundled with OS-X but can only connect to a limited number of networks, most OS-X versions of instant messaging clients, like MSN Messenger, are fairly poor compared to their PC counterparts. An interesting alternative I discovered recently is Adium. It is quite basic in terms os features so far but it can connect to an impressive list of networks, including MSN, Yahoo, Google Chat, ICQ and quite a few obscure ones, which means that you only ever need one chat client open. It currently doesn't support voice or video but it's definitely on their to-do list. Nor does it support extended animated smileys like MSN does, although you could argue that's rather a good thing. A very nice feature is the ability to use tabs rather than individual windows for each thread of discussion. You can even have a hybrid setting whereby you have one window per group of contacts and tabs inside each window. And of course, in typical open source geeky fashion, most settings can be changed through the preferences and you can completely customise it using AppleScript.

Monday, 30 October 2006

Sync your Nokia phone with your Mac

I have a Nokia 6234, a model that unfortunately is not supported by iSync on the Mac out of the box. I have been looking for a solution more or less since I got the phone and today I found it on .mactomster. They offer an iSync plugin for a large variety of Nokia mobile phones. The site is all in German so it took me a few minutes to work out that I had to register before I could download the plugin but I eventually got there. Luckily the installation instructions also come in English but they are so simple it would be difficult to get it wrong. Once I had downloaded the plugin, it took the whole of 5 minutes to have it installed and my data sync'ed. What more could I ask for? This is what software should be like!

So, if your Nokia phone is one of the unsupported models on the Mac, get this plugin and you'll be sync'ing in minutes. Then make sure you click the Paypal button as those guys definitely deserve your support.