communication between flex AS3 and asterisk server? - actionscript-3

I'm trying to upload a file using Flex to an Ubuntu server running asterisk. The server-side upload code looks correct; when I test it locally it successfully uploads the file to the server.
When I deploy the solution to our main server it doesn't upload the file. Debug mode shows an error: crossdomain.xml could not be found.
I have a crossdomain file, but I don't know where to put it. The main server is at 192.168.1.143, and the Ubuntu server is at 192.168.1.137.
After some reading I found it should be accessed from 192.168.1.137:8088/crossdomain.xml.
Where do I need to put the crossdomain.xml file on the Ubuntu server?

The crossdomain.xml file will be search on your webserver main page, which is on port 80 of the server you're trying to connect.
If you're using Apache, lighttpd, or others, and don't use a VirtualHost, chances are your must put your file at /var/www/crossdomain.xml.
You must be able to access it using http://192.168.1.137/crossdomain.xml, without any port indication.

Related

Remote InDesign server entrance to my local folders

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.

Creating a conf file for a web server

For my web database I am trying to create a webserver so I need to make a conf file. When I try to edit my conf file and save it wont let me and says permission denied. I have already given myself read and write access, but I still don't have access to the edit the file. Here is the link to the resource I am using to set up my webserver : https://github.com/orsenthil/adminer-on-mac
I've been working with local web servers and mysql on Mac for over 15 years, so this recommendation is coming from that experience.
OS X updates will destroy your local web development environment every time you do a major OS update... Don't use the built in Apache, PHP and MySQL. Use Homebrew to install independent web server components.
Now to your problems:
/etc/hosts is a file not a directory. Each line is a separate record. The line they gave 127.0.0.1 apache.local just means that your local computer will be accessible from http://apache.local. This hosts file can be used to avoid DNS lookups for any website.
The conf file you are referring to is the Apache VirtualHost file? OS X is very protective about files in etc. Have you tried sudo? If you change the permissions to your user, Apache may not be able to function.

How could I automatically upload files from my directory to server? [duplicate]

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)

how to upload to sftp phpstorm (mac)

So i've gone to Preferences->Deployment->Add->SFTP. I specified all the of the information correctly and testing the connection worked fine. I can see all of the files on the sftp in the remote server browser. However, when I click on a local file and try Upload To... I can only see the old mounted server connection (migrating servers). How can I set up my SFTP connection so I can easily upload the files.
You'll need to mark the Remote Server as "Default", and you'll want to make sure you have the Project Dir to Remote Dir mappings set up correctly.
See: http://www.jetbrains.com/phpstorm/webhelp/deployment.html

Access File Using http From Local Server

I need to access some image file from my PC of any other PC in local. I have IP address of the server PC. I need to access the file (eg:img.png) at the server using http, Like http://192.168.1.30/home/user/img.png. So for accessing file from server do I need to install web server at the server side ?. And what are the procedure I have to follow on the server side?.
I want to do this in Linux.
Thanks in advance.......
Change your hyperlink tag by
\\IPAddress\folder\filename
Ensure you have python on your computer.(linux)
verify that you have linux by running python -V you should see something like v3.10
Navigate to the directory that you want to share files from
run python -m http.server 8000
Go to another device and access this newly created server by typing http://ipaddress:8000
You should see the files