polling

jQuery - polling of a job queue

I have a database table which contains a queue of jobs. A separate program processes these jobs. I want to provide a webpage for users to watch the progress of the queue. The Server side scripting to query the table and return it in a JSON format is no problem. I've done some reading on jQuery and the PeriodicalUpdater plugin. I'm wonde...

Polling vs Events for environmental logging to database

I will be using the PhidgetSBC as the device that will be connected to the various sensors (Temperature, humidity, CO2, on/off sensors, range finders, etc). It will also be used to control certain things (think home brew home automation). The code on the SBC will be handling data capture of the sensor readings (if polling it would be e...

Actionscript 3: Memory Leak in Server Polling Presentation App

I'm building a remote presentation tool in AS3. In a nutshell, one user (the presenter) has access to a "table of contents" HTML page with links for each slide in the presentation, and an arbitrary number of viewers can watch the presentation on another page, which in turn is in the form of a SWF that polls the server every second to en...

jQuery Update and Scroll like Polling

Hi Guys, Looking for something written in jQuery which allows polling or a plugin which would allow data updates similar to this website. Anyone got any ideas of something like this in jQuery ? Or how to write something ? ...

Avoiding polling on services like Heroku and Google App Engine?

I do not think there's a way to do this but I thought I'd ask to see what workarounds people are using to avoid polling on Heroku and/or GAE. How are you sending out notifications in somewhat real-time from these apps? ...

Php polling Is it required

Hi, I want to write a php code that displays a html button only till some point of time. Since php is a scripting language and code get executed only when the html page is rendered, I was thinking that instead of polling I can just check the time at the time the page is getting rendered. If the current time does not satisfy my conditi...

WCF Async callback setup for polled device

I have a WCF service setup to control a USB fingerprint reader from our .Net applications. This works fine and I can ask it to enroll users and so on. The reader allows identification (it tells you that a particular user has presented their finger, as opposed to asking it to verify that a particular user's finger is present), but the de...

Poll the Server with Ajax and Dojo

I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function sendRequest() I've now to continuously (every 3sec) send the same ajax Post to the server How can I implement a Server Poll with Dojo? I basically need to call sendRequest() every 3 secs ...

How to get the instance name of an object

I use the below code to write code to query a web method in a specified interval. now in the this.Poll function I have to do this.tmo = setTimeout(this.strInstanceName + ".Poll()", this.iInterval); instead of this.tmo = setTimeout(this.Poll(), this.iInterval); because IE looses the this pointer after setTimeout So I have to pass...

chat application on appengine

I am willing to implement a chat website on appengine.But i found that appengine will not allow me to go with server push.(as it will kill response after 30 sec). So whats the other method that can be used?Will polling cause bad user experince??Meaning will the user have to wait for some time to retrive new messages from server?? What...

Poll multiple desktops/servers on a network remotely to determine the IP Type: Static or DHCP

Had a gentleman answer 90% of my original question, which is to say I now have the ability to poll a device that I am running the below script on. The end goal is to obtain IP type: Static or DHCP on all desktop/servers on a network I support. I have the list of servers that I will input in a batch file, just looking for the code to ac...

Opinions on Client Server communication in a very restricted environment.

I have a server that needs to receive information from a client, web services was my first thought until a limitation was imposed. I am not allowed to setup a normal client/server interaction, because the server is not allowed to listen on any ports. The server is allowed to call out, so I'm left with : Having the server poll from the...

How to poll the popular websites in PHP?

It's springed from this answer: http://superuser.com/questions/129741/how-does-search-engines-update-indexing-so-soon/129743#129743 BTW,for the servers that's polled,is it the same whether the request is just for polling(header information) or complete web page? ...

Rails: periodically use HEAD to check for page changes

I have a Rails app implementing a game, so it's expected that a player will leave a browser open at the game page. When player Alan takes an action himself, I use AJAX requests to update the game page Alan is viewing to reflect the new state. However, when another player (Bob) takes an action, I don't have (or want) a mechanism to push t...

Real Time Twitter Streaming without constant Polling

I was looking at Twitter Streaming API for getting a real-time feed. But I dont want it stored on my server. I just want it pulled from the server and the browser page will retrieve the data from my server's twitter pull URL. But I want to avoid polling my server every few mill-seconds. Is there a way for my server script to keep pushing...

when long polling, Why are my other requests taking so long?

The client makes 2 concurrent requests. (1 which takes 60 seconds - long polling) and another which is NOT long polling - supposed to return right away. It does return right away when I'm not doing long polling. But as soon as I start doing long polling with the other thread, the other one takes forever to execute. Firebug shows that ...

C# Polling a TCP Server

Hey everyone - I am wondering if anyone could help me out - I need to poll a TCP server frequently with a request to receive some real-time data. I know I will need to create a thread in order to talk to the server but I am unsure as to how to make this poll frequently. Any help would be appreciated... ...

Receive input over TCP/IP and use it to update HTML

This has got to be a FAQ, so can someone please just direct me to a "network programming for dummies" URL? The server wants to push information to a client or broadcast to all, when an event happens - as opposed to the clients constantly polling the server "just in case". The client then updates a browser page display. How do I do that...

Asynchronous I/O on Mac OS X

Hi, Meaning the C10K problem, what is the best way to do asynch I/O on Mac OS X (assume to use on Mac and iPhone/iPad)? On Linux our choice is epoll, on Windows is I/O Completion Ports. Top priority is performance and scalability (thousands of connections). UPDATE OK. As Darwin is BSD-like system, my common idea is to use kqueue. Is...

Detecting when a process has finished (but not exited)

I have a program that's run in unix (that I have no control over) that when finished prints 'Completed successfully' but does not exit. I want to automatically detect when the process finishes (by checking the output of the command), so that I can kill the process and so that I can proceed do other activities. The complexity comes becaus...