Posts

c# - Windows Push Notification Service Failed due to Time Out -

the windows push notification fails while trying establish connection @ following code. var channel = await pushnotificationchannelmanager.createpushnotificationchannelforapplicationasync(); it times out 0x80070102 exception. have disabled firewall , uninstalled antivirus still fails. any suggestions?

android - Not able to setup AndroidViewClient on Windows 7 -

i referred wiki , tried on internet not make working. have set android_view_client_home androidviewclient folder, pythonpath androidviewclient/src folder. i still not able import viewclient , getting following exception on running monkeyrunner script. com.dtmilano.android.viewclient import viewclient importerror: no module named dtmilano 140910 18:18:23.594:s [main] [com.android.monkeyrunner.monkeyrunneroptions] @ org.python.core.py.importerror(py.java:304) 140910 18:18:23.594:s [main] [com.android.monkeyrunner.monkeyrunneroptions] @ org.python.core.imp.import_logic(imp.java:790) 140910 18:18:23.594:s [main] [com.android.monkeyrunner.monkeyrunneroptions] @ org.python.core.imp.import_module_level(imp.java:842) 140910 18:18:23.594:s [main] [com.android.monkeyrunner.monkeyrunneroptions] @ org.python.core.imp.importname(imp.java:917) 140910 18:18:23.594:s [main] [com.android.monkeyrunner.monkeyrunneroptions] @ org.python.core.importfunction.__call__(__builtin__.java:1220) 14...

javascript - Open Folder Explorer from link -

a similar question been asked example here . anyawy need not open in browser contents on folder, this: <a href="file:///d:/tools/">open folder</a> (bwt above works on chrome, opens d:\tools in machine) what achieve opening folder explorer @ given address (in case of windows opening windows explorer @ d:\tools. the scenario is: web application (php) knows folder open, user clicks button , folder opened in folder eplorer. somehow manual workaround is: display path in browser the user copies it user opens folder explorer user pastes path i realized using internet explorer behavior desired one: 1) user clicks on <a href="file:///\\server\files\folder1">\\server\files\folder1</a> 2) windows explorer opens @ \\server\files\folder1 so want achieve possible in internet explorer (without exploring plugins , tricks). on other browsers clicking on link let browser render read visualization of folder, while using oth...

javascript - If parent element has only 2 child elements do something, else something else -

so have html markup: <div class="buttons-holder> <label class="my-btn"> <input name="example" value="1" type="radio"> yes </label> <label class="my-btn"> <input name="example" value="0" checked="checked" type="radio"> no </label> </div> but have more 1 label inside .buttons-holder element. how can specify in jquery apply jquery code if there exists 2 label elements? i tried still applies elements: if ($('form label:has(input[type="radio"])').eq(2)) { //do } else { //do else } jsfiddle: http://jsfiddle.net/jw51hggc/ based on comments , fiddle $('form .buttons-holder').filter(function(){ return $(this).children('label:has(input[type="radio"])').length == 2 }).wrapinner('<div class="wrap"><...

Confusion while using regex to edit a key-value ini file (Python) -

i'm trying regex ante using edit .ini file based on vague descriptions of parts want changed. specifically, i'm trying update line in file describes list of directories program use search vst libraries. i'm using following expression: r"^(?=.*?vst.*?=)(?=.*?[(path)|(directories)].*?=)(?p<key>.*?)\s?=\s?(?p<value>.*)$" i.e. i'm using lookaheads find out if there's mention of 'vst's alongside mention of 'path' or 'directories' before equals sign (indicating they're in key), , if match there i'm splitting result key-value groups. however, i'm finding isn't working, , it's matching 'vst' in it. is there i'm missing that's failing assert both lookaheads? (also not sure whether i've gone overboard question marks) any appreciated matt figured out: r"^(?=.*?vst.*?=)(?=.*?(?:path|directories).*?=)(?p<key>.*?)\s?=\s?(?p<value>.*)$" what wr...

android - Most efficient way to share data between a Service and an Activity -

i'm working on app composed of background intentservice running time (even when activity lost focus) , activity (a section pager fragments). the background service checking time , storing large array of objects (up 300) parsed xml file. each object represent event associated starttime , when starttime matches current time service has notify activity (if available) display event happening. on activity side have fragments (tabs of section pager) custom arrayadapter list events listview. right i'm doing sending object service localbroadcastmanager. fragments listening , when receive object update local arraylist replacing , notifying arrayadapter data set changed. since each fragment has keep arraylist update arrayadapter , listview, end same object stored both inside service's array , in 1 of fragment' array. i'm wondering if there better way. the question : efficient (on memory/cpu usage , speed) way share large array of objects between service , a...

c# - How to Show the SMTP Status -

i wrote program 1 year ago . designed form "connect " . , winform email textbox , ...etc. i use smtp send email email understand want me know. many of customers me , "i sended email product " don't receive ! after , understand anti viruses blocking smtp , install anti virus , block smtp , send email on debug mode nothing happened (the program doesnt give me error) . so , is there programmatically way understand , smtp blocked or not ?! i use ftp send suggest of customers know , not secure way me , customers . cause many person use our iis server administrator(and im not admin of server) . can u suggest me send customer suggest in secure way ?! thank u read . most of anti-virus products catch , prevent smtp service sending it, not making requests, don't think going have luck programatically determining if intercepted. the easiest option (but not fool proof) shell out windows mailto:email@emailaddress.com i switch web servic...