dropbox

利用dropbox搭建自己的git repo

こ雲淡風輕ζ 提交于 2019-12-07 12:12:52
单位、家里写点东西或吗代码,以前就用dropbox,但看不出版本变化历史,现采用git进行版本控制。步骤:1、项目建立git 2、dropbox文件夹下clone出项目,但作为bare 3、项目git提交后,下班前做下push,回家后从dropbox文件夹中clone出项目,以后就pull,push。这样做后感觉还是比较方便的,有机会再去建个网络git repo。以前也用过github,现在的话就多了个选择。 来源: oschina 链接: https://my.oschina.net/u/916854/blog/209804

Getting Direct File Links from Dropbox

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 06:59:44
问题 Is there a way to get "Direct File Links" from Dropbox in android code without using the Dropbox API's? I searched a lot on this but did not find a solution. Any responses will be appreciated. 回答1: get the file link for exemple https://www.dropbox.com/s/blablabla/test.pdf replace www by dl add ?dl=1 to the end result of our example: https://dl.dropbox.com/s/blablabla/test.pdf?dl=1 回答2: Get the Dropbox link. Something like: https://www.dropbox.com/s/abcdefg1234567/image.jpg?dl=0 Now replace

Using dropboxjs to authenticate the client with oauth 2. What about the server?

◇◆丶佛笑我妖孽 提交于 2019-12-07 03:08:00
问题 I'm new to Oauth and server-side stuff, so please be patient with me. I have a web application that authenticates users with dropbox-js. Everything is pretty straightforward. The application uses dropbox-js' client.authenticate function, and if the user is authenticated, the application gets automatically redirected to the initial page, where it executes the authenticate callback. From that moment on, I know I'm happily authenticated with Dropbox, and I can do stuff with the app's Dropbox

Locally calculate dropbox hash of files

∥☆過路亽.° 提交于 2019-12-07 01:54:15
问题 Dropbox rest api, in function metatada has a parameter named "hash" https://www.dropbox.com/developers/reference/api#metadata Can I calculate this hash locally without call any remote api rest function? I need know this value to reduce upload bandwidth. 回答1: https://www.dropbox.com/developers/reference/content-hash explains how Dropbox computes their file hashes. A Python implementation of this is below: import hashlib import math import os DROPBOX_HASH_CHUNK_SIZE = 4*1024*1024 def compute

Decrypt image from the dropbox and display [closed]

我只是一个虾纸丫 提交于 2019-12-06 16:26:38
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to decrypt back the photo which will display it on my samsung galaxy tab and i tried the ByteArrayOutputStream and when i run it in my emulator it says internal error when i randomly download a photo from

File migration via dropbox APi

耗尽温柔 提交于 2019-12-06 15:26:23
I'm using the dropbox API to migrate a large amount of files from one dropbox account to another. This seems to be taking between 2 and 7 seconds per file. Are there any ways to speed up the time it takes to move files using the dropbox API? source = dropbox.Dropbox('connectionstring') target = dropbox.Dropbox('connectionstring') list_folder = source.files_list_folder('') while list_folder: files = re.findall(r'name=[\'"]?([^\'" >]+)', str(list_folder)) for f in files: source.files_download_to_file(f,'') files = open(f,mode='rb') target.files_upload(files.read(),'') files.close() os.remove(f)

Pushed to git bare repo and I can't pull changes from other machines

梦想的初衷 提交于 2019-12-06 14:37:50
I have a git repo on my Dropbox, I am using Ubuntu, I have a project which I've cloned via git clone blablabla/Dropbox/blablabla.git and I've pushed for like 500 times to that but all I can pull now from another machine is like first 400 also my blablabla/Dropbox/blablabla.git file is smaller than my local /var/www/blablabla/.git so I guess some files aren pushed and so it seems when I've cloned blablabla/Dropbox/blablabla.git from another machine so how can I properly push now on the first machine so I can pull from the second I also have branches plus git push dropbox shows Up to date Help?

No such module 'SwiftyDropbox'

爱⌒轻易说出口 提交于 2019-12-06 11:25:23
First of all - I'm working with Xcode 8 and Swift 3. Now I want to integrate the Dropbox API (SwiftyDropbox) in my app. Because I'm very new in iOS programming I'm not sure if I've done all the steps correctly. I decided to use CocoaPods. So I innstalled the Pods tool and changed to the directory of my project. It's that directory which holds my .xcodeproj file. I hope this is correct? I called "pod init" and added the SwiftyDropbox framework. My Podfile looks like this: # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'MyProjectName' do #

How to upload multiple files at the same time using the dropbox java api

寵の児 提交于 2019-12-06 10:21:14
I would like to know how to upload multiple files to dropbox using the java dropbox api. I would like to know this as currently, when I want to upload a folder, I recursively go through every file in the folder and upload them one by one. However, I find this too slow. So, I thought that I could just upload all the files in a folder at once. But, how would I do this? Should I create n number of threads and each thread uploads a single file or what? Yes, you can call the API using multiple threads and upload files. You can use Thread Pools for the same. You need to identify the point for

Cannot download file from Dropbox

て烟熏妆下的殇ゞ 提交于 2019-12-06 08:27:29
问题 I am uploading and downloading a file from Dropbox. When I upload a file it uploads it correctly. When I download a file and open it, the file is zero bytes. Can someone tell me why this is happening? Download code: try { File localFile = new File(localFilePath); File fileSelected = new File(dropboxPath); if (!localFile.exists()) { localFile.createNewFile(); } else { //copy(fileSelected, localFile); //mApi.copy("/Test/test.png", "/sdcard/testfile.png"); BufferedInputStream br = null;