Archive for the ‘Mac’ Category

quicksilver addiction

Tuesday, September 25th, 2007

I am a Mac user and I cannot live anymore without a quicksilver installed. This is a so convenient tool with almost no limit of usage, testing it it’s already keeping it!

Some of us are really addicted, watch this video:

Quicksilver in Real Life from Matt McInerney on Vimeo.

AMP for development on Mac OS X: MAMP

Tuesday, February 6th, 2007

As a web developer I always need a very convenient development environment on my computer. I used XAMPP on Windows but since I switched to full Mac, I was looking for a similar solution.

MAMP WidgetI can hear you: “Hey! Are you stupid? Mac OS X comes already with almost a full AMP platform: by default we do have Apache and PHP and it is pretty easy to download MySQL and install it”. You are right of course (as usual!), but the version in Mac OS X are pretty outdated and I found a very convenient application for Mac to do this in a very mac-ish way: MAMP from living-e. It is a nice package including everything Apache2, MySQL5, PHP5 and PHP4 and even more (SQLite, eAccelerator, PHPMyAdmin and SQLiteManager), it provides a simple Mac application (and a widget) to control the all thing and change some parameters such as ports (by default Apache runs on 8888 to avoid conflict with your native Apache in MacOS) and switch from one PHP version to the other. It simply installs in your Applications folder from where you have access to everything. So far the best tool for web dev on MacOS (not mentioning the mandatory text editor: TextMate).
Fine, starting there you can really work and develop the nextgen web6.0 app that will terrified Google itself! But there is “one more thing“(tm): how about command-line access for php and of course PEAR? Here you have to do a couple of actions to make it works transparently for you, but no fears!, it is pretty easy and I am going to show you right now.

1. We will add one line in your PATH to shorten command-line to access php binary (in our case we want php5). Add in your home folder a .profile file if it does not exist yet and type in:

export PATH=$PATH:/Applications/MAMP/bin/php/php5/bin

2. We will now rename both original php and pear of MacOS so we make sure we do not use them (and obviously we do not delete them in case…):

sudo mv /usr/bin/php/usr/bin/php4
sudo mv /usr/bin/pear /usr/bin/pear4

(You could also simply change the order in the PATH and avoid step 2 but I prefer this way…personal taste!)

Starting now you should be able to access php and pear from your MAMP installation in the command line (you can try to type php -v and pear config-show). You can also easily add virtual hosts in your apache config to get your own local domain name such as http://mywebapp/ (you will have to modify as well your host file, see Apple doc for this).

FOSS Web Mapping Tutorial – part I

Thursday, October 26th, 2006

In this serie of articles I will show you how to install and configure an open source web mapping solution to make your own Google Maps but based only on open-source and OGC standards (mainly WFS, WMS and SLD).We will try to cover all aspects of the solution, including the data storage, the middleware/application server as well as the web client. We will look at the global solution as a typical 3-tiers solution, very common in web application development:

  • level 1: a data storage, usually a database system but it can be also shapefiles and many other formats,
  • level 2: the application server, delivering web services through a web server,
  • level 3: the web browser or client.

To simplify the process we will install all tiers on the same machine for testing purpose, but you could install the database and application server in different servers, it will not change much (we will consider the different changes later).
(more…)

Firefox 2.0 is out

Monday, October 23rd, 2006

Yep, it is supposed to be officially announced tomorrow but if you now how to try, you can get the final 2.0 from their website. You want a proof? Here we go, a screenshot:

Firefox 2.0

I like the new layout, icons are smaller, it is a little bit more integrated with MacOS X. Preferences are also improved as well as Extensions/Themes GUI. I really like to be able to restore all my last tabs when I launch Firefox or after a crash.

RSS feeds are also manage in a better way but I still prefer the way it is in Safari. With Firefox, it is very unconfortable to go trough a list of ‘Live Bookmarks’ in your bookmark…I guess it will come for version 3, next year. Beside this, it is worth the upgrade, do it NOW! Not to mention that most of my useful extensions are already compatible:

I used to have Tab X, but it is now part of Firefox (with more features). I do not want to list all new features of Firefox itself because I am sure that you can read about them almost everywhere on the web.