Posts

Android O Preview 1 can't open Setting, "Setting has stop" -

i use nexus 6p , , system android o preview 1 . i have been used preview system 2 month, , it's normal. today want update system, find can't open system app "setting" . it's show 'setting has stop' . then watch logcat in android studio , has error log below: 07-25 17:16:31.515 21875-21875/? e/androidruntime: fatal exception: main process: com.android.settings, pid: 21875 java.lang.illegalargumentexception: receiver not registered: com.android.settings.dashboard.conditional.cellulardatacondition$receiver@1d9a5b0 @ android.app.loadedapk.forgetreceiverdispatcher(loadedapk.java:1152) @ android.app.contextimpl.unregisterreceiver(contextimpl.java:1422) @ android.content.contextwrapper.unregisterreceiver(co...

ios - Activating a constraint which was uninstalled in the storyboard -

i have view contains few constraints. of them have installed checkbox turned off. trying activate , deactivate specific constraints depending on state of application. the problem when installed checkbox turned off can't activate constraints , can't deactivate installed constraints. need mention use strong references constraints in size classes properties. tried approach call setneedsupdateconstraints , updateconstraintsifneeded, setneedslayout , layoutifneeded , after activating/deactivating constraints. i couldn't find documentation regarding behavior why happening? be sure put code in right place override func viewdidlayoutsubviews() { // write code here }

javascript - How to warn a user when leaving a page but not when pressing a button? -

i want users warning when leaving webpage. want users different alert when press on button submitting something. @ moment when leave webpage works correctly when press submit see both warning messages. how show 1 alert? <asp:button style="display: inline-block; margin-left: 120px; margin-top: 10px;" id="sendemail" runat="server" cssclass="btn-flat success" text="send email" onclick="btnupdate_click" visible="true" enabled="true" onsubmit="window.onbeforeunload = false;" onclientclick="if ( !confirm('are sure want send email?')) return false;"/> <script> window.onbeforeunload = function () { return "do want leave page?"; } i use window.onbeforeunload leaving webpage , have onclientclick called when press on button submitting. have no experience javascript not sure doing. you can set variable while clicking on submit. ...

Powershell dynamic path when create folder -

i want create folder, don't know how use variable define path. as is: new-item -itemtype directory -path "c:\users\tizio.caio\desktop\backup_$((get-date).tostring('yyyymmdd'))" i want replace c:\users\tizio.caio\desktop\ variable in order make future reworks easier. i split directory , filename, , use environment variable userprofile $var = $env:userprofile + "\desktop\" $backup = "backup_$((get-date).tostring('yyyymmdd'))" new-item -itemtype directory -path "$var$backup"

shinyapps - User session is getting interrupted after approx. 45 seconds -

Image
i have shiny application deployed on rshiny pro server(1.5.2) . application heavy computations , generates report without problem if gets completed before approximately 45 seconds . if computation , report generation goes beyond approximately 45 seconds, user's session / connection server getting interrupted. automatically server reconnecting disconnected users immediately. after few seconds of re-connection user session getting reaped , user presented notwork error. from above observations know reconnect flag enabled @ server. i need understand- why user session getting interrupted around approximately 45 seconds every single time. how prevent session interruption? there configuration @ server or application side me achieve uninterrupted session between user , server? well, after searching , trying out different options able find answers questions. the user session getting interrupted around approximately 45 seconds every single time because http_...

javascript - text over image not responsive in bootstrap -

i have image, on putting heading on right , left side of image below <div class="container-fluid no-padding"> <div class="row"> <div class="col-md-12"> <div class="col-sm-3 text-center image-overlapping"> <h1>hello suarj</h1> lorem ipsum dolor sit amet, consectetur adipisicing elit. ullam omnis, ipsum eveniet minus amet. </div> <img src="http://oi65.tinypic.com/15oi0w9.jpg" class="ls-bg" alt="slide background" style="width:100%; height:auto;"> <div class="col-sm-3 text-center image-overlapping right"> <h1>hello suarj</h1> lorem ipsum dolor sit amet, consectetur adipisicing elit. ullam omnis, ipsum eveniet minus amet. </div> </div> </div> this works me, not responsive mobile. how go it. here's fiddle same. so added m...

angularjs - Setting domain name in IIS Express in an ASP.NET Core application -

we have asp.net core web application uses angular js (1.5) on client, , controllers used returning data. during development, iis express used on developers' machines, , in other environments, iis used. has implications: attribute needs different between devs' , other environments: on devs' looks this: <base href="/"> while on others (running iis) looks (it includes domain name): <base href="/digitalrural/"> angular directives need include domain name in templateurl field in iis while not in local iis express machines. so after deploying app environment, add domain name these locations. trying solve this, i've tried go route of including domain name during development time, both base href attribute , templateurl filed containing domain name. setting either launch url or app url in iis express url: http://localhost:60209/digitalrural/ doesn't work. browser can't find file , page blank. how configure iis expr...