Posts

c++ - What does "0 skipped, 0 blacklisted" mean in the Qt Unit Test framework? -

when run qt unit test project, ends summary looks this: totals: 28 passed, 1 failed, 0 skipped, 0 blacklisted the "passed" , "failed" categories obvious, meaning of "skipped" , "blacklisted"? under conditions test framework skip test? how different blacklisting it? my qt version qt 5.4.1. test skipped, if qskip() called test function. qtestlib looks file called blacklist in test directory , parses if found. file contains simple ini style list of functions blacklist. details see qtestblacklist.cpp .

html - Height not adjusted when set to float value? -

i wrote html page css is body{ margin: 0 auto; min-width: 992px; background: #f2f2f2; } .container{ margin: 30px auto; padding:5px; width: 992px; height: auto; border: 1px solid #c6c6c6; border-radius: 15px; background: #fff; } .column{ margin:0px 5px 5px 0px; float:left; height: 50px; width: 486px; background: #0094ff; } and body <div class="container"> <div class="column"></div> <div class="column"></div> <div class="column"></div> <div class="column"></div> </div> when run page removing float:left div class .column , height of .container automatically increase when set float value in div class .column height of div class .container don't increase. please can tel me how fix problem? add overflow:hidden; .containar

actionscript 3 - AS3 - using dynamic Text as a mask -

pretty sure possible. need dynamically load , populate textfield, , in turn use text mask on movieclip below it. have function domask():void{ mymc.dynamictxtfield.text = "some text use mask"; mctobemasked.mask = mymc; } domask(); what happens entire textfield being used mask, not text contains. i'm not sure how use dynamic text mask, can achieve similar effect blend modes. e.g. multiply image on top of dynamic text on black background.

opening Internet Explorer using c programming language -

i made c program in used notorious system () function open internet explorer.there no error compiled giving me output illegal command. problem?? have rechecked internet explorer address in c drive perfect. how solve this? i guess have specified path internet explorer this "c:\program files\internet explorer\iexplore.exe" but because \ character "escape" character in literal string, need defeat escape "c:\\program files\\internet explorer\\iexplore.exe" there no error when compiled because compiler cannot check whether command passed system() meaningful, or valid @ runtime.

Django + rest framework - url tracking -

i want keep track of url hit count daily in db , wondering best tool so? i'm running nginx, django, , django rest framework. edit: main goal not track given url parameters passed in. have object building , object person. people belong building. pass in building id (get using url) , receive people building. i'm wanting able see total url calls buildings , count each particular building. one tool i've found drf-tracking . seems track want through addition of simple mixin on view.

xcode - equal spacing between uiimageview using size class -

Image
i'm trying add 4 or (more in future) uiimageview in ipad application landscape mode. want equal spacing between each uiimageview. used wregular hregular format build application , used few constraints, when try run application in simulator i'm getting different result different ipad devices. how can achieve having equal spaces between uiimageview irrespective size of screen ? below screen shots. ipad2: ipad air : ipad retina : resizable ipad : auto layout system lets lay out app’s user interface creating mathematical description of relationships between elements. define these relationships in terms of constraints either on individual elements, or between sets of elements. using auto layout, can create dynamic , versatile interface responds appropriately changes in screen size, device orientation, , localization. try link learn size classes , auto layout. http://www.appcoda.com/introduction-auto-layout/

android - webview shouldOverrideUrlLoading doesn't work as expected? -

i have webview loads real url https://example.com i open links according pattern in second webview. i have following code: public boolean shouldoverrideurlloading(webview view, string url) { // handle external url boolean openinnew = manageurl (url); log.i("openurl", url + " : " + openinnew); if (openinnew) { this.callback.openwebview2 (url); return true; } else { return false; } } the second webview shows correctly external url want load. the problem found happens original webview, redirected empty blank page (with loading icon). is possible keep first webview in original page? thought shouldoverrideurlloading should enough. maybe forgot something, appreciate. thanks lot.