Questions tagged [handlers]

225 questions
2
votes
1 answer

How to Write Network Protocol Handlers

I'm trying to write my own protocol so that multiple servers can pass data and connect with each other, kind of like mongo://. I have been looking at TCP & I understand ports, but how do I write something so that people can just do something like…
Fouad
  • 43
  • 3
2
votes
2 answers

javascript events handlers don't work properly

I have some problem with javascript event handlers and I really want to know what am I doing wrong. Here's the thing, I want to alert the hovered div's width, but as soon as the page is loaded, the alert appears. Here's the HTML:
2
votes
0 answers

Android: Background thread in Singleton class

I have Singleton class which holds all the data (visitors of some site) and the data is updated by a service. I have an interface, which is implemented by an (list) activity (which shows visitors), so now as I get the data updated, I simply call the…
Asymptote
  • 1,140
  • 2
  • 13
  • 29
2
votes
1 answer

Couchdb update handlers

Following: CouchDB Document Update Handlers (in-place updates) and http://wiki.apache.org/couchdb/Document_Update_Handlers I'm trying to create my own function which increment an integer for now, but I'm…
fjbelchi
  • 137
  • 2
  • 10
2
votes
1 answer

Android: runnables in different class files

I am creating an android app and I am connecting and exchanging data with a remote server. Up to now, I have been using threads and handlers withing my activity class to interface with the server, but the code is getting increasingly messy and long.…
Todd Davies
  • 5,484
  • 8
  • 47
  • 71
2
votes
1 answer

Android: Register a SensorEventListener with a Handler?

I'm new to Android and I'm trying to write an app that will send sensor data from a phone over the network to a PC. I know I shouldn't do 'expensive' operations on the UI thread. Android allows you to register a SensorEventListener with a…
Gautam
  • 4,006
  • 3
  • 32
  • 37
2
votes
5 answers

GWT Event Handling best practice

I'm quite new to interface design and struggling to figure out what the best way to handle events is. In the straight forward case of the handler and the (in this case) buttons causing the event being in the same class, that's fine, I get it. The…
dpwr
  • 2,732
  • 1
  • 23
  • 38
2
votes
4 answers

Android, Threads - handlers/asynctask

Am a noob learning Android via a book and for threading I see there are 3 main ways that are explained in the book: Handlers via messaging Handlers via post Asynctask All 3 seem good, my question is: Is there a specific time when you use…
Ryan
  • 9,821
  • 22
  • 66
  • 101
2
votes
1 answer

how can implemented two methods implement one after one need some time using uihandlers

i am implementing one chat messages related application in this main activity call one method and second method every ten seconds refreshing this method applied ui handler refreshing purpose both running at same time my intension is one method…
Narasimha
  • 3,802
  • 11
  • 55
  • 83
2
votes
2 answers

Extending Windows search index with a filter handler that works with a custom file format using C#/.NET

Is It possible to extend Windows search index with a filter handler that works with a custom file format in .NET/C#? I want the indexing to work for some custom file types. For some custom file formats, I need to implement a filter or property…
Jatin Sehgal
  • 956
  • 2
  • 17
  • 37
2
votes
1 answer

Customize Log Format in LoggingHandlers Implementation in Gorilla Handlers In GO

I want to customize logging format in gorilla handler implementation in LoggingHandler. Basically It gives Common Log format as a default.I want to customize based on the request headers. Assume I pass the tenantId value as a one request header.Then…
Sandun Priyanka
  • 591
  • 7
  • 24
2
votes
3 answers

Implicit casting for method handler?

Some code typedef void (*EventHandler) (EventObject* sender, EventArgs* args, void* closure); class Control { void AddHandler(int eventId, EventHandler handler, void* data) } class SubControl { static void mousemove_cb(EventObject* sender,…
Spectral
  • 717
  • 2
  • 12
  • 28
2
votes
1 answer

Chain of Responsibility Scope

Hi I am wondering Chain of Responsibility Scope. In general it is a common used pattern which has handlers in itself and each handler is passing the functionality action to it's supervisor. What I see in the example scenarios is: "Only one related…
Akiner Alkan
  • 6,145
  • 3
  • 32
  • 68
2
votes
2 answers

How to send one advanced special HTTP Request in JMeter to simulate a form submit to a C# Handler?

I'm trying to send one HTTP request using JMeter, the problem is I don't know how to send the parameters. I have my form in frontend in this way:
... .... …
Gabbo CR
  • 31
  • 3
2
votes
0 answers

Injecting a spring bean to a module in AXIS2

I am using axis2 framework for my webservices. I am created a module. Now How can i inject my spring beans to a module . What i means is for examples for services below is the what we generally do.
Narendra
  • 5,635
  • 10
  • 42
  • 54