This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request URL:http://www.duke-mail.com/api/v1/contact/390/ | |
Request Method:PUT | |
Status Code:204 NO CONTENT | |
Request Headersview source | |
Accept:application/json, text/javascript, */*; q=0.01 | |
Accept-Encoding:gzip,deflate,sdch | |
Accept-Language:en-US,en;q=0.8 | |
Connection:keep-alive | |
Content-Length:246 | |
Content-Type:application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def apply_limits(self, request, object_list): | |
""" | |
Deprecated. | |
FIXME: REMOVE BEFORE 1.0 | |
""" | |
raise TastypieError("Authorization classes no longer support `apply_limits`. Please update to using `read_list`.") | |
def read_list(self, object_list, bundle): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What are typical ping times between different EC2 availability zones within the same region? | |
10 ping test | |
1b->1b | |
rtt min/avg/max/mdev = 0.389/0.446/0.654/0.078 ms | |
1b->1c | |
rtt min/avg/max/mdev = 1.284/1.328/1.503/0.063 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-04-11 23:30:32,123 INFO org.apache.hadoop.util.NativeCodeLoader (main): Loaded the native-hadoop library | |
2014-04-11 23:30:33,116 INFO org.apache.hadoop.mapred.TaskRunner (main): Creating symlink: /mnt/var/lib/hadoop/mapred/taskTracker/distcache/3459888811712375903_416281128_1393391450/mathandpencil-data/scripts/emr_mapper.py <- /mnt/var/lib/hadoop/mapred/taskTracker/hadoop/jobcache/job_201404112305_0004/attempt_201404112305_0004_m_000008_2/work/emr_mapper.py | |
2014-04-11 23:30:33,156 INFO org.apache.hadoop.filecache.TrackerDistributedCacheManager (main): Creating symlink: /mnt1/var/lib/hadoop/mapred/taskTracker/hadoop/jobcache/job_201404112305_0004/jars/job.jar <- /mnt/var/lib/hadoop/mapred/taskTracker/hadoop/jobcache/job_201404112305_0004/attempt_201404112305_0004_m_000008_2/work/job.jar | |
2014-04-11 23:30:33,169 INFO org.apache.hadoop.filecache.TrackerDistributedCacheManager (main): Creating symlink: /mnt1/var/lib/hadoop/mapred/taskTracker/hadoop/jobcache/job_201404112305_0004/jars/.job.jar.crc <- /mnt/var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ovveride Underscore.js' template format | |
_.templateSettings = { | |
evaluate: /\{%([\s\S]+?)%\}/g, | |
interpolate: /\{\{(.+?)\}\}/g | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main controller for the journalist workspace. Orchestrates subviews. | |
dc.controllers.Workspace = Backbone.Router.extend({ | |
routes : { | |
'help/:page': 'help', | |
'help': 'help', | |
'accounts': 'accounts' | |
}, | |
// Initializes the workspace, binding it to <body>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gensim import corpora, models, similarities, utils | |
import logging | |
import os | |
import re | |
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) | |
class DirectoryCorpus(corpora.TextCorpus): | |
def get_texts(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_bulk_job(urls, name): | |
apiUrl = 'http://api.diffbot.com/v3/article' | |
params = dict(token=TOKEN, | |
name=name, | |
urls=urls, | |
apiUrl=apiUrl) | |
try: | |
response = requests.post(url,params=params) | |
return simplejson.loads(response.content) | |
except: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
corpus=11210, words=11975, K=8, a=0.500000, b=0.500000 | |
initial perplexity=1753.876072 | |
-1 p=1704.959568 | |
-2 p=1581.261856 | |
-3 p=1364.845456 | |
-4 p=1134.355337 | |
-5 p=978.274263 | |
-6 p=896.514393 | |
-7 p=851.172375 | |
-8 p=822.271276 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://t.co/ieQgyrppuL | |
http://t.co/sSzYtcPICG | |
http://t.co/wT2q3qHUF7" | |
http://t.co/bi682gAGmc" | |
http://t.co/acCFwMcXOe" | |
http://t.co/jTHcIW35aS" | |
http://t.co/9eFjOGmPhj" | |
https://t.co/64qBvqWkf3" | |
http://t.co/DJzPfmU99C" | |
http://t.co/uIu8WhxXWM |
OlderNewer