Posts

How to make multitenancy with pentaho -

i'm using pentaho ee 6.1, , i'd setup data source specific user, i'v seen in link https://help.pentaho.com/documentation/6.1/0r0/070/multi-tenancy don't undersand how make it. please. question not clear. had same issue sometime , sharing research , understanding. in data integration have option called parameterised connection , in way can achieve multitenancy due pentaho architecture of bi server we can't achieve same in bi server . can achieve in bi server through stored procedure 1 of way.

ios - consecutive statements on a line must be separated by '; ' swift -

hello i'm trying make app convert human years cat years , having trouble button tap show cat year. @ibaction func findage(_ sender: anyobject) { var enteredage = age.text var myint: 13 = int(enteredage) var catyears = enteredage * 7 print(age.text) } on var myint: 13 = int(enteredage) 2 errors 1 title of question , other says "expected type" running xcode 8 beta. var myint : int = int(enteredage) ; error unhelpful in swift debugging, el captain pointed out, info following : in swift should object type.

java - SELECT DISTINCT + ORDER BY in JPA 2 Criteria API -

i've class lawsuit , contains list<hearing> , each 1 date attribute. i need select lawsuit s ordered date of hearing s i've criteriaquery like criteriabuilder cb = em.getcriteriabuilder(); criteriaquery<lawsuit> cq = cb.createquery(lawsuit.class); root<lawsuit> root = cq.from(lawsuit.class); i use distinct flatten results: cq.select(root).distinct(true); i join lawsuit hearing join<lawsuit, hearing> hearing = root.join("hearings", jointype.inner); to create predicate s predicatelist.add(cb.isnotnull(hearing.<date>get("date"))); and order s: orderlist.add(cb.asc(hearing.<date>get("date"))); everything works fine if avoid distinct , if use it, complains not being able order based on fields not in select: caused by: org.postgresql.util.psqlexception: error: select distinct , order by expressions must appear in select list the list<hearing> acces...

android - Access In App Purchase Plugin in Ionic 2 -

i making small ionic 2 app learning framework , want test in app purchase plugin (cordova plugin add cordova-plugin-inapppurchase). my plugin list $ ionic plugins list cordova-plugin-console 1.0.3 "console" cordova-plugin-device 1.1.2 "device" cordova-plugin-inapppurchase 1.0.0 "in app purchase" cordova-plugin-splashscreen 3.2.2 "splashscreen" cordova-plugin-statusbar 2.1.3 "statusbar" cordova-plugin-whitelist 1.2.2 "whitelist" ionic-plugin-keyboard 2.2.1 "keyboard" so seams plugin installed correctly. i've read access cordova plugins via cordova.plugins.myplugin.afunction() in controller coded following print accessible plugins: this.platform.ready().then(() => { console.log(cordova.plugins); }); when deploy app on android device holds keyboard-function. have idea how use , access in app purchase plugin? thank you. i have not tried came across may helpful yesterday. you mu...

winforms - BeginInvoke() giving errors in my C# code -

i trying implement begininvoke() in code , came across part throwing error. private void showpiclensplot() { if (piclensplot.invokerequired) { piclensplot.begininvoke(new action<control, bool>(showpiclensplot, piclensplot, true)); } else { piclensplot.bringtofront(); } } the error methodname expected above source code has been converted c# vb , online tool used to this. piclensplot private system.windows.forms.picturebox piclensplot; this should work: if (piclensplot.invokerequired) { piclensplot.begininvoke(new action(() => showpiclensplot())); } else { piclensplot.bringtofront(); }

ruby - Mechanize / Nokogiri failing to parse XML with xpath -

i receive xml file api. i'm trying parse mechanize receives xml file. underlying nokogiri. whatever can't seem return xpath variables. seems recognise xml file fine i.e comes in mechanize::xmlfile , shows elements if use nokogiri. i can run. xml.at("/") and response, other .at or .search run returns nil. e.g. xml.at("//duration") an example response below. @body = "<jobsearchresults xmlns:i=\"http://www.w3.org/2001/xmlschema-instance\" xmlns=\"http://schemas.aspiremediagroup.net/jobboard/1.0/beta\"><duration>p0dt0h0m0.328s</duration><jobcount>0</jobcount><jobids /><jobs /><pagecount>0</pagecount><pageno>0</pageno><pagesize>20</pagesize><proximitystats i:nil=\"true\" /><rolesuggestions><string>adding</string></rolesuggestions><search><accountgroupids i:nil=\"true\" /><accoun...

Invalid Reset Password Token ASP.NET C# -

i generate reset password token in 1 request, when want reset password in next request, says invalid token. public async task<string> getresettoken(string userid) { var token = await _usermanager.generatepasswordresettokenasync(userid); return token; } public async task<identityresult> resetpassword(string userid, string token, string newpassword) { var result = await _usermanager.resetpasswordasync(userid, token, newpassword); return result; } these 2 functions called respective api endpoints. flow of whole process is: enter email on website the api generates token , email gets sent reset link the reset link takes reset password page the page hits api again reset password everything works except step 4, because api comes invalid token. i've checked token being generated same token received in step 4.