search for: grplist

Displaying 7 results from an estimated 7 matches for "grplist".

Did you mean: geplist
2010 Jul 10
2
PHP can't insert - Can someone please help
...e three fields in a POST form that have to be connected together to make it a single 10 digit number but there is something wrong in my syntax probably. $npaa = "('$_POST[anpa]')"; $nxxa = "('$_POST[anxx]')"; $blocka = "('$_POST[ablock]')"; *$grplist = $npaa.$nxxa.$blocka;* $sql="INSERT INTO findmefollow(grpnum, strategy, grptime, grppre, grplist, annmsg_id, postdest, dring, needsconf, remotealert_id, toolate_id, ringing, pre_ring) VALUES ('$_POST[grpnum]','ringall','$_POST[grptime]','$_POST[grppre]',$grpli...
2010 Jul 12
1
My own FreePBX FollowME module - Stuck at Reload - Anyone else had experience with this?
Hi Everyone, I have done some php coding to come up with my own FollowME module for FreePBX. The need for this has some security considerations behind it. This is what my code does at core: $sql="REPLACE INTO findmefollow(grpnum, strategy, grptime, grppre, grplist, annmsg_id,postdest, dring, needsconf, remotealert_id, toolate_id, ringing, pre_ring) VALUES ('$_POST[grpnum]','ringall','$_POST[grptime]','$_POST[grppre]','$grplist','0','$postdest','','','0','0','Ring'...
2007 Nov 11
0
Patch to sshd match
...config file line. + * Return: + * 1 match + * 0 not match + * -1 error + */ static int -match_cfg_line_group(const char *grps, int line, const char *user) +match_cfg_line_group(const char *grps, int line, const char *user, int not) { int result = 0; u_int ngrps = 0; char *arg, *p, *cp, *grplist[MAX_MATCH_GROUPS]; struct passwd *pw; + char* notstr = not ? "!" : ""; /* * Even if we do not have a user yet, we still need to check for @@ -529,12 +537,12 @@ } else if (ga_init(pw->pw_name, pw->pw_gid) == 0) { debug("Can't Match group because u...
2017 Oct 26
0
Help needed with aggregate or other solution
...all arguments must be named dta2 <- dta # bad idea to work with dates as factors dta2$date <- as.POSIXct( as.character( dta2$date ) ) dta2$basistime <- as.POSIXct( as.character( dta2$basistime ) ) # base R solution dates <- unique( dta2$date ) dta2list <- split( dta2, dta2$date ) grplist <- lapply( dta2list , function( DF ) { DF[ which.max( DF$fcst ), ] } ) result2 <- do.call( rbind, grplist ) result2 #> date basistime fcst usgs #> 2012-01-25 18:00:...
2017 Oct 26
3
Help needed with aggregate or other solution
...a > # bad idea to work with dates as factors > dta2$date <- as.POSIXct( as.character( dta2$date ) ) > dta2$basistime <- as.POSIXct( as.character( dta2$basistime ) ) > > # base R solution > > dates <- unique( dta2$date ) > dta2list <- split( dta2, dta2$date ) > grplist <- lapply( dta2list > , function( DF ) { > DF[ which.max( DF$fcst ), ] > } > ) > result2 <- do.call( rbind, grplist ) > result2 > #> date basistime fc...
2017 Oct 26
0
Help needed with aggregate or other solution
...> # bad idea to work with dates as factors > dta2$date <- as.POSIXct( as.character( dta2$date ) ) > dta2$basistime <- as.POSIXct( as.character( dta2$basistime ) ) > > # base R solution > > dates <- unique( dta2$date ) > dta2list <- split( dta2, dta2$date ) > grplist <- lapply( dta2list > ? ? ? ? ? ? ? ? ?, function( DF ) { > ? ? ? ? ? ? ? ? ? ? ?DF[ which.max( DF$fcst ), ] > ? ? ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ? ?) > result2 <- do.call( rbind, grplist ) > result2 > #>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? date? ? ? ? ? ?basistime fc...
2017 Oct 26
2
Help needed with aggregate or other solution
Hello all! I've been struggling with is for many hours today; I'm close to getting what I want, but not close enough... I have a dataframe consisting of two date-time columns followed by two numeric columns. what I need is the max value (in the first numeric column) based on the 2nd date-time column, which is essentially a factor. But, I want the result to provide both date-time values