If you really can't grasp what trainspotting is from Ahab's explanation, there's a foolproof one here.
Trainspotting I'm not entirely sure about the exact relevance to the film. Seen as it's one of your favourite films, you should probably read the book, the trainspotting connection is probably much clearer there.
Pete