Posts

No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse' -

the following error came when tried build map activity in android studio version 2.2 "no resource found matches given name 'android:textappearance.material.widget.button.inverse'" please suggest me solution. using google apiclient best method when working on location based. https://developers.google.com/android/reference/com/google/android/gms/common/api/googleapiclient when want make connection 1 of google apis provided in google play services library (such google sign-in, games, or drive), need create instance of googleapiclient ("google api client"). google api client provides common entry point google play services , manages network connection between user's device , each google service. automatically manage connection google play services. perform synchronous , asynchronous api calls of google play services. manually manage connection google play services in rare cases necessary. add manifest file ...

Cannot symbolicate system methods in iOS crash report -

one of beta testers has sent me few crash reports app. unable reproduce crashes, , bit confused logs. new ios debugging (this first app) , symbolicating native stack traces in general. firstly, crashes don't appear in xcode organizer, able symbolicate files using symbolicate tool. has worked methods within app, not system methods seem crashing here. first question is, how can symbolicate these methods? user has iphone 6 , according logs architecture amd-64. don't have such device why system methods not symbolicated? asking architecture because device iphone 5c (arm) , when plugged in, xcode symbolicates system methods fine. when drag , drop 64-bit logs on device logs however, system methods not symbolicated. my second question on logs themselves. can see below thread-0 crashing stacktraces quite different between "last exception stacktrace" paragraph , "thread-0" paragraph (different stack lenghts). expected or mean wrong symbolication? here symbol...

PHP - Call javascript from server side -

is there anyway run / trigger / call javascript (client side) server side (php) ? i can run javascript if call browser (of course, because it's client), not server side / postman (i wonder if there's any?) function validate_answer($p) { ?> <script> $.ajax({ url: '/validate_time.php', data: {'action': 'test'}, type: 'post', timeout:5000 }); </script> <?php } the reason want use way, because in php, there's no such function settimeout javascript does. thanks guys edit okay, here's thing. i'm creating game has timeout, whenever game starts, have timelimit (10 mins example). , need function that, unfortunately, it's not accessible via browser (it's web service). i've tried using sleep, it's not wanted. you cannot run javascript on server side. if want effect of timeout without holding main script, can call url parameter this: function validate_answer($...

angularjs - based on selected option i want to display the Select fields using ionic and angular js -

in parent select option have option-1,option-2,option-3 , empty there. when ever selecting option want display below child select fields if select option 2 want display 2 selection fields below same, if select empty don't want show child selection tags. this code don't want show static way need display dynamically function controller ($scope) { $scope.mydropdown = ''; } <div ng-app ng-controller="controller"> <select ng-model="mydropdown"> <option value="q"></option> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> </select> <select ng-show="mydropdown=='one'" > <option value="1"></option> <option value="111">1</op...

python - Delete blank rows from CSV? -

i have large csv file in rows entirely blank. how use python delete blank rows csv? after suggestions, have far import csv # open input csv reading inputcsv = open(r'c:\input.csv', 'rb') # create output csv writing outputcsv = open(r'c:\output.csv', 'wb') # prepare output csv appending appendcsv = open(r'c:\output.csv', 'ab') # create reader object cr = csv.reader(inputcsv, dialect = 'excel') # create writer object cw = csv.writer(outputcsv, dialect = 'excel') # create writer object append ca = csv.writer(appendcsv, dialect = 'excel') # add pre-defined fields cw.writerow(['field1_','field2_','field3_','field4_']) # delete existing field names in input csv # ??????????????????????????? # loop through input csv, check blanks, , write changes append csv row in cr: if row or any(row) or any(field.strip() field in row): ca.writerow(row) # close files inputcsv...

node.js - Node NPM modules... compatability with older Node 4? -

there's lot of modern js around es6 , supported in node 6/7 but mean if running node 4? if npm module written in es6, npm require compile down older more compatible version of js? asking because i'm investigating aws lambda, runs node 4... restrict npm module choices?

java - Authentication pop up using robot not working in parallel execution in selneium -

i executing script has authentication popup , robot class it's working fine. if execute tests in parallel it's entering username twice in username field of authentication popup username , in other popup it's not entering data. for example: it's entering data username1username1 in first popup. please guide me. because if popup alert box open in 1 window , have handle popup , close first. allow access other windows. both pop has same field name find , send key "username1" in textbox. so, ever driver finding popup sending value. in parallel execution working correctly. need find way parallel execution.