Posts

ionic - 3g connection no call control when navigate between views angularjs -

i 'm creating mobile application using angularjs , ionic . one of parts of application create list of items calling rest api. if testing application desktop computer or mobile using wifi , works , list refreshes . however, if mobile prove same using 3g connection, drivers not called when navigate between views, , list not refreshed , showing previous value. can me out?

ms access - VBA code works in Access97 but not 2010 -

the 1st record in open order table matches record in bookings table no match = true happening , therefore goes down thru code anf tries insert new record. true several records in file , tries add record though there match. if set no match = false else. imported these table access 97 2010 working correctly. appreciated. additional note: while in debug, if hover mouse on .seek "=", tempcust, temppart fields, shows 1st record in table , data in bookings table. not understanding why not matching? sub get_current_info() docmd.setwarnings false dim rstopenord, rstbookings recordset dim tempcust, temppart, tempqty, tempdollars variant set rstopenord = currentdb.openrecordset("open orders", dbopentable) set rstbookings = currentdb.openrecordset("bookings", dbopentable) 'get open orders while not rstopenord.eof rstopenord tempcust = !odcsno temppart = !oditno tempqty = !o...

image - Find the most common circle from an array of circles python opencv -

Image
i using opencv image detecting. now, i'm detecting circles in image. it's doing pretty good, i've set detect multiple circles 1 real circle, remove false positives. here sample: in image, have 6-8 circles totally. want circles, 2 circles, common ones. i using opencv circles images. have list of points (x,y) , don't know how make take common one. any suggestions appreciated. i think clustering k-means solution problem described here . depending on number of false positives can experiment parameters, don't have experience typical part of opencv can't make suggestions.

javascript - Ocanvas creation inquiry -

i'm still little fuzzy on ocanvas, i'm new it. know it's not best choice or documented, have potential job depends on me learning it. i wondering ocanvas.create(); should placed. right have function called main(); in html head , html body runs every time body loops. seems ocanvas.create(); works if place in main(); function, creating canvas every time body loops? can explain bit more 'every time body loops'? have settimeout/setinterval/requestanimationframe runs main many times? in case, run ocanvas.create outside of main , access inside main when needed.

Generate Subject Hash of X509Certificate in Java -

i'm trying generate subject hash using java security api , bouncycastle. here's do, when use openssl library: openssl x509 -in /users/sn0wfreezedev/downloads/test.pem -hash this generates short 8 digit hash 1817886a this java code x509certificate cert = certmanager.getcertificate(number, c); messagedigest sha1 = messagedigest.getinstance("sha1"); system.out.println(" subject " + cert.getsubjectdn()); system.out.println(" issuer " + cert.getissuerdn()); sha1.update(cert.getsubjectdn().getname().getbytes()); string hexstring = bytestohex(sha1.digest()); system.out.println(" sha1 " + hexstring); system.out.println(); this generates short 8 digit hash 1817886a there 2 forms of openssl: $ cd openssl-1.0.2-src $ grep -r x509_subject_name_hash * ... crypto/x509/x509.h:unsigned long x509_subject_name_hash(x509 *x); crypto/x509/x509.h:unsigned long x509_subject_name_hash_old(x509 *x); crypto/x509/x509_c...

java - Property is already defined error in wsdl2java -

i trying generate proxy classes wsdl2java using cxf, whenever try keep on getting below error: wsdltojava error: http://webservices.sabre.com/wsdl/sabrexml1.0.00/shopping/grou peditineraryresponse_v1-0-2.xsd [0,0]: property "validatingcarrier" d efined. use <jaxb:property> resolve conflict. http://webservices.sabre.com/wsdl/sabrexml1.0.00/shopping/groupeditineraryrespon se_v1-0-2.xsd [0,0]: following location relevant above error i tried add binding file wsdl2java.bat got info 1 of url this: <jaxws:bindings wsdllocation="http://webservices.sabre.com/wsdl/sabrexml1.0.00/shopping/bargainfindermaxrq_v1-8-2.wsdl" xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:extensionbindingprefixes="xjc" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc...

ember.js - Ember CLI path based on server response -

i'm developing substantial ember app, using ember cli, , i'm struggling few aspects of it. what want is: show dropdown list of options when user picks option, post choice backend the response server contains data based on user picked in dropdown. after getting server response want transition new route path ends 1 of values returned server. for example: /path/to/dropdown -- shows dropdown user pick from, posted backend. backend responds with, amongst other data: slug: <stringvalue> this transitions to: /path/to/slug -- slug <stringvalue> so far i've got 1 & 2 above working, can't figure out how make step 3 work. i've tried using serialize function in /path/to/slug route , /path/to/dropdown controller, returns undefined . the ajax call server, based on user's dropdown choice, happens in /path/to/dropdown controller. i've set router as: this.route('options', { path : ':slug' }); would great if...