Meldungen zu Mac » Development »

MAMP, a local webserver environment for the Mac, is perfect for testing, developing and designing with WordPress. MAMP comes with a ready to use configuration of Apache, MySQL and PHP in a single folder.
But after installing and configuring a WordPress blog, you may loose the access to the MAMP start page:

Forbidden
You don’t have permission to access /MAMP/ on this server.
Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 Server at localhost Port XXXX

That’s a big issue, as the start page links to the local phpMyAdmin page for MySQL-database configuration. So you cannot admin the database anymore.
I traced down the problem to a wrong placed file: When I configured the WordPress installation via the web-interface, an .htaccess file was placed in the root directory of my harddrive. Quite scary … but a problem which can be fixed easily ;-)

As always: no guarantee and on your own risk … especially the Terminal is a wonderful tool … but if you do the wrong thing, you may be in serious trouble!

You normally do not recognize the .htaccess file within the Finder: all filenames starting with a dot are hidden files in a UNIX system … and the Finder does not show those hidden files. But if you use the Terminal, you can look at all the hidden files easily.
So fire up the Terminal app and go to the root directory of your hard drive:

cd /

then looks at all the files in your root directory:

ls -la

If you find a .htaccess there … you probably found your problem. But look inside the file before your rename or delete it:

cat .htaccess

The easiest way to proceed is to rename the htaccess file:

mv .htaccess htaccess-backup

This way the file is shown in the Finder again and does not confuse your MAMP installation. If you know what to do you can delete the renamed file now within the Finder and drag it to the trash ;-)

Adobe announced the export capability from Adobe Flash Professional CS5 to built native iPhone apps. This is the next round in the battle for market shares in the field of mobile application platforms.
Adobe tried to position Flash with their shrinked down Flash Light as a global OS independent application development platform for mobile devices. Today more than 800 million mobile devices are Flash Light enabled. It looked like they found the philosopher’s stone – but when you dig deeper, Adobe is facing a lot of issues:

  • Those more than 800 million mobile devices have different screen sizes, different buttons or keyboards and some even have a touch screen. That does not help developers to create stunning GUIs on mobiles where every little pixel needs to be arranged.
  • Flash is very performance hungry. That’s why they had to shrink it down to Flash Light – but even flash light is struggling with performance issues on many of the 800 million devices.
  • Adobe does not provide a application store infrastructure for its developers … maybe one of the biggest issues of all

But on March 6, 2008 an other threat to Flash and Flash Light appeared: Steve Jobs introduced the iPhone SDK which provided a easy way to create third party applications for the iPhone with high mobile performance and the ability to take advantage of most of the sensors – like touchsceen, accelerometer, microphone, camera. And Apple solved one of the biggest hurdles for mobile application developers: They provided an easy application store solution for the developers to sell their apps or distribute them for free. And also the market for these native iPhone applications is quite attractive: There are more than 50 million iPhones and iPod touch devices out there – all of them having the exact same screen size, all of them having a touch sceen, all of them having an accelerometer. Apple attracted a lot of independent developers as well the big names in game industry with their mobile application ecosystem.
Bringing Flash support to the iPhone Safari web browser was blocked by Apple because of those big performance issues. Apple also did not license Flash Light for the iPhone – quite logic because they built up their own developer base and their own mobile app ecosystem.
The only chance Adobe had was to built up an “injection”-strategy and develop their Flash authoring tool into an Objective-C & Cocoa code generator which allows Flash developers to create native iPhone applications by the press of a button. Then the Flash developers can upload their app to the iTunes AppStore and use it as a selling and distribution channel.
This probably wasn’t an easy job and it will be quite interesting to watch Apple’s reaction on this move. It probably will have a massive effect on the AppStore as this will flood the store with new apps: More creativity and more junk.

Louis Gerbarge spotted the technical issues of the Adobe Flash to native iPhone code generation – and takes a look on the performance and private API issues of the beta version of the CS5 solution. His post makes clear that taking the Flash way won’t offer the Flash developers the features and beauty of the uncountable iPhone SDK 3.x APIs.

