sdk

Facebook Android SDK unknownHostException

假装没事ソ 提交于 2019-12-04 16:04:09
问题 Facebook Android SDK when running example apps gives 11-14 23:17:58.484: ERROR/HttpOperation.run(1139): class java.net.UnknownHostException api.facebook.com [http://api.facebook.com/restserver.php?api_key=882a8490361da98702bf97a021ddc14d&call_id=1289744278460&format=JSON&method=fql.query&migrations_override=%7B%27empty_json%27%3A+true%7D&query=SELECT+uid%2Cfirst_name%2Clast_name%2Cname%2Cpic_square%2Ccell%2Cother_phone%2Ccontact_email%2Cbirthday_date+FROM+user+WHERE+%28uid+IN+%28SELECT+uid2

Can I remove previous versions of iphone support in DeviceSupport folder in Xcode 4?

六月ゝ 毕业季﹏ 提交于 2019-12-04 16:03:40
问题 In my quest to find out why Xcode is so big, i found out that a lot of the space is taken up by the subfolders to the Developer>Platforms>iPhoneOS.platform>DeviceSupport folder.. Since I am (apparently) only allowed to develop for the last of them in Xcode, can I safely remove the rest (in this case 3.0 to 4.2.1)? Same question regarding the subfolders of Developer>Platforms>iPhoneSimulator.platform>Developer>SDKs.. 回答1: Yes you can remove SKDs prior to 4.0 in Developer/Platforms/iPhoneOS

Doubletap and slide/drag finger to zoom in/out

。_饼干妹妹 提交于 2019-12-04 15:51:17
If anyone came across the google maps app for iOS there is a great feature to zoom in/out with one finger: Doubletap on the uiscrollview and then immediately slide finger up or down to zoom in/out. Does anyone know how this is achieved? Did google post any snippet of that? I added this functionality to my UIScrollView category . The actual tap recognition is easy, calculating the "correct" (whatever feels "correct") zoomScale is the problem… If you think the category isn't handling this good enough, please don't hesitate to tell me and open a new issue on the github page. This sample uses

Is there a barcode scanner SDK that works with iPad 2? [closed]

夙愿已清 提交于 2019-12-04 15:49:33
Is there a barcode scanner SDK that works with iPad 2? I've tried RedLaser 3.0 (I have an account through them) and they don't have native iPad 2 app support... only iPhone apps run on the iPad 2 work. I also tried an iPad 2 hack of ZBar (open source) and although it works, it doesn't work very well. Any other options out there? Scandit SDK barcode scanner from Mirasense . Their latest version was updated to optimally support the iPad 2. ZBar is the best to use. There are a post about it . The unique difference of zbar to iphone and ipad is the screen size, so it is a "little native". But take

Android ADB常用命令使用

烂漫一生 提交于 2019-12-04 15:42:29
Android SDK: adb shell 命令的使用(am、pm、wm、screencap、monkey等) https://blog.csdn.net/xietansheng/article/details/86675136 Android SDK: adb 常用命令的使用(无线连接、端口转发、文件传输、APK安装卸载、Logcat日志) https://blog.csdn.net/xietansheng/article/details/85472666 来源: https://www.cnblogs.com/tc310/p/11871835.html

UITableView reloadData taking too much time

佐手、 提交于 2019-12-04 15:23:26
I'm using TBXML+HTTP to get XML data from a website. What I want to do is populate a UITableView with the processed data. I've created a NSMutableArray that holds all the entries and, as far as that goes, everything is working fine. The problem is when, after successfully fetching the data from the server and storing it in the array, I try to update the table to show the data, using reloadData . It takes about 5 seconds to populate the table with 20 rows. The weird part is that the fetching is happening really fast, so the data is available right away. I do not understand what is taking so

How to save a fingerprint directly in the database using digitalpersona sdk

时光总嘲笑我的痴心妄想 提交于 2019-12-04 14:53:25
问题 I downloaded an Enrollment Sample Code for my digitalPersona device to use. It could already register and verify fingerprints but the problem is that it save its fingerprint .fpt file in a folder. I want to save it in the database. This is what I already tried so far. private void SaveButton_Click(object sender, EventArgs e) { SaveFileDialog save = new SaveFileDialog(); save.Filter = "Fingerprint Template File (*.fpt)|*.fpt"; if (save.ShowDialog() == DialogResult.OK) using (FileStream fs =

Invalidating a facebook access token?

你离开我真会死。 提交于 2019-12-04 14:52:06
Is it possible to invalidate a facebook access token? I need to do this due to the recent deprecation of offline_access. The problem is that the token cannot be extended beyond 60 days. Even if the user returns to the app (unless I am misunderstanding?) So, what I want to do is invalidate the token, then immediately log the user back in so that I can get a new access token back, with a new 60 day expiry date. As long as the user comes by once every two months, everything should be OK. I do not want to log the user out of Facebook so FB.logout is not usable. Is that possible? You can send a

Appium python环境搭建

拈花ヽ惹草 提交于 2019-12-04 14:17:33
1 安装Node.js 访问 https://nodejs.org/en/download/ ,下载node.js,根据操作系统下载对应的安装包,这里选择Windows 64位的 下载完成后是一个.msi格式的文件,可以直接点击进行安装,安装过程不过多介绍,一路默认安装即可。 安装完成后,会自动将路径加入到环境变量中,在命令行窗口中运行node -v,如果出现版本号,表示安装正常,如下图所示 2 安装jdk 2.1 jdk下载 地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html 。 下载后按照默认路径安装,安装jdk的同时也会安装jre。安装目录如下图所示 2.2 配置环境变量 2.2.1 新建JAVA_HOME系统变量 在环境变量中新建JAVA_HOME,对应的变量值为jdk的目录 2.2.2 新建CLASSPATH的系统变量 再新建一个变量名CLASSPATH的环境变量,变量值为: %JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar 2.2.3 Path系统变量添加路径 找到Path变量,在变量值的末尾增加两个路径:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin 2.2.4 验证jdk配置是否正确 配置好以后

【maven】【idea】使用idea的maven进行deploy操作失败,报错:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project proengine-db-sdk: Failed to deploy artifacts 错误码401

雨燕双飞 提交于 2019-12-04 13:47:51
使用idea的maven进行deploy操作失败,报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project proengine-db-sdk: Failed to deploy artifacts: Could not transfer artifact com:-proengine-db-sdk:jar:1.1.9-20191115.105829-3 from/to snapshots (http://XXX:8081/nexus/content/repositories/snapshots): Failed to transfer file http://nexus.dmall.com:8081/nexus/content/repositories/snapshots/com/-proengine-db-sdk/1.1.9-SNAPSHOT/proengine-db-sdk-1.1.9-20191115.105829-3.jar with status code 401 解决方法: 直接使用mvn命令进行打包,就可以打包成功 mvn clean package deploy 来源: https://www