server to server upload - server

I know nothing about coding, API's, etc I just have a very simple question:
When I want to upload to website, e.g. youtube, soundcloud, etc WHY is it not possible to point to a file on a server, rather than one on my local computer?
I've tried setting up onedrive as a network drive in windows 10 and I can point to files there, but all that happens is the file is transferred THROUGH my computer and uploaded back up.
Is there an easy solution to this problem?

Related

Upload and Download in Studio 5000

I want to go online on my PLC, bit it seems I need to download or upload the program, I didn't make any changes on my program but I'm in doubt that I could make a mess with the machinery that is connected to the PLC, If I upload the program something might happen??
I'm trying to not make a mess with machinery that is connected to the PLC
In Studio 5000:
Upload means copy the program that is currently running on your PLC to your computer.
Download means deleting the program and all data values that are currently running on your PLC and replacing them with the offline program on your computer.
In order to go online, the program you have open on your computer needs to match the one in the PLC. If it will not let you go online, it means that the programs do not match.
In general, if you are in doubt, upload is the one you want to choose, as this preserves the program that is currently running. You do a download only when you know that you have made changes that need to be transferred to the PLC.

Move files on network to different locations via iPhone app

I have files and directories setup on a Windows network share (\foo). I want to be able to move the files into different directories (eg. \foo\bar\baz.txt --> \foo\quux\baz.txt) via an iPhone app.
However, having failed to find a solution I think it might be a better idea to write a separate program that runs on the server that handles moving the files and have the iPhone app as a client that issues instructions to the server about what files to move.
Any suggestions on this would be much appreciated.
Edit: Since someone has voted to close this for not being clear... the question is: I want to move files on a network share from one directory to the other.
How do I do this using Objective-C/Cocoa Touch/iPhone SDK?
To access the file shares directly, you would have to implement an SMB client. I suppose you could pilfer code from Samba's smbclient and see if you can get it building on the iPhone.
A big advantage to using a web service is that you can set it up for access outside your LAN. This is much harder with SMB unless you already have a VPN set up.
An in-between possibility that just occurred to me is to expose the shares via WebDAV on IIS. In fact, this is probably much easier that writing your own service.

Looking for a version control based backup tool

I'm traveling all the time (every 2-3 months, I'm in a new city or country), with no real permanent address. I've managed to work out all the kinks over the last couple of years...except having a good backup/sync solution.
I have a macbook pro & a thinkpad w701 (which runs two different VMs). It's a pain in the ass because making changes on one machine (such as adding some new music or updating some presentations) requires me to keep track of what changed where. And then every couple of weeks, after syncing the three different images, I try to manually sync it out to a backup drive that I carry around.
It's pretty much the most annoying thing ever...especially when I sometimes make changes on the backup drive and I have to remember not to override them.
What I'd really like is something simple that has more of a version control like workflow:
I can push out changes to some
central server (like a commit.
Example: I add some changes to my
music directory and then I can just
commit those changes to backup)
Before the backup happens, I'd like to see a "diff": what files will be
overridden, which one's newer, etc
I can access my files off the server (if I'm making an audio mix and need
to pull out some songs, I'd like to get them from the server. All the
backups can't just be one big binary
compressed zip blob)
Dropbox comes pretty close but it lacks the "commit" & "diff" functionality. I thought about using Amazon AWS but that falls short because I can't see diffs and can't access my files directly off aws.
Any ideas? Or any other solutions? I guess what I'd really like is TimeMachine in the cloud or maybe even a NAS that's securely accessible through the internet
You might want to use rsync. It's a unix synchronization tool you can use it on windows and unix variants (including Mac OS X). It uses delta copying to minimize transfer and hardlinks to minimize backup size.
You can access all files in every backup as though they were normal files. Diffing can be done using traditional tools. It is all command-line based so if you don't want that you will need to find GUI tools, but I don't know which you could use.
You would need a server with a rsync deamon/service. I don't know if there are providers for it but you can set up your own VPS starting at a few dollars a month.
Have you looked at Amazon S3? S3 is data storage mechanism and there are bunch of tools to "sync" your local directory with S3. Some of the tools are:
http://www.vinodlive.com/2007/08/20/amazon-s3-storage-tools/
Out of these , S3Sync should do what you are looking for, I.e. submit only changed files and a mode that would tell you changes before submitting them.

Need advice on improving ftp upload performance in C#

I'm writing software that uploads and downloads a number of files using ftp with a remote server. Download speeds are fine and stay consistent at upwards of 4mb/s. Small uploads are instantaneous. The problem I'm experiencing is when my program uploads a large 40Mb zip file, i'm getting extremely poor performance. It seems to upload in bursts (100-200Kb/s) and then delay for a second and do this repeatedly until the file eventually finishes uploading. Programatically downloading the file from the same server takes 30 seconds tops, uploading the same file to the same server using filezilla takes about the same amount of time. Uploading through the software can take up to 15 minutes. Something is clearly wrong.
I am using the starksoft ftp library to handle uploads/downloads from here: http://starksoftftps.codeplex.com/
Here is an example of the problematic code:
FtpClient ftp = new FtpClient(sourcecfg.Host);
ftp.MaxUploadSpeed = 0;
ftp.MaxDownloadSpeed = 0;
ftp.FileTransferType = TransferType.Binary;
ftp.DataTransferMode = TransferMode.Passive;
ftp.Open(sourcecfg.FtpUserName, sourcecfg.FtpPassword);
ftp.PutFile(backupTempPath, targetcfg.getFullPath() + "wordpress-backup.zip", FileAction.Create);
I've also tried using an overloaded version of PutFile that takes a Stream object instead of a path string. The results were unchanged.
Incidentals: I'm compiling in visual c# express 2008 in winxp inside of a virtualbox instance. I've tried both the debug and production exe's with no change in results.
The issues feels like a buffering or a throttling issue but while looking at the internal code of the ftp classes i don't see anything unusual and I'm specifically setting it not to throttle. Any suggestions or comments about this particular ftp component library?
It might be interesting to know if the connection using FileZilla is an Active mode connection or Passive mode connection. Other things of interest would be to try downloading the file using an FTP client that shows the dialog between the client and the server. I am not sure if FileZilla will show you this information or not.

iPhone data export

I'm writing a data collection app for the iPhone, and want to be able to export my data to a file the user can process on their desktop. I'd generate the file in csv or whatever format on the iPhone and then somehow the user would get the file to their desktop. From reading other questions here and on the rest of the web, it seems like my options are:
1) Implement my own web service somewhere in the cloud which the iPhone app connects to and sends the data. Then my server would either email it to the user or make it available for download somehow.
2) Write SMTP code or use an off the shelf library, which would require the user to enter their own email server details. Then send the data to the user as an attachment.
3) Use some kind of bonjour setup where I give the user an app to run on their desktop and the iPhone app finds and talks to that desktop app.
All three of these seem cumbersome: #1 for me because I have to code/maintain a server (including detecting/preventing spam/misuse, etc). #2 and #3 for the user because there's extra configuration, stuff to run, and things that can go wrong. (Not to mention a bunch more things to code and test for me, potentially with a bunch of desktop OSes and configurations.)
Are these the options people are using? Did I miss any? Which do people like best?
Thanks much!
You can run a web server on the phone, and point the user at that IP address, then serve up an AJAXy web page where they can download the file to their desktop.
Not hard, but they have to type in an IP address or http://myphone.local type address...