search for: num_valu

Displaying 8 results from an estimated 8 matches for "num_valu".

Did you mean: num_value
2010 Jul 19
2
error when copy and transform within a data frame
...sure why a=c(1,2,3) b=c(2,3,4) c=c("Yes","No","Yes") d=c("No","Yes","No") df=data.frame(a,b,c,d) # the following works fine! df = transform(df, new=sapply(df[,c(1,2)], FUN = function(x) { x^2 } )) # but the following doesn't work: num_value = function(x) { if (x == "Yes") { return(1) } else if (x == "No") { return(0) } else return(NA) } df = transform(df, new=sapply(df[,c(3,4)], FUN = num_value )) # generates this error.. Error in data.frame(list(a = c(1, 2, 3), b = c(2, 3, 4), c = c(2L, 1L, : argumen...
2018 Mar 16
2
[PATCH] drm: Don't pass the index to drm_property_add_enum()
.../gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c index 8f4672daac7f..1f8031e30f53 100644 --- a/drivers/gpu/drm/drm_property.c +++ b/drivers/gpu/drm/drm_property.c @@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev, return NULL; for (i = 0; i < num_values; i++) { - ret = drm_property_add_enum(property, i, - props[i].type, - props[i].name); + ret = drm_property_add_enum(property, + props[i].type, + props[i].name); if (ret) { drm_property_destroy(dev, property); return NULL; @@ -209,7 +209,7 @@ struct d...
2018 Apr 26
1
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...rty.c b/drivers/gpu/drm/drm_property.c index 8f4672daac7f..1f8031e30f53 100644 --- a/drivers/gpu/drm/drm_property.c +++ b/drivers/gpu/drm/drm_property.c @@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev, return NULL; for (i = 0; i < num_values; i++) { - ret = drm_property_add_enum(property, i, - props[i].type, - props[i].name); + ret = drm_property_add_enum(property, + props[i].type, +...
2018 Apr 23
0
[PATCH] drm: Don't pass the index to drm_property_add_enum()
...rty.c b/drivers/gpu/drm/drm_property.c index 8f4672daac7f..1f8031e30f53 100644 --- a/drivers/gpu/drm/drm_property.c +++ b/drivers/gpu/drm/drm_property.c @@ -169,9 +169,9 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev, return NULL; for (i = 0; i < num_values; i++) { - ret = drm_property_add_enum(property, i, - props[i].type, - props[i].name); + ret = drm_property_add_enum(property, + props[i].type, +...
2016 Apr 14
0
create new child windows domain in existing samba forest
...attributes: struct drsuapi_DsReplicaAttribute attid : DRSUAPI_ATTID_systemFlags (0x90177) value_ctr: struct drsuapi_DsAttributeValueCtr num_values : 0x00000001 (1) values : * values: ARRAY(1) values: struct drsuapi_DsAttributeValue...
2006 Jun 05
2
[PATCH] Pet peave then->than
...indicated data length!\n")); } return WERR_OK; Index: source/lib/registry/registry.h =================================================================== --- source/lib/registry/registry.h (revision 16046) +++ source/lib/registry/registry.h (working copy) @@ -103,11 +103,11 @@ WERROR (*num_values) (const struct registry_key *, uint32_t *count); WERROR (*get_subkey_by_index) (TALLOC_CTX *, const struct registry_key *, int idx, struct registry_key **); - /* Can not contain more then one level */ + /* Can not contain more than one level */ WERROR (*get_subkey_by_name) (TALLOC_CTX *, co...
2008 Mar 06
0
[ANNOUNCE] xorg-server 1.4.99.901
...atus. config: don't reset connection info on disconnect. xfree86: fix AlwaysCore handling. (Bug #14256) xkb: don't update LEDs if they don't exist. (Bug #13961) dix: print out event type if a bogus pointer event occurs. xfree86: stick two more checks in for num_valuators < MAX_VALUATORS mi: Only UpdateSpriteForScreen if we actually changed the screen. (Bug #12650) xkb: when copying sections, make sure num_rows is set too. xkb: when copying the keymap, make sure the structs default to 0/NULL. xfree86: guard against NULL-pointer derefe...
2012 Nov 05
7
VFS ACL with SMB2
Hello, I have a question because POSIX ACL with SMB2 max protocol does not work properly.Did you test VFS xattr acls with SMB2 max protocol? Is it working corectly? Best regards/Adrian Berlin --