Some days ago I published a first solution for reactivating printing on OKI-printers from Mac OS X 10.6 Snow Leopard … some of you managed it to reactivate the printer by following the instructions – others are still coping with that problem. Also I was disappointed to see that the solution broke again and I wasn’t able to print from Snow Leopard again. That was really annoying – so I spent some time again to find a proper solution. Here it is: Version 2 of how to solve the problem … and as always: no guarantee and on your own risk:

Problem: After updating from Mac OS X 10.5 Leopard to OSX 10.6 Snow Leopard the installed printer driver for the OKI-postscript driver does not work anymore. Here it’s an OKI MFP C5540 … but it should also work with other models, like the OKI C5450 or C8800. The printer diver was installed under Leopard and worked quite well. After finishing the update to 10.6 you are able to send a print job to the printer, but an error message shows up in the print queue.

Diagnosis: Two bugs may cause the problem: Some of the OKI-printer drivers just disregard case sensitivity in their path names – this wasn’t a problem in former Mac OS X versions – but it is a problem in Snow Leopard. The other bug – which even leads to a malfunction if the path names are right – is some wrong file permissions. And this causes Snow Leopard to hiccup when you try to print on an OKI-Printer.

Solution: The easiest way to solve the problems and get rid of the bugs is following three major steps:

  1. Delete the old OKI printer drivers under the folder “/Library/Printers/” … if there are any.
  2. Install a new OKI driver. This will also create the folder “/Library/Printers/OKIDATA”. Then install the specific printer driver for your OKI-printer (especially the PPD file).
  3. Repair the file permissions.

You only need the OKI printer drivers and you have to put in some Terminal commands. But let’s do it step by step:

  • Log into your Mac as an administrator.
  • Step 1: Delete the old OKI files and folders:
  • Don’t forget to backup your data before you start!
  • Navigate to the following folder in the Finder and delete the folder “OKIDATA” or “Okidata” – if there is any.
     Macintosh HD/Library/Printers/
  • Within the folder “PPDs” you may find also some OKI files – at my Mac it was “Oki C5540.ppd” – delete also these files.
  • Step 2: Re-installation of the OKI printer driver. The installation program of older printer drivers may cause problems when creating the “OKIDATA” folder: They may name this folder “Okidata” and put in an old OKfilterA-file.
  • Therefore you should download and install the printer driver for C5550n-MFP of OKI-USA specifically for Leopard users first. Just click on the “Mac OS X.5″ link on the printer driver page of OKIDATA-USA, download the installer.
  • Then start the installer and put in your password. The installation program will create the folder “OKIDATA” as needed.
  • If the C5550n MFP is not the OKI printer you have, you have to download install also the specific printer driver for your OKI-printer model. I had to choose the C5540n MFP. The installation will not overwrite the folder OKIDATA and only put’s the missing PPDs into the right folders.
  • Step 3: Repair folder & file permissions. Open the program “Terminal” – you’ll find it under “Programs/Utilities”.
  • Input the following command into the appearing command-line window and finish it with pressing the return-key:
     sudo chown -R root:admin /Library/Printers/OKIDATA
  • Now, you’ll be prompted for your password … so put in your password of the admin account and finish the input by pressing the return key again
  • Input a second command into the command-line window and finish it with pressing the return-key:
     sudo chmod 775 /Library/Printers/OKIDATA/Filters/OKfilterA
  • A little complicated – but it works. Just exit the Terminal program and restart your Mac. Then you can setup your OKI-printer and select the specific OKI-printer driver manually.

Printer drivers under Mac OS 10.6 Snow Leopard are still sometimes causing trouble. After explaining how to reactivate an OKI-printer – here is the solution for an Kyocera-Mita-printer … and as always: no guarantee and on your own risk:

Problem: After updating from Mac OS X 10.5 Leopard to OSX 10.6 Snow Leopard the installed printer driver for the Kyocera-postscript driver does not work anymore. Here it’s an Kyocera Mita FS-2000D … but it should also work with other models. The printer diver was installed under Leopard and worked quite well. After finishing the update to 10.6 you are able to send a print job to the printer, but an error message shows up in the print queue.

