If you want to get the flavour of an O’Reilly book before you buy it, there is a list of their most recent sample chapters here (most recently available chapters are at the top of the list). You can find additional sample chapters by browsing O’Reilly’s Book List.
O’Reilly also has an open book project that is worth checking out.