Raven.js v1.0 and above requires Sentry v5.2 or later. If you're using getsentry.com, you're already up to date!
First and foremost, "What is different when using Raven 1.0?" The new method is:
Raven.config(...).install()
>>> import sourcemap | |
>>> index = sourcemap.load(open('jquery.min.map')) # Parses the map | |
>>> index.lookup(line=1, column=3000)) # Search in index for a Token |
""" | |
cramermath | |
~~~~~~~~~~ | |
Usage: | |
>>> import cramermath | |
>>> cramermath.log(10) | |
0.014728067495500818 | |
""" |
// jQuery | |
Raven.plugin({ | |
// the main, base object | |
object: $, | |
// the keys within that object to wrap | |
keys: ['success', 'failure'], | |
// optionally wrap the arguments to the callbacks, if they are themselves functions | |
args: true | |
}) |
>>> class Foo(object): pass | |
... | |
>>> foo = Foo() | |
>>> setattr(foo, 'β', 'snowman') | |
>>> getattr(foo, 'β') | |
'snowman' |
Raven.js v1.0 and above requires Sentry v5.2 or later. If you're using getsentry.com, you're already up to date!
First and foremost, "What is different when using Raven 1.0?" The new method is:
Raven.config(...).install()
// parseUri 1.2.2 | |
// (c) Steven Levithan <stevenlevithan.com> | |
// MIT License | |
function parseUri (str) { | |
var o = parseUri.options, | |
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), | |
uri = {}, | |
i = 14; |
$ ping -t30 8.8.8.8 | |
PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
Request timeout for icmp_seq 0 | |
Request timeout for icmp_seq 1 | |
Request timeout for icmp_seq 2 | |
Request timeout for icmp_seq 3 | |
64 bytes from 8.8.8.8: icmp_seq=0 ttl=46 time=4745.140 ms | |
64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=3744.064 ms | |
Request timeout for icmp_seq 6 | |
Request timeout for icmp_seq 7 |
MXMLC=/usr/local/Cellar/flex_sdk/4.6.0.23201/libexec/bin/mxmlc | |
all: HelloWorld.swf | |
.as.swf: | |
$(MXMLC) --static-link-runtime-shared-libraries=true -o $@ $< | |
.PHONY: all | |
.SUFFIXES: .as .swf |
from django.db import models | |
class DeviceA(object): | |
def do_something(self, string='Hello'): | |
print "Device A something '%s'" % string | |
def do_something_else(self): | |
print "Device A something else" | |
class XForwardedPort(object): | |
def process_request(self, request): | |
try: | |
request.META['SERVER_PORT'] = request.META['HTTP_X_FORWARDED_PORT'] | |
except KeyError: | |
pass | |
return None |