no mercy ful

324
Season of mists and mellow fruitfulness,

Upload: brandon-hale

Post on 01-Jun-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 1/324

Page 2: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 2/324

Page 3: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 3/324

Close bosom-friend of the maturing

sun;

Page 4: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 4/324

Page 5: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 5/324

With fruit the vines that round the thatch-evesrun;

Page 6: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 6/324

Page 7: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 7/324

To bend with apples the moss'd cottage-trees ,

Page 8: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 8/324

And fill all fruit with ripeness to thecore;

Page 9: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 9/324

To swell the gourd, and plump the hazelshells

Page 10: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 10/324

Page 11: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 11/324

Page 12: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 12/324

Page 13: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 13/324

For Summer has o'er-brimm'd their clammycells.

Page 14: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 14/324

Who hath not seen thee oft amid thstore "

Page 15: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 15/324

Sometimes whoe!er seeks abroad mafind

Page 16: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 16/324

Thee sitting careless on a granarfloor,

Page 17: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 17/324

Th hair soft-lifted b the winnowingwind

Page 18: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 18/324

#r on a half-reap$d furrow soundasleep,

Page 19: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 19/324

%rowsed with the fume of poppies, while th hook

Page 20: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 20/324

Spares the ne&t swath and all its twin dflowers(

Page 21: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 21/324

And sometimes like a gleaner thou dost keep

Page 22: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 22/324

Page 23: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 23/324

r by a cyder-press! with patient loo"!

Page 24: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 24/324

Thou watchest the last oozings, hours bhours)

Page 25: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 25/324

Where are the songs of Spring" A , where arethe "

Page 26: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 26/324

Think not of them, thou hast th music too,*

Page 27: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 27/324

Page 28: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 28/324

Page 29: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 29/324

Among the river-sallows! borne

Page 30: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 30/324

Among the river-sallows! bornealoft

i "i h li h i d li

Page 31: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 31/324

r sin"ing as the light wind lives ories;

sinking

Page 32: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 32/324

And full-grown lambs loud bleat from hill bourn;

Page 33: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 33/324

+edge-crickets sing; and now with treble soft

The redbreast whistles from a garden-

Page 34: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 34/324

The redbreast whistles from a gardencroft;

n ga er ng swa ows w er n e

Page 35: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 35/324

g gskies)

Page 36: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 36/324

Page 37: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 37/324

!er thing ou Wanted to .now

About Writing Async,Concurrent HTTP Apps

in Java

Page 38: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 38/324

Agenda

/ostl this(

Page 39: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 39/324

Agenda

And this(

Page 40: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 40/324

Agenda

And this(

Page 41: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 41/324

About our speaker

@ j b a r uc h

g i t h u b .c o m / j b a r u c h

lin !.in/jbaruch

stac over"o#.com/users/$%&%'(

Page 42: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 42/324

What 0rog"

Page 43: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 43/324

What 0rog"

Page 44: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 44/324

Page 45: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 45/324

What 0rog"

Page 46: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 46/324

Page 47: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 47/324

Page 48: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 48/324

)e*uirements

+ parallel le -o#nloa!s+ Parallel le parts+ interrupt/pause/resume+ Progress events+ Chec sums caching

Page 49: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 49/324

0irst Association for 1concurrent

downloader2

Page 50: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 50/324

3 k d ( % l d

Page 51: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 51/324

3uck da ( %ownload managerwritten in 4a!a5

Page 52: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 52/324

et s loo i0 #e can use it1

Page 53: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 53/324

et s loo i0 #e can use it1

2. 3o traceable license

&.3o #ebsite or !ocs(. 3o traceable sources

$. 4t s an app, not a lib

Page 54: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 54/324

Page 55: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 55/324

Page 56: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 56/324

Java.net.urlconnection

2. 5emory #aste0ul 6bu7ering8&. 5inimal AP4

(. 9loc ing streams

Page 57: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 57/324

Page 58: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 58/324

What #e re loo ing 0or

2. Async/non:bloc ing&. ;vent callbac s

Page 59: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 59/324

What is 4T going to ta e

2. )eactor&. nio

Page 60: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 60/324

+ pattern 0or light#eight

Page 61: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 61/324

concurrency

+ ;vent !riven

+ Threa!s reuse

+ <ses non:bloc ing 4o

Page 62: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 62/324

#riginal pattern

http(66www)dre)!anderbilt)edu67schmidt68%06reactor-siemens)pdf

Page 63: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 63/324

9uess the author b the diagram

http(66gee)cs)oswego)edu6dl6cp4slide

