isometric drawing experiment with three.js
click the shape to enable/disable animation
source code here
<!DOCTYPE html> | |
<title>CoffeeScript/Processing</title> | |
<script src="https://raw.github.com/jeresig/processing-js/master/processing.js"></script> | |
<script src="https://raw.github.com/jashkenas/coffee-script/master/extras/coffee-script.js"></script> | |
<script src="https://raw.github.com/gist/1114064/professing.js"></script> | |
<script type="text/coffeescript"> | |
sketch -> |
import os | |
from django.core.cache.backends.base import BaseCache | |
from django.utils import simplejson as json | |
from django.conf import settings as django_settings | |
from compressor.conf import settings | |
class CompressorManifestCache(BaseCache): | |
"""Proof of concept, do not use""" |
import requests | |
key = 'xxxx' # API key copied from https://dabapps.codebasehq.com/settings/profile | |
auth = ('dabapps/j4mie', key) | |
headers = { | |
'Accept': 'application/xml', | |
'Content-type': 'application/xml', | |
} |
isometric drawing experiment with three.js
click the shape to enable/disable animation
source code here
The Spec ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html )
10.4.1 400 Bad Request
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
Scenario: you already have an app running at http://your.server.com/ and you want to run Sentry at http://your.server.com/sentry/
I spend a few hours banging my head against this, and finally got it to work. There may be a better way, but I couldn't find it.
Warning: hacky.
Examples for Arduino Nano V3.0.
First, install the Arduino software from arduino.cc as usual, as well as the FTDI driver (if needed for your board). https://github.com/mjoldfield/Arduino-Makefile
You'll need a couple of Perl modules:
Since Django 1.5.5, CSRF tokens are rotated on login. That makes it trivial to trigger a CSRF error in the following way:
The CSRF token sent along with the second login attempt (in a cookie) won't match the token that was embedded in the form, and so a CSRF error will be displayed.
It could be argued that the above is an odd/contrived thing to do, and so displaying a CSRF error here isn't too bad. Fine. But there's another, more subtle, way to trigger the same thing:
I hereby claim:
To claim this, I am signing this object:
from contextlib import contextmanager | |
from django.db import connections | |
class QueriesDisabledError(Exception): | |
pass | |
def fake(*args, **kwargs): | |
raise QueriesDisabledError() |