I downloaded great icons from http://iconaholic.com but could not convert them to PNG. The info dialog said that it was a Unix Executable. After reading multiple posts on the Web, I finally mashed them up into a viable solution. No additional software is necessary.
Select the file or the application that has the icon you need. Open the info dialog by selecting Get Info from the File menu (Cmd+I). You will see the desired icon at the top-left of the dialog. Click it and it will be outlined in blue. Now copy it (Cmd+C). Open the Preview application and choose New From Clipboard from the File menu (Cmd+N). You can navigate to the desired icon size and select Save As from the File menu (Cmd+Shift+S). Select the desired file format and save!
One of my computers has MAMP installed. I was trying to build a database schema from a YAML file. When time came to insert the SQL using…
>php symfony doctrine:insert-sql
the following error message appeared:
>Couldn’t locate driver named mysql
MySQL worked fine on this computer for many years so a missing driver was out of the question. After some thinking I realized that the command “php” actually refers to OS X version of php and not the one that ships with MAMP. Since I was too lazy to properly configure the extensions for the OS X version, I simply pointed the “php” command to the MAMP version using the following line:
>alias php=’/Applications/MAMP/bin/php5/bin/php’
I ran the symfony command again and it worked perfectly!
After moving my databases and websites to a new Mac with Leopard, none of the websites were working. It was as if mod_rewrite was not working. First, I noticed that the .htaccess files were all ignored. I checked the Apache configuration file in MAMP, and everything seemed fine. After over an hour of going through blogs and forums, I finally get it: Leopard (it’s my first day with it) has its own configuration file in a private folder. That file is not allowing htaccess files.
Solution
1. Open /private/etc/apache2/httpd.conf
2. Line 175 and 210: change AllowOverride none to AllowOverride All
3. Restart your server
4. Yay!
Recent comments