event new file created in dropbox api - dropbox

I am writting a program that uses DROPBOX API in java downloaded from its page: https://www.dropbox.com/developers/core
In my program, I want to be notified when a new file is created in a folder. I found a clue from this link Dropbox Application; Is it possible to check when a folder or a file is created or modified?. However, the solution is not clear. Can anyone help me out with this problem.

The answer in that other thread is correct. You want to call delta. Here's the Java-specific documentation for it: http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxClient.html#getDelta(java.lang.String).

Related

How to set and verify file's origin?

Can you guys suggest any method for my below problem?
I am developing an application which requires users to download an excel file, modify some content and upload exactly the same file they just download.
The requirement started from the fact that there is macro inside the excel file (which can be changed often), hence I try to make sure they always download and do works with the latest version. Then have to upload that file again.
My system is a web-based application for your reference.

System.Net.FTPWebRequest Not available for uwp app

I am trying to get my UWP app to send a small text file to my ftp server but all the code snippets I have looked at don`t seem to work with UWP apps.
Here is the code I have tried using from the following link :
upload file to ftp site using vb.net
I am using Visual studio 2015 community and it doesn`t recognise the FTPWebRequest method.
I have also looked at the BackgroundTransfer sample from the following link :
https://github.com/Microsoft/Windows-universal-samples
But when I run it and enter my FTP server address in the form
ftp://IPAddress/TestFolder/
and attach a simple text file it gives me an error at the line :
Dim upload As UploadOperation = uploader.CreateUpload(uri, file)
as The parameter is incorrect.
I can`t seem to find anything else to help with a UWP app as all the sites and forums I have looked at all seem to have similar code to the first link.
I can access the Ftp site through windows explorer on my laptop and drag and drop files that way so I know the site is accessible.
Not sure if there is a reference I am missing, I have the Internet(client) and Internet(client and Server) enabled in the appxmanifest.
From MSDN:
Download operations via FTP are supported. However, for FTP operations, authentication credentials must be provided within the specified URI. For example, ftp://user:password#server/file.txt
BackgroundDownloader class
Thanks for the replies.
I decided to use a package from https://www.chilkatsoft.com/ftp-2-dotnet.asp. which is available as a nuget package.
With a few lines of code I was able to upload a file using ftp with no problems.

Host Vb .Exe on Sharepoint Site

i want to host a vb project from a sharepoint folder instead of having it locally installed.
I am still new at this, but I only need to host the files in the same folder on sharepoint right? And then whoever can just click the .exe file, correct?
Sorry if this is a dumb question!
Thanks in advance
As already mentioned in the comment SharePoint isn't meant to store or even display applications (.exe). What started as a security measure is now part of the philosophy of MS SharePoint. Here's a list of all filetypes SP13 will block by default.
Back to your question. There is a trick how you still can upload an .exe to SharePoint:
Store the application in a folder
Zip the folder
Upload the zipped folder to a document library
Display the library on the desired site
For the future..
As there is a "Silverlight Webpart" - develop silverlight application if you know from the beginning that you want to display them on SharePoint.
Another trick: Publish your application on a host server. Then use the "Site Viewer WebPart" and point it to your application
Last one, although I wouldn't suggest it.. You can develop a .wpf-application and simply upload it as the file-type isn't blocked. But to embed the resources is just a pain in the ass..
There are for sure many other ways to do this.. Those are just the most practical ones I know if you already developed the application. The best solution is of course to create your own WebPart..

Can we create a war file for a play2.1.1 application offline?

I have tried creating war file for a play2.1.1 application following the instructions given in the github link - https://github.com/dlecan/play2-war-plugin/
However it fetches the plugins files from online repository and its been referenced in the play program. This method works only if the internet is connected.
Can i download the actual plugin file from this site and save it in my local system and generate a play war file offline?
Partially Yes. You need to go online only once to get all the dependencies downloaded. Once you are done, then you can work completely offline. Also I would like to mention this link: http://brainstep.blogspot.in/2013/10/how-to-install-play-2-war-bare-minimum.html
There is no official way for doing this, but if that aren't to much files, you can use Fiddler Web Debugger to look what files get downloaded, save them to your hard disk and then activate Fiddler's Auto responder. Everytime the Application requests the Files from the Server, Fiddler replies with the Files on your Hard disk.

Adobe air - download links not working

I'm trying to turn a website of mine into an executable for Windows with Adobe Air.
Everything seems to be in order, but I couldn't quite figure out how to save a file from a download link.
I saw this answer that is suggesting that this is not supported by air, but it is possible to download links via an installed browser (IE for example?)
I also tried to search the official documation and found that there are loading external data possibilites but as I didn't see a way to save the incoming result locally, i couldn't get that to work.
1) How can I accomplish this? Are there working code examples available anywhere?
2) How can I make files download on a web browser from an AIR app?
3) What other options do I have?
Thanks a lot.
I couldn't get a download to work with the HTMLLoader class too.
The only working solution might be to start the download with a browser.
var url:String = "site.com/download.zip";
var request:URLRequest=new URLRequest(url);
navigateToURL(request, '_blank');