Skip to content

Instantly share code, notes, and snippets.

2015-11-21 15:08:34,190 +0100 WARNING pid=45155 4641013760:Worker-1 downloads.pyo:481 Detected unsynced changes in /Users/peterbraden/Google Drive/Photos when applying DOWNLOAD-DELETE: [u'/Users/peterbraden/Google Drive/Photos/photos/2014/2014-08-09/DSCF9905.JPG', u'/Users/peterbraden/Google Drive/Photos/photos/2015/2015-07-02/DSCF7303.dng']
2015-11-21 15:08:34,190 +0100 ERROR pid=45155 4641013760:Worker-1 workers.pyo:213 Exception while processing change [ImmutableChange(Direction.DOWNLOAD, Action.DELETE, ino=6770201, name=u'Photos', rid=0B4BhBBbuWQqARE9aamNOQ3U0a1k, parent_ino=1590463, is_folder=True, is_cancelled=False, is_priority=False, doc_type=DocType.FOLDER, hash=-2213610710502213993, _constructor_called=True)]
LocalDownloadDeleteConflict: LocalDownloadDeleteConflict: u'Unsynced files within /Users/peterbraden/Google Drive/Photos', recovery plan: RecoveryPlan.UNKNOWN, recovery targets: set([])
More info: Traceback (most recent call last):
File "common/workers.pyo", line 186, in Process
@peterbraden
peterbraden / example.html
Created December 16, 2015 14:42
Tooltip sass mixin
<div class='tooltip'>
Hello world
</div>
<div class='t2'>
Hello world
</div>
@peterbraden
peterbraden / issues.md
Last active May 6, 2016 13:10
Tensorflow -> NodeJS Issues

Problem: Need to link to library ../../../bazel-out/tensorflow/libtensorflow.so

  • bazel-out is a symlink within a relative path -> need abspath. Current workaround:
'libraries': [
      #HACK
      "<!(python -c 'import os,sys; print os.path.realpath(sys.argv[1])' ../../../../tensorflow/bazel-bin/tensorflow/libtensorflow.so)"
    ],
@peterbraden
peterbraden / axis.js
Created August 10, 2017 12:41
D3 Axis with overlap avoidance.
var renderAxis = (axis, axelem, maxWidth) => {
var paint = function(x){
axis.ticks(x)
axelem.call(axis)
var width = d3.max(
d3.selectAll('.axes .tick')
.nodes()
.map( (x) => x.getBBox().width))
return (width * x < maxWidth)
}