options

Is there a name for the technique of using base-2 numbers to encode a list of unique options?

Apologies for the rather vague nature of this question, I've never formally been taught programming and Google is rather useless to a self-help guy like me in this case as the key words are pretty ambiguous. I am writing a couple of functions that encode and decode a list of options into a Long so they can easily be passed around the ap...

SVN branch question

Hi, When creating a branch, what are the implications of selecting the following? Create copy in the repository from: HEAD revision in the repository Specific revision the repository Working copy ...

Changing options in select box based on different select options

I have 2 select options. I want to change the drop down options in second select options based on what I select in first select options. How do I do that in jquery? <select id="Manage"> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> <select> Second select option if A is selected from f...

How to prevent code/option injection in a bash script

I have written a small bash script called "isinFile.sh" for checking if the first term given to the script can be found in the file "file.txt": #!/bin/bash FILE="file.txt" if [ `grep -w "$1" $FILE` ]; then echo "true" else echo "false" fi However, running the script like > ./isinFile.sh -x breaks the script, since -x is inter...

Problem with multiple select removing more than 1 option

Ok, there seems to be a problem with the JS Code for Opera browsers, as it only removes the last option tag that is selected within a multiple select tag, can someone please help me. Here is the HTML for this: <select id="actions_list" name="layouts" multiple style="height: 128px; width: 300px;"> <option value="forum">forum</option...

Rails check box in form decides on create action in controller?

Hi Everyone? I am trying to add a select box to the base of my create form that decides if an action runs from the controller...if that makes any sense? Basically the application creates a project in FreeagentCentral whenever a new project is made: def create @company = Company.find(params[:kase][:company_id]) @kase = @company...

How to calculate value of short options call with Black-Scholes formula?

Hello, I am trying to calculate the profit/loss of a short call at various times in the future, but it isn't coming out correct. Compared to the time of expiration, the ones with time left have less profit above the strike price, but at some point below the strike they don't lose value as fast as the t=0 line. Below is the formula in pse...

Axis2 and fastinfoset - cannot get content-type to change

I've been trying to enable fastinfoset compression on my web services. However, I'm having a problem getting the content-type to change on the request from the client. At least, I think that's why it's not compressing. I've tried a lot of different things, but the content-type always remains "text/xml". I'm pretty sure that it's suppo...

Select and Options Styling

How to style the select options ? i want alternating background colors in the drop down menu. ...

How to add custom Java command-line options?

Hi! I'd like to add custom command-line options to my Java program. Here's an example: java -cp my.jar package.Main -i input.data -o output.data How can I achieve this. Currently I only get JVMJ9VM007E Command-line option unrecognised: -i Edit: The output of java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Stand...

Getting options text value in Java

How I can get select option text value in Java? Select options are in javascript. <select id="colors" name="colorselector" > <option value="red"> Red </option> <option value="blue"> Blue </option> <option value="orange"> Orange </option> <option value="blue"> Yellow </option> </select> ...

Stop Visual Studio sorting my imported interface members in C#?

When I design interfaces, I don't tend to order their members in alphabetical order - I come up with an order that is logical and readable for the solution. Whenever I implement an interface I use the "smart tag" for the interface name to get Visual Studio to implement skeleton methods / properties for me. This is a neat feature and it ...

Having two destination folders using NSIS

Currently the product I work on uses NSIS to create it's installer. It works great, we love it. But now, with some of the issues arising with manipulation of data in program files on Windows 7 and such, we would like to have to separate destination folders during install. One destination will be where all the program files are held, whi...

How to pass options to a jar file using Netbeans

Hello, I need to be able to pass option flags to Java when my users execute a given Jar file. I am using Netbeans as my IDE and it would be nice if I could set it somewhere inside there to avoid manually changing each jar file to do this. I know under the project if you right click, go properties, then run, you can set options there b...

Is there anyway to change default values for php curl options, for a script session or globally?

I'm using a framework which has curl handling encapsulated in the depths of it's class hierarchy. Basically I would like to change the way it does handle curl, without patching the files. It could be ideal if I could change curl defaults globally form outside. In php.ini or in similar way. Any way to accomplish this? ...

Android checkable submenu options

So I have a submenu that I have for an options menu item. I want a list of checkable entries that the user can select/deselect as many as they want. The only problem I can't solve is how to prevent the option menu from closing when one of the checkboxes is clicked. I saw the performShortcut has a FLAG_PERFORM_NO_CLOSE flag, but I'm not s...

Prevent android menu/submenu from closing on selecting

Possible Duplicate: Android checkable submenu options So I posted this last night but I guess the server ate it. I have an options menu, and then a submenu with checboxes. All this works fine, except I need to let the user select multiple checkboxes without the menu closing. How is this implemented? I've looked at performShort...

Get options of a select box in Internet explorer

Hello I am trying to get the options from a html select element. The logic I am using is working in firefox, but it isn't working in IE. It gives me the length of the options array or the number of options but it isn't giving me the values of options. How do I troubleshoot this issue?? var SelectId= 'select_1'; //id of the html select e...

how to make UIBarButtonItem give menu-options

You know how if you click and hold on a link in safari (4 iphone obviously) it gives you of options like "open in new window", "Open". "Copy" etc? how do you call this and is it possible to get a UIBarButtonItem to do this (but every time it is clicked not just when held down)? Thanks ...

Can an option in SELECT tag carry multiple values?

Hi all, I got a select tag with some options in a HTML form: (the data will be collected and processed using PHP) Testing: <SELECT NAME="Testing"> <OPTION VALUE="1"> One <OPTION VALUE="2"> Two <OPTION VALUE="3"> Three </SELECT> Is it possible for an option to carry multiple values like when a user selects "One", then a f...