options

How to stop IE asking which debugger to choose when **trying** to debug?

When debugging in Internet Explorer; I first get an alert box with extremely limited if not useless information (sorry IE) and choice to debug it; After selecting yes; I get another option every time to chose between 'New instance of Microsoft script debugger' and 'New instance of Visual studio'. I'm fed up of having to click the yes but...

Handling OPTIONS request in nginx

We're using HAProxy as a load balancer at the moment, and it regularly makes requests to the downstream boxes to make sure they're alive using an OPTIONS request: OPTIONS /index.html HTTP/1.0 I'm working with getting nginx set up as a reverse proxy with caching (using ncache). For some reason, nginx is returning a 405 when an OPTI...

How hierarchical are Delphi 2009 project configuration option sets?

Delphi 2009 introduced a hierarchical system for project options configuration, where you set "base" options and then have different build styles with their own option sets. But can you extend the hierarchy even further? I do most of my coding with debug options on, of course, but sometimes there are special cases where I want a slightly...

What is the best way to implement a 2D grid of radio buttons?

What is the best way to implement a 2D grid of radio buttons so that only one option in each column and one option in each row can be selected? ...

How can I disable HTTP Methods for Tomcat 5.5.27

Please let me know how can I disable HTTP MEthods like OPTIONS, PUT, DELETE for the web server Apache Coyote HTTP 1.1 Connector (Tomcat 5.5.27) ...

How to Change Netbeans Fonts and Colors Preview Document?

Within the Netbeans 6.5's Tools -> Options -> Fonts & Colors -> Syntax dialog, you have the ability to change the look and feel of the Netbeans text editor. When you select a language, you are presented with a preview of your font/color scheme. However, when I preview Java, there are far more options for syntax changes than are being dis...

Swapping option boxes in IE?

My client asked me (a js client side programmer) to change the order of the options so that their company's option appears at the top of a select box when the page loads. The following code works in FF but fails in IE7 when I try to swap two options: function load{ var shippingLocation = document.getElementById("location"); var ...

Rule of thumb on when to use WITH RECOMPILE option

I understand that the WITH RECOMPILE option forces the optimizer to rebuild the query plan for stored procs but when would you want that to happen? What are some rules of thumb on when to use the WITH RECOMPILE option and when not to? What's the effective overhead associated with just putting it on every sproc? ...

Maintain multiple Visual Studio user options (suo) profiles

I work in two environments with Visual Studio 2008: my laptop and my laptop+external monitor. When I work with a second monitor, I like for my solution explorer and other non-code windows to be on the second monitor, and my laptop screen to be just code files. It's a bit of a pain to rearrange windows every day as I switch between enviro...

The select element should return 2 values.

I have a select box with options in it. The value of the options gets the id of the item that is displayed in each option. I do have an other value that should be linked on this option. Is there an easy way to do this? <select id="category" name="data[cat]"> <option value="12" label="0">A</option> <option value="7" label="0">B</option...

Favorite Valgrind Options

I usually use this: valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option? ...

C# command line option parsing libraries/strategies similar to getopt?

Forgive me if this has already been covered but parsing command line options seems to be my second job lately. Information about getopt can be found here. DUPLICATE : http://stackoverflow.com/questions/631410/looking-for-a-command-line-argument-parser-for-net ...

javascript option select problem

I got this javascript code from off the internet. It's a script that changes a picture and it caption from the selection of an options drop down box. The script works fine. The only problem that I have is that the value in the option box can only be numbers. Is there anyway to tailor this whereas the value within the options parameter ca...

How do I wire up the Firefox Plug-in Options button?

In Firefox, if you go to Tools -> Add-ons, in the list of extensions each one has an "Options" button. I would like to enable this for my extension and navigate the browser to a webpage where they can set options relating to my extension. The extension is an XPCOM extension, so if I can just register for a callback when the button is p...

Designing Options/Settings Forms in .NET

I've got an application with about 35~ different settings in different categories. What are the best practices to expose this to the client. Secondly is there any VS.NET add-on or library (commercial or not) which can help to speed up this process. Something like "Property Grid" maybe but with a more professional and user friendly loo...

How to get a single value from multiple selectable options?

My situation is that I need to get a single value that defines the combination of multiple selection options. Here is a small example of what I'm looking to do. A user is buying a shirt. There are many different options the user can select when buying the shirt. Only one option can (and must) be selected from each selection group. The s...

How do I detect combination argument errors using Getopt::Euclid?

I'm being forced (by engineering policy) to use Getopt::Euclid to parse arguments to my Perl program. I have three arguments, foo, bar and blah. It is legitimate to have none of these and use other arguments instead. If foo is present than exactly one of bar or blah should be present, and if either bar or blah are present, than foo mu...

Best practices for handling user preferences in an iPhone MVC app?

I'm developing my first iPhone app, and while implementing user preferences, I have a few questions on how to best implement this. Assume the basic MVC pattern: MainView displaying data stored in a Model object; MainViewController handling the app logic. For the options, I have an OptionsView and an OptionsViewController. A RootView...

How do you handle command line options and config files?

What packages do you use to handle command line options, settings and config files? I'm looking for something that reads user-defined options from the command line and/or from config files. The options (settings) should be dividable into different groups, so that I can pass different (subsets of) options to different objects in my co...

Python - configuration options, how to input/handle?

When your application takes a few (~ 5) configuration parameters, and the application is going to be used by non-technology users (i.e. KISS), how do you usually handle reading configuration options, and then passing around the parameters between objects/functions (multiple modules)? Options examples: input and output directories/file ...