Open the postgresql.conf config file:
$> mate /usr/local/var/postgres/postgresql.conf
Uncomment the line with 'log_destination' and set it to 'syslog'
log_destination = 'syslog'
Open the syslog config:
| import base64 | |
| import os | |
| from tastypie.fields import FileField | |
| from django.core.files.uploadedfile import SimpleUploadedFile | |
| class Base64FileField(FileField): | |
| """ | |
| A django-tastypie field for handling file-uploads through raw post data. | |
| It uses base64 for en-/decoding the contents of the file. | |
| Usage: |
Open the postgresql.conf config file:
$> mate /usr/local/var/postgres/postgresql.conf
Uncomment the line with 'log_destination' and set it to 'syslog'
log_destination = 'syslog'
Open the syslog config:
| class SimpleOwnerAuthorization(Authorization): | |
| ''' | |
| Does what it says: filters objects by their owner (user). | |
| ''' | |
| def __init__(self, ownerfilter=None, *args, **kwargs): | |
| self.ownerfilter = ownerfilter # the user field i.e. 'person__user' | |
| def is_authorized(self, request, object=None): | |
| return True # for now |
| angular.module('bDatepicker', []). | |
| directive('bDatepicker', function(){ | |
| return { | |
| require: '?ngModel', | |
| restrict: 'A', | |
| link: function($scope, element, attrs, controller) { | |
| var updateModel; | |
| updateModel = function(ev) { | |
| element.datepicker('hide'); | |
| element.blur(); |
| # Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
| $ sudo chown -R `whoami` /usr/local/texlive | |
| $ tlmgr update --self | |
| $ tlmgr install ucs | |
| $ tlmgr install etoolbox | |
| # Install pandoc view homebrew |
| #!/env/python | |
| # coding=utf8 | |
| """ | |
| Converting Degrees, Minutes, Seconds formatted coordinate strings to decimal. | |
| Formula: | |
| DEC = (DEG + (MIN * 1/60) + (SEC * 1/60 * 1/60)) | |
| Assumes S/W are negative. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.