Posts

Distracting Exception output in QtCreator when debugging Windows application -

i using qtcreator 4.1rc1 under windows msvc tool chain. debugger cdb windows 8.1 sdk. had same issue older versions of qtcreator. when debug application, there many messages output (and issues) pane in form exception @ 0x773596c2, code: 0xe06d7363: c++ exception, flags=0x1 (execution cannot continued) (first chance) in winscard!scardtransmit i understand, expected under windows , exceptions not problem. pollute output , issues pane , render them useless. so tried rid of messages. but failed after hours trying. tried following: use check box 'ignore first chance access violation' under tools->options->debugger->cdb specifying command line arguments cdb.exe: -xi create script file cdb.exe used @ startup avoid warnings. script contained commands 'sxi 8010000a; sxi 0000071a; sxi e06d7363'. tried placing script in several directories , specifying command line options -cf or -cfr. when run cdb.exe command line using startup script, works! no exce...

jquery - How to use Bootstrap JavaScript plugins (dropdowns, modals) in Emberjs -

i can't bootstrap javascript plugins dropdowns , modals work out of box in ember. command line: ember new test-app ember install ember-bootstrap ember generate route test ember generate component jquery-test app/templates/test.hbs: {{jquery-test}} app/templates/components/jquery-test.hbs (copied getbootstrap.com): <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#mymodal"> launch demo modal </button> <div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="close"><span aria-hidden="true...

Android: How to change the Mobile hotspot broadcast channel by programmatically? -

i tried change mobile hotsport broadcast channel in android programmatically using following code not changing value/channel. note: able change ssid , password programmatically. tried set channel 11, still not working... thanks in advance my code is public void hotspotchannelwrite() { wifimanager wifimanager = (wifimanager)getsystemservice(wifi_service); if(wifimanager.iswifienabled()) { wifimanager.setwifienabled(false); } netconfig = new wificonfiguration(); netconfig.ssid = "tipturinfo"; netconfig.presharedkey = "sharath"; netconfig.allowedauthalgorithms.set(wificonfiguration.authalgorithm.open); netconfig.allowedprotocols.set(wificonfiguration.protocol.rsn); netconfig.allowedprotocols.set(wificonfiguration.protocol.wpa); netconfig.allowedkeymanagement.set(wificonfiguration.keymgmt.wpa_psk); netconfig.allowedgroupciphers.set(wificonfiguration.groupcipher.tkip); netconfig.allowedgroupcipher...

elasticsearch - dynamic mapping for nested type -

i have index/type of test1/all looks follows: { "test1": { "mappings": { "all": { "properties": { "colors": { "properties": { "h": {"type": "double"}, "s": {"type": "long"}, "v": {"type": "long"}, "color_percent": {"type": "long"} } }, "file_name": { "type": "string" }, "id": { "type": "string" }, "no_of_colors": { "type": "long" } } } } } } i make colors field nested, trying following : ...

arrays - Does joined() or flatMap(_:) perform better in Swift 3? -

i'm curious performance characteristics of joined() , .flatmap(_:) in flattening multidimensional array: let array = [[1,2,3],[4,5,6],[7,8,9]] let j = array(array.joined()) let f = array.flatmap{$0} they both flatten nested array [1, 2, 3, 4, 5, 6, 7, 8, 9] . should prefer 1 on other performance? also, there more readable way write calls? tl; dr when comes flattening 2d arrays (without transformations or separators applied, see @dfri's answer more info aspect), array.flatmap{$0} , array(array.joined()) both conceptually same , have similar performance. the main difference between flatmap(_:) , joined() (note isn't new method, has just been renamed flatten() ) joined() lazily applied (for arrays, returns special flattenbidirectionalcollection<base> ). therefore in terms of performance, makes sense use joined() on flatmap(_:) in situations want iterate on part of flattened sequence (without applying transformations). example: let ar...

java - How to enable --no-reset if appium server is started by AppiumServiceBuilder -

i have started appium server using appiumserverbuilder service = appiumdriverlocalservice .buildservice(new appiumservicebuilder() .usingdriverexecutable(new file(nodejsexecutable)) .withappiumjs(new file(appiumjsexecutable)) .withipaddress(appiumserveraddress) .usingport(appiumserverport)); now appium server gets started default --full-reset capability, causing app reset every time on each run. need set --no-reset appium server appium doesn't re install app everytime . how can here? you can explicitly set "noresetvalue" appium capability accepts boolean value, true/false when set true , prevents app re-installing each time, java example: capabilities = new desiredcapabilities(); capabilities.setcapability("noresetvalue","true");

How to install module from another python installation -

i using winpython. simple distribution, want use winpython zero. possible install package winpython folder winpython 0 folder? in theory, possible way to: download packages https://sourceforge.net/projects/winpython/files/winpython_source/do_it_yourself/winpython_2016-03/ unzip them in d:\toto then pip install the_package_i_want --no-index --find-links=d:\toto --trusted-host=none