Posts

android - ConstraintLayout views in top left corner -

Image
every time create views button , textview in constraintlayout , stuck @ top corner instead of placed them. i tried create new activities , change emulator, result still same. this screenshot of what's happening: what may issue? as stated in constraint layout guides : if view has no constraints when run layout on device, drawn @ position [0,0] (the top-left corner). you must add @ least 1 horizontal , 1 vertical constraint view. i guess haven't applied constraints.

How can users use Web Bluetooth apps on iOS? -

is web bluetooth implemented in safari? how can web apps use web bluetooth on pages work on apple iphones , ipads? safari has not implemented web bluetooth specification, webble open source browser implementation supports web bluetooth. you can have users use webble directly, or use code build own hybrid app wraps web app.

permissions - Can I recover a MIFARE Classic card? -

my problem used "read , write" example on arduino re-write rfid card (mifare classic 1k) block block. started writing @ block 4. @ block 7 stopped , can't read sector. wrote zeros each block. the dumptoserial function prints every sector pcd_authenticate() failed: timeout in communication. it can still read uid, sak, , picc type. did destroy card or can recover it? some more info: card: mifare classic 1k arduino mega2560 elegoo rc522 starter-kit with mifare classic 1k, every 4th block sector trailer (each 4 blocks grouped 1 sector). sector trailer contains access keys (key on bytes 0..5, key b on bytes 10..15) , access conditions (access bits on bytes 6..8) sector. the access conditions protected redundancy mechanism each access bit present multiple times in positive , negative logic. mifare classic card allows overwriting these access conditions invalid values (impossible combinations of access bits). however, once access conditions se...

SharePoint 2013 Use Only Always Suggest -

in sharepoint 2013 system automatically makes query suggestions when users search keyword , click link 6 or more times. in addition, can add suggest phrases importing text file separated line breaks. is there way disable , remove automatic query suggestions , use suggest phrase? thanks in advance! posted on technet , appears there no way around this. https://social.technet.microsoft.com/forums/office/en-us/f486b8ba-f706-4c80-9cda-0b63116ef6a6/sharepoint-2013-use-only-always-suggest?forum=sharepointsearch

java - InstantiationException on morphia mongodb -

im trying embed class set , insert set on morphia entity returning stacktrace. its first time im using abstract class inside morphia entity first time seeing error. i used abstract class because need trigger perform method when player choose kit doing /kit , kits owned player stored in set , inserted mongodb player document , saves when tried trigger perform method returns error. caused by: java.lang.instantiationexception @ sun.reflect.instantiationexceptionconstructoraccessorimpl.newinstance(instantiationexceptionconstructoraccessorimpl.java:48) ~[?:1.8.0_131] @ java.lang.reflect.constructor.newinstance(constructor.java:423) ~[?:1.8.0_131] @ org.mongodb.morphia.mapping.defaultcreator.createinstance(defaultcreator.java:72) ~[?:?] @ org.mongodb.morphia.mapping.defaultcreator.createinstance(defaultcreator.java:91) ~[?:?] @ org.mongodb.morphia.mapping.defaultcreator.createinstance(defaultcreator.java:105) ~[?:?] @ org.mongodb.morphia.mapping.embeddedmapp...

Heroku Scheduler - Build Task Error -

i'm running ap on heroku that's making googleplaces api call button. i'm trying use heroku scheduler make call automatically once day. i'm getting error in terminal : rake aborted! don't know how build task 'sync_all' (see --tasks) the main bulk of code works in controller. can tell me i'm missing? i've emptied code out , ran see if "puts" showed , still gives error. lib/tasks/scheduler.rake desc "this task syncs locations." task :sync_all => :environment puts "syncing all" all_locations = location.all all_locations.each |l| result = googleplacesapi.details(l.google_place_id) json = json.parse(result.body) json['result']['reviews'].each |t| review.find_or_create_by( authorname: t['author_name'], rating: t['rating'], text: t['text'], relativetime: t['relative_time_description'], ...

javascript - iOS audio playback without native controls -

within official developer's documentation of apple according audio , video playback within safari said audio needs activated through user interaction. autoplay not working. thought not possible bypass native controls , surprisingly got page: http://radio.garden/live/ why work on ios devices? there no native controls play button on first screen. possible activate audio playback through interaction on custom buttons? that's link apple's docs (fyi): https://developer.apple.com/library/content/documentation/audiovideo/conceptual/using_html5_audio_video/audioandvideotagbasics/audioandvideotagbasics.html