dropbox

Create a folder in dropbox from Iphone App

試著忘記壹切 提交于 2019-11-30 21:05:28
问题 I am a beginner in iOS development and have just started using the DropBox SDK for iOS. I am using XCode 3.2.5 having the simulator 4.2 . I wanted to create a folder(or directory) on my dropbox account using the DropBox SDK programmatically and upload files directly to that folder in my DropBox account. I have the following code to upload a file [[self restClient] uploadFile:@"info.txt" toPath:@"/" withParentRev:nil fromPath:sourceString]; I have to store this file inside a folder called

Syncing a mongodb database over dropbox

ⅰ亾dé卋堺 提交于 2019-11-30 20:26:42
I use a mongodb database called 'mydb' in a local wep-app I'm developing and want to sync the db files over Dropbox, so I will have it available on all my development machines. Whenever I insert some new data in the database, the files 'mydb.0' and 'mydb.ns' don't seem to change. So Dropbox doesn't sync anything. Any ideas here? I know this might sound like a horrible idea, but I'm the only database user and I never run the database on more than one machine at a time. Also I don't share the files with anyone else. It's just to take care that I can continue on another machine exactly where I

Run R from dropbox

…衆ロ難τιáo~ 提交于 2019-11-30 19:28:17
Often in "restricted security" situations in which programs can't be installed on a computer I run R from a flash drive. Works like a charm. I've recently started using dropbox and was thinking it could be used in a similar fashion to the flash drive. For anyone who has tried this does it work? I can test it myself but don't want to go to the bother if it's a dead end. Thanks in advance. PS this has the advantage of storing an .Rprofile that people whom you share the dropbox folder with can then run your R code. This is particularly nice for people unfamiliar with R. It should just work. R is

Dropbox SDK - linkFromController: delegate or callback?

孤街浪徒 提交于 2019-11-30 19:01:05
I'm adding Dropbox to my app using the SDK available on their site. Is there any way of calling some method once [[DBSession sharedSession] linkFromController:self]; links with an account? Basically I'd like to call [self.tableView reloadData] once the app has tried to log in to Dropbox. It doesn't even need to discriminate between a successful or unsuccessful login. The Dropbox SDK uses your AppDelegate as callback reciever. So when you have called [[DBSession sharedSession] linkFromController:self]; the Dropbox SDK will in any case call your AppDelegate's – application:openURL

Show the permission of a indexed file in git

不问归期 提交于 2019-11-30 17:44:23
This is related to another question I recently asked about storing a non-bare repository in Dropbox for easy movement between computers, so it may be helpful to read that question for background. The gist is that the fileMode keeps reporting a diff for some number of files. I can't find a way to reproduce it consistently, but it happens frequently. What I've noticed is that the file, which has 644 permissions on both machines often reports a diff from 755 on one of the machines. This makes me think that Git believes the executable bit is set, but I can't figure out whether I can actually see

Using saved Dropbox authentication details on Android

会有一股神秘感。 提交于 2019-11-30 17:31:16
问题 In the Getting started article on Dropbox website they have a tutorial how to use Core API with Android to get started. When the application launches for the first time, the user is asked to authenticate the software to use the users Dropbox account. After the authentication is successfully finished, you'll receive a pair of authentication strings, the key and a secret. After the user has authenticated the application to use his or her Dropbox account I save the key and the secred using

Upload Image from UIImageView using DropBox SDK for Iphone

梦想的初衷 提交于 2019-11-30 17:07:29
I am a beginner to iOS development and have just started working with the DropBox SDK for iphone, I am currently using the MacOSX 10.6 version having the Xcode 3.2.5 on it(the simulator is 4.2). Using UIImagePickerController, I could display a selected image on the UIImageView. Now if I want to upload that particular image using DropBox SDK, I have to know its path on my application, as the following code is applied - (void)uploadFile:(NSString*)filename toPath:(NSString*)path fromPath:(NSString *)sourcePath this method is defined in DBRestClient.h, a library file from the DropBox SDK for iOS.

How to backup files from a specific directory to Dropbox using PHP only?

让人想犯罪 __ 提交于 2019-11-30 16:34:34
I would like to create a PHP script to backup files from a particular directory on my website to my Dropbox account. I tried to search for examples and how to work around it but I only found code to backup databases or to buy ready made solutions. This is the code I tried <?php $passw = "jason"; //change this to a password of your choice. if ($_POST) { require 'DropboxUploader.php'; try { // Rename uploaded file to reflect original name if ($_FILES['file']['error'] !== UPLOAD_ERR_OK) throw new Exception('File was not successfully uploaded from your computer.'); $tmpDir = uniqid('/tmpCapes/');

How should I deal with APP_KEY and APP_SECRET (Dropbox API)

送分小仙女□ 提交于 2019-11-30 16:02:54
I've written a simple piece of code using Dropbox API, which implies usage of APP_KEY and APP_SECRET of my app. Let's suppose someone wants to use my app too. I create a github repo, push the code and so on, but, of course, I don't put APP_KEY and APP_SECRET values . Do users have to register their own instances of this application? Is there another way to deal? Maybe sharing APP_KEY and APP_SECRET is enough secure to let it be that way? In other words, Dropbox prohibits usage of username-password pair for authenticating (while their own official app does exactly that), but I want (for example

How should I deal with APP_KEY and APP_SECRET (Dropbox API)

坚强是说给别人听的谎言 提交于 2019-11-30 15:59:15
问题 I've written a simple piece of code using Dropbox API, which implies usage of APP_KEY and APP_SECRET of my app. Let's suppose someone wants to use my app too. I create a github repo, push the code and so on, but, of course, I don't put APP_KEY and APP_SECRET values . Do users have to register their own instances of this application? Is there another way to deal? Maybe sharing APP_KEY and APP_SECRET is enough secure to let it be that way? In other words, Dropbox prohibits usage of username