There's a whole thread on this on AFF. Up until about a month ago the was a relatively simple and reliable method; however in recent times it's become a bit less precise, mainly due to the semi refitted DJ aircraft out there (i.e. On the front cabin has been upgraded).
See here:
How to tell if you are on an aircraft with the new cabin...