Posts

angularjs - Using browser.get causes asynchronous script timeout -

i'm using protractor automation testing , encountered following behavior: when try use browser.get load certin page page loaded following error: error while running testforangular: asynchronous script timeout: result not received in 11 seconds. i use browser.get in following way: beforeeach(function() { browser.ignoresynchronization = false; browser.get('https://.../automation_vf'); browser.ignoresynchronization = true; },60000); it(data.testproperties.description, function () { browser.executescript('return remoteactions;') .then(function(remoteaction) { browser.executeasyncscript(function(remoteaction) { var callback = arguments[arguments.length - 1]; visualforce.remoting.manager.invokeaction(remoteaction.clearalldata, function (res, ev) { callback(res); }, { buffer: false, escape: false, timeout: 15000 }); },re...

subprocess crashes on osx python -

i have gui software in wanted heavy tasks create new subprocesses run tasks. using multiprocessing module , works fine on windows unix. when try same osx 10.6 process crash occurs , long error report cannot decipher. here used make sub-process :- p = multiprocessing.process(target = encode.encode , args = (self.path,self.savepath,) , name = "encode process") p.start() temp = wx.progressdialog('please wait...', 'encoding file....this may take several minutes....\n\t....so sit , relax....',parent = self,style = wx.pd_app_modal | wx.pd_can_abort) temp.setsize((450,130)) while len(multiprocessing.active_children()) != 0: time.sleep(0.1) if not temp.updatepulse("encoding file....this may take several minutes...\n\tso sit , relax.....")[0]: p.terminate() terminated = true break temp.destroy() p.join() p.terminate() here crash report :- path:/library/frameworks/python.framewor...

python 3.x - In a nested for-loop, how can I access the outer loop index in a jinja template? -

{{loop.index}} correctly dereferences innermost loop. i'm not seeing way identify loop index i'd like, however, if have more 1 loop nested. http://jinja.pocoo.org/docs/dev/templates/ yes. part of documentation answers question! the special loop variable points innermost loop. if it’s desired have access outer loop it’s possible alias it: <table> {% row in table %} <tr> {% set rowloop = loop %} {% cell in row %} <td id="cell-{{ rowloop.index }}-{{ loop.index }}">{{ cell }}</td> {% endfor %} </tr> {% endfor %} </table> http://jinja.pocoo.org/docs/dev/tricks/#accessing-the-parent-loop

iphone - iOS - Property 'isConnected' not found on object of type 'CBPeripheral' -

good day. trying replicate android app made ios. i'm trying make ble application ios device able see , connect ble devices , rssi (i don't care message , other data). upon search research, found this blte central peripheral transfer example in ios developer library. upon downloading, opening xcode project, , ran it. however, ran error shorty after code: if (!self.discoveredperipheral.isconnected) { return; } where error is: property 'isconnected' not found on object of type 'cbperipheral' upon searching again, i found link . however, seems thread not have solutions answers discussed seem deprecated. can't seem find solutions issue well. has tried make code ios developer library work? lead appreciated. pretty sad code ios dev site deprecated , not updated. the documentation says deprecation statement use state property instead.

android - How to make text on button appear and disappear continualy -

i have button want text appear 1 second disappear 1 second, loop 6 seconds, here tried: for(int = 0 ; < 6 ; i++) { button.settextsize(18); try { thread.sleep(1000); } catch (interruptedexception e) { e.printstacktrace(); } button.settextsize(0); try { thread.sleep(1000); } catch (interruptedexception e) { e.printstacktrace(); } } first appear button's text size became 36 instead of 18, second is not act expected, never show text, note: text size start 0. how can achieve this? okey suggested want blink textview , here can do. create on folder under res called "anim", create 1 xml file under blink.xml , copy code in it. <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:fromalpha="0.0" android:toalpha="1.0" android:duration="10...

php - DHL XML Services - Book Pick Up - Error 108 System Unavailable -

i trying use dhl xml service request pickup. after giving value , using following code getting error error108system unavailable. how can resolve issue. due error in code or server not responding. request_pickup.php <?php $xml = file_get_contents('post_xml.xml'); $url = 'https://xmlpitest-ea.dhl.com/xmlshippingservlet/'; $post_data = array( "xml" => $xml, ); $stream_options = array( 'http' => array( 'method' => 'post', 'header' => "content-type: application/x-www-form-urlencoded\r\n", 'content' => http_build_query($post_data), ), ); $context = stream_context_create($stream_options); $response = file_get_contents($url, null, $context); var_dump($response); and other xml file is <?xml version="1.0" encoding="utf-8"?> <req:bookpurequest xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/x...

python - How to install OpenCV3 in Anaconda3 offline? -

i tried install opencv python-3.5 in anaconda using following command conda install -c https://conda.binstar.org/menpo opencv3 this taking long time download file. seems download accelerator better @ doing this. file location at https://anaconda.org/menpo/opencv3/3.1.0/download/osx-64/opencv3-3.1.0-py35_0.tar.bz2 is there way same installation offline given opencv3-3.1.0-py35_0.tar.bz2 file? if want install package file directly do conda install path_to_file/opencv3-3.1.0-py35_0.tar.bz2 where, of course, path_to_file file path file. note warning in conda install here: conda can called list of explicit conda package filenames (e.g. ./lxml-3.2.0-py27_0.tar.bz2). using conda in mode implies --force option, , should likewise used great caution. explicit filenames , package specifications cannot mixed in single command. you can use --offline argument make sure don't connect internet.