polling

iOS: PUSH Notifications As A “Trigger” for Webservice Polling?

三世轮回 提交于 2019-12-04 03:37:05
I'm just starting out learning OBJ-C but I do have an end-goal app that I'm working toward building; this app will be a master/detail app on the iPad that will be required to keep itself updated with a webservice in "real time". It will also need to send data to the remote MySQL DB when one of the multiple users (on separate iPad's) performs certain actions within the app. EDIT: As lxt has so helpfully clarified: ""Is it appropriate to use push notifications as a cue to poll a webservice" - the answer is sort of." The example I've imagined for the purposes of this question is a Widget

Shell process' standard output reading in Visual Basic 6

北战南征 提交于 2019-12-03 23:07:35
问题 First, let me say that I'm not a Visual Basic 6 expert... My need is to: launch from a VB6 client code an exeternal .exe file wait for the process to finish and - during its execution - read the messages coming from its standard output "on the fly" (so that I can print it on a text-filed widget or similars). I'm wondering if it is even possible to do that in VB6...after a long search on the Internet I didn't come up with anything. Found a lot of examples of how to use the Shell function, but

jquery polling with smart poll plugin

一个人想着一个人 提交于 2019-12-03 21:55:13
I'm trying for the life of me to get this plugin to work but I'm not understanding the status function so retry is not firing. $.poll(10000, function(retry){ $.get('willfail', function(response, status){ if (status == 'success') { // Do something alert("YES"); } else { alert("NO"); //retry(); } }) }) If I set the get request to '/' it will give me the alert YES message, but as it is, the alert No message never gets fired despite the ELSE. I'm using a jquery polling plugin: https://github.com/jeremyw/jquery-smart-poll Any ideas? That is probably a bad example. The callback passed to $.get will

how to do polling in backbone.js?

不想你离开。 提交于 2019-12-03 21:09:35
Hi i am working on a paly2.0 framework application(with java) using backbone.js. In my application i need to get the table data from the database regularly ( for the use case of displaying the upcoming events list and if the crossed the old event should be removed from the list ).I am getting the data to display ,but the issue is to hit the Database regularly.For that i tried use backbone.js polling concept as per these links Polling a Collection with Backbone.js , http://kilon.org/blog/2012/02/backbone-poller/ .But they not polling the latest collection from db. Kindly suggest me how to

Good C#.NET Solution to manage frequent database polling

余生长醉 提交于 2019-12-03 17:07:46
问题 I am currently working on a c# .NET desktop application that will be communicating to a database over the internet via WCF and WCF Data Services. There will be many spots in the application that may need to be refreshed upon some interval. The easiest solution would be to just put these areas on a timer and requery the database. However, with thousands of clients connecting to the service layer and hence database, these operations would be very expensive to the server. What I have considered

Akka for REST polling

与世无争的帅哥 提交于 2019-12-03 16:34:54
问题 I'm trying to interface a large Scala + Akka + PlayMini application with an external REST API. The idea is to periodically poll (basically every 1 to 10 minutes) a root URL and then crawl through sub-level URLs to extract data which is then sent to a message queue. I have come up with two ways to do this: 1st way Create a hierarchy of actors to match the resource path structure of the API. In the Google Latitude case, that would mean, e.g. Actor 'latitude/v1/currentLocation' polls https://www

RxJava + retrofit, get a List and add extra info for each item

一世执手 提交于 2019-12-03 16:04:10
I'm playing around with RXJava, retrofit in Android. I'm trying to accomplish the following: I need to poll periodically a call that give me a Observable> (From here I could did it) Once I get this list I want to iterate in each Delivery and call another methods that will give me the ETA (so just more info) I want to attach this new info into the delivery and give back the full list with the extra information attached to each item. I know how to do that without rxjava once I get the list, but I would like to practice. This is my code so far: pollDeliveries = Observable.interval(POLLING

alternative to polling database?

☆樱花仙子☆ 提交于 2019-12-03 15:01:05
问题 I have an application that works as follows: Linux machines generate 28 different types of letter to customers. The letters must be sent in .docx (Microsoft Word format). A secretary maintains MS Word templates, which are automatically used as necessary. Changing from using MS Word is not an option. To coordinate all this, document jobs are placed into a database table and a python program running on each of the windows machines polls the database frequently, locking out jobs and running them

Most efficient way to tail/poll a log file in Java [duplicate]

心已入冬 提交于 2019-12-03 13:53:15
问题 This question already has answers here : In Java, what is the best/safest pattern for monitoring a file being appended to? (7 answers) Closed 3 years ago . There are many approaches, one could use create a Program and just call the Unix tail command, however the problem with this is that the process must be installed on a Unix machine with tail installed. The other option is to just read the file, line by line until there are no more lines, sleep for a period of time and then try to read the

Nonblocking Get Character

雨燕双飞 提交于 2019-12-03 12:11:15
Platform: Linux 3.2.0 x86 (Debian 7) Compiler: GCC 4.7.2 (Debian 4.7.2-5) I am writing a function that reads a single character from stdin if a character is already present in stdin. If stdin is empty the function is suppose to do nothing and return -1. I googled nonblocking input and was pointed to poll() or select() . First I tried to use select() but I could not get it to work so I tried poll() and reached the same conclusion. I am not sure what these functions do exactly but from what I understand of poll()'s documentation if I call it like so: struct pollfd pollfds; pollfds = STDIN_FILENO