Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smarx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
smarx
13y ago
The blog post ( https://www.dropbox.com/developers/blog/82/dropbox-2048-save... ) links to it. Here's the direct link to see your datastores: https://www.dropbox.com/developers/apps&#x
62.
▲
by
smarx
13y ago
You should actually be able to use the full Dropbox API from JavaScript. See https://github.com/dropbox/dropbox-js and https://www.dropbox.com/developers/datastore/docs/js .
63.
▲
by
smarx
13y ago
One of the big advantages (not really used in this sample) is conflict resolution. With a text file, if you make changes on two different devices while one (or both) is offline, you'd end up with a conflict and two versions of the text
64.
▲
Why Crypto (new Python cryptography library)
(alexgaynor.net)
4 points
by
smarx
13y ago
|
0 comments
65.
▲
by
smarx
13y ago
What a strange coincidence! 97% of the Fortune 500 also use Dropbox. :-) From https://www.dropbox.com/news/company-info : "Dropbox is used in over 4 million businesses with presence in 97 percent of Fortune 500 com
66.
▲
by
smarx
13y ago
You might consider Dropbox, since the Datastore API seems perfect for the persistence (and live syncing) of data. Try the sample task-list app in a couple tabs: https://dl.dropboxusercontent.com/u/182037406/js-data
67.
▲
by
smarx
13y ago
This is incorrect. OT can indeed be implemented on the client. The way it works in the Datastore API is that the client sends its changes to the server with an attached "parent revision." If that parent revision is the revision th
68.
▲
by
smarx
13y ago
The main pro is the automatic merging. "The API" is a fuzzy term here. There's an interaction between a client and a server, and the client is running an SDK. In the case of the Datastore API, the server doesn't perform
69.
▲
by
smarx
13y ago
Oh, I misunderstood "very large." :-) The actual code sample has a more detailed list of exceptions that it handles, but the code was a bit long.
70.
▲
by
smarx
13y ago
Hi, I wrote the tutorial. :-) In general, I based the tutorial on the sample app that ships with the SDK. That app uses Flask and presents some actual UI. If you want full working code, I would suggest taking a look at that sample. The tuto
71.
▲
by
smarx
13y ago
The Python library is open source, but no, I don't think we have any open source test code. Keep in mind that file data should go outside of datastores (in files), so the 10MB is for the per-user, per-app structured data. E.g. contacts
72.
▲
by
smarx
13y ago
I don't have benchmarks to share, but the documentation goes over size limits: https://www.dropbox.com/developers/datastore/docs/python As to the sync model, changes are always made locally and then queu
73.
▲
by
smarx
13y ago
I'm not sure I understand the question. Dropbox uses Python heavily both server-side and client-side. Does that help?
74.
▲
by
smarx
13y ago
Datastores are only visible on dropbox.com (but somewhat buried there) and via the API, so this isn't much of a concern.
75.
▲
by
smarx
13y ago
Yes, Guido wrote the datastores part of the Python SDK and also played a big role in the design of the Datastore API itself.
76.
▲
Using the Dropbox Datastore HTTP API
(dropbox.com)
2 points
by
smarx
13y ago
|
0 comments
77.
▲
by
smarx
13y ago
Might I interest you in Site44? (I'm a founder.) www.site44.com
78.
▲
by
smarx
13y ago
I suppose your scenario for (iii) is reasonable in the case of sharing a datastore among multiple users. In that case, you'd probably still want all of that user's devices to use the same conflict resolution strategy. BTW, (for
79.
▲
by
smarx
13y ago
Note that every device submits its change with an expected "parent revision." The server checks the change against the server's current revision, and the change is accepted if and only if the server revision matches the paren
80.
▲
by
smarx
13y ago
The API uses (optional) optimistic concurrency. So when you write a file, you can specify the expected parent revision, and if the revisions don't match, the operation will fail. If you want, you can have Dropbox instead just overwrite
81.
▲
by
smarx
13y ago
Your edit is correct. To sync files, you would use the Core API or Sync API. ( https://www.dropbox.com/developers/core and https://www.dropbox.com/developers/sync )
82.
▲
by
smarx
13y ago
Email me: smarx@dropbox.com. I'm not the right guy, but I'll find someone for you.
83.
▲
by
smarx
13y ago
I don't have a PayPal account, so I couldn't really try out the integration. Do the files remain in Dropbox/Drive, or do they get copied to Sellbox's storage? This might be a good candidate for the Dropbox Chooser: http
84.
▲
by
smarx
13y ago
We're definitely looking at adding more options for custom conflict resolution once we get out of beta.
85.
▲
by
smarx
13y ago
FYI, one of the examples we wrote for Webscript does simple mobile phone verification: https://www.webscript.io/examples/mobileverification We thought about building something like this as a paid service, but we didn't think it could be v
86.
▲
by
smarx
14y ago
> ... but really I don't think the absence of writing on the neutral tape can explain the findings. To me, it seems like a far more likely explanation than a USPS bias against packages affiliated with atheism.
87.
▲
by
smarx
14y ago
Great, so can you tell us what the tape looked like? Is the illustration accurate?
88.
▲
by
smarx
14y ago
What did the two kinds of packages actually look like? If the illustration is accurate, the "atheism" tape is white with black text, while the other tape is perhaps standard brown packing tape. Could it be that the standard packing tape is
89.
▲
by
smarx
14y ago
Hence Site44[1], which has a lot of other benefits like gzip compression, in-memory caching, etc. (I'm a founder of Site44.) [1] http://www.site44.com
90.
▲
by
smarx
14y ago
For those who are totally confused as to why an access token is being shared with an end user and why it's transmitted in a URL fragment, I think I figured out what's going on. Facebook appears to have a flow for logging in client-side in t
More ›