Page 64: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 64/324

In Java,Reactor meansNIO

l l l

Page 65: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 65/324

Selector as a multiple&er

! ! i i i

Page 66: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 66/324

:a!a !ersion - egisteringSocketChannel channel= SocketChannel.open();

socketChannel.connect(new

InetSocketAddress("http://remote.com",80));

...

Selector selector = Selector.open();

channel.configureBlocking(false);

SelectionKey k = channel.register(selector,SelectionKey.OP_READ);

k.attach(handler);

! ! i %i h

Page 67: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 67/324

:a!a !ersion - %ispatcher while (!Thread.interrupted()) {

selector.select() ;

Set selected = selector.selectedKeys();

Iterator it = selected.iterator();while (it.hasNext())

SelectionKey k = (SelectionKey)(it.next();

( (Runnable)(k.attachment()) ).run(); selected.clear();

}

Han!ling reactor events is

Page 68: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 68/324

Han!ling reactor events iscomple=

+3ee! to maintain state

+9u7ering + assemblingchun s

+Coor!inating async events

Page 69: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 69/324

3i lib i

Page 70: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 70/324

3io libraries

+5ost o0 them are servers+3etty, gri>>ly, etc.

+Apache 5ina+Apache HTTP components

asyncclient+3ing http client

Page 71: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 71/324

+Client an! server nio library

+;volve! 0rom netty+ atest release ?ctober &%2&

Page 72: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 72/324

Page 73: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 73/324

Page 74: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 74/324

Page 75: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 75/324

Page 76: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 76/324

Page 77: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 77/324

+ere it is5

Page 78: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 78/324

+ere it is5

try 6AsyncHttpClient asyncHttpClient new AsyncHttpClient688 istenableButure )esponseD 0uture asyncHttpClient.prepareEet6

Page 79: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 79/324

y p p p "http://oss.jfrog.org/api/system/ping" 8.e=ecute6

new AsyncCompletionHan!ler )esponseD68 @?verri!e public )esponse onComplete!6)esponse response8 Fystem. out .println6response.get)esponse9o!y688 G return response G

@?verri!e public void onThro#able6Thro#able t8 t.printFtac Trace68 G

8 G )esponse response 0uture.get68 G

Page 80: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 80/324

HAC Concepts

Page 81: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 81/324

HAC Concepts

+)e*uest pro!ucer+)esponse consumer

