options

Is there a package to process command line options in R?

Is there a package to process command-line options in R? I know commandArgs, but it's too basic. Its result is basically the equivalent to argc and argv in C, but I'd need something on top of that, just like boost::program_options in C++, or GetOptions::Long in perl. In particular, I'd like to specify in advance what options are allow...

Can vim be made to only expand tabs to the left of text?

Using vim, I would like to effectively have expandtabs off if I'm to the left of any text on the line and on if I'm to the right of any non-whitespace character. (I would like to use tabs for indentation and spaces for alignment.) Can this be done? ...

How can I get the color options for VS.Php working?

Hello, Recently I installed a Visual Studio 2008 extension called VS.Php, made by Jcx Software: http://www.jcxsoftware.com/vs.php It looks brilliant; IntelliSense and debugging for PHP! A godsend! Unfortunately, it assumes I have a white background in Visual Studio, but I have the hacker style "black terminal with green text", which m...

Can you force Vim to show a blank line at the end of a file?

When I open a text file in Notepad, it shows a blank line if there is a carriage return at the end of the last line containing text. However, in Vim it does not show this blank line. Another thing I've noticed is that the Vim editor adds a carriage return to the last line by default (even though it doesn't show it). I can tell, because i...

How do I change the background color of a conditional macro in eclipse?

How do I change the background color of a conditional macro in eclipse? I am using the C/C++ version of eclipse so I would assume it would be associated with a mysterious preprocessor background color setting. Thanks, Chenz ...

Jquery: Why am I getting an OPTIONS request insted of a GET request?

With this code http://paulisageek.com/tmp/options.html : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script> <script> $.get("http://metaward.com/import/http://metaward.com/u/ptarjan", function(data) { alert(data); }); </script> in Firefox 3.5 on Vista it does an OPTIONS requ...

Netbeans: Is there an option to show icons not only for errors, but also for warnings on files|packages|... ?

Hello! Is there an option in Netbeans to show icons not only for errors (which is the default behavior), but also for warnings on files|packages|... in the "Projects" view? I have to use the (somehow outdated and inconsistent) SQE plugin, just to get all warnings together! ...

Hide options in a select list using jQuery

I have an object with key/value pairs of options I want to hide/remove from a select list. Neither of the following option selectors work. What am I missing? $.each(results['hide'], function(name, title) { $("#edit-field-service-sub-cat-value option[value=title]").hide(); $("#edit-field-service-sub-cat-value option[@valu...

How would I save various selected options on an ASP.NET form to SQL Server to be recalled as a "saved" report?

I have an ASP.NET WebForm with a number of DropDownLists, multiple select enabled ListBoxes, CheckBoxes and TextBoxes. What I would like to be able to do is allow the user to save all the selected options and call it a name as a saved report. This would then allow them to click to retrieve the selections they made when they come back to...

Javascript to Select Multiple options

I have a form with a select box that allows multiple options. After a user saves these options, it stores them in a database table. I can then read this database table to get the options they chose one again. I need to be able to grab this data from the database, put it into an array, then have the options in that select box to be pre-...

Is there a good design pattern for implementing optional features?

Suppose I have a function that performs some task (this is in Python pseudocode): def doTask(): ... But I have several optional features on the platform which results in having code that looks like this: def doTask(): ... if FEATURE_1_ENABLED: ... if FEATURE_2_ENABLED: ... ... Unfortunately, this...

How can I get the text of a selected option with ASP.NET MVC?

I have a form in an ASP.NET MVC project which has a select drop down list akin to the following: <select> <option value="ee5711b9-ec86-4378-a975-ae10a4ebedbc">Volvo Account</option> <option value="0dc0e9d8-2245-43de-81a9-5b94c19646fa">Saab Account</option> <option value="f9a05ef6-9ca6-4eeb-9e04-79726a62b38c">Mercedes Account</opti...

How to set default XAML view in Visual Studio 2008

In Visual Studio 2008, when you add a new XAML window to a WPF Application Project, the default view you get is "split view" where the visual designer and the XAML code are shown one above the other in the same document. I prefer an alternative view which you can get by double-clicking on either the Design or XAML tabs. The visual desig...

How to Store "Nested groups of checkboxes" ?

Hi I have a form (form1) which should gather information from user and save them into DB. In form1, I have 4 different groups: Group1: Operational Costs(Material, Salary, Maintenance) Group2: Selling Costs(Advertisement, Transport, Operational Costs) Group3: Financial Costs (Benefit, Penalty) Every option like Material, Salary, Mainte...

How to dynamic filter options of <select > with jQuery?

<select > <option value="something">something</option> <option value="something">something</option> </select> <input type="text" > So that when user inputs something,only options with value matching it will show. ...

Having select options in 2 drop down menu lists?

I want to have 2 menu lists and you must select an option from each list then click the next button taking you to another page. Here's a link: http://home.comcast.net/~techjunkee/ ...

Passing ant command line options to an exec'd ant process?

I'm using ant to build a mixture of Java and C++ (JNI) code that makes up a client project here. I've recently switched the C++ part of the build to using ant with cpptasks to build the C++ code instead of having ant invoke the various versions of Visual Studio that are necessary to build the code. In order to get this to work, it is ne...

replace id with name in collection_select

In my application i have a collection_select on my members table, the members table only contains id's. It has an user_id, project_id, role_id, and so on. I want show the members name in the collection_select. But i only have the user_id in the members table, how can i show the names from the user table as options? <%= collection_selec...

firebug net monitor options

I have an issue where I executing an AJAX request. Instead of seeing the normal POST or GET preceeding the action page url, I see OPTIONS. The data is successfully posted, but there is no response from the action page. What does OPTIONS indicate? ...

avoid "Getting started with SAS" window when opening second SAS session

How can the popup window ("getting started with sas") be prevented from displaying when opening a second SAS session (ie when a 'work' profile is used that does not contain your normal settings) ??? running proc options internal; run; reveals the TUTORIALDLG option, but I do not know the syntax to set this option at 'invocation' - (...