Questions tagged [options]

Options are various choices or courses of action available to someone in a particular situation.

1877 questions
685
votes
21 answers

How to print the full NumPy array, without truncation?

When I print a numpy array, I get a truncated representation, but I want the full array. Is there any way to do this? Examples: >>> numpy.arange(10000) array([ 0, 1, 2, ..., 9997, 9998, 9999]) >>>…
kame
  • 16,824
  • 28
  • 95
  • 142
484
votes
6 answers

GCC -fPIC option

I have read about GCC's Options for Code Generation Conventions, but could not understand what "Generate position-independent code (PIC)" does. Please give an example to explain me what does it mean.
Narek
  • 35,407
  • 69
  • 202
  • 359
254
votes
4 answers

Force R not to use exponential notation (e.g. e+10)?

Can I force R to use regular numbers instead of using the e+10-like notation? I have: 1.810032e+09 # and 4 within the same vector and want to see: 1810032000 # and 4 I am creating output for an old fashioned program and I have to write a text…
Matt Bannert
  • 25,237
  • 34
  • 134
  • 195
216
votes
7 answers

Display / print all rows of a tibble (tbl_df)

tibble (previously tbl_df) is a version of a data frame created by the dplyr data frame manipulation package in R. It prevents long table outputs when accidentally calling the data frame. Once a data frame has been wrapped by tibble/tbl_df, is there…
Zhe Zhang
  • 2,383
  • 2
  • 12
  • 10
153
votes
9 answers

Options, Settings, Properties, Configuration, Preferences — when and why?

There are several words with similar (in some sense) meaning: Options, Settings, Properties, Configuration, Preferences English is not my native language. Could you explain the difference in simple English please? I think the following template…
Andrew T
  • 4,921
  • 7
  • 41
  • 54
147
votes
3 answers

AngularJS directive with default options

I'm just starting with angularjs, and am working on converting a few old JQuery plugins to Angular directives. I'd like to define a set of default options for my (element) directive, which can be overridden by specifying the option value in an…
144
votes
10 answers

Print very long string completely in pandas dataframe

I am struggling with the seemingly very simple thing.I have a pandas data frame containing very long string. df = pd.DataFrame({'one' : ['one', 'two', 'This is very long string very long string very long string veryvery long string']}) Now…
Yantraguru
  • 2,709
  • 3
  • 15
  • 19
114
votes
8 answers

How do you change the formatting options in Visual Studio Code?

I know you can Format Code using Ctrl+F / Cmd+F in Visual Studio Code but how do you change the formatting options for each language? For example, in Visual Studio 2013 I can choose compact mode for CSS. Is there another hidden JSON file to do that?
Matt McCabe
  • 2,077
  • 2
  • 19
  • 28
111
votes
15 answers

Can an Option in a Select tag carry multiple values?

I got a select tag with some options in a HTML form: (the data will be collected and processed using PHP) Testing: Is it possible…
user327712
  • 3,031
  • 4
  • 35
  • 44
91
votes
2 answers

GCC: how is march different from mtune?

I tried to scrub the GCC man page for this, but still don't get it, really. What's the difference between -march and -mtune ? When does one use just -march, vs. both? Is it ever possible to just -mtune?
Jameson
  • 5,452
  • 5
  • 26
  • 44
73
votes
7 answers

What is the hamburger menu icon called and the three vertical dots icon called?

Google and some other developers have introduced us to what some have called the hamburger menu button and now the 3 vertical dots button or vertical ellipsis. What is the official name of these buttons/icons? It would be nice if developers could…
Jeff Baker
  • 1,232
  • 1
  • 10
  • 12
72
votes
8 answers

AngularJS - value attribute for select

Source JSON data is: [ {"name":"Alabama","code":"AL"}, {"name":"Alaska","code":"AK"}, {"name":"American Samoa","code":"AS"}, ... ] I try ng-options="i.code as i.name for i in regions" but am getting:
53
votes
8 answers

ng-options how to set first select always blank

I am using angularjs in a project and in which I am using ng-options for generating . Initially when the pages reload and no option element is selected the html generated like below: