Posts

Featured post

merge - Have nomatch return value as-is using match function in R -

merge - Have nomatch return value as-is using match function in R - i have much larger existing dataframe. smaller illustration replace of variables (replace state (df1)) newstate (df2) according column "first." issue values returned na since of names matched in new dataframe (df2). existing dataframe: state = c("ca","wa","or","az") first = c("jim","mick","paul","ron") df1 <- data.frame(first, state) first state 1 jim ca 2 mick wa 3 paul or 4 ron az new dataframe match existing dataframe state = c("ca","wa") newstate = c("tx", "la") first =c("jim","mick") df2 <- data.frame(first, state, newstate) first state newstate 1 jim ca tx 2 mick wa la tried utilize match returns na "state" matching "first" variable df2 not found in ori

json - Gson handling List Item Pairs of type -

json - Gson handling List Item Pairs of type <String, Object> - i'm reading in json string similar this... {"flags":{"0":null,"2166136261":null}} i have no thought on how handle class representation of this? smaller part of complex response i'm slowing trying class out create reading , writing gson simpler. i can't figure out how represent list item pairs of in class file. seems simple can't figure out @ moment. help appreciated. use code below class flag { map<object, object> flags; public map<object, object> getmap() { homecoming flags; } public void setmap(map<object, object> flags) { this.flags = flags; } } main class flag flag = new flag(); map<object, object> flags = new hashmap<object, object>(); flags.put("0", "test0"); flags.put("1", "test1"); flag.setmap(flags); system.out.println(new

SOLVED: Unable to authenticate via LDAP to directory (Active Directory) with Spring Security -

SOLVED: Unable to authenticate via LDAP to directory (Active Directory) with Spring Security - i'm using: - spring 3.1.3 and problem i'm unable connect active directory via ldap using valid credentials. i don't know if caused malformed pattern or configuration issue userdn or url's rootdn. although , @ first glance , seems correct. this current spring security config file: ... <security:authentication-manager alias="authenticationmanager"> <security:authentication-provider ref="ldapauthprovider" /> </security:authentication-manager> <bean id="ldapauthprovider" class="org.springframework.security.ldap.authentication.ldapauthenticationprovider"> <constructor-arg> <bean id="bindauthenticator" class="org.springframework.security.ldap.authentication.bindauthenticator"> <constructor-arg ref="contextsour

c# - ASP.NET Website: page with multiple forms -

c# - ASP.NET Website: page with multiple forms - i'm having problem while creating dynamically web page in asp.net (c#). i need insert multiple form tags in page, know can't set more 1 runat="server" attribute , don't need it. i want place them c# (one each element i've got manage), without runat attribute htmlform object utilize insert form adds runat attribute automatically , can't remove (tried form.attributes.remove("runat")) if utilize simple string like: "<form id="someid" method="post" action=""></form>" and add together multiple times div works. point don't want insert html objects writing them in string , add together innerhtml method. i'm looking object manage form without runat attribute or way remove htmlform. a user command cleanest solution can add together htmlgenericcontrol instead of htmlform object isn't bound specific attributes.

Drop and Inner shadow for button in javafx -

Drop and Inner shadow for button in javafx - i have button in javafx , pseudoclass .button:pressed supposed have drop , inner shadow. i'm trying is .button:pressed { -fx-effect: dropshadow( gaussian , rgba(0,0,0,0.7) , 10,0,0,1 ); -fx-effect: innershadow( gaussian , rgba(0,0,0,0.7) , 20,0,0,0 ); } however, sec effect seems applied button (actually, effect whichever comes sec applied). i've looked here: http://www.canoo.com/blog/2012/07/10/javafx-recipes-css-vs-code/?lang=de, don't see difference approach. there way apply 2 shadows 1 button? thank you. it's not possible in java 7 nor in java 8 chain effects or apply multiple effects via css. see oracle css documentation. the site reference mentions well: well @ moment not possible chain effects in css means apply 1 of needed effects lead next result code above… button javafx dropshadow

How to write API data to a computer file? -

How to write API data to a computer file? - i've never used api before. want start using api gives me prices , characteristics of items in online game. i'm in processing of learning how create api able extract available info specific website has such information. here's question: after extracting info website using api, want download info analysis. example, nice if download info excel file or csv file format can later import. know how can that? let me know if question still vague. here's api means: api, abbreviation of application programme interface, set of routines, protocols, , tools building software applications. api specifies how software components should interact , used when programming graphical user interface (gui) components. api makes easier develop programme providing building blocks. programmer puts blocks together. generally recieve info api json(java script object notation) or xml file.i prefer json because gives programmers

msbuild - TFS: Wix using TfvcTemplate.12 unable to find source files -

msbuild - TFS: Wix using TfvcTemplate.12 unable to find source files - i need utilize tfvctemplate.12.xaml because of pre , post build script execution back upwards , need run powershell script prebuild event. on tfs 2013, building wix project using old defaulttemplate.xaml works fine. while trying build using new default template tfvctemplate.12.xaml builds csharp project fine, wix unable find files, while files nowadays @ same location. here wix code: <?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?define sourcedir=$(var.outdir)?> <?warning **************** target=$(var.targetdir) ***********?> <?warning **************** src=$(var.sourcedir) **************?> <product id="*" language="1033" manufacturer="test" name="testing" upgradecode="db7dac5a-ed29-45e6-8029-89f6486a9aca" version="1.0.0.0&qu