Profile cover photo
Profile photo
Nick Craig-Wood
83 followers
83 followers
About
Posts

Post has attachment
Notifications don't seem to be working on Android 8.1. They are turned on but the OS claims none have been sent. Tested on Pixel XL 2. Any ideas?
Photo
Photo
09/03/2018
2 Photos - View album

Post has attachment
Summer evening panorama by the river in Guildford
Photo
Add a comment...

Post has attachment
I have made a Go library and CLI tool for using the PSLQ integer
relation algorithm

According to Wikipedia: An integer relation algorithm is an algorithm
for finding integer relations. Specifically, given a set of real numbers
known to a given precision, an integer relation algorithm will either
find an integer relation between them, or will determine that no integer relation exists with coefficients whose magnitudes are less than a certain upper bound.

This can be used to identify an unknown real number as being a linear
combination of some known constants. For example the original formula for finding the n-th hexadecimal digit of Pi was found using the PSLQ algorithm.

  * http://mathworld.wolfram.com/PSLQAlgorithm.html
  * https://en.wikipedia.org/wiki/Integer_relation_algorithm

NB requires Go >= 1.5 for big.Float support
Add a comment...

Post has attachment
Missing downloadUrl but full md5Checksum.

I have a user of rclone who has files which have md5Checksum but downloadUrl is missing. According to the docs it should have both or none.  This means the user can't download those files with rclone.

It doesn't have exportLinks so it isn't a google doc. It does have openWithLinks though.  Otherwise it looks just the same as a normal file.  It is an xlsx file with mime type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

Any ideas how this came about and how to download it?

Here is the info blob with ID/users redacted

  {
   "kind": "drive#file",
   "id": "0B...",
   "etag": "\"Py..."",
   "selfLink": "https://www.googleapis.com/drive/v2/files/0B...",
   "webContentLink": "https://docs.google.com/a/XXXX/uc?id=0B...&export=download",
   "alternateLink": "https://drive.google.com/a/XXXX/file/d/0B.../view?usp=drivesdk",
   "openWithLinks": {
    "133...": "http://drive.google.com/views/app.html?state=%7B%22ids%22:%5B%220B...%22%5D,%22action%22:%22open%22,%22userId%22:%2211...%22%7D"
   },
   "iconLink": "https://ssl.gstatic.com/docs/doclist/images/icon_10_excel_list.png",
   "thumbnailLink": "https://lh4.googleusercontent.com/VO...=s220",
   "title": "XXX.xlsx",
   "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
   "labels": {
    "starred": false,
    "hidden": false,
    "trashed": false,
    "restricted": true,
    "viewed": false
   },
   "createdDate": "2013-09-16T11:19:45.600Z",
   "modifiedDate": "2014-06-04T06:59:33.000Z",
   "markedViewedByMeDate": "1970-01-01T00:00:00.000Z",
   "version": "3516307",
   "parents": [
    {
     "kind": "drive#parentReference",
     "id": "0B970...",
     "selfLink": "https://www.googleapis.com/drive/v2/files/0B.../parents/0B970...",
     "parentLink": "https://www.googleapis.com/drive/v2/files/0B970...",
     "isRoot": false
    }
   ],
   "originalFilename": "XXX.xlsx",
   "fileExtension": "xlsx",
   "md5Checksum": "871a9d5d2f235928aaaaaaaaaaaaaaaa",
   "fileSize": "225191",
   "quotaBytesUsed": "0",
   "editable": false,
   "copyable": false,
   "writersCanShare": true,
   "shared": true,
   "explicitlyTrashed": false,
   "appDataContents": false,
   "headRevisionId": "0B9704...",
   "spaces": [
    "drive"
   ]
  },

Thanks in advance!

https://developers.google.com/drive/v2/reference/files#resource

Error 401: Invalid Credentials, authError on long uploads

One of my users keeps getting this while trying to upload big .zip files (of about 0.5-2 GB in size).  The transfers run for 40 minutes or so then fail with the error above. I'm doing the transfers with a single insert.

Some of the transfers have succeeded so I know that it is possible to transfer 2 GB .zip files like this.

Has anyone else seen this problem?  Got a work-around?

Thanks

I keep getting "Error 403: User rate limit exceeded, userRateLimitExceeded" from my app (http://rclone.org) .

My Google Developer Console says each user can have 1000 queries/second, but even if I limit rclone to 4 queries per second I get these 403 errors!

Does anyone know what the limits are for Google Drive? Or is it necessary to implement exponential backoff on 403 rate limit errors?

rclone does multiple transfers at once which might confuse drive's lmiting code.

Anyone have any ideas?

Thanks

Post has attachment
My morning walk with #nexus6 and HDR+
Photo
Add a comment...

Post has attachment
Go 1.4 released!  You can now try https://github.com/ncw/gotemplate - my take on the simplest possible templating system for Go with go generate. #golang

Post has attachment
Finally releasing rclone - rsync for object storage.

Rclone is a command line program to sync files and directories to and from

  * Google Drive
  * Amazon S3
  * Openstack Swift / Rackspace cloud files / Memset Memstore
  * The local filesystem

Features

  * MD5SUMs checked at all times for file integrity
  * Timestamps preserved on files
  * Partial syncs supported on a whole file basis
  * Copy mode to just copy new/changed files
  * Sync mode to make a directory identical
  * Check mode to check all MD5SUMs
  * Can sync to and from network, eg two different Drive accounts

Links

  * http://rclone.org/ - main website
  * http://github.com/ncw/rclone - code/bugs
  * https://google.com/+RcloneOrg - G+
Add a comment...

Post has attachment
I'm looking for testers, users and developers for rclone the somewhat ambitiously subtitled "rsync for object storage" including Google Drive.

Rclone is a command line program to sync files and directories to and from

  * Google Drive
  * Amazon S3
  * Openstack Swift / Rackspace cloud files / Memset Memstore
  * The local filesystem

Features

  * MD5SUMs checked at all times for file integrity
  * Timestamps preserved on files
  * Partial syncs supported on a whole file basis
  * Copy mode to just copy new/changed files
  * Sync mode to make a directory identical
  * Check mode to check all MD5SUMs
  * Can sync to and from network, eg two different Drive accounts

Links

  * http://rclone.org/ - main website
  * http://github.com/ncw/rclone - code/bugs
  * https://google.com/+RcloneOrg - G+
Wait while more posts are being loaded