I'm working on this Silverlight 3.0 Project that is completely filled with Async Calls to a Web Service. At the Main Page it fetches some needed data in order for the application to work correctly using 3 Async Calls. Right now the application does not disable any controls while executing those calls meaning a user can interact with it w...
I initially asked this question here, but I've realized that my question is not about a while-true loop. What I want to know is, what's the proper way to do high-performance asynchronous message-passing in Java?
What I'm trying to do...
I have ~10,000 consumers, each consuming messages from their private queues. I have one thread that'...
Hi All,
I have some code that's using the JavaComm API. It implements SerialPortEventListener and the reception of characters happens asynchronously. This works fine except that my serialEvent callback is notified after about 17 chars have been received, for my packet parsing I need it to be notified when <= 6 characters have been rec...
Hi,
Wonder if somebody is able to clarify the following;
Using the aysnc google analytics code placed in the head of the document as follows
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-123456-1']);
_gaq.push(['_setDomainName', '.somedomain.co.uk']);
_gaq.push(['_trackPageview', pageUrl]);
(function() {
var ga = d...
I've been coerced into applying Microsoft's PageAsyncTask objects, which I am new to (before I've always used jQuery AJAX calls). I've got everything working just right except once the work is done and the endHandler is called, how do I have the calling page update its contents?
Basically my async function runs a slew of database operat...
Hello,
Is there a way to wait for hide function in a loop? I mean if I have this structure in html:
<div class='example'>
<span> One </span>
<span> Two </span>
<span> Three </span>
<div>
And in js I want to do something like this:
$('.example span').each(function(i, span) {
$(span).hide('slow');
});
I believe js is...
I have a asynchronous task like so:
dispatch_async(dispatch_get_main_queue(), ^{
myAsyncMethodsHere;
});
Is there a way to be notified when the background task is complete?
Or to call a method upon completion?
I've read through the documentation and have looked into dispatch_after, but it seems to be more designed to dispatch t...
I'm trying to get the percentage of the progress from a EJB Asynchronous process??, is this possible?
or maybe any ideas ????
Thanks in advice
...
Basically I have a site where I want the user to input something, have it go to the server for processing and then return it asynchronously, load the contents into a div and then fade it in with jQuery. What is the best way to the do accomplish this?
Currently here is my "solution":
$(document).ready(function () {
$('#output-box')....
I'm trying to load some images in table cells asynchronously using ASINetworkQueue. I just can't figure it out and can't seem to find a good SIMPLE example.
The best I can find is this, but its just totally overkill and a little too complicated for me:
http://kosmaczewski.net/2009/03/08/asynchronous-loading-of-images-in-a-uitableview/
...
Hi,
I have a client that registers with JMX for notifications.
Whenever that JMX Notifications Emitting application is restarted I get an exception
01/08/2010 16:28:04 com.sun.jmx.remote.ws.client.JMXWSManStub fetchNotifications
WARNING: Exception java.io.IOException: java.net.ConnectException: Connection refused: connectoccured during...
It states in the MSDN documentation that:
at the very minimum, your state parameter must contain the connected or default Socket being used for communication. Since you will want to obtain the received data within your callback method, you should create a small class or structure to hold a read buffer, and any other useful informatio...
Im currently developing a program that uses a scrollable/zoomable image as the main user interface. It uses a canvas which is manipulated by a matrix to traverse a large area. Instead of loading a super large bitmap into memory, i wanted to employ a tile system to load 256 by 256 squares. My problem is that the app will lag when the ima...
[My Setup: Java EE 6 application, with EJB3.1, CDI/Weld, JSF2 running on Glassfish 3.0.1]
I read some articles about the new @Asynchronous methods in EJB3.1, but none of them mentioned the dangers of asynchronous methods and what you really have to care about.
In my app i'm having an @Asynchronous E-Mail service, sending lots of mails...
Hi,
I need a hint how to implement asynchronous function calls in C/C++ ( or names of frameworks/API calls for windows and/or linux )
The use case is following: A parent thread calls a function. The function creates a child thread and returning, so call is non-blocking and parent thread can continue to do some job.
For example pthrea...
I recently ran into an issue at work in which, at least according to my knowledge of JavaScript, I got back an impossible result. I'm hoping someone can explain whats going on here and why the actual results differ from my expected results.
Expected results in console
id: a , x: 1
id: b , x: 1
id: c , x: 1
Actual results in console
...
I am working on WCF client-server app. where the client has to be constantly synchronized with the server (at least every 10 seconds). At the moment I'm polling the server to see if anything has changed. If so, the changes (sometimes tens of db records) are pulled down to the client.
My design felt a bit clunky so I had a look at how g...
What does Asynchronous means in Ajax? and also how does Ajax know when to pull data without server polling?
...
hi there,
i´m currently dealing with a problem where i have to dispatch hell a lot of functions to another thread to prevent the current function from blocking.
now i wonder what the fastest way is to perform this task.
currently i´m stuck with
ThreadPool.UnsafeQueueUserWorkItem
as its slightly faster than the regular QueueUserWorkI...
I have a class which has to send and receive data using sockets in Silverlight 4.
It has to implement a pre-existing interface, so some things might look somewhat weird, but
here it is:
public class TcpDataTransportClient : IDataTransportService
{
private const string TCP_ADDRESS_SETTING = "tcpaddress";
private const string TCP_...