Diagnosis:There are incorrect file permissions under Snow Leopard fort he Kyocera printer driver … and this causes some trouble. BTW a warm thank you to @kappuchino for his diagnosis and solution!

Solution:There is nothing like fixing the bug yourself ;-) You can easily fix the problem by one command in the Terminal:

  1. Log into your Mac as an administrator.
  2. Open the program “Terminal” – you’ll find it under “Programs/Utilities”.
  3. Input the following command into the appearing command-line window and finish it with pressing the return-key:
    sudo chown root:wheel /usr/libexec/cups/filter/kyofilter
  4. Now, you’ll be prompted for your password … so put in your password of the admin account and finish the input by pressing the return key again
  5. That’s it. Just Close the Terminal program. Now printing on the Kyocera printer should be work like a charm.

I just updated to Mac OS X 10.6 Snow Leopard. My hard disk was still partitioned with the old Apple partition scheme – but Snow Leopard needs the new GUI partition scheme. So I had to do more as usual to do the update: First a complete backup of my hard disk (you absolutely should do this every time you update your system), then I had to erase and repartition the HD with the GUI partition scheme. After that I was able to install Snow Leopard and transfer my user data from the backup, the programs, etc. with the Migration-Assistant.

Using Snow Leopard feels great and you immediately recognize the speed. Looks like all of the Apple engineers work “under the hood” was worth it! You should not expect fundamental changes within the user interface or other totally new features – the core of Snow Leopard are speed, detail improvements and technology upgrades.

But what’s about the compatibility to non-Apple-hardware products? Sadly, printing on my OKI laser printer does not work with the Leopard-compatible driver for the Oki MFP C5540. By using the preinstalled generic PS-printer-driver from Apple you are able to print on the OKI printer – you even an control the duplex unit. But you are not able to control all the specific printer settings like print quality, grayscale instead of color printing or specifying the installed memory on the printer. But, who knows how long Oki will need to update their printer drivers for Snow Leopard? That’s why I started debugging myself. So, here is the solution for all the fellow sufferers who also own an OKI printer … and as always: no guarantee and on your own risk:

Problem: After updating from Mac OS X 10.5 Leopard to OSX 10.6 Snow Leopard the installed printer driver for the OKI-postscript driver does not work anymore. Here it’s an OKI MFP C5540 … but it should also work with other models, like the OKI C5450 or C8800. The printer diver was installed under Leopard and worked quite well. After finishing the update to 10.6 you are able to send a print job to the printer, but an error message shows up in the print queue.

UPDATE: You’ll find an updated diagnosis & solution in the NEW BLOGPOST!

Diagnosis: There is a bug in the printer driver … the bug had no effect under Leopard (maybe because of the Apple partition scheme). When OKI coded the printer driver, they disregarded case sensitivity in their path names … former systems did not care about case sensitivity – but Snow Leopard does!
Solution: The fast work around is to use the generic PostScript-printer driver – but there you don’t have the possibility to set the OKI-specific printer settings. That doesn’t make me happy ;-) To get back the whole functionality of the Leopard OKI-printer driver there is only one way: Hands on coding and debug ;-) Fortunately fixing the bug is no rocket science – you only need a text editor like TextEdit or TextMate and you don’t be scared program code:

  1. Search for your Oki-printer driver PPD-file in the Finder … you should find it under
    Macintosh HD/Library/Printers/PPDs/Contents/Resources/

    mine is called “Oki C5540.ppd”.

  2. Before you go on make a backup of this file … this way you always can come back to the original state. ;-)
  3. Open the PPD-file with the text editor and search for the following line:
    *cupsFilter: "application/vnd.cups-postscript 0 /Library/Printers/OKIDATA/Filters/OKfilterA"
  4. Then search for the file “OKfilterA” … I found mine under the following:
    Macintosh HD/Library/Printers/Okidata/filters/
  5. Now, adjust the path in the PPD-file … the line in my corrected PPD-file looks like this:
    *cupsFilter: "application/vnd.cups-postscript 0 /Library/Printers/Okidata/filters/OKfilterA"
  6. Now, you only have to save the file and restart your Mac … now it should work ;-)
Pages: Prev 1 2 3 4 5 6 7 Next