try (CloseableHttpAsyncClient asyncHttpClient = HttpAsyncClients.createDefault

()) {asyncHttpClient.start();Future<HttpResponse> future = asyncHttpClient.execute(

HttpAsyncMethods.create et( "http://oss.jfrog.org/api/system/ping" )!newAsyncByteConsumer<HttpResponse>() {

Page 82: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 82/324

new AsyncByteConsumer<HttpResponse>() {

"#$errideprotected void onResponseRecei$ed(final HttpResponse response) {%yste&.out .println(response.'et%tatus ine().'etReason hrase());

*

"#$erride

protected void onByteReceived(final Char+u,,er bu,! final -#Control ioctrl) { *"#$errideprotected void releaseResources() { *

"#$erride

protected HttpResponse buildResult( final HttpContext context) {return (HttpResponse) context.'etAttribute( "http.response" );*

*! null );HttpResponse response = future.get() ;

*

Page 83: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 83/324

=hoosing between ning and httpli t

Page 84: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 84/324

as ncclient

Page 85: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 85/324

Page 86: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 86/324

pu lic interface "ttp#rovider$ownload"andler {

void onResponseRecei$ed( int statusCode! Map<%trin'!ist<%trin'>> headers);

oolean on+ytesRecei$ed(+yte+u,,er bu,);

void onFailed(/hro0able error); void onCanceled();

void onCo&pleted();*

+ead to head

Page 87: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 87/324

Feature#$ibrary %ing client &ttp Async Clientaturity 9ood >er new ?earl @ BCD(ownload

cancelation

as With bugs

)rogresshoo"s

!ents notgranularenough

:ust useon9yte)eceive!68

(ocumentation A bit sparse /inimalServer-sidecounterpart

<one, clientonl

org)apache)httpcomponents

Page 88: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 88/324

fc@GBG( a uni!erse of its own

Page 89: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 89/324

@ (

Page 90: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 90/324

=onfused"

Page 91: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 91/324

Page 92: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 92/324

And that onefordiscoveringthat range

Page 93: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 93/324

that range

header is loston redirect

Huestion5

Page 94: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 94/324

What should

be content-length when

usingcompression"

Page 95: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 95/324

Page 96: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 96/324

Page 97: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 97/324

https(66github)com6http@6http@-spec6issues6CG

Huestion5

Page 98: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 98/324

Wh when redirected to =%<all the chunks start from zero"

HttpAsyncClient+uilder builder = HttpAsyncClients.custo&();11 add redirect strate'y that copies 2ran'e2 headers! i, exist

ild tR di t%t t ( 0 $ f ltR di t%t t () {

Page 99: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 99/324

uilder.setRedirect%trategy (ne0 $efaultRedirect%trategy() {

"#$erridepublic Http3riRe4uest 'etRedirect(HttpRe4uest re4uest! HttpResponseresponse! HttpContext context)

Http3riRe4uest redirectRe4uest = super.'etRedirect(re4uest!response! context);

11 copy 2Ran'e2 headers! i, existHeader56 ran'eHeaders = re4uest.'etHeaders(HttpHeaders.RA7 8);

i, (ran'eHeaders 9= null) {,or (Header header : ran'eHeaders) {redirectRe&uest.add"eader(header) ;

**return redirectRe4uest;

**);

Huestion5

Page 100: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 100/324

+ow man simultaneousconnections should Iopen"

Page 101: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 101/324

Page 102: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 102/324

Page 103: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 103/324

Page 104: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 104/324

Huestion5

Page 105: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 105/324

What$swrong withthefollowingcode"

Page 106: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 106/324

%ecoded U 3s cannot bere-encoded to the same form

Page 107: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 107/324

http:11exa&ple.co&1 4uery=a b==c

Cannot be decoded bac a,ter it0as encoded:

http:11exa&ple.co&1 4uery=a ?@b==c

%on$t use 4a!a)net)U 3 ncoder

Page 108: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 108/324

1Utilit class for +T/3 formencoding) This class containsstatic methods for con!erting a

String to the application/x-www-form-urlencoded /I/format)

0or more information about +T/3form encoding, consult the +T/3specification)2

A+= Alternati!es

Page 109: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 109/324

Page 110: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 110/324

Huestion5

Page 111: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 111/324

+ow do Iclose asocketcorrectl "

+ow hard can it be to close a socket"

Page 112: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 112/324

The art of socket closing

Page 113: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 113/324

http(66www)safaribooksonline)com6librar 6!iew6http-the-

+alf-closed( no new customers

Page 114: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 114/324

<e!er block in socket close?D

Page 115: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 115/324

The other side e&pectsou to clean up nicel

It will gi!e up on time out

ou will wait ?fore!erD

Page 116: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 116/324

emember"

Page 117: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 117/324

Huestion5

Page 118: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 118/324

+ow can Iwrite file parts

concurrentl "

+ Write to separate les,combine on nish

Page 119: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 119/324

+ Write to same le, see ing tothe right position

Page 120: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 120/324

Page 121: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 121/324

#S 3e!el 0ile 3ocking N Ad!isor e&clusi!e

Page 122: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 122/324

private File oc loc (FileChannel ,ileChannel) throws-#8xception { File oc loc =,ileChannel.try oc ( on'. MAX_VALUE B! B! false ); if (loc == null ) { throw new #$erlappin'File oc 8xception(); * return loc ;*

WT0"5

>/ 3e!el 0ile 3ocking

Page 123: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 123/324

5 evel Bile oc ing

Page 124: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 124/324

+Prevent same 5 threa!s #riting tothe le #hen #e starte! closing it+Closing se*uenceK

+)elease le loc s+Close channels

+)ename a le to itLs nal name6remove .part8+;rase progress in0o

>/ 3e!el 0ile 3ockingReentrantRead rite oc .Read oc write'o ile oc* =

Page 125: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 125/324

r0l.read oc ();ReentrantRead rite oc . rite oc close ile oc* =r0l.0rite oc ();

public $oid close() thro0s -#8xception { this. close ile oc*.loc* ();*

public int 0rite(int part-ndex! +yte+u,,er bu,) { i, (9this. write'o ile oc*.try oc* ()) {

thro0 ne0 -lle'al%tate8xception(2File isbein' closed2); * ...*

What$s ne&t"

Page 126: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 126/324

http/&

Page 127: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 127/324

+ 5ostly stan!ar!i>ing EoogleLssp!y+ Hea!er compression

+ multiple=ing+ Prioriti>ation+ Ferver push+ ?n the #ay clear some stu7 + ;.g. compresse! content length

ase the load

Page 128: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 128/324

3inks5

T0/( 0 @GBG

Page 130: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 130/324

Page 131: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 131/324

Fo #hat e=actly is logicN WhocaresN4n0ormally logic is about saying things that make

Page 132: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 132/324

4n0ormally, logic is about saying things that makesense. Oou can thin o0 it in that #ay i0 you li e.

4tLs pretty sunny to!ay, so you shoul! #ear sunscreen.Q

Bormally, logic is the art o0 arguing + not li e a ghtor !ebate, but by using the in0ormation #e alrea!yno# to !ra# ne# an! use0ul conclusions.

40 itLs sunny to!ay, you shoul! #ear sunscreen.4n!ee! it is sunny to!ay.

There0ore, you shoul! #ear sunscreen.Q

9ut #ait. That just loo e! li e the e=actsame thing you sai! be0ore, you hac . Q

Page 133: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 133/324

Well, yes. 9ut thatLs ho# an argument loo s i0orm1 Oou can brea !o#n any argument intothat ma es it easier to thin about.

40 itLs sunny to!ay, you shoul! #ear sunscree

4t is sunny to!ay.

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR There0ore, you shoul! #ear sunscreen.

Premises/givens

Conclusion6Premises al#ays come rst, an! the conclusion al#ays c

Ho# about a more comple=argumentN

2 This piece o0 0resh 0ruit is 0u>>y

Page 134: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 134/324

2. This piece o0 0resh 0ruit is 0u>>y.&. 4t also has see!s.

(. 40 a 0ruit is 0u>>y, itLs either a i#i or a peach.

$. Peaches have a pitG they !onLt have see!s.

'. Fo the 0ruit canLt be a peach.

S. Fo the 0ruit must be a i#i.

Which o0 the above sentences is a conclusionN

Ho# about a more comple=argumentN

2 This piece o0 0resh 0ruit is 0u>>y

Page 135: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 135/324

2. This piece o0 0resh 0ruit is 0u>>y.&. 4t also has see!s.

(. 40 a 0ruit is 0u>>y, itLs either a i#i or a peach.

$. Peaches have a pitG they !onLt have see!s.

'. Fo the 0ruit canLt be a peach.

S. Fo the 0ruit must be a i#i.

Eoo! logic lets us cobble together lots o0 !i7erent pieces o0 in0ormation, an! tell 0romthem #hatLs probably or defnitely true.

9ut #hat counts as goo!logicQN

That argument #as goo! 6ma!e sense8

Page 136: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 136/324

That argument #as goo! 6ma!e sense8,because the conclusion 0ollo#e! 0rom thepremises. WeLll see #hat this means in amoment.

Why !onLt #e loo at a bad argumentN

9ut #hat counts as goo!logicQN

Fome people have 0allen o7 cli7s an! live!

Page 137: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 137/324

Fome people have 0allen o7 cli7s an! live!.There0ore, i0 4 jump o7 this cli7, 4 #ill !e nitely be

Come on.What coul!possibly go#rongNQ

9ut #hat counts as goo!logicQN

Fome people have 0allen o7 cli7s an! live!

Page 138: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 138/324

Fome people have 0allen o7 cli7s an! live!.There0ore, i0 4 jump o7 this cli7, 4 #ill !e nitely be

This argument is #ea . Although the premise iitLs easy to thin o0 #ays 6very pain0ul #ays8 tconclusion coul! be 0alse. The easiest #ay tologic is to !o just thatK try to thin o0 another

6Philosophers call these counterexamples 8.

9ut #hat counts as goo!logicQN

etLs loo at t#o in!s o0 arguments

Page 139: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 139/324

etLs loo at t#o in!s o0 arguments.1. -e!uctive reasoningK All interns can breathe re. Fo Philip

can breathe re.

4s there a piece o0 the pu>>le missingN

9ut #hat counts as goo!logicQN

etLs loo at t#o in!s o0 arguments

Page 140: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 140/324

etLs loo at t#o in!s o0 arguments.1. -e!uctive reasoningK All interns can breathe re. Philip is an

intern. Fo Philip can breathe re.

Fometimes you may encounter hi!!enQ statan! i!eas, #hich the #riter snea s in but !oesay outright.

9ut #hat counts as goo!logicQN

etLs loo at t#o in!s o0 arguments

Page 141: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 141/324

etLs loo at t#o in!s o0 arguments.1. -e!uctive reasoningK

All interns can breathe re. Philip is

an intern. Fo Philip can breathere.

Are the premises trueN40 so, then the concl usionLs100% guaranteed true.3o getting aroun! it1

9ut #hat counts as goo!logicQN

etLs loo at t#o in!s o0 arguments.

Page 142: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 142/324

g2. 4n!uctive reasoningK

4 touche! a stove an! it burne! me. 4 !i! this0ty times, an! the same thing happene!. Fo

the ne=t time 4 touch the stove, it #ill burn me.

Are the premises trueN40 so, then the conclusionLs

probably true. There mightstill be e=ceptions. 4 ; WHATN

Page 143: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 143/324

Ho# is this use0ul to meN

9ut even better is the superpo#er to spotk l i

Page 144: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 144/324

9ut even better is the superpo#er to spotweak logic.

3e=t time you #atch T or go online 6#ith

your parentsL permission, o0 course8, try toeep trac o0 ho# many !i7erentarguments are being pitche! to you bya!s. Ho# much in0o is given to youN Ho#much is le0t outN

What time is itN

A!ven: #ait, no. Activity time1

Page 145: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 145/324

, yPair o7 into groups o0 0our. ;ach group #ill receive an eo0 a poor argument 6these may be either in!uctive or !

With your group, you #ill have ' minutes to try to comone counterexample : one #ay in #hich the argumecoul! be #rong, even i0 the premises are !e nitely truePo e it 0ull o0 holes1Also, choose a group representative to tell us your reas

64tLs ? to imagine unli ely or #eir! e=planationsG!onLt be a0rai! to thin outsi!e the bo=.?!!ly enough, logic has very little to !o #ith 0acts.8

Fome e=amplesK

ARGU !"#$ 4 pulle! an all:nighter stu!ying 0or last #ee! 4 ! ! #i h A Ti !

Page 146: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 146/324

test, an! 4 en!e! up #ith an A. Tire!ness must ma e me

&U"#!R$ What i0 you got an A because you actually st?r maybe the test #as going to be easy 0or you all along

ARGU !"#$ 40 4 play #ith -a!Ls po#er tools, heLll yell at9ut -a! is yelling at me 0or something. Fo 4 guess 4 musplaye! #ith the po#er tools.Q

&U"#!R$ What i0 heLs yelling at you 0or a !i7erent reasscratching the car, or hammer:thro#ing the cat onto the

Season of mists and mellowfruitfulness,

Page 147: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 147/324

Page 148: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 148/324

Close bosom-friend of the maturingsun;

Conspiring with him how to load and bless

Page 149: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 149/324

With fruit the vines that round the thatch-evesrun;

Page 150: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 150/324

To bend with apples the moss'd cottage-trees ,

Page 151: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 151/324

And fill all fruit with ripeness to thecore;

Page 152: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 152/324

To swell the gourd, and plump the hazelshells

Page 153: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 153/324

With a sweet kernel; to set buddingmore,

Page 154: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 154/324

And still more, later flowers for the bees,

Page 155: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 155/324

Until the think warm da s will ne!er cease,

Page 156: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 156/324

Page 157: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 157/324

Page 158: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 158/324

Sometimes whoe!er seeks abroad mafind

Page 159: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 159/324

Thee sitting careless on a granarfloor,

Page 160: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 160/324

Th hair soft-lifted b the winnowingwind

Page 161: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 161/324

Page 162: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 162/324

%rowsed with the fume of poppies, while th hook

Page 163: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 163/324

Spares the ne&t swath and all its twin dflowers(

Page 164: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 164/324

And sometimes like a gleaner thou dost keep

Page 165: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 165/324

Stead th laden head across abrook;

Page 166: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 166/324

r by a cyder-press! with patient loo"!

Page 167: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 167/324

Thou watchest the last oozings, hours bhours)

Page 168: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 168/324

Where are the songs of Spring" A , where arethe "

Page 169: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 169/324

Think not of them, thou hast th music too,*

Page 170: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 170/324

While barr d clouds bloom the soft-d ing da

Page 171: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 171/324

And touch the stubble-plains with roshue;

Page 172: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 172/324

Page 173: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 173/324

Among the river-sallows! bornealoft

Page 174: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 174/324

r sin"ing as the light wind lives ories;sinking

Page 175: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 175/324

Page 176: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 176/324

+edge-crickets sing; and now with treble soft

Page 177: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 177/324

The redbreast whistles from a garden-croft;

Page 178: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 178/324

n ga er ng swa ows w er n eskies)

Page 179: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 179/324

Page 180: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 180/324

Page 181: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 181/324

0ohn 1eats

O,o Autumn O is a poem b nglishomantic poet :ohn .eats ?EB

Page 182: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 182/324

p#ctober BFML N @E 0ebruar BP@BD)

OTo AutumnO is the final work in agroup of poems known as

Page 183: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 183/324

g p p.eats's OBPBM odesO )

OTo AutumnO is a poem of threestanzas, each of ele!en lines) Written

in BPBM, the structure is that of anodal h mn , ha!ing three clearl

Page 184: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 184/324

gdefined sections corresponding to the

=lassical di!isions of strophe ,antistrophe , and epode

The imager is richl achie!edthrough the personification of Autumn

Page 185: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 185/324

through the personification of Autumn

)oem

Page 186: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 186/324

)oem

Season of mists and mellowfruitfulness,

Page 187: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 187/324

Page 188: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 188/324

Conspiring with him how to load and bless

Page 189: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 189/324

With fruit the vines that round the thatch-evesrun;

Page 190: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 190/324

To bend with apples the moss'd cottage-trees ,

Page 191: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 191/324

Page 192: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 192/324

To swell the gourd, and plump the hazelshells

Page 193: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 193/324

With a sweet kernel; to set buddingmore,

Page 194: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 194/324

And still more, later flowers for the bees,

Page 195: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 195/324

Until the think warm da s will ne!er cease,

Page 196: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 196/324

For Summer has o'er-brimm'd their clammycells.

Page 197: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 197/324

Who hath not seen thee oft amid thstore "

Page 198: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 198/324

Sometimes whoe!er seeks abroad mafind

Page 199: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 199/324

Thee sitting careless on a granarfloor,

Page 200: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 200/324

Th hair soft-lifted b the winnowingwind

Page 201: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 201/324

#r on a half-reap$d furrow soundasleep,

Page 202: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 202/324

%rowsed with the fume of poppies, while th hook

Page 203: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 203/324

Spares the ne&t swath and all its twin dflowers(

Page 204: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 204/324

And sometimes like a gleaner thou dost keep

Page 205: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 205/324

Stead th laden head across a brook;

Page 206: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 206/324

r by a cyder-press! with patient loo"!

Page 207: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 207/324

Thou watchest the last oozings, hours bhours)

Page 208: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 208/324

Where are the songs of Spring" A , where arethe "

Page 209: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 209/324

Think not of them, thou hast th music too,*

Page 210: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 210/324

While barr d clouds bloom the soft-d ing da

Page 211: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 211/324

And touch the stubble-plains with ros hue;

Page 212: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 212/324

Page 213: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 213/324

Among the river-sallows! bornealoft

Page 214: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 214/324

Page 215: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 215/324

Page 216: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 216/324

Page 217: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 217/324

O,o Autumn O is a poem b nglishomantic poet :ohn .eats ?EB#ctober BFML N @E 0ebruar BP@BD)

Page 218: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 218/324

Page 219: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 219/324

Page 220: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 220/324

Page 221: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 221/324

)oem

Page 222: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 222/324

Season of mists and mellowfruitfulness,

Page 223: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 223/324

Page 224: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 224/324

Close bosom-friend of the maturingsun;

Conspiring with him how to load and bless

Page 225: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 225/324

With fruit the vines that round the thatch-evesrun;

Page 226: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 226/324

To bend with apples the moss'd cottage-trees ,

Page 227: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 227/324

Page 228: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 228/324

To swell the gourd, and plump the

hazel shells

Page 229: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 229/324

With a sweet kernel; to set buddingmore,

Page 230: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 230/324

And still more, later flowers for the bees,

Page 231: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 231/324

Until the think warm da s will ne!ercease,

Page 232: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 232/324

For Summer has o'er-brimm'd their clammycells.

Page 233: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 233/324

Who hath not seen thee oft amid thstore "

Page 234: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 234/324

Sometimes whoe!er seeks abroad mafind

Page 235: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 235/324

Page 236: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 236/324

Th hair soft-lifted b the winnowingwind

Page 237: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 237/324

#r on a half-reap$d furrow soundasleep,

Page 238: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 238/324

%rowsed with the fume of poppies, while th hook

Page 239: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 239/324

Spares the ne&t swath and all itstwin d flowers(

Page 240: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 240/324

And sometimes like a gleaner thoudost keep

Page 241: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 241/324

Welcome Qack

Internet marketing, S #, Social <etworksand moreR

9etting the best from the web

Page 242: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 242/324

%ovember 2334

Page 243: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 243/324

O,o Autumn O is a poem b nglishomantic poet :ohn .eats ?EB#ctober BFML N @E 0ebruar BP@BD)

Page 244: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 244/324

OTo AutumnO is the final work in agroup of poems known as.eats's OBPBM odesO )

Page 245: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 245/324

OTo AutumnO is a poem of threestanzas, each of ele!en lines) Written

in BPBM, the structure is that of anodal h mn , ha!ing three clearldefined sections corresponding to the

=lassical di!isions of strophe ,

Page 246: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 246/324

antistrophe , and epode

The imager is richl achie!edthrough the personification of Autumn

Page 247: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 247/324

)oem

