Rick Hurst Web Developer in Bristol, UK

Menu

Month: April 2008

mailplane – osx gui integration for gmail

I’ve been using gmail almost exclusively for about 4 years now – I find the convenience of webmail essential as I work at lots of different machines, and it doesn’t make sense to set up desktop email on all of them. One thing I do miss about not using a desktop mail client is the integration with my address book and photo library, and the ability to drag and drop files, but I have so much mail in my account (I subscribe to a few high volume mailing lists, and never do any tidying), that most mail apps choke on the volume of mail they need to download. I mentioned this on twitter, and someone pointed out mailplane – a gui app that loads the normal gmail interface, but adds on integration with addressbook and iphoto, amongst other things. It’s not free, but i’m a couple of days into the 30 day evaluation and finding it very useful so far, so will probably buy it ($25).

archived comments

Rick, this app is sweet! I’ve just downloaded it and had a quick play for an hour or so. WOW. How much faster than Mail is that?!

The integration is just what I missed with the standard Gmail interface. Finally I can ditch the slow Mail.app retrieval…

Hmmm… D’you think they’re going to make an iPhone 2.0 app for it?

Nikki 2008-04-30 11:24:26

Nice WebSite, congratulations.

Donnovan 2011-08-09 03:26:31

zend framework and isapi rewrite on IIS (and why)

Recently I decided to standardise on php/zend framework for future ground-up development (where I have a choice/ influence). As some of you may have gathered, i’m a bit of a “jack of all trades” when it comes to web dev and I have a legacy of projects using different technologies. One of these is a sprawling classic ASP/ mysql app for a distribution company which is a (very successfully) working prototype of something I want to rebuild in a more generic, modular and industrial way, as a flagship product for Olivewood to develop and sell.

To be honest the classic asp works fine for most purposes, but is becoming increasingly obsolete, along with availability of developers, and I have been trying to move on from it for years. The obvious choice for migrating a classic ASP app would usually be ASP.NET, but frankly the idea of spending the rest of my working life tied into windows-only development, and the fighting with software licences and scarce availability (it seems, at least in this town) of contractors makes me want to give up try a different career altogether. So I decided on php a while back (mainly because I wanted something open source, with an abundance of developers – I think if you throw a coin randomly in the watershed in bristol, chances are you would hit a freelance php developer).

So with php decided on, I then spent time evaluating a few frameworks. They all look good – this was a difficult decision – but I decided on Zend because Olivewood will be primarily concerned with eCommerce and eProcurement, and with magento being built on zend, and the “big industry” partnerships, it seemed the right fit. It also seemed to be useful and provide structure without being overly prescriptive. Also by writing this here i’m hoping to commit myself to at least something!


So, I also wanted something that would work cross platform, even though the obvious choice is to run open source web apps on linux/ apache, it was important to me that it would also play nicely with IIS, as many businesses have already invested in windows servers and already run other apps on IIS and wouldn’t be happy supporting anything else. This gets an indignant response from many “purist” developers/ sysadmins, but i’m basing this on real-life situations, and I hate the idea of a potential client ruling out open source software because it won’t run on their IIS server.

The other factor here was that I wanted something that would coexist with my classic ASP app until such a time that I have rewritten everything I need to make it a pure zend framework/php app. The classic asp scripts will handshake with the php code by dumping session data to the database and passing credentials via a cookie, so the session data can be shared between the two. This is vital to the plan, as it is a long term project – and much of the investment in migrating this will be my own time and money.

Installing Apache on the same server and setting up some kind of proxying would be another option, but not on the live server that this app runs on. I also needed to prove that it would work on just IIS before betting my future business plans on it, even if the first thing I would do is suggest that it is run on Apache.

