Is the following okay for me to do?
I own a book with some code in it. I wish to discuss the code and ideas behind it with a colleague, mainly for educational purposes. My colleague does not own the book. May I copy the code in my book and send it to him via email?
The copyright in the book states: All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of the copyright holder, except brief quotations used in a review.