Page 248: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 248/324

Season of mists and mellow fruitfulness,

Page 249: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 249/324

Page 250: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 250/324

Close bosom-friend of the maturingsun;

Conspiring with him how to load and bless

Page 251: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 251/324

With fruit the vines that round the thatch-eves

run;

Page 252: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 252/324

Page 253: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 253/324

And fill all fruit with ripeness to the

core;

Page 254: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 254/324

To swell the gourd, and plump the

hazel shells

Page 255: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 255/324

With a sweet kernel; to set buddingmore,

Page 256: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 256/324

And still more, later flowers for the bees,

Page 257: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 257/324

Until the think warm da s will ne!ercease,

Page 258: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 258/324

For Summer has o'er-brimm'd their clammy

cells.

Page 259: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 259/324

Who hath not seen thee oft amid thstore "

Page 260: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 260/324

Page 261: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 261/324

Thee sitting careless on a granarfloor,

Page 262: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 262/324

Th hair soft-lifted b the winnowingwind

Page 263: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 263/324

Page 264: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 264/324

%rowsed with the fume of poppies, while th hook

Page 265: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 265/324

Spares the ne&t swath and all itstwin d flowers(

Page 266: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 266/324

And sometimes like a gleaner thoudost keep

Page 267: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 267/324

Stead th laden head across abrook;

Page 268: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 268/324

r by a cyder-press! with patient loo"!

Page 269: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 269/324

Thou watchest the last oozings,

hours b hours)

