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
3
votes
1 answer

regex named group if exist

Good morning, I have a string that I need to parse and print the content of two named group knowing that one might not exist. The string looks like this (basically content of /proc/pid/cmdline): """
Simon
  • 323
  • 5
  • 15
3
votes
2 answers

How does DIG utility work in FreeBSD and BIND?

I want to know how does the DIG (Domain Information Groper) command really works when it comes to code and implementation. I mean when we enter a DIG command, which part of the code in FreeBSD or BIND hits first. Currently, I see that when I hit…
user3552519
  • 401
  • 4
  • 11
3
votes
2 answers

Resize Named Range VBA

VBA Excel 2016 I'm trying to dynamically resize a range if the number of columns is less for that range after some code is executed. Referenced the MS files and various online examples with no luck.…
MashedP0tatoes
  • 41
  • 1
  • 1
  • 4
3
votes
2 answers

Excel listing named range in a worksheet and get the value

How to obtain a list of named range exist in a specific worksheet that start with particular string (for example all named range that start with total) and grab the value? I am trying to do Sub Total and Grand Total of accommodation cost based on…
Arief
  • 139
  • 1
  • 4
  • 11
3
votes
1 answer

Accessing element in named vector in R without variable name

I am trying to access the value of an element in a named character vector in R. Using the example in http://www.r-tutor.com/r-introduction/vector/named-vector-members I tried the following: v = c("Mary", "Sue") v [1] "Mary" "Sue" names(v) =…
3
votes
2 answers

Python pymssql - Connecting to Named Instance

I'm trying to connect to a SQL Server named instance from python 3.4 on a remote server, and get an error. File "C:\Scripts\Backups Integrity Report\Backup Integrity Reports.py", line 269, in conn = pymssql.connect(host=r'hwcvcs01\HDPS',…
Roman Ost
  • 39
  • 1
  • 2
3
votes
4 answers

How to fix a dig command with status: REFUSED?

I need help fixing a status refused. I had a look at the named.conf and everything looks ok. I even changed allow-query to any, it used to be localhost. dig xxx.com @ns1.xxx.com ; <<>> DiG 9.8.3-P1 <<>> xxx.com @ns1.xxx.com ;; global options:…
orbitory
  • 1,090
  • 5
  • 16
  • 40
3
votes
3 answers

Mixing JPA annotations and XML configuration

I have a fairly large (new) project in which we have annotated many domain classes with JPA mappings. Now it is time to implement many named queries -- some entities may have as many as 15-20 named queries. I am thinking that writing these named…
Dave
  • 21,524
  • 28
  • 141
  • 221
3
votes
1 answer

R: How to get and set named arguments in an expression

I'm trying to understand how to work with R expressions. If I have a simple expression such as exp <- quote(f(x=12)), then exp[[1]] returns the function, f, and exp[[2]] returns the argument, 12, but I don't know how to get at the argument name, x.…
3
votes
2 answers

Intersection of two named vectors saved as new named vector in R

I'd like to know if there's an easy way to find an intersection of two named vectors and output the result to a third, named vector. In my case, I have the following two named vectors: > test1 ATMG00010 ATMG00030 ATMG00040 ATMG00050 ATMG00060…
Kvothe
  • 33
  • 4
3
votes
1 answer

XAML: Can I refer to a Grid row or column by name?

If I name each row and column in a grid, can I set a control's grid.row="Row_Top"? I have defined StaticResources to refer to it but is there a converter or some other method to accomplish this without the resource?
Brad
  • 1,187
  • 3
  • 23
  • 44
3
votes
2 answers

Perl: Named parameters validation best practice

I am using named parameters in class method calls and was wondering if there is a best practice to make sure no unknown parameters are passed. Here's what I am doing sub classmethod { my $self = shift; my %args = ( "param1" =>…
Marcus
  • 315
  • 1
  • 10
3
votes
1 answer

Passing named arguments to a Javascript function

Calling a Javascript function with something like someFunction(1, true, 'foo'); is not very clear without familiarity with the function. I have seen and used the style where comments are inserted to name the arguments: someFunction(/*itemsToAdd*/1,…
Peter Brand
  • 576
  • 6
  • 20
3
votes
2 answers

Using dynamic named range in VBA for scatter chart labeling

I'm trying to make a macro that will change the data labels on a scatter chart to the title of each point. Eg: (source: wiseowl.co.uk) In this case I would like the data labels to show the movie title. The code I used comes from this website, but…
3
votes
1 answer

Delete URL for nested associations

I'm having the following many to many relationship in Rails (ActiveResource, of course): class User < ... has_many :channel_assignments has_many :channels, :through => :channel_assignments end class Channel < ... has_many…
Matt
  • 1,610
  • 2
  • 17
  • 24