I answered this question a while ago. Today, reading reading Effective Java from Joshua Bloch I realized an item is speaking about this topic, adding some interesting points.
I added the info to the answer, but copy-pasting from the book a question come to my mind:
Can I add some content of the book?
How much can I add?
From the copyright part of the book:
All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to: Pearson Education, Inc.
It seems some situations can be OK to quote with permissions.
Has SO or SE some agreement or permission?
I read some fair use rules:
Reproduction:
In a work greater than ten pages, one chapter or 10% of pages [...]
Example
A 60-page book may be divided into six chapters. You may copy one whole or part of a single chapter, even though the number of pages copied exceeds 10% of the total pages in the book, or you may copy six (6) pages (10% of total) from throughout the book.
The four factors judges consider are:
- the purpose and character of your use
- the nature of the copyrighted work
- the amount and substantiality of the portion taken, and
- the effect of the use upon the potential market.
Non-commercial research and private study
You are allowed to copy limited extracts of works when the use is non-commercial research or private study, but you must be genuinely studying (like you would if you were taking a college course). Such use is only permitted when it is ‘fair dealing’ and copying the whole work would not generally be considered fair dealing.
The purpose of this exception is to allow students and researchers to make limited copies of all types of copyright works for non-commercial research or private study. In assessing whether your use of the work is permitted or not you must assess if there is any financial impact on the copyright owner because of your use. Where the impact is not significant, the use may be acceptable.
If your use is for non-commercial research you must ensure that the work you reproduce is supported by a sufficient acknowledgment.
I conclude that as long as I only add a single item (less than a page) it fits quite well inside the rules.