handler

IE not caching images returned from .NET handler?

Our images for our site are handled via a ASHX handler (closed source COTS system). It accepts a key and returns an image response. In the process though, if an image is using SSL, it will return a non-SSL URL as a 301. This works fine in Firefox and the like. The issue is with IE. In one scenario, we have the same image displayed twic...

Is AsyncTask really massively flawed or am I just missing something?

I have investigated this problem for months now, came up with different solutions to it, which I am not happy with since they are all massive hacks. I still cannot believe that a class that flawed in design made it into the framework and no-one is talking about it, so I guess I just must be missing something. The problem is with AsyncTa...

Customizing an existing handler in Go's http library.

With the following being defined as is noted in the http library: func Handle(pattern string, handler Handler) type Handler interface { ServeHTTP(*Conn, *Request) } How can I improve upon an existing handler (say, websocket.Draft75Handler for instance) by giving it an additional argument (and tell it what to do with the argument)? I'...

Preview Handlers (Office 2007, Vista & Win7) - issue w/ reisize

Greetings, I'm working on a preview handler for Office 2007, Vista and Windows 7. I'm basing my code off the following MSDN article. The "guts" are done as it was pretty straight forward. I've been testing in Windows 7 (64-bit) Explorer. One thing I've noticed is the preview handler appears to "lock" the Explorer window and doesn't al...

sendEmptyMessageDelayed : Android

Does this call block? Or is it in another thread and control can go beyond this statement? ...

Android - Options Menu wont work

I am trying to create an Options menu in an Activity that gets started from a Service and then changes its UI based on messages from the Service passed via a Handler. I set up the Options menu as follows: /** Menu creation and setup **/ /* Creates the menu items */ public boolean onCreateOptionsMenu(Menu menu) {...

Custom validator with attributes in facelets

I have written a custom Validator that expects an attribute to be set. I know I have to write a Handler (TagHandler or ValidatorHandler?) to set that attribute, but I am having trouble doing it. <tag> <tag-name>validateCustom</tag-name> <validator> <validator-id>package.CUSTOM_VALIDATOR</validator-id> </validator> </...

How do I specify the destination of android.os.Message?

How do I specify the destination of sendMessage() as logTextBox() in the example below? public class Controller extends Activity { public Handler hLogTextBox = new Handler(); ... public void listener() { String s = "my string"; android.os.Message osMessage = hLogTextBox.obtainMessage(); Bundle b = new...

ASP.NET - fileupload using input file

Hi, I am using VS-2005. In my website I have used the html input control with type=file. The problem is that when I place this control inside an 'UpdatePanel' the 'PostedFile' property becomes 'Nothing' on postback. So in order to get things working I have removed the 'UpdatePanel' and things are working fine. However, I am intereste...

How do I set a template handler in Rails 3 *not* to use a layout

I have a rails 3 template handler and would like to configure it not to use the layout. In rails2 we would do a ::ActionController::Base.exempt_from_layout :extension_name But this method does not exist in Rails 3 any more. I did not find a place within the code where there is an option for a template engine not to run through...

How to load complex views concurrently

I have an Android activity that creates custom views, and it is an expensive process. I tried to use a Handler, but when I do, the progress dialog that shows, spins like once every 5 seconds. So I tried to use an AsyncTask. Now the progressDialog spins, but then it crashes, because it isn't allowed to load the UI? How can I do this witho...

thread looper handler not being created despite code

Hey guys, so I have been getting this really weird bug in my android app that I have isolated down to the fact that a handler is not being created. The odd part, is that despite the fact 5 threads are being created, under certain circumstances...only 4 handlers are created. And then the rest of the time, 5 handlers are being created. N...

Java: Handling event on component inside a seperate JPanel component

Hey guys, So I have a JFrame which I've added a custom JPanel component. The JPanel component has a button that I want to attach a listener to in my JFrame. What is the best way to do this? ...

Classic ASP: querystring handler

I've done this a long time ago, now I can't find the function. It shouldn't be too complicated, but I wonder if there's any news on this before I go and do it again... Take this: www.example.com?query=whatever&page=1 Now imagine I press button to page 2, it will become: www.example.com?query=whatever&page=2 Always keeping the rest...

IIS returns 403.14 error if a physical path corresponds to url

Is there a way to override IIS and tell it to always let handler handle requests? At the moment if, for example, "path" is an existing folder in root, url is "http://domain.com/path" and there is no "default" document in folder, IIS will return a 403, even if that path is defined in my custom handler. I can't think of anything other than...

No mapping found for HTTP request with URI [/app/j_spring_security_login] in DispatcherServlet with name 'dispatcher'

I added this login link to my Spring app: <a href="<spring:url value="/j_spring_security_login" htmlEscape="true" />"> Sign In </a> My assumption was that because this is a built-in tag for accessing the login page, Spring would know how to associate this with an appropriate handler without me having to specify it explicitly. However...

UpdateHandler, do a thing only when trigger is true, Android

Hi, I have a handler that receives a message on every location update, every 5 secs. From the location I can request the current city the user is moving in. Then I want to download some data once and only when city changes. How can I realize that? Handler myViewUpdateHandler = new Handler(){ public void handleMessage(Message msg) ...

Callback function after blur effect is triggered in jquery

I have a form that is validated once the user "blur"s out of an input field. So: $("#field1").blur(function() { if($(this).val().length>0) { $(this).attr('class', 'completed'); } }); When the user first visits the form, and up until all fields are "completed", the submit button is hidden: $(".submit").hide(); I want the submit...

Gtk-WARNING Could not find signal handler on netbeans

Hi, I'm building an interface using glade and gtk programming on c using netbeans. I've set up my project following http://zetcode.com/articles/netbeanscdevelopment/. I even added libgmodule2-0.so and libglib2-0.so to the linker options of netbeans. When I run i get the warning Gtk-WARNING Could not find signal handle. When I close the...

How to create an alarm and signal handler in RPG ? ( AS400 iSeries v5r4 )

A valuable answer will include the rpg code that does something like this volatile bool interrupted; main() { sigaction(SIG_ALARM, myhandler) // register handler alarm(3) // set the alarm sleep(5) // blocking call, sleep just as an example. alarm(0) // disable the alarm } myHandler() { interrupted=true } I think you've got t...