I wasted a monumental amount of time getting this working, although it turned out to be fairly trivial once I had cracked it. The red herring is that there are two versions of isapi rewrite – version 2 and version 3. All the zend related documentation I found (hardly any) seems to be for version 2 (although this wasn’t mentioned!), which I just couldn’t get to work at all for my setup, but eventually I gathered that version 3 has been almost completely rewritten to work with apache mod_rewrite rules. So now I have a classic asp app, with a single folder (caled “zend”) containing my front controller from where all the php will be served the application folder (with all the models, views, and controllers) is outside the site root.

My httpd.conf file looks like this:-

RewriteEngine on
RewriteBase /zend/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !.(js|ico|gif|jpg|png|css|asp)$ /zend/index.php

Remember this is for version 3 of Isapi rewrite. All quite simple really, when you know how. It’s a pity it took me about 9 hours to work out how!

archived comments

Useful information, thanks!

My clients don’t allow ISAPI_Rewrite, so I’ve written a router that handles GET requests.

Regards,

Rob…

Rob… 2008-04-24 12:14:15

thank you i had the problem that I was using the wronth path to files, all I had to do was this no way

jenn 2008-05-31 15:01:45

Hey,
I cannot use ISAPi_Rewrite, what would be the alternative to run zend effectively on IIS 7.5 ?

Thank you.

Sam 2010-07-13 19:55:45

Drupal on a different port – access denied

(This is just for my own reference as i’ve hit this twice now – and can never find anything on google). if you run Drupal on a non standard port (e.g. on my windows machine I run apache on port 6060 so it doesn’t clash with port 80 hog IIS), you may find that you can’t log into a drupal site. This may be because of the way cookies are set up for domains. You can get round it by going to settings.php and looking for the section that is preceded by the comment:

/**
* We try to set the correct cookie domain. If you are experiencing problems
* try commenting out the code below or specifying the cookie domain by hand.
*/

New drupal based site – Green Infrastructure in the west of England

Olivewood have recently launched a new drupal based site Green Infrastructure in the west of England.

Green Infrastructure in the West of England

This has actually been quietly live for a while now, but wanted to monitor how it coped with the fairly heavy load exerted by the AJAX based mapping tool, which bought our dev server to it’s knees during original user testing, before being moved to a server with a bit more RAM.
GI Mapping tool

Beware moving vmware fusion machines to the free version of vmware server – you can’t

Hopefully someone will correct me on this, UPDATE: some one has corrected me on this, although I haven’t tried what they suggest – see comments below) but I was disappointed to find I couldn’t move a server I set up on VMware fusion on my macbook to vmware server (free version) running on win xp (only temporarily, don’t panic). However, I understand it will run on the paid version and in vmware player. I’m also assuming that I won’t be able to move VMware fusion machines to the free version of vmware server on linux, but haven’t tried (send comments if you know otherwise!).
I actually moved from parallels to VMware fusion on the basis that I would be able to simply move VMs from my mac to a production server, but it looks like unless I cough up for the paid version of VMware server, this isn’t going to happen – very frustrating. Time to investigate KVM

archived comments

VMware Fusion makes virtual machines with hardware version 6.

VMware Server 2 (in beta) and VMware Player 2 support hardware version 6.

If you need to make your VMware Fusion virtual machine work with VMware Server 1 and older products, you can use the free VMware Converter to convert your virtual machine to the older version. (You can also do this in VMware Workstation.)

Good luck!

Ben G. 2008-04-16 15:57:58

Posted in vm

Apache as Proxy to IIS

Been meaning to get this working for ages – using apache 2.0 on my ubuntu dev server to proxy requests to an IIS server on the local network – to avoid having IIS facing the internet directly and to be able to have a central place to configure virtualhosts. Finally got it working with a bit of help from the helpful people on underscore. First enable mod_proxy, and then set up a virtual host something like the following:-

(note this is just to enable access to dev servers for testing etc. – not a production environment)

<VirtualHost *>
ServerName myvirtualhost.whatever

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPreserveHost On
ProxyPass / http://myiisserver/
ProxyPassReverse / http://myiisserver/
</VirtualHost>