I've got a couple of projects where it would be useful to be able to interact with an SVN server from Google App Engine.
Pull specific files from the SVN (fairly easy, since there is a web interface which I can grab the data off automatically, but how do I authenticate)
Commit changes to the SVN (this is the really hard/important part)
Possibly run an SVN server (from an App Engine app, I'm guessing this isn't possible)
I would prefer a python solution, but I can survive with Java if I must.
you can try using SVNKit with the java runtime
DryDrop (http://drydrop.binaryage.com/) is a Git based solution you may want to look at for comparison of what you're trying to do.
You can talk to a svn server(if setup with apache running mod_dav_svn) using the webdav protocol. See apache's implementation details Problem is that google appengine's urlfetch system doesn't allow for HTTP request methods other then GET, POST, HEAD, PUT and DELETE. (webdav uses custom request methods like PROPFIND, PROPPATCH, etc..) So at this time you are restricted to just viewing the contents of the svn server.
You can however use google appengine to implement a webdav provider. Have a look at the gae-webdav project for more information.
Related
I am implementing OpenTok/Vonage into our android app in order to enable video conferencing. I'm looking for advice on getting started. For example recommendations on the kind of server I should deploy for the implementation. I notice that a limited functionality server can be deployed at Heroki, but what about something full functionality? Any examples of setup of one of those? Where do I deploy it? Can it operate on AWS or Azure? What spec should I use for the server? How do I implement and install the server? Again all things that aren't touched upon in the Vonage documentation. It's almost as if you should someone intuit it like arcana.
OpenTok Developer Advocate here.
There's a lot to unpack in that question(s). May I suggest asking in the Vonage Community Slack?
Quick answer on the Server SDKs: you can run all of the OpenTok Server SDK code with full functionality in any cloud, including Heroku/AWS/Azure/Google/etc.
As for specs of servers, that is something that is specific to your use cases, bandwidth, expected load, etc. There's not a good way to provide details there with the information you provided.
Alright, me and a few others are looking to work on a project together, and we have our own VPS to host the server as it runs, but the problem is that we need to be able to access the source at the same time to edit things; now I'm wondering if there's some sort of way to set it up via FTP or something, and if so, what if we were to unknowingly access and save the same file, it would cause loss of data.
How can a few people and I access a source project hosted on a server at once without loss of data? To clarify, we're using Netbeans as our IDE, and it is a Java project, JDK 8, contains anything from text files, to image files, to java source files, so it can't restrict file types.
The universal way to work on a codebase as a group is through a version control system. Version control systems allow for the merging of code to prevent data loss and give you full line-by-line history of your project. Git is probably the defacto at this point in time, and loads of sites will let you host Git repositories for free.
GitHub is one of the most widely used Git repository hosts. They offer free hosting for open-source ("public") repositories.
BitBucket is another monster, and they offer free hosting for both open and closed source repositories.
You can find many others with a simple web search. GitLab supposedly allows you to setup a simple local repository which may be what you're looking for.
You can refer to the Using Git Support in NetBeans article to get started.
I need to write an application that can check out an SVN revision to reference in the local filesystem. Is there an API that makes easy work of this? Other options include getting right down to the socket layer and writing the files myself or (absolutely do not want to do this, but it has to be left as a valid option ->) making calls to an external svn client on the local machine.
I personally like SVNKit for Java. I have used both the IDE plugins and the API itself and it provides plenty of functionality for interfacing with an SVN and diffing specific files
There are Subversion bindings or libraries for C/C++, Python, Java, Perl, .NET and I'm sure other environments I'm overlooking.
SVNKit is the first hit on Google when searching for "subversion Java".
Basically I would like a TFS SDK that I can uses to retrieve files from source control.
Does something like this exist for Java? My searching only returned results from 2007 about rumors that Teamprise was working on a SDK.
You can now download a TFS SDK for Java provided by Microsoft here.
I don't know about an SDK, but if you connect to the TFS URL, you will see that it's actually a standard SOAP webservice with functions pretty much matching the .NET SDK functions 1:1. The rest should be straightforward.
Teamprise plugin is now called "Team Explorer Everywhere" and has a java based command line client (TEE-CLC), also have a look at SvnBridge which would let you use subclipse/other svn clients to connect to TFS.
Another way, suggested by Robaticus in comments is to use the command line utilities that come with TFS. Simple and reliable, although less integration.
Added: The CLI utilities come with TFS itself. A quick google query reveals the official documentation.
A third possibility that came to my mind is to use a Java-to-.NET bridge. There are a few to choose from. This way you can use the original MS libraries.
I'm planning a web service providing file download service for handheld devices.
The requirement I have is use HTTP or FTP Protocol to build a server, use database, store files and provide Command Line Interface for devices to download requested files. No platforms and languages limit.
I'm a student and I'm learning Java Web(practicing Structs2, haven't started learnning Spring or Hibernate), and this is just a simulate project which may be required in a E-Book company. So I'm feeling like to use Java to build the service.
I'm now doing the requirement analysis, please give me some suggestions. About how to design the structure, book files stored in database or filesystem, any open source library to refer to... About any aspect is OK.
I just want to know what can I do to make it better and where I should be paying attention to.
You could implement a simple Servlet, which returns files based on request arguments.
Then, use your command line client to call the Servlet with the correct parameters, depending on what the user typed.
EDIT: more info on Java Servlet technology here. If you are learning Struts, you could implement your servlet there, but it might be a bit of overkill.