Questions tagged [named]

Anything named - objects, variables, classes... Naming is a primary tool of reuse.

Anything named - objects, variables, classes...

Naming is a primary tool of reuse.

392 questions
118
votes
4 answers

How do I extract just the number from a named number (without the name)?

I am looking for just the value of the B1(newx) linear model coefficient, not the name. I just want the 0.5 value. I do not want the name "newx". newx <- c(0.5,1.5,2.5) newy <- c(2,3,4) out <- lm(newy ~ newx) out looks like: Call: lm(formula =…
Andre Mikulec
  • 1,302
  • 2
  • 10
  • 8
63
votes
3 answers

Creating a named list from two vectors (names, values)

Is there a way to use mapply on two vectors to construct a named list? The first vector would be of type character and contain the names used for the list while the second contains the values. So far, the only solution I have is: > dummyList =…
Jon Claus
  • 2,862
  • 4
  • 22
  • 33
46
votes
2 answers

How to enable named/bind/DNS full logging?

I am trying to find the perfect logging clause in named.conf that would help me enable full-level logs for named service. Can someone give an example here? My current clause is given below, but this generates very minimal logs. logging { …
deppfx
  • 701
  • 1
  • 10
  • 24
44
votes
3 answers

Use input of purrr's map function to create a named list as output in R

I am using the map function of the purrr package in R which gives as output a list. Now I would like the output to be a named list based on the input. An example is given below. input <- c("a", "b", "c") output <- purrr::map(input, function(x)…
Michael
  • 1,281
  • 1
  • 17
  • 32
41
votes
4 answers

Combine/merge lists by elements names

I have two lists, whose elements have partially overlapping names, which I need to merge/combine together into a single list, element by element: > lst1 <- list(integers=c(1:7), letters=letters[1:5], words=c("two", "strings")) > lst2…
enricoferrero
  • 2,249
  • 1
  • 23
  • 28
29
votes
2 answers

How can I define named functions in the Elixir console without getting ** (ArgumentError) cannot invoke def/2 outside module?

I can define named functions in modules just fine, but I haven't yet got the hang of it for use in the iex> or ex> consoles. I keep getting the following error when I try to run the def command: (ArgumentError) cannot invoke def/2 outside…
Nathan Basanese
  • 8,475
  • 10
  • 37
  • 66
27
votes
1 answer

What is the default scope of a Named CDI bean?

Is there any default scope for a @Named CDI bean without additional @...Scoped annotations? I have not found any relevant information in the official Weld documentation. A @Named bean can be accessed over JSF without additional annotations, so some…
kostja
  • 60,521
  • 48
  • 179
  • 224
26
votes
2 answers

Adding named item to named list - guaranteed to append to end of list?

When adding a named item to a list, is it guaranteed that the item will be added to the end of the list? In practice it appears to be the case, but not sure if this is a dangerous assumption? test = list() test[[ "one" ]] = 1 test[[ "two" ]] = 2 #…
Suraj
  • 35,905
  • 47
  • 139
  • 250
22
votes
1 answer

HQL: Using Boolean in Named Queries

Can you please help me? I have error in querying boolean value "r.isDefault = true". In my HQL named query: SELECT r FROM RptQuery r WHERE r.code = ?1 AND r.isDefault = true …
Jemru
  • 2,091
  • 16
  • 39
  • 52
15
votes
2 answers

www in domain not working in nginx

I'm new to using nginx, well, new to using anything that's not cpanel... I'm having problems getting domains to work using nginx when you include www. in the url. www.mydomain.com > not work 404 mydomain.com > works I'm not sure if I have made…
DOA
  • 362
  • 1
  • 2
  • 10
15
votes
5 answers

rndc: connect failed: 127.0.0.1#953: connection refused

This is a very annoying problem that i am having with the rndc reload I am getting the following error: rndc: connect failed: 127.0.0.1#953: connection refused However the following work fine, [root@cbgfx ~]# service named restart Stopping named: .…
user2650277
  • 6,289
  • 17
  • 63
  • 132
15
votes
2 answers

NS: got insecure response; parent indicates it should be secure

I'm trying to run Bind on Centos 6.3 on my school network and I'm having trouble getting external queries to work. I can dig/query my own zones running on my server, but once I dig for an external domain name I see the following in my log files: NS:…
Jorre
  • 17,273
  • 32
  • 100
  • 145
13
votes
2 answers

What rvalues have names?

@FredOverflow mentioned in the C++ chatroom that this is a rare case of rvalues that have names. The C++0x FDIS mentions under 5.1.1 [expr.prim.general] p4: Otherwise, if a member-declarator declares a non-static data member (9.2) of a class X, the…
Xeo
  • 129,499
  • 52
  • 291
  • 397
13
votes
1 answer

Notepad++ regex replace named groups

I try replace author Full name with article title I have a list of articles, similar like this: Albershein P., Nevis D. J. A method for analysis of sugars in plant cell wall polysaccharides by gasliquid chromatography // J. Carbohydrate Research.…
Victor Dronov
  • 139
  • 1
  • 12
12
votes
2 answers

Is it possible in Go to call a function with named arguments?

I want to call a function in Go, and attach to the argument values the argument names func sum(a int, b int) int { return a + b } func main() { result := sum(a=4, b=5) // result == 9 } Is it possible?
Netanel.R
  • 153
  • 1
  • 7
1
2 3
26 27