search for: var_nam

Displaying 20 results from an estimated 50 matches for "var_nam".

Did you mean: var_name
2001 Dec 18
1
[PATCH]: Fix environment variable size restriction in Cygwin version
...c,v retrieving revision 1.158 diff -u -p -r1.158 session.c --- session.c 7 Dec 2001 17:26:49 -0000 1.158 +++ session.c 18 Dec 2001 19:07:14 -0000 @@ -918,25 +918,29 @@ void do_pam_environment(char ***env, u_i #ifdef HAVE_CYGWIN void copy_environment(char ***env, u_int *envsize) { - char *equals, var_name[512], var_val[512]; + char *var_name = NULL, *var_val; + size_t size = 0, i_size; int i; for(i = 0; environ[i] != NULL; i++) { - if ((equals = strstr(environ[i], "=")) == NULL) + if ((i_size = strlen(environ[i]) + 1) < 3) continue; - if (strlen(environ[i]) < (sizeof(...
2011 Oct 03
3
Best method to add unit information to dataframe ?
...ains. You'll find below a minimal exemple of the way I do, so far. I add a "units" attribute to the dataframe. But I dont' like the long syntax needed to access to the unit of a given variable (namely, something like : var_unit <- attr(my_frame, "units")[[match(var_name, attr(my_frame, "names"))]] Can anybody point me to a better solution ? Thanks in advance, Bruno. # Dataframe creation x <- c(1:10) y <- c(11:20) z <- c(101:110) my_frame <- data.frame(x, y, z) attr(my_frame, "units") <- c("x_unit", "y_unit&...
2020 Jun 14
2
Any api (agi/ari/ami) equivalent of "core show calls"?
...0' > , commented int(11) not null default '0' > , filename varchar(128) not null default '' > , category varchar(128) not null default > 'default' > , var_name varchar(128) not null default '' > , var_val varchar(128) not null default '' > , primary key (id) > ) > ; > > -- defaults > set @CAT_METRIC...
2012 Nov 01
0
oblique.tree : the predict function asserts the dependent variable to be included in "newdata"
...oducible code : # ------------------------------------------------------------------------------------------------------- library(oblique.tree) N <- 100; nvars <- 3; x <- array(rnorm(n = N*nvars), c(N,nvars)) y <- as.factor(sample(0:1, size = N, replace = T)) m <- data.frame(x,y); var_names <- colnames(m); var_x_names <- var_names[-length(var_names)] n_train <- floor(N/2); n_test <- N - n_train; train <- m[1:n_train,]; test <- m[-(1:n_train),]; bot <- oblique.tree(formula = y ~., data = train, oblique.splits = "on", variable.selection = "none&qu...
2005 Jun 10
1
Convert extensions.conf INTO MySQL script
I swear I read somewhere on one of the MANY pages that there is a script out there that can read the extensions.conf file and create the MySQL DB records on the fly. Anyone know where I look for such a thing? Sure speeds up migration! Chris Coulthurst chris@shuksan.com
2005 Aug 11
5
Realtime + MYSQL
...KEY (`id`) ); ####### ####res_mysql.conf#### [general] dbhost = localhost dbname = asterisk dbuser = asterisk dbpass = ******** dbport = 3306 dbsock = /var/run/mysqld/mysqld.sock #### ####Debug Log#### Aug 11 01:16:23 DEBUG[1028] res_config_mysql.c: MySQL RealTime: Static SQL: SELECT category, var_name, var_val, cat_metric FROM voicemail_users WHERE filename='voicemail.conf' and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id Aug 11 01:16:23 DEBUG[1028] res_config_mysql.c: MySQL RealTime: Everything is fine. Aug 11 01:16:23 DEBUG[1028] r...
2020 Jun 14
1
Any api (agi/ari/ami) equivalent of "core show calls"?
Thank you... but "just update the database" - hmm, what database? Did you mean ARI? I still can't find the command! The asterisk wiki is somewhat, um... spread around! On Sat, 13 Jun 2020 at 16:56, Steve Edwards <asterisk.org at sedwards.com> wrote: > > On Sat, 13 Jun 2020, Jonathan H wrote: > > > I need to ensure that a MusicOnHold stream is only running when
2020 Jun 14
0
Any api (agi/ari/ami) equivalent of "core show calls"?
...1) not null default '0' , commented int(11) not null default '0' , filename varchar(128) not null default '' , category varchar(128) not null default 'default' , var_name varchar(128) not null default '' , var_val varchar(128) not null default '' , primary key (id) ) ; -- defaults set @CAT_METRIC = 0; set @FILEN...
2010 Dec 06
0
npRmpi memory error
...6_64, linux-gnu status major 2 minor 12.0 year 2010 month 10 day 15 svn rev 53317 language R version.string R version 2.12.0 (2010-10-15) Here's the home-brew function I'm using; npdenseqtestMatrix <- function(df1_row,df2_col,var_names,...) { dim_nms_row <- unique(df1_row[,'cat']) dim_nms_col <- unique(df2_col[,'cat']) tn_pval <- c() col_bw <- list() for(i in dim_nms_col) { col_bw[[which(dim_nms_col==i)]] <- npudensbw(df2_col[which(df2_col[,'cat']==i),var_names],...) } for(i in di...
2005 Sep 15
1
Can not get realtime static voicemail.conf to work
Here is what happens on startup: Sep 15 13:23:51 DEBUG[28130] res_config_mysql.c: MySQL RealTime: Static SQL: SELECT category, var_name, var_val, cat_metric FROM settings WHERE filename='voicemail.conf' and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id Sep 15 13:23:51 DEBUG[28130] res_config_mysql.c: MySQL RealTime: Everything is fine. Sep 15 13:23:51 DEBUG[28130] res_confi...
2020 Jun 14
2
Any api (agi/ari/ami) equivalent of "core show calls"?
...                 , commented             int(11) not null default '0' >                  , filename              varchar(128) not null default '' >                  , category              varchar(128) not null default 'default' >                  , var_name              varchar(128) not null default '' >                  , var_val               varchar(128) not null default '' >                  , primary key           (id) >                  ) >                  ; > > -- defaults >        ...
2020 Jan 18
1
How to get an object name from C?
...= isNull(TAG(x)) ? "" : CHAR(PRINTNAME(TAG(x))); Rprintf("fn_name: %s, arg_name: %s\n", fun_name, arg_name); return R_NilValue; } > xname <- function(...) invisible(.External("xname", ...)) > > x1 = 123 > > xname(x1) fn_name: xname, var_name: However, I am trying to find a way to access the object name. In the documentation I found a solution for named args: > xname(arg = x1) fn_name: xname, var_name: arg And I'd like to find the equivalent in C for substitute(): > substitute(x1) x1 Best regards, Daniel
2005 May 24
1
realtime static
...xplanation of what fields are for what. I would appreciate if someone can confirm or deny how I think the schema works. cat_metric = sort order for category var_metric = sort order for vars filename = equivalent .conf file in /etc/asterisk category = anything that would be enclosed in braces ([]) var_name = variable/command/directive such as an extension, global variable, etc.. var_val = value for var_name Also, I'm assuming the metric starts at 1 for each category? Chris
2006 Jan 04
5
multiple lowess line in one plot
I'm using this code to plot a smoothed line. These two columns of data really represent 4 groups and I'd like to plot a separate line for each group but have them all in the same plot. The R-Docs for lowess do not seem to indicate some type of "GROUPS=var_name" option. What would be the syntax for this? plot(AWGT ~ lipid ) lines(lowess(lipid , AWGT, f=.8)) -- Dean Sonneborn, MS Programmer Analyst Department of Public Health Sciences University of California, Davis (530) 754-9516
2006 Feb 05
0
Enum patch for Rails
...inary then self.class.binary_to_string(value) when :boolean then self.class.value_to_boolean(value) + when :enum then value.intern else value end end @@ -77,6 +79,7 @@ when :date then "#{self.class.name}.string_to_date(#{var_name})" when :binary then "#{self.class.name}.binary_to_string(#{var_name})" when :boolean then "#{self.class.name}.value_to_boolean(#{var_name})" + when :enum then "#{var_name}.to_s.intern" else nil end...
2007 Jun 06
4
meetme realtime
Hi iam using 1.2.17 does any one have information meetme in realtime and store in mysql i dont see any document could some one help me is this possible ? ram -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070606/36d236c2/attachment.htm
2006 Jul 12
2
Can''t get observe_field to take a variable for a field name
The subject pretty much says it all: I can''t?get observe_field to take a variable for a field name I''ve tried: <%= observe_field(var_name, ... <%= observe_field("#{var_name}", ... <%= observe_field(:"#{var_name}", ... No luck. Am I missing something? Thanks, : ) Jason -- Posted via http://www.ruby-forum.com/.
2006 Nov 02
0
Static Realtime Select from Database
I did an ngrep trace of what Asterisk realtime static does when it queries the database. Here's what I saw SELECT category, var_name, var_val, cat_metric FROM rt_pbx1_sip_vw WHERE filename='sip.conf' and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id; Firstly, why does it order in DESCENDING order by cat_metric? Shouldn't it be ASCENDING order? The docs imply that yo...
2005 May 16
3
voicemail.conf from DB
Hi I have been playing with trying to get voicemail.conf from DB, I am using cvs-head, but when I start asterisk, it dies a horrible death, because it cant load any voicemil setting. I looked at my mysql logs to see what query was being sent, and I get SELECT category, var_name, var_val, cat_metric FROM voicemail_users WHERE filename='voicemail.conf' and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id; which is in no way related to the table I created following the example on the wiki. Is there another table fo...
2004 Dec 31
1
Help With Configuration From Odbc
...ostgreSQL ODBC driver for Linux and Windows Driver=/usr/local/lib/psqlodbc.so Setup=/usr/lib/odbc/libodbcpsqlS.so Debug = 1 CommLog = 1 root@pbx:# echo "select * from ast_config where filename='iax.conf' and commented=0 order by filename,cat_metric desc,var_metric asc,category,var_name,var_val,id" | isql Asterisk <lot of output from table> SQLRowCount returns 39 39 rows fetched So the odbc thingy works! root@pbx:# cat res_config_odbc.conf [settings] table = ast_config connection = myconn root@pbx:# cat res_odbc.conf [myconn] dsn=Asterisk username...