Page 270: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 270/324

Page 271: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 271/324

Think not of them, thou hast thmusic too,*

Page 272: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 272/324

While barr d clouds bloom the soft-d ing da

Page 273: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 273/324

And touch the stubble-plains with roshue;

Page 274: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 274/324

Page 275: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 275/324

0ohn 1eats

Season of mists and mellowfruitfulness,

Page 276: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 276/324

Page 277: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 277/324

Close bosom-friend of the maturingsun;

Conspiring with him how to load and bless

Page 278: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 278/324

With fruit the vines that round the thatch-eves run;

Page 279: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 279/324

To bend with apples the moss'd cottage-

trees ,

Page 280: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 280/324

And fill all fruit with ripeness to the

core;

Page 281: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 281/324

To swell the gourd, and plump the

hazel shells

Page 282: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 282/324

With a sweet kernel; to set budding

more,

Page 283: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 283/324

Page 284: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 284/324

Until the think warm da s will ne!ercease,

Page 285: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 285/324

For Summer has o'er-brimm'd their clammy

cells.

Page 286: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 286/324

Who hath not seen thee oft amid th

store "

Page 287: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 287/324

Sometimes whoe!er seeks abroad ma

find

Page 288: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 288/324

Page 289: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 289/324

Th hair soft-lifted b the winnowing

