remote

How can one check to see if a remote file exists using PHP?

The best I could find, an if fclose fopen type thing, makes the page load really slowly. Basically what I'm trying to do is the following: I have a list of websites, and I want to display their favicons next to them. However, if a site doesn't have one, I'd like to replace it with another image rather than display a broken image. Any ...

Eclipse 3.4 + Tomcat 6.0 + Remote Debugging with Console Output

Hi! I'm using this configuration: Eclipse 3.4 + Tomcat 6.0 + Remote Debugging It's working great, I can debug a servlet and so on, no problems. But, my servlet console output is going to $CATALINA_HOME/logs/catalina.out. Is that possible to redirect to the Eclipse console window? I use Log4J in my project but every entry goes to ca...

RuntimeException: Could not start Selenium session: Internal Server Error

I am trying to detect a midair collision problem (simultaneous editin) using selenium. So I start a selenium session A with following (Super Class) selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL); selenium.start(); selenium.open("index.cgi"); then I try starting a different selenium session B pointing to a d...

Configuring one ear to call remote ejb3 on another ear in JBoss

I am new to EJB3 and am missing something when it comes to accessing a @Remote @Stateless bean deployed as an ejb module inside an ear file. I want to access a remote bean in lima.ear from soup.ear. Here is what I am doing now (somewhat abbreviated): //deployed under lima.ear @Remote @Stateless public interface LimaBean { String s...

How do I get the exact time for a remote server in C#

In C#, how do I query a remote server for its current time? Similar functionality to net time \\servername but returning a datestamp that includes seconds. Thanks ...

Sql Server 2005 executing exe on remote machine or connect to server application

Hello, I'm try to figure how to create sql server stored procedure that when a condition is met executes an executable, with command line arguments, on a remote machine within the network. I could write my own little server application to handle the communication sent from the stored procedure for the executable, but I'm not certain ...

Git, Can't clone repo on windows

Hi, I'm trying to use git on windows to clone a remote repository. I can clone it on my mac fine but on windows I get a problem. WHen using git bash to clone, I get a message saying the server's host key is not cached in the registry. It asks me to preess y or n to trust the host. THe problem is that if I press y or n nothing happens....

JavaScript: How to get users IP ADDRESS ?

Is it possible using only JavaScript to obtain the user's IP Address? If so, how? ...

Unable to Connect to Tomcat Using VisualVM

I am having problems monitoring a remote Tomcat process. I'm trying to use the Java 6 versions of JConsole/JVisualVM. I have jstatd running on the remote server with the appropriate security policy. The process is started and the TCP connections are available. When I try to connect through JConsole, I get 'Connection Failed:jmxrmi'...

Django users and authentication from external source

I have a Django app that gets it's data completely from an external source (queried via HTTP). That is, I don't have the option for a local database. Session data is stored in the cache (on my development server I use a SQLite database, so that is no error source). I'm using bleeding edge Django 1.1svn. Enter the problem: I want to use ...

How to neutralize injected remote Ajax content?

I'll be inserting content from remote sources into a web app. The sources should be limited/trusted, but there are still a couple of problems: The remote sources could 1) be hacked and inject bad things 2) overwrite objects in my global names space 3) I might eventually open it up for users to enter their own remote source. (It w...

Run a windows xp bat script remotely from a ubuntu machine

Is it possible to run a windows xp bat script remotely from a ubuntu machine via command line? ...

Using Remote COM+ with C#

Hi, I'm starting to use COM+ development due to a necessity on a project, and I started to create a proof of concept based on this just understand how it works. I could create a simple Component Service with C# by extending System.EnterpriseService.ServicedComponent, and setted its assembly attributes and it worked on a local machine. O...

Load SQLite database from remote SQL Server?

I'm using SQLite ADO.NET in my project so that I can unit test using an in-memory database. I want a copy of my real database but it is across the server. From what I've read, it looks like I have to specify ":memory" for the data source for the SQLite connection string. My problem is that I don't even know if it's possible to load a ...

How can I remotely deploy a rich client in .Net?

Currently we run our web applications on a thin client browser IE 6 and it is slow. We are a non-profit organization. All our offices are linked via VPN. Opera 10 browser allows one to convert one's PC into a server. I am thinking of deploying our application and Opera 10 on every client, meaning that the every client would run a server ...

Way to use vim work on a cache of a file instead of the actual file?

I typically ssh to another computer to do my development, using vim (don't post "Use Emacs" please). However, I notice that vim is very slow when my internet is slow (duh). EDIT: I use a terminal on my local machine and open the remote file with a vim scp://host/file command. However, when I do this, every keystroke that I put in causes...

How to get the size of a remote file with iPhone SDK ?

Hello everybody, My iPhone application downloads large files from the internet (videos, for instance). I'd like to display a progress bar, so I need to get the size of the remote file I'm trying to download (before downloading it, of course). I've searched, again and again, but nothing is working. Is there any way to do that ? Thank ...

Upload file button for remote files

Hi all, Here's the scenario. I have a simple browse button. Right now, it opens up the folder hierarchy on my local computer. (PC). However, I want to pick a file from a remote unix server which I have access to. Is there a way to display the file hierarchy of the remote unix server WITHOUT having to mount the drive? Are there...

Following a Javascript link when scraping from a remote site using PHP

Given remote page: http://example.com/paged_list.aspx which uses a Javascript function call to display several pages of tabular data: javascript: show_page(1) javascript: show_page(2) and so on. Users click on the page links to display each page, which triggers a reload but with no query string, ie the URI remains the same. In scrap...

What is the fastest way to determine if a URL exists in PHP?

I need to create a function that returns if a URL is reachable or valid. I am currently using something like the following to determine a valid url: static public function urlExists($url) { $fp = @fopen($url, 'r'); if($fp) { return true; } return false; } It seems like there would be something faster, may...