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

JPA named query to get size of a collection

I have the following two entities: @Entity class Relation{ @ManyToOne private User user; //some other fields ... } The user entity has a collection of other entities: @Entity class User { @OneToMany(mappedBy="user") private Collection
Moonlit
  • 5,171
  • 14
  • 57
  • 95
2
votes
3 answers

Extending @Named @SessionScoped bean

I have parent class called Navigation and child class called ExtendingNavigation. Navigation is annotated as @Named("navigation") and @SessionScoped (javax.enterprise.context.SessionScoped;). In it I inject UserBean and initialize it in the login()…
nyxz
  • 6,918
  • 9
  • 54
  • 67
2
votes
0 answers

Create silent wav and pipe it

I've been through many stackoverflow pages and forums trying to find the answer I want. I created a virtual microphone and I'm trying to pipe to it some wav sounds created using FFMPEG. When I want to pipe a keyboard noise I pipe the sound to my…
Ícaro Erasmo
  • 125
  • 1
  • 9
2
votes
2 answers

Named (bind) DNS resolver forwarding client subnet

Using bind (9.11) i can do a dig with client subnet and make my DNS resolver choose A record based on client subnet (ecs), but i want to put a recursive DNS in between the authoritative server and client , where the Recursive DNS should forward the…
Open enthu
  • 63
  • 7
2
votes
4 answers

How to start two services in one docker container

I need to start two services/commands in docker, from google I got that I can use ENTRYPOINT and CMD to pass different commands. but when I start the container only ENTRYPOINT script runs and CMD seems not running. since I am a new docker can you…
user2536023
  • 165
  • 1
  • 4
  • 14
2
votes
1 answer

A better way to combine name and value of a named list into a string

Given a named list: values <- list( a=1, b=2 ) I want to produce a comma-separated string that includes the names: "a=1,b=2" The following works, but seems awfully clunky: library( iterators ) library( itertools ) fieldnames <-…
Mark Bower
  • 569
  • 2
  • 16
2
votes
1 answer

Dynamic calculation formulas in Postgres

I'd like to know if there is a possibility to create something like named calculations in Postgres? Say, I have a table: create table foo ( bar smallint, baz smallint ) I can run select (bar / baz) * 100 from foo; to get my result, but I'd like…
Alex Tokarev
  • 4,821
  • 1
  • 20
  • 30
2
votes
4 answers

Set name on apply results

I am applying a function onto a dataframe. But unlike sapply and its friends, apply hasn't got any USE.NAME argument to get a named list as returned object. In this example, I'd like the C column to be the names of the returned list : df =…
Dan Chaltiel
  • 7,811
  • 5
  • 47
  • 92
2
votes
1 answer

StartThreadpoolIo throws invalid parameter exception

I'm trying to use Named Pipes with the new thread pool API. My code works most of the time but I'm getting intermittent invalid parameter exception when call StartThreadpoolIo. I've verified that the TP_IO hasn't been closed, and the handle is…
Queueless
  • 113
  • 1
  • 7
2
votes
0 answers

Create a named range in excel sheet using oledb and C#

I am attempting to create a named range in an excel sheet using c# and oledb. I do not want to use the COM object interops for this. I have not been able to find any online example of performing this task, although reading from a named range is…
2
votes
1 answer

What is the shortest way to create an empty named numeric vector in R?

I can create an empty vector with v <- numeric(0), but the vector is not named, just of type num then. When I evaluate names(v) <- character(0), I have an empty named numeric vector: > v <- numeric(0) > names(v) <- character(0) > str(v) Named…
U. Windl
  • 3,480
  • 26
  • 54
2
votes
2 answers

open FIFO for write returns "No such device or address"

I want to create a server process and a client process -for an optional class assignment- and make them communicate with each other. The professor told us that: 1)we must use O_NONBLOCK 2)we must create 2 FIFOs, one for reading only and one for…
Fotis Sk
  • 313
  • 2
  • 10
2
votes
1 answer

CDI ambiguous dependency when adding @Named qualifier to existing bean via @Produces

I have a CDI bean implementation in a dependency jar file: @ApplicationScoped public class MyService { public String doSomething() {...} } In my webapp, I want to access that service via EL Expression, therefore I have to give it a @Named…
Florian
  • 37
  • 1
  • 7
2
votes
1 answer

Guice default value for @Named

I am reading the properties from a conf file using Guice @Inject @Named("test.var1") private int var1 = 2; Here, the value of test.var1 in the conf file is being injected to var1 successfully. If this property in missing in the file, i want it to…
vamsi
  • 325
  • 5
  • 15
2
votes
1 answer

How to use named shared memory?

Today I'm trying to share memory between processes (2 DLLs). For now I would only like to share text in order to do some debugging. I seem to have managed to create the named shared memory and read it, but upon reading the memory seems empty. What…
MircoProgram
  • 295
  • 1
  • 20