How would I load data from xlsx (local copy) into cloud9 IDE mysql - ? How would I set the path for the local hard drive, and what else would I need to do ?
Cloud9 cannot use local files. The only way this would work is if you were using a Linux machine that Cloud9 is connected to as an SSH workspace.
You can upload the file to the host by using File > Upload Local Files... . This will create a copy on the cloud host that can be used by your code.
Related
I have used InDesign server locally and in properties, it goes like
indesign.instance=http://localhost:20055and works fine.
Now I try to use instances running on a remote server and in properties it goes as follows:
indesign.instances=http://##.#.#.11:7700,http://##.#.#.11:7701,http://##.#.#.11:7702
and my app connects to the server where InDesign server instances are running. When I execute my script it fails with an error that the file does not exist or cannot find a directory. I understand that instance does not know anything about my file system. But I know for sure it can be connected.
Could you please advise me on the correct approach?
You could share the file system you are working on over a shared folder. Then your Client will place a file into the shared file system and the server can find it.
Or, if it is a remote server without any direct network access, build a document service to upload a file to the server over HTTP.
An ASP.NET application (running on Windows server/IIS 7) has to transfer big size files uploaded by current user to an external SFTP server. Due to the file size the idea is to do this asynchronously.
The idea is that the ASP.NET application stores the uploaded file on a local directory of the Windows server. The current user can continue his work. A Windows service or a Quartz job (other tools(*)/ideas?) is now responsible to transfer the file to the external SFTP server.
(*) Are there existing tools that listen on changes of a Windows directory and then move the files on a SFTP server (incl. handling communication errors/retries)?
If there is no existing solution, do you have had similar requirements? What do we have to consider? Because the connection to the SFTP server is not very stable we need an optimized error handling with auto retry functionality.
To watch for changes in a local directory in .NET, use
the FileSystemWatcher class.
If you are looking for an out of the box solution, use the keepuptodate command in WinSCP scripting.
A simple example of WinSCP script (e.g. watch.txt):
open sftp://username:password#host/
keepuptodate c:\local_folder_to_watch /remote_folder
exit
Run the script like:
winscp.com /script=watch.txt
Though this works only, if the uploaded files are preserved in the remote folder.
(I'm the author of WinSCP)
I have copies of WAMP running on some computers. All copies of WAMP use the same database. So far, this database was in the WAMP-installation on each of the computers and I had to synchronize these databases manually by exporting and importing dump files.
Now I started using an external hard drive on which I made a copy of the database files. When I connect this external hard drive to any of the computers and replace in the file my.ini the path to the database by setting
datadir="G:/mysql/mysql5.7.9/data"
where G is the drive letter of the external hard drive, everything works fine.
However, when I attach the external hard drive to the usb port of my router and make it available on any of my computers with the drive letter Z, and when I adapt the file my.ini by setting
datadir="Z:/mysql/mysql5.7.9/data",
WAMPSERVER does not start up the mysql service and when I try to open phpMyAdmin, it fails with the message that it cannot connect to the MySQL-server.
I would be very grateful if someone can give me some idea why WAMPSERVER does not start up correctly with the network drive and how to overcome this problem.
My Django Application is running on "http://culhapartners.pythonanywhere.com/Front/Front_End"
Actually all this data for the website is in Django database on this online server.
My problem is "I want to run this website even if there is not internet connectivity"
how to move all database data to local pc directory?
Any suggestion as a starting point
Thank you
Regards
Noman
You can create a data dump with the dumpdata management command, then transfer this file to your local computer. Then you can load this data with the appropriately named loaddata command.
Or, if its a lightweight website and you are using sqlite, you can just copy the database file to your local machine.
I'm using virtual machine for the environment where I develop. PhpStorm is installed on host machine running on Windows. I can configure PhpStorm to work with remote files however PhpStorm always requires that local files be created which if modified then uploaded to remote server with FTP. Is there any way I can work with remote files without without having local copies of the files? Maybe with mounted folder?