Download folder through ftp server in rails - ruby-on-rails

I'm trying to write code to download a folder from a FTP server. I looked at the support on gems for ftp downloading. So far, I see syncftp gem is updated most often. Do we have any other options for FTP gem similar to syncftp?
If not, can anyone show me how to download a whole folder from a ftp server connection. I'm able to establish FTP connection and get the list of files from it, but I don't know how to download the entire folder.

Related

Cannot upload asp.net mvc dll files to web server, 'File in use error'

I've revisited my asp.net mvc core 2.0 web site after some 8 months and for some reason I cannot upload any dll files from my local published folder to the hosting server. I keep getting the following error...
"Copying files to remote side failed.
The process cannot access the file because it is being used by another process."
I get this error no matter which method I use, ftp or http.
What's changed in the last 8 months?
Please check list below:
Please ensure you have rights to access the file;
Please check if the FTP port is used by other applications;
Please check if the file is indeed used by other programs.
Please run process explorer and see what process is locking the file.
Also try:
Restarting your visual studio
Restarting your operating system.
Restarting target server or Web Server.
Please provide more information for more help

JNDI: How to monitor Directory server for updates

I want to get notify whenever there is a CRUD operation on directory server. Can some body suggest me, is there any API, to monitor a directory for updates. My directory server is located in some other machine.
Directory Servers record the changes in their Change Log if it is enabled. For example in Oracle Internet Directory cn=changelog is located directly under Root DSE. You can use JNDI APIs to read changes recorded in change log.

not able to download from ftp (anonymous server) ios

How to dowload zip file from anonymous ftp server from AFNetworking ? (ftp://167.114.2.188/Quran/zipfiles/Alafasy/2.zip)
just copy paste your url into a browser or ftp-client: in case of this file it seems the server is overly busy, i get a timeout error on it. A good every purpose ftp-client is Filezilla from https://filezilla-project.org, it is open-source and free and always up to date and same for windows, linux, mac.

can download zip file from one computer but not another

I've got a rails 4.0.5 app that creates a zip file and then sends it to the user via send_file. Per the api docs, "disposition" is "attachment" by default, the environment is configured to use config.action_dispatch.x_sendfile_header = "X-Sendfile" for apache, and apache is configured to recognize this in the vhost.
The problem is that I can download these attachments properly from my home or work network, but clients in another state are receiving zero-byte attachments. They claim there is no firewall interfering with .zip files.
Any ideas on what could be causing this?

Migrating Umbraco 4.7

I want to migrate an exsisting Umbraco install from our developer's website into my private virtual server.
I suppose that the server configuration will be different i.e SQL server maybe different version .. ISS .. an so on ..
I wanted to understand what would you recommend as a method to migrate the install ..
I know my way around manually installing web applications (DB, IIS included).. would that be the case if so where can i find a manual on what settings are required to manually install exsisting Umbarco Website on a new server.
And most importantlly what do i need to request from my developer (i.e. files, IIS XML Config backup, SQL DB backup etc..)
There is nothing special about migrating an Umbraco setup to a new server. You'll need a copy of the entire web directory, and a backup copy of the database.
Restore the database to your SQL server, copy the web directory into a directory on your web server, change the connection strings in the web.config to use your SQL server and assuming you have met the prerequisites for running umbraco, you should be good to go.
Alternatively, If you are not sure that your server has everything it needs, you could use the 'Web Platform Installer' to install an empty 4.7.1.1 install, and then copy your developers files over the files installed by the WPI. Going the this route will make the WPI install the prerequisites if you don't have them.
Then you just modify the web.config where necessary to point it to your database server.
EDIT: If your developer has created any custom controls, you'll want to make sure you get copies of the source code for those as well, but you don't need the source to run the site.
You have a couple of options:
If you don't have Remote Desktop access to the developer's server, ask him to give you a Web Deploy package (if he doesn't have Web Deploy already installed, point him here), and install Web Deploy on your own machine. Then you can just right-click on "Web Sites" in IIS and choose "Import Package".
You could purchase Courier, a pro Umbraco add-on which allows you to do full migrations of Umbraco sites between disconnected servers. You set up a blank Umbraco installation from Codeplex, or use Web Platform Installer to get it (get v4.7, not v5, as they're incompatible with one another - v5 uses MVC), install Courier on both the developer site and your live site, and migrate document types, documents, templates, stylesheets, media, and all other necessary resources over to your new environment.

Resources