wind

Page 290: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 290/324

#r on a half-reap$d furrow sound

asleep,

Page 291: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 291/324

%rowsed with the fume of poppies, while th hook

Page 292: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 292/324

Spares the ne&t swath and all its

twin d flowers(

Page 293: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 293/324

And sometimes like a gleaner thou

dost keep

Page 294: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 294/324

Stead th laden head across a

brook;

Page 295: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 295/324

r by a cyder-press! with patient loo"!

Page 296: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 296/324

Thou watchest the last oozings,

hours b hours)

Page 297: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 297/324

Page 298: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 298/324

Think not of them, thou hast th

music too,*

Page 299: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 299/324

While barr d clouds bloom the soft-

d ing da

Page 300: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 300/324

And touch the stubble-plains with roshue;

Page 301: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 301/324

gnats mourn

Page 302: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 302/324

Among the river-sallows! borne

aloft

Page 303: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 303/324

r sin"ing as the light wind lives or

ies;sinking

Page 304: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 304/324

And full-grown lambs loud bleat from hill

bourn;

Page 305: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 305/324

+edge-crickets sing; and now with treble soft

Page 306: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 306/324

Page 307: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 307/324

n ga er ng swa ows w er n eskies)

Page 308: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 308/324

Page 309: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 309/324

gnats mourn

