dropbox

removing broken names in Git (dropbox conflicted copy)

谁说我不能喝 提交于 2019-11-29 11:28:00
问题 I save my repo in dropbox, and one day (see date below) it went crazy. Now I get these warning every time I try to autocomplete a branch name warning: ignoring ref with broken name refs/heads/develop (MacBook Pro's conflicted copy 2015-02-28) warning: ignoring ref with broken name refs/heads/master (MacBook Pro's conflicted copy 2015-02-28) warning: ignoring ref with broken name refs/remotes/origin/develop (MacBook Pro's conflicted copy 2015-02-28) warning: ignoring ref with broken name refs

Dropbox Access Token Expiry

我的未来我决定 提交于 2019-11-29 07:41:57
What is the lifetime for an Access Token acquired through the Dropbox oAuth2 APIs? The answer after the https://api.dropbox.com/1/oauth2/token was something like { "access_token": "fHUlx32x494RmgTlxWiF6pLzd5q1Lg4Itt7I6itVYDIDT", "token_type": "bearer", "uid": "17233223324" } But there's no mention of when the AT expires. If ever. It effectively never expires. But users can invalidate tokens by unlinking an app. (In the case of an App folder app, they can delete the app folder from their Dropbox. For all apps, they can unlink the app on dropbox.com.) 来源: https://stackoverflow.com/questions

Does the DropBox app on iOS have a URL scheme?

谁说胖子不能爱 提交于 2019-11-29 07:22:55
I would like to be able to launch the DropBox app within my app. Therefore I would like to know if the DropBox app has a URL scheme that I can use to call openURL, something like this, except I don't know what this string should be. NSURL *myURL = [NSURL URLWithString:@"dropbox://"]; [[UIApplication sharedApplication] openURL:myURL]; The only thing you can do with the Dropbox url-scheme is connect your Dropbox App to it. Like this: var key = "[YOUR API KEY]"; var secret = "[YOUR API SECRET]"; var apiversion = "1"; window.open("dbapi-1://"+apiversion+"/connect?k="+key+"&s="+secret); Normally

Allow Dropbox API to access my account on user's device

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 04:08:10
As a mobile developer, I'm looking for a solution that allows users of my application to download multiple .zip files that will add a "modular" feel to my application. I've used the Dropbox API in another app to allow users to backup items to their account, but now I need the user to access my account. Is there a way to authenticate the Dropbox session to my account automatically, or just connect to my Public folder without the user even noticing? Followup Question What are the security implications of hard-coding my access keys and app key/secret into an application? I know it is fairly

Using Dropbox Java API for uploading files to dropbox

ぐ巨炮叔叔 提交于 2019-11-29 00:45:11
I want to upload files using the java API for DropBox. The following code gets me the oauth_token and oauth_secret. but when ever I try to upload a file I get a exception. Java Class package com.dropbox.client; import com.dropbox.client.DropboxAPI.Config; import java.io.File; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * * @author Charan */ public class DBmain { public DBmain() { System.setProperty("java.net.useSystemProxies", "true"); Map configuration= new HashMap(); configuration.put("consumer_key", "XXXXXXXXXXXXXXXX"); configuration.put("consumer_secret",

Sharing Eclipse directory on Dropbox between Windows and Mac OS X

有些话、适合烂在心里 提交于 2019-11-28 23:19:48
This question was close to mine, but not quite. I have a Windows desktop and a MacBook Pro. I'd like to be able to keep my Eclipse workspace in my Dropbox folder. The problem is that many project settings change between platforms: references to JREs, JDKs, and other libs. Every discussion I've seen of this problem seems to suggest taking advantage of the source control system's ignore functionality, so that such-and-such file remains local-only and thus able to remain platform-specific. But when you're working with a real single shared folder, that class of solution doesn't apply. Have you had

Dropbox: Produce a direct download link [PHP preferred]

我们两清 提交于 2019-11-28 20:57:12
I'm using the Dropbox REST API and I can successfully retrieve a share url for a file. https://www.dropbox.com/developers/reference/api#shares However, the share link takes the user to a preview page on dropbox.com, whereas I'm looking for a direct link that a user could directly download a file. eg. Right click, Save as... Paul It turns out that the default share url that is returned is a short url and the short url will always point to the Dropbox preview page. Therefore, you need to get the REST API to return the full url by setting the short_url parameter to false. Once you have the full

AVPlayer “freezes” the app at the start of buffering an audio stream

梦想与她 提交于 2019-11-28 15:47:52
I am using a subclass of AVQueuePlayer and when I add new AVPlayerItem with a streaming URL the app freezes for about a second or two. By freezing I mean that it doesn't respond to touches on the UI. Also, if I have a song playing already and then add another one to the queue, AVQueuePlayer automatically starts preloading the song while it is still streaming the first one. This makes the app not respond to touches on the UI for two seconds just like when adding the first song but the song is still playing. So that means AVQueuePlayer is doing something in main thread that is causing the

How does Dropbox use Python on Windows and OS X?

这一生的挚爱 提交于 2019-11-28 15:28:46
In Windows the Dropbox client uses python25.dll and the MS C runtime libraries (msvcp71.dll, etc). On OS X the Python code is compiled bytecode (pyc). My guess is they are using a common library they have written then just have to use different hooks for the different platforms. What method of development is this? It clearly isn't IronPython or PyObjC. This paradigm is so appealing to me, but my CS foo and Google foo are failing me. Dropbox uses a combination of wxPython and PyObjC on the Mac (less wxPython in the 0.8 series). It looks like they've built a bit of a UI abstraction layer but

How Do I Sync My Sublime Text 3 Settings Using Dropbox?

大憨熊 提交于 2019-11-28 15:21:11
I would like to sync Sublime Text 3's Settings across multiple machines using Dropbox. How should I set this up? Tomek I've been syncing my Sublime settings for a while between multiple locations, all running OS X. I've had some minor problems. Finally, I decided to look into it which led me to what I would consider the authoritative description of how to sync Sublime setting between multiple machines using Dropbox: Sublime Package Control > Docs > Syncing https://sublime.wbond.net/docs/syncing Here is the basic summary: To properly sync your installed packages across different machines, you