again (266)


How can I redirect to a page when the user session expires?

I am currently working on an web application that uses ASP.NET 2.0 framework. I need to redirect to a certain page, say SessionExpired.aspx, when the user session expires. There are lot of pages in t…


Best way to remove an event handler in jQuery?

I have an input type="image". This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image is paired with, I setup an event handler for the inpu…



What are some useful PHP Idioms?

I'm looking to improve my PHP coding and am wondering what PHP-specific techniques other programmers use to improve productivity or workaround PHP limitations. Some examples: Class naming convention…


What is a programming idiom?

I see the phrase "programming idiom" thrown around as if it is commonly understood. Yet, in search results and stackoverflow I see everything... From micro: Incrementing a variable Representing an i…


Is there a way to get the users location without having the user install Google Gears?

I don't want to have the user install Google Gears so I can show him his guessed location. Is there a way to get the location without having to use Google Gears? I have found http://www.wipmania.com/…


iphone - How can I programmatically pause an NSTimer?

I'm using an NSTimer to do some rendering in an OpenGL based iPhone app. I have a modal dialog box that pops up and requests user input. While the user is providing input I'd like to "pause" i.e. so…


How to restart thread in java?

This question already has an answer here: How to start/stop/restart a thread in Java? 10 answers I have created a program which searches for files in a sou…


javascript - jQuery: Unbind event handlers to bind them again later

Does anybody know how to unbind set of event handlers, but memorize them in order to bind them again later? Any suggestions?…


is there a pythonic way to try something up to a maximum number of times?

I have a python script which is querying a MySQL server on a shared linux host. For some reason, queries to MySQL often return a "server has gone away" error:_mysql_exceptions.OperationalError:(2006…


python - Re-raise exception with a different type and message, preserving existing information

I'm writing a module and want to have a unified exception hierarchy for the exceptions that it can raise(e.g. inheriting from a FooError abstract class for all the foo module's specific exceptions).…




try the and please not how error for your permission