Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48c90d1

Browse files
authored
Merge branch 'master' into patch-1
2 parents 97d14f3 + 408df18 commit 48c90d1

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

assn/gmane/peer2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type":"image"
1818
},
1919
{
20-
"title":"Optional Challenge: Change the gline.py program to show the message count by month instead of by year and take a screen shot to the by month visualization. You can switch from a by-year to a by-month visualization by changing only a few lines in gline.py. The puzzle is to figure out the smallest change to accomplish the change. If you do not want to do this optional challenge - just upload the above image a second time. " ,
20+
"title":"Optional Challenge: Change the gline.py program to show the message count by year instead of by month and take a screen shot of the by year visualization. You can switch from a by-month to a by-year visualization by changing only a few lines in gline.py. The puzzle is to figure out the smallest change to accomplish the change. If you do not want to do this optional challenge - just upload the above image a second time. " ,
2121
"type":"image"
2222
}
2323
],

assn/pagerank/peer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title":"Page Rank",
3-
"description":"First you will spider 100 pages from http://python-data.dr-chuck.net/ run the page rank algorithm and take some screen shots. Then you will reset the spider process and spider 100 pages from any other site on the Internet, run the page rank alorithm, and take some screen shots.",
3+
"description":"First you will spider 100 pages from http://python-data.dr-chuck.net/ run the page rank algorithm and take some screen shots. Then you will reset the spider process and spider 100 pages from any other site on the Internet, run the page rank alorithm, and take some screen shots. Each site is a pair of screenshots spdump.py & force.html.",
44
"grading":"Don't take off points for little mistakes. If they seem to have done the assignment give them full credit. Feel free to make suggestions if there are small mistakes. Please keep your comments positive and useful.",
55
"solution" : "http://www.dr-chuck.net/pythonlearn/code/pagerank.zip",
66
"parts":[

book3/AB-copyright.mkd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ benefit to students or teachers that will accrue as a result of the new
4747
work.
4848

4949
Charles Severance\
50-
www.dr-chuck.com\
50+
www.dr-chuck.com \
5151
Ann Arbor, MI, USA\
5252
September 9, 2013
5353

code3/geodata/where.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
<script src="https://maps.google.cn/maps/api/js" type="text/javascript"></script> -->
1010

1111
<script src="https://maps.googleapis.com/maps/api/js"></script>
12-
13-
<!-- About MarkerClusterer https://github.com/googlemaps/js-marker-clusterer -->
14-
<!-- Get the raw version of Github script -->
15-
<script src="http://rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js"></script>
16-
1712
<script src="where.js"></script>
1813
<script>
1914

code3/gmane/gline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# print months
5151

5252
fhand = open('gline.js','w')
53-
fhand.write("gline = [ ['Year'")
53+
fhand.write("gline = [ ['Month'")
5454
for org in orgs:
5555
fhand.write(",'"+org+"'")
5656
fhand.write("]")

code3/socket1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mysock.send(cmd)
77

88
while True:
9-
data = mysock.recv(20)
9+
data = mysock.recv(512)
1010
if (len(data) < 1):
1111
break
1212
print(data.decode(),end='')

code3/socket2.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import socket
22

3+
# This is using HTML 1.0 - not all servers support the oldest protocol
4+
# Try http://data.pr4e.org/romeo.txt is your server fails.
5+
36
url = input('Enter: ')
47
words = url.split('/')
58
host = words[2]
69

710
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
811
mysock.connect((host, 80))
9-
mysock.send(('GET '+url+' HTTP/1.0\n\n').encode())
12+
mysock.send(('GET '+url+' HTTP/1.0\r\n\r\n').encode())
1013

1114
while True:
1215
data = mysock.recv(512)

0 commit comments

Comments
 (0)