Questions tagged [handlers]
225 questions
2
votes
3 answers
How to pass only second argument of a bind function?
I'm using a generic EventEmitter instance:
EventEmitter mEventHandler;
So I've defined this bind:
function onSetMin = bind(&ILFO::SetMin, this, placeholders::_2);
mEventHandler.on(kParamID, onSetMin);
and the on such…

markzzz
- 47,390
- 120
- 299
- 507
2
votes
1 answer
IIS 10 giving 401.3 access denied for PUT, DELETE, or PATCH for specific path
I'm working on a REST API, and doing test and prototype work on Windows 10 with its native IIS install. The API is written in C#. I've created a class that derives from IHttpHandler, and derive from that to implement classes for my API's nouns.…

SQLGuy
- 41
- 4
2
votes
1 answer
Attaching two different Exception Handlers to program?
In my application, I am using the free NBug crash reporting library. In order to integrate it into your project you need to add these two lines in your Program.cs:
AppDomain.CurrentDomain.UnhandledException +=…

nerdalert
- 441
- 1
- 5
- 22
2
votes
1 answer
Updating a number in a TextView every second
I'm writing my first app in which I need to update the number in a text view every second until a button is pressed. Using a handler seems to be impossible because the number is created and stored outside of the handler, but it can't be declared…

FutureShocked
- 779
- 1
- 10
- 26
2
votes
1 answer
Drupal Views api, add simple argument handler
Background: I have a complex search form that stores the query and it's hash in a cache. Once the cache is set, I redirect to something like /searchresults/e6c86fadc7e4b7a2d068932efc9cc358 where that big long string on the end is the md5 hash of my…

Icode4food
- 8,504
- 16
- 61
- 93
2
votes
2 answers
Coding "Simon" for Android; Difficult to pause code
I'm coding the game "Simon", and I'm having some trouble figuring out how to use runnables and handlers. This is for the part of the game where the colors light up in a sequence pattern, right before the player has to press the buttons.
This is the…

bluexmarker
- 373
- 1
- 4
- 13
2
votes
2 answers
Why non-root logger is not writing any log to log file?
I want to write into two log files by using two loggers with following .ini config…

Tejas
- 189
- 2
- 9
2
votes
2 answers
Bug with my own JavaScript library. Can't see where it is
I have my own JavaScript Slider library, which I've developed. It works well, when I only initialize one slider, but has some problems, when there's more than one Slider initialized.
As you can see here:
http://jsfiddle.net/bingo14/bhymxrqr/6/
The…

ctrlz
- 1,073
- 1
- 10
- 12
2
votes
2 answers
Best way to connect multiple event handlers to one event in C#?
I'm writing a simple encryptor program.
When I type in the first textbox the encrypted text appears on the second textbox on the fly using the textchanged event.
I also have a button to load key files.
My problem is if I type first in to the textbox…

user3548320
- 21
- 1
- 5
2
votes
0 answers
submitting message Django-Newsletter
(I'm new at django) I just installed django-newsletter app (https://www.djangopackages.com/packages/p/django-newsletter-dokterbob/) and when I try to submit using:
python manage.py runjob submit
I get:
No handlers could be found for logger
What…

Sam
- 41
- 7
2
votes
1 answer
Android updating ui thread elements - best practice?
I have an app that shows some measurement values like temperature, speed and so on.
I want to stick more or less to the MVC pattern so I got something that receives the values when they appear (from a bluetooth component) and sorts them to the…

Ginbak
- 105
- 9
2
votes
2 answers
2
votes
3 answers
Perl Threads - Capture Exit
I have code that spawns two threads. The first is a system command which launches an application. The second monitors the program. I'm new to perl threads so I have a few questions...
my $thr1 = threads->new(system($cmd));
sleep(FIVEMINUTES);
my…

Ryan
- 441
- 1
- 5
- 12
2
votes
1 answer
How to start the runnable immediately using handlers
How can we start the runnable immediately instead of adding the runnable to the message queue....can we do that...?
What I observe is that the post method is having some delay in executing.

amj
- 367
- 1
- 8
- 26
2
votes
1 answer
How do I forward to another URL from a Jetty handler?
Somewhere in our chain of servlet filters there is a filter which forwards the request to the sign-in page when a 401 error is sent, as a usability tweak.
I'm trying to convert this to a Jetty handler because someone wants all web applications to be…

Hakanai
- 12,010
- 10
- 62
- 132