carn1x
carn1x
Ubuntu 16.04, 175% scaling. Either Print PDF or directly to printer, the font seems to scale with the OS display settings scaling. This seems to be a minor annoyance with...
I have the following model: ``` class Profile(BaseModel): audit_log = AuditLog() user = OneToOneField(AUTH_USER_MODEL, related_name='profile') phone = CharField(max_length=20) name = CharField(max_length=255) ``` and calling `profile_instance.delete()` give the following error: ```...
Is there anyway to override config in a context manager, such as for individual unit tests? For instance: ``` class MyTestCase(TestCase): override_config('SMTP_SETTINGS', {'host': 'localhost'}) def test_something(self): send_mail() ```
`npm list`: ``` ├─┬ [email protected] │ └─┬ [email protected] │ ├── [email protected] │ └── [email protected] ``` App.js ``` (function() { var angular_websocket; angular_websocket = require('angular-websocket'); }).call(this); ``` Command `browserify app.js -o...
For instance take the following code: ``` getThing = (thing_id, cb_success, cb_error) -> model.findById thing_id, (error, thing) -> if error || !thing cb_error "error" else cb_success thing ``` And then...