Questions tagged [handlers]
228 questions
5
votes
2 answers
How do I pass Runnable objects to a Handler?
I am learning via a book and it gives me this example:
Handler handler=new Handler() {
@Override
public void handleMessage(Message msg) {
bar.incrementProgressBy(5);
}
};
and
Thread background=new Thread(new Runnable() {…
![](../../users/profiles/604843.webp)
Ryan
- 8,933
- 19
- 57
- 97
5
votes
1 answer
Azure / Image request 502 (Bad gateway) error - intermittent
I'm working on http://www.lovethesales.com - and have come up against an annoying issue.
As you'll probably be able to see for yourself on the homepage, sometimes, and intermittently, image requests will fail with a 502 Bad Gateway error. This seems…
![](../../users/profiles/316300.webp)
Dave Bish
- 17,987
- 6
- 40
- 60
4
votes
2 answers
How can I make a Windows Explorer file preview screen in WPF?
I'm working on an application that will have attachments, and I would like to create a type of display like in windows Explorer, where you choose a "Details" view, and also show the preview pane.
I would like to be able to show a thumbnail view of…
![](../../users/profiles/32772.webp)
Russ
- 11,560
- 19
- 55
- 72
4
votes
1 answer
Does Handler.sendMessageDelayed() work when phone goes to sleep?
I am developing an android application and I want to reduce the power consumption. The method I believe is to put the phone into sleep mode whenever the user activity stops for a certain threshold period. I have three questions regarding this.
If I…
![](../../users/profiles/443380.webp)
crazyaboutliv
- 2,769
- 9
- 29
- 47
4
votes
2 answers
Do logging handlers use separate threads?
Python's logging handlers are great. Some of them, such as the SMTPHandler may take a long while to execute (contacting an SMTP server and all). Are they executed on a separate thread as to not block the main program?
![](../../users/profiles/348545.webp)
Jonathan
- 84,911
- 94
- 244
- 345
4
votes
4 answers
How to add event handlers to composite panels in GWT 1.6
This is probably a really simple thing, but I don't know how to implement the following.
package mods.client.resultSelector;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import…
![](../../users/profiles/21317.webp)
Stephen Cagle
- 12,627
- 14
- 49
- 83
4
votes
1 answer
Allowing DLL download in IIS7
We are using IIS7, currently in classic mode. We have an ActiveX control on our site that needs a DLL to get downloaded to Client. To allow this to happen, we are removing the Execute permission for the DLLs and EXEs (in Handler Mappings).
The…
![](../../users/profiles/993700.webp)
rkwindows
- 41
- 1
4
votes
4 answers
In C#, how can you easily change the name of an event handler?
In VS2008, if I double click on the event handler VS creates a default event handler with a default name, e.g. combobox1_SelectedIndexChanged.
Say, for example, i now rename combobox1 to cbStatus. It still has the same event handler, so i now change…
![](../../users/profiles/355657.webp)
Simon
- 8,517
- 13
- 64
- 107
4
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…
![](../../users/profiles/3828989.webp)
Adrian Garcia
- 698
- 9
- 13
4
votes
0 answers
Adding multiple php files to yaml for google app engine
Here are the contents of my yaml file:
application: myapp
version: 1
runtime: php
api_version: 1
handlers:
url: /static
static_dir: static
url: /suggest/.*
script: suggestions.php
url: /.*
script: index.php
The static pages work fine, and so…
![](../../users/profiles/2977732.webp)
user2977732
- 121
- 1
- 6
4
votes
2 answers
How to stop series of postDelayed handlers
I have a series of postDelayed handlers. I'm having trouble to set a mathode that stops the handlers when the user is tapping on the stop button at any time I he wants.
I'll appreciate any help someone able to provide.
Thanks
while…
![](../../users/profiles/1864635.webp)
RBZ
- 173
- 1
- 9
4
votes
3 answers
What's the difference between making a handler w/ ashx/axd and using something I made up myself in ASP.NET?
This is probably very simple but it's really confusing me. When I implement the IHttpHandler, I create a handler and then register it like so in the web.config:
IIS6 Portion:
![](../../users/profiles/10352.webp)
danmine
- 10,603
- 16
- 52
- 73
4
votes
1 answer
Custom Http Handler in MVC 3 Application
I'm using an Http Handler to localize javascript files used in my application:
see: Localize text in JavaScript files in ASP.NET
I want to use the handler provided so I did the following:
1) Ignored routes using this code in Global.asax - I have…
![](../../users/profiles/605129.webp)
Mortalus
- 10,046
- 9
- 60
- 108
4
votes
2 answers
VBA - Update Other Cells via User-Defined Function
I have a UDF(User-Defined Function) in VBA that needs to modify cell range on Excel.
Since a UDF cannot do this, I tried using Event calls.
When I raise a Custom Event and try to write to cells, I get #Value error. On the other hand, Application…
![](../../users/profiles/1684104.webp)
user1684104
- 41
- 1
- 1
- 2
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…
![](../../users/profiles/1417267.webp)
slinden77
- 3,326
- 2
- 35
- 34