小编Gil*_*ire的帖子

Objective-C iOS 6 BLE (Bluetooth 4.0) 距离计算

是否可以计算设备和 iPhone 之间的距离,或者至少了解强度,以便我可以检查距离是否随着移动而变小或变大。我想建立某种系统,可以更容易地在近距离范围内找到“丢失”的东西。

这样的事情可能吗?如果是这样,最好的方法是什么。

我假设两个设备之间没有障碍。

ios bluetooth-lowenergy

3
推荐指数
1
解决办法
7917
查看次数

试图隐藏 .htaccess 文件

我试图隐藏我的 .htaccess 文件,所以每个人都不能在他们的浏览器中读出它。

我的 .htaccess 文件位于:http : //businessgame.be/.htaccess 正如您所见,您仍然可以将其读出。

我尝试添加以下内容:

# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
Run Code Online (Sandbox Code Playgroud)

并且

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
Run Code Online (Sandbox Code Playgroud)

但它似乎都不起作用。这真的很奇怪。我做错了什么吗?

.htaccess file hide

2
推荐指数
1
解决办法
5913
查看次数

从手机上的手表打开 URL (Tizen)

我正在为 Samsung Gear 开发 Tizen Web 应用程序。(使用 Tizen 2.4)

目前我尝试添加一个功能,允许用户通过手表打开手机上的链接。因此,当他按下按钮时,手机的默认浏览器中将打开一个 URL。我注意到其他智能手表应用程序也有此功能。

浏览这些论坛后,我找到了一个代码示例:

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view',
'https://www.tizen.org', null, null, null, null);

tizen.application.launchAppControl(appControl, null, function() {
console.log('launch application control succeed');
}, function(e) {
console.log('launch application control failed. reason: ' + e.message);
}, null);
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试运行它时,出现以下错误:"launch application control failed. reason: No matched application found."

我的应用程序在其配置文件中添加了以下权限:

<tizen:privilege name="http://tizen.org/privilege/application.info"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
Run Code Online (Sandbox Code Playgroud)
  1. 这是用于在手机浏览器上打开链接的正确应用程序吗?
  2. 这些是该功能所需的全部权限吗?
  3. 为什么找不到应用程序?

javascript tizen tizen-web-app samsung-galaxy-gear

1
推荐指数
1
解决办法
990
查看次数