Questions tagged [handlers]
225 questions
4
votes
1 answer
nested postDelayed / Runnable / Handler Android
I am trying to use a nested postDelayed because I need to do something after (delayed for) 5 minutes, stop it after (delayed) 30 seconds, do something else, then repeat both events in the cycle again from the start.
I just can't seem to get it…

slinden77
- 3,378
- 2
- 37
- 35
4
votes
1 answer
Trying to set up delegates and handlers to call dynamically by using operation key only
I'm struggling with this new to me Delegates + Handlers thing.
It seems the right solution for me, but I can't tie everything up.
Will try my best to explain what I want to achieve.
First of all, I'm using .NET 4.0 Framework + Photon Server (For…

deb0rian
- 966
- 1
- 13
- 37
3
votes
1 answer
How do you create attribute handlers for methods of an object in Perl/Moose
I think I've got attribute handlers down for perl Natives!
package tree;
has '_branches' => (
traits => ['Hash'],
is => 'rw',
isa => 'HashRef[Any]',
handles =>…

qodeninja
- 10,946
- 30
- 98
- 152
3
votes
2 answers
SSRS Reportviewer Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ReportViewerWebControlHandler'
Hey all I am pulling out my hair trying to figure out why this is telling me that there are duplicates of the key for ReportViewerWebControlHandler.
This is what my web.config file looks like (omitting things that do not apply here)

StealthRT
- 10,108
- 40
- 183
- 342
3
votes
1 answer
Import @socketio.on() from another class in Flask
I'm making a new application with Flask and socketio. The code simplified is like this:
socketio = SocketIO(app)
@socketio.on('connect', namespace='/test')
def test_connect():
print('Client connected')
emit('my response', {'data': 'User…

Adrian Garcia
- 788
- 10
- 14
3
votes
2 answers
RotatingFileHandler throws an exception when delay parameter is set
When I run the following code under Python 2.6
import logging
from logging.handlers import RotatingFileHandler
rfh = RotatingFileHandler("testing.log", delay=True)
logging.getLogger().addHandler(rfh)
logging.warning("Boo!")
then the last line…

Eli Courtwright
- 186,300
- 67
- 213
- 256
3
votes
3 answers
Difference in specifying a named function for handler or anonymous function?
When specifying a handler function in jQuery, is there a difference between specifying a named function for a handler or wrapping your named function in an anonymous function?
Specifying a named function:
$( "#foo" ).on( "click", bar);
versus…

wkm
- 1,764
- 6
- 24
- 40
3
votes
1 answer
Laravel Event Handlers & Listeners
I have a question about Laravel's Event Handlers and Listeners. I have no idea where to start.
I would like to know what exactly are Events and when to use them. Also I would like to know what the best way to organize events and listeners is, and…

Melvin Koopmans
- 2,994
- 2
- 25
- 33
3
votes
1 answer
Issue setting returned text to variable within repeat loop - OS X 10.9.x
The goal of this script is to:
Ask the user how many text replacement (System Preferences>Keyboard>Text) shortcuts they'd like to have. The text returned is set to my variable "gTextReplacementNum" as number. See my second handler "HowMany()"
Have…

Josh
- 35
- 4
3
votes
4 answers
Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents
I have a simple event handler with a ItemAdding event that changes a column value that I need in the ItemUpdated method. After uploading a word 2007 document (*.docx, *.pptx or xlsx) the value of the column is changed, but when I protect the…

Esteban Lalinde
- 95
- 1
- 3
- 9
3
votes
3 answers
Writing a file using fopen function
I wrote the following C program to write data into a file.The program got compiled properly but nothing is getting written in the file.Please suggest modifications if required.
#include
#include
int main()
{
int i;
FILE…

Satish
- 33
- 1
- 1
- 3
3
votes
1 answer
Google App Engine (Python) app.yaml urlhandler doesn't work
I'm trying google app engine with python27.
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /hello
script: helloworld.app
- url: /.*
script: main.app
helloworld.py and…

Babeler
- 45
- 1
- 6
3
votes
3 answers
Update Android UI from a thread in another class
I've seen a few questions on here asking similar questions, but I've not yet seen a suitable answer. Many people have asked how to update the UI from a thread, but they're almost always in the same class as the UI.
What I'm trying to do is update…

ritchie888
- 583
- 3
- 12
- 27
3
votes
1 answer
Does handler can be declared outside procedure (MySql)?
Does error handler can be declared outside procedure?
DECLARE EXIT HANDLER FOR NOT FOUND ROLLBACK;
DECLARE EXIT HANDLER FOR SQLEXCEPTION ROLLBACK;
DECLARE EXIT HANDLER FOR SQLWARNING ROLLBACK;
START TRANSACTION;
INSERT INTO ad_type VALUES (3,…

Miljankg
- 41
- 3
3
votes
1 answer
Http Handler for Image processing
I have created a centralized Image Application for all my other applications.I have created a http handler in that application for response. I pass the path of the image in the Query String and in response it find the image and add watermark and…

शेखर
- 17,412
- 13
- 61
- 117