Page 310: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 310/324

Among the river-sallows! borne

aloft

Page 311: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 311/324

A Muic

Touro0 Logos

The ogical Appea

Page 312: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 312/324

Fo #hat e=actly is logicN WhocaresN4n0ormally, logic is about saying things that makesense. Oou can thin o0 it in that #ay i0 you li e.

4tLs pretty sunny to!ay, so you shoul! #ear sunscreen.Q

Bormally, logic is the art o0 arguing + not li e a ghtor !ebate, but by using the in0ormation #e alrea!yno# to !ra# ne# an! use0ul conclusions.

40 itLs sunny to!ay you shoul! #ear sunscreen

Page 313: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 313/324

40 itLs sunny to!ay, you shoul! #ear sunscreen.4n!ee! it is sunny to!ay.

There0ore, you shoul! #ear sunscreen.Q

9ut #ait. That just loo e! li e the e=actsame thing you sai! be0ore, you hac . Q

Well, yes. 9ut thatLs ho# an argument loo s i0orm1 Oou can brea !o#n any argument intothat ma es it easier to thin about.

40 itLs sunny to!ay, you shoul! #ear sunscree4t is sunny to!ay.

RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

Premises/givens

Page 314: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 314/324

There0ore, you shoul! #ear sunscreen.Conclusion

