Posts

Android: Time delay in a loop with updating UI -

Android: Time delay in a loop with updating UI - what i'm trying create simple progress bar, load ~10 sec. want loop this: for(int = 1; <= 100; i++) { progressdialog.setprogress(i); //100ms delay } thanks the next code may helpful you. public void startprogress(view view) { // long runnable runnable = new runnable() { @override public void run() { (int = 0; <= 10; i++) { final int value = i; seek { thread.sleep(1000); } grab (interruptedexception e) { e.printstacktrace(); } handler.post(new runnable() { @override public void run() { progressdialog.setprogress(value); } }); } } }; new thread(runnable).start(); } ...

wcf - Configuring SSL (https) for ws2007FederationHttpBinding Endpoint 404 No Endpoint found -

wcf - Configuring SSL (https) for ws2007FederationHttpBinding Endpoint 404 No Endpoint found - another wif related problem - can point me in direction of how configure https in wcf ws2007federationhttpbinding endpoint. have certificates , bindings set-up in iis, whenever seek connect endpoint 404 error. binding looks this <bindings> <ws2007federationhttpbinding> <binding name="bindingconfigname"> <security mode="transportwithmessagecredential"> <message establishsecuritycontext="false"> <issuermetadata address="https://identity.localhost/issue/wstrust/mex" /> <claimtyperequirements> <add claimtype="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" isoptional="true" /> <add claimtype="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" iso...

java - how to pass dynamic parameters to jquery function -

java - how to pass dynamic parameters to jquery function - i want pass dynamic paramters jquery onclick event. before, used html , javascript: class="lang-html prettyprint-override"> <!-- html --> <a id="link123" href="link1" onclick="javascript:func1(${param1},${param2});">123</a> class="lang-js prettyprint-override"> /* javascript */ func1(param1,param2) { // } the parameters param1 , param2 come backend code , dynamic. how not of import here. after using jquery, have html , js: class="lang-html prettyprint-override"> <a href="link123"> <input type="hidden" id="param1" value="${param1}"/> <input type="hidden" id="param2" value="${param2}"/> class="lang-js prettyprint-override"> $(document).ready(function() { $("#link123").click(function() { var param...

c# - Replicating the Win7 network flyout refresh button -

c# - Replicating the Win7 network flyout refresh button - i'm trying create screen similar this: using this tool browse visual style parts , states, found bottom area flyout_linkpanel. but refresh button? can't find buttons have same behaviour; no background until hover. in addition, i've tried looking through dlls in shell32 icons replicating refresh icon – no dice. refresh icon bitmap in explorerframe.dll. i tried giving winspy++ go poke around window, won't work since disappears on disactivation. advice? this looks standard toolstrip 1 refresh button. you can utilize method outlined in c# toolstrip transparent border still visible? create transparent. i did check %systemroot%\system32\shell32.dll , there icon similar may able use. c# winforms windows-7

php - if else shorthand solution -

php - if else shorthand solution - i not sure if next validation can done if shorthand. //if $error set, echo $errro or echo blank string. (isset($error)) ? echo $error:echo ''; i know got wrong, here can help me right code? lot. echo isset($error) ? $error : ''; php if-statement shorthand

html - 100% of content, not of browser height using CSS -

html - 100% of content, not of browser height using CSS - i have min-height 100% div contains content of website: #sitewrap { min-height: 100%; width: 100%; } the above div contains - header, content , footer. what need overlay absolute positioned div on top (with semi-transparent .png background) sits above entire site, 'fading out' slightly. i can't seem absolute div fit 100% of site content. spans 100% of browser height. when scroll downwards bottom section of content below height of browser not spanned div. i have tried div set within sitewrap div won't work: #loginpopup-background { position: absolute; width: 100%; min-height: 100%; height: 100%; z-index: 1100; background-color: #f39c11; } (the background colour testing purposes). any ideas? use position: fixed instead of position: absolute . login still not 100% size of document cover content when scroll. also ie should set top: 0; left: 0 prevent unusual layout errors. ...

Is modular approach in Drupal good for performance? -

Is modular approach in Drupal good for performance? - suppose have create functionalities a, b , c through custom coding in drupal using hooks. either can club 3 of them in custom1.module or can create 3 separate modules them, custom1.module, custom2.module , custom3.module. benefits of creating 3 modules: clean code easily searchable mutually independent easy commit in multi-developer projects cons: every module entry gets stored in database , requires query. to extent mar performance of site? is improve create single big custom module file sake of reducing database queries or break different smaller ones? this issue might negligible little scale websites, allow case big scale performance oriented sites. drupal .module files loaded every page load. there little performance related can gained or lost separating functions different .module files. if not using op code cache, can improved performance creating .inc files , referencing files in menu ite...