Posts

Featured post

java - Unable to make sub reports with Jasper -

i using jaspersoft studio create reports. having sub report in jasper main report. problem unable make work, because if add sub report detail band of main report, sub report generated number of times, row row, entire sub report repeated in number of pages. can't put in summery band due same reason. i unable put in column footer band or other footers because displays below error net.sf.jasperreports.engine.jrexception: net.sf.jasperreports.engine.jrruntimeexception: subreport overflowed on band not support overflow. @ com.jaspersoft.studio.editor.preview.view.control.reportcontroler.fillreport(reportcontroler.java:467) @ com.jaspersoft.studio.editor.preview.view.control.reportcontroler.access$18(reportcontroler.java:442) @ com.jaspersoft.studio.editor.preview.view.control.reportcontroler$4.run(reportcontroler.java:334) @ org.eclipse.core.internal.jobs.worker.run(worker.java:54) caused by: net.sf.jasperreports.engine.jrruntimeexception: subreport overflowe...

APEX - Parsing a recursive JSON -

i programming salesforce (apex). input complex , recursive json. { "id":"0", "children":[ { "id":"1", "children":[...] }, { "id":"2", "children":[...] } ] } i need way iterate complex , recursive json (in apex). anyone can help? thanks, hagai if know names of attributes in json object, can create classes represent them , deserialize. instance: public class myobject { public string id; public list<myobject> children; } then write method returns children static list<myobject> getchildren(myobject parent){ list<myobject> children = new list<myobject>(); ( myobject c : parent.children ){ children.addall( getchildren(c) ); children.add(c); } return children; } and put 2 together: myobject parent = (myobject)json.deseria...

mysql - What is the correct syntax for a Regex find-and-replace using REGEXP_REPLACE in MariaDB? -

i need run regex find-and-replace against column named message in mysql table named post . my database running mariadb 10. according docs , mariadb 10 has new regexp_replace function designed this, can't seem figure out actual syntax. it affect 280,000 rows, ideally there's way limit changing 1 specific row @ time while i'm testing it, or doing select rather update until i'm sure want. the regex want run: \[quote\sauthor=(.+)\slink=[^\]]+] the replacement string: [quote="$1"] the following tried, throws sql error: update post set message = regexp_replace(message, '\[quote\sauthor=(.+)\slink=[^\]]+]', '[quote="$1"]') post_id = 12 in case, original message was: [quote author=jon_doe link=board=2;threadid=125;start=40#msg1206 date=1065088] , end result should [quote="jon_doe"] what proper syntax make regexp_replace work? you have lot of escaping here: regexp_replace(message, "\\[qu...

php - Converting my web app to SSL -

i have server host web app requires log in. log in very insecure. has prompted me want switch on https. if switch on ssl android app, uses http posting website,not allowed work? your android app work ssl. update android app use new https api address on webserver should forward every request going http://example.com/login https://example.com/login this way, current android version continue work, , new android version use https default.

ember.js - ember-cli / ember-data model unit tests using http-mocks -

i using ember-cli / ember-cli-mocha testing. have generated http-mock work when run app via ember serve . however, when run tests -- (e.g. see below...), error: sheet calculates exported fields ✘ assertion failed: unable find fixtures model type (subclass of ds.model). if you're defining fixtures using `model.fixtures = ...`, please change `model.reopenclass({ fixtures: ... })`. i presume unit test setup must set store use fixtures. there configuration somewhere use http-mocks instead? start of test ... 'calculates exported fields', -> # now, exported fields fields , variables expected = `new set()` sheet = null store = @store() ember.run -> store.find('sheet', '1').then( (sheet_)-> sheet = sheet_ promise.all([ sheet.get('fields'), sheet.get('formulas')]) ).then((args)-> [fields, formulas] = args fields.foreach (f)->expected.add(f) ... ...

java - Submitting a form using html unit -

i want login https://pacer.login.uscourts.gov/csologin/login.jsf . have used html unit submitting login form. here code: public void submittingform() throws exception { final webclient webclient = new webclient(); // first page final htmlpage page1 = webclient.getpage("https://pacer.login.uscourts.gov/csologin/login.jsf"); // form dealing , within form, // find submit button , field want change. final htmlform form = page1.getformbyname("login"); // final htmlsubmitbutton button = form.getbuttonbyname("login:j_idt184"); final htmltextinput textfield = form.getinputbyname("login:loginname"); final htmltextinput textfield1 = form.getinputbyname("login:password"); // change value of text field textfield.setvalueattribute("xxx"); textfield1.setvalueattribute("xxx"); // submit form clicking button , second page. final htmlpage page2 = form.getbuttonbyname(...

java - How to retrieve field values by passing field name using JPOS ISO8583 message format -

i want retrieve field values passing filed name .in order achieve have implemented method loop through isomsg object , if found match passed filed name returns .my requirement read .xml file once , have static map using on next time retrieve corresponding value passing field name in order achieve there way retrieve field in config xml. protected static void getiso8583valuebyfieldname(isomsg isomsg, string fieldname) { (int = 1; <= isomsg.getmaxfield(); i++) { if (isomsg.hasfield(i)) { if (isomsg.getpackager().getfielddescription(isomsg, i).equalsignorecase(fieldname)) { system.out.println( " found field -" + + " : " + isomsg.getstring(i) + " " + isomsg.getpackager() .getfielddescription(isomsg, i)); break; } } } } you can define enum field names, mapped field numbers. please note field names may vary packager packager, solution kind of brittle, it's better use enum, or const...