6Premises al#ays come rst, an! the co

Ho# about a more comple=argumentN

2. This piece o0 0resh 0ruit is 0u>>y.

&. 4t also has see!s.

(. 40 a 0ruit is 0u>>y, itLs either a i#i or a peach.

$. Peaches have a pitG they !onLt have see!s.

'. Fo the 0ruit canLt be a peach.

S. Fo the 0ruit must be a i#i.

Which o0 the abo e sentences is a concl sionN

Page 315: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 315/324

Which o0 the above sentences is a conclusionN

Ho# about a more comple=argumentN

2. This piece o0 0resh 0ruit is 0u>>y.

&. 4t also has see!s.

(. 40 a 0ruit is 0u>>y, itLs either a i#i or a peach.

$. Peaches have a pitG they !onLt have see!s.

'. Fo the 0ruit canLt be a peach.

S. Fo the 0ruit must be a i#i.

Eoo! logic lets us cobble together lots o0

Page 316: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 316/324

g g!i7erent pieces o0 in0ormation, an! tell 0rom

them #hatLs probably or defnitely true.

9ut #hat counts as goo!logicQN

That argument #as goo! 6ma!e sense8, because theconclusion 0ollo#e! 0rom the premises. WeLll see

#hat this means in a moment.

Why !onLt #e loo at a bad argumentN

Page 317: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 317/324

r sin"ing as the light wind lives or

ies;sinking

Page 318: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 318/324

And full-grown lambs loud bleat from hill

bourn;

Page 319: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 319/324

+edge-crickets sing; and now with treble soft

Page 320: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 320/324

The redbreast whistles from a garden-croft;

Page 321: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 321/324

n ga er ng swa ows w er n eskies)

Page 322: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 322/324

Page 323: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 323/324

Page 324: No Mercy Ful

8/9/2019 No Mercy Ful

http://slidepdf.com/reader/full/no-mercy-ful 324/324

0ohn 1eats