Dropbox
PHP 5.3 SDK for the Dropbox REST API
Is there a way to revert all the documents in a folder to the revision at a certain time? I see how to do it for individual files, but how would I do it for an entire folder?
Source: (StackOverflow)
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.
Source: (StackOverflow)
I am using Dropbox
to sync a git
repository, but now when I try and push
I am getting an error:
fatal: Reference has invalid format: 'refs/heads/master (MacBook-Pro's conflicted copy 2012-10-07)'
So, it seems that Dropbox detected a conflict and created a copy. Ok, no problem, so I deleted the conflicted file. Still, getting the above git error though.
$ git checkout master
M index.html
Already on 'master'
$ git add .
$ git commit -a -m "Cleanup repo"
[master ff6f817] Cleanup repo
1 file changed, 5 insertions(+), 5 deletions(-)
$ git push
fatal: Reference has invalid format: 'refs/heads/master (MacBook-Pro's conflicted copy 2012-10-07)'
The remote end hung up unexpectedly`
How can I fix this? Thanks.
Source: (StackOverflow)
I have an OS X app that's distributed through the Mac App Store, and recently updated to Xcode 4.6.3.
When I run my regular build now, I receive:
Command /usr/bin/codesign failed with exit code 1:
/Users/Craig/Library/Developer/Xcode/DerivedData/Mac-dxcgahgplwpbjedqnembegifbowj/Build/Products/Debug/MyApp.app: code object is not signed at all
In subcomponent: /Users/Craig/Library/Developer/Xcode/DerivedData/Mac-dxcgahgplwpbjedqnembegifbowj/Build/Products/Debug/MyApp.app/Contents/Frameworks/DropboxOSX.framework
Command /usr/bin/codesign failed with exit code 1
I can't seem to discern any other changes in my project, so I can't tell if it's an issue related to the 4.6.3 update, or something else.
I have tried restarting Xcode, running a clean build, and cleaning the build folder.
Source: (StackOverflow)
I have a Mercurial repository for a personal project, and I have been storing the master repository in my Dropbox for a few weeks now (something along this line; and I understand it's also possible with git).
The idea is that it serves both as a way to work with multiple machines and as a remote backup. I clone the repository and work on the non-Dropbox copy, and only push updates once in a while, the same way I would, I suppose, work with Bitbucket.
Can you think of any drawbacks to this idea, compared to using dedicating hosting (BitBucket in the case of Mercurial)? I know Bitbucket has free accounts for single users, which is great, but they are limited to 150M, which isn't a huge.
In particular, is it possible that Dropbox's sync process would corrupt the repository? I had to run hg recover once on the master repository, but it might be unrelated (and anyway it happily recovered). Does anyone have a bad experience with the idea? Does anyone have a longer good experience and can alleviate my worries? Does anyone have an opinion based on better understanding of the internals of these things?
edit: I added some clarifications to the questions. They are in italics.
Source: (StackOverflow)
Is it a bad idea to use DropBox as a backup system for Subversion repositories?
Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences?
My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together?
p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep your repositories Private with the free account (and other reasons).
References:
DropBox (file sync, sharing, and online backup)
Subversion (open source version control system)
Source: (StackOverflow)
I want to use the dropbox in my application.I developed a sample application for upload and download files and it ask for authentication.
But I don't want to open login popup.
Is it possible access the dropbox by other users using default account(single account) login details?
So any user can use dropbox directly without login popup.
Source: (StackOverflow)
I read a thread on the dropbox forum here. But I'm still confused as for how long the token is valid and do I need to refresh it and how. My application needs to perform some scheduled operations on the users files offline, so I need to have a longer access, say for a week without the need of the user being asked to grant access again.
Source: (StackOverflow)
I noticed that a DropBoxManager has been introduced in Android API since FroYo (API 8).
It looks like an alternative logger capable of logging not only text but also files or byte arrays, but I could not find any detailed doc anywhere about how and when we should use it.
The latest android dev blog post introducing StrictMode talks about it, StrictMode can append data to the DropBox, and we are given a shell command to retrieve these data.
Please share here your knowledge about this! Why has it been implemented in addition to the usual logcat? Can we use this to share data across apps? What kind of apps use it?
Source: (StackOverflow)
I have been using git for half a year or so and I don't know whether I am using git fully.
First of all, I have been experimenting with dropbox and I feel that if I can incorporate it into my work flow, it would be really great since dropbox is pretty convenient.
- I have a desktop, and a laptop. Both
have dropbox.
- I initialized my dropbox repos by
doing a
git init --bare
. And then
in my Desktop's post-commit script,
I have a git push --mirror
dropbox
.
This way my desktop and dropbox will always be completely mirrored, which is a good thing.
My real question is: How should I set up my laptop?
I have been hearing a few suggestions:
- Pull from my desktop, so that my
laptop's origin is desktop.
- Pull directly from dropbox so that my
laptop's origin is dropbox.
I have been doing number 2, and I don't know if I am doing the right thing.
My work flow includes:
- Everytime I am on my laptop, I do a git pull (since laptop's origin is dropbox and dropbox updates itself)
- Then when I check out a branch from dropbox to a local branch.
- After I am done with work, I commit.
- This is where I am confused: Should I push --mirror to my dropbox repos (my laptop's origin repos) too? I am getting some difficulties in this area: Sometimes dropbox doesn't sync quite well, etc
Currently, doing a git branch -r
on my desktop after doing git push --mirror origin
on my laptop doesn't show my recently laptop commits. Can someone tell me why?
I mentioned pulling from my desktop directly because that way I can always initialize the pull and I am 100% confident that the sync is done. With dropbox I can never be 100% sure whether the update has been pushed to the dropbox server
Source: (StackOverflow)
I have a script that is intended to be run by multiple users on multiple computers, and they don't all have their Dropbox folders in their respective home directories. I'd hate to have to hard code paths in the script. I'd much rather figure out the path programatically.
Any suggestions welcome.
EDIT:
I am not using the Dropbox API in the script, the script simply reads files in a specific Dropbox folder shared between the users. The only thing I need is the path to the Dropbox folder, as I of course already know the relative path within the Dropbox file structure.
EDIT:
If it matters, I am using Windows 7.
Source: (StackOverflow)
Am looking for the tutorial to display all the files and folder in a listview..but I didn't get anything..Does anyone here know that how can I show all the folder and files of Dropbox into my listview..So that when I click on any of the file..Then that file starts download..
Well I know here that How to download a file from Dropbox, but for that I need to put that name of the file in my code in a static way..
I am also going to use filter afterwards for .csv file only...but I want to show all the files in a listview.
Thanks..
Source: (StackOverflow)
I want to upload a file from my python script to my dropbox account automatically. I can't find anyway to do this with just a user/pass. Everything I see in the Dropbox SDK is related to an app having user interaction. I just want to do something like this:
https://api-content.dropbox.com/1/files_put//?user=me&pass=blah
Please help, thanks!
Source: (StackOverflow)