warn (174)


javascript - Best way to detect when a user leaves a web page?

javascript - Best way to detect when a user leaves a web page?

What is the best way to detect if a user leaves a web page? The onunload JavaScript event doesn't work every time(the HTTP request takes longer than the time required to terminate the browser). Creat…


javascript - Detecting Unsaved Changes

I have a requirement to implement an "Unsaved Changes" prompt in an ASP.Net application. If a user modifies controls on a web form, and attempts to navigate away before saving, a prompt should appea…


Why should I use Carp instead of warn in Perl?

People keep giving me examples with carp instead of warn. Why? What makes carp better than warn?…


Log4Net or Logging Application Block

I need a logging framework in my application. I have two candidates: Log4Net and Logging from Application Block. Which is better? any specific advantage to any of them? Thanks…



Dead code identification(C++)

I have a large legacy C++ project compiled under Visual Studio 2008. I know there is a reasonably amount of 'dead' code that is not accessed anywhere-- methods that are not called, whole classes th…


jQuery: Automatically abort AjaxRequests on Page Unload?

Thanks for reading. I've noticed that if I have a page that has one or more ajax requests open, and I click a link to leave a page, or refresh it, it will wait for the ajax requests to complete before…


javascript - Prompting user to save when they leave a page

I need to prompt a user to save their work when they leave a page. I've tried onbeforeunload but I need to show a styled prompt not the usual dialog box. Facebook has managed to achieve this(if you h…


Perl: $SIG{__DIE__}, eval{} and stack trace

I have a piece of Perl code somewhat like the following(strongly simplified): There are some levels of nested subroutine calls(actually, methods), and some of the inner ones do their own exception h…


configuration - How to initialize log4j properly?

After adding log4j to my application I get the following output every time I execute my application: log4j:WARN No appenders could be found for logger(slideselector.facedata.FaceDataParser). log4j:W…


Python subprocess.Popen erroring with OSError:[Errno 12] Cannot allocate memory after period of time

Note: This question has been re-asked with a summary of all debugging attempts here. I have a Python script that is running as a background process executing every 60 seconds. Part of that is a call…




not for error npm before file the javascript page log4j