我刚检查了我的服务器日志,发现以下奇怪的请求进入了很多.我实现了iOS 9 Universal Linking,但据我所知,这些请求是针对/ apple-app-site-association运行的.
Jan 15 09:36:23 method=GET path="/.well-known/apple-app-site-association"
Run Code Online (Sandbox Code Playgroud)
还有其他人看过这些模式吗?这是一些已知的垃圾邮件还是什么?
突然间,今天出现了一个非常奇怪的错误,说它无法连接到相应的网关...任何修复建议?
这是记录器输出:
Wed, 08 Jun 2011 15:05:44 +0200 ApnsPHP[21724]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 08 Jun 2011 15:05:45 +0200 ApnsPHP[21724]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 08 Jun 2011 15:05:45 +0200 ApnsPHP[21724]: INFO: Retry to connect (1/3)...
Wed, 08 Jun 2011 15:05:46 +0200 ApnsPHP[21724]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 08 Jun 2011 15:05:47 +0200 ApnsPHP[21724]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 08 Jun 2011 15:05:47 +0200 ApnsPHP[21724]: INFO: Retry to connect (2/3)...
Wed, 08 Jun 2011 15:05:48 +0200 …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用pip install uwsgi
我的Alpine docker图像安装uwsgi 但不幸的是它一直没有出现奇怪的错误信息给我:
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-mEZegv/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-c7XA_e-record/install-record.txt --single-version-externally-managed --compile:
running install
using profile: buildconf/default.ini
detected include path: ['/usr/include/fortify', '/usr/include', '/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/include']
Patching "bin_name" to properly install_scripts dir
detected CPU cores: 1
configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\"2.0.12\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="12" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"core/utils.c: In function 'uwsgi_as_root':
core/utils.c:344:7: error: …
Run Code Online (Sandbox Code Playgroud) 我遇到了一些非常奇怪的EXC_BAD_ACCESS崩溃,这些崩溃完全可以与最后2个Xcode 7 Beta版本(包括昨晚的GM)重现:
运行我的应用程序时,AFNetworking在AFURLConnectionOperation.m第154行中发生了EXC_BAD_ACCESS消息崩溃.更准确地说,这是堆栈跟踪:
thread #1: tid = 0x23b173, 0x000000010b89beaf CoreFoundation`___forwarding___ + 767, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
frame #0: 0x000000010b89beaf CoreFoundation`___forwarding___ + 767
frame #1: 0x000000010b89bb28 CoreFoundation`__forwarding_prep_0___ + 120
* frame #2: 0x0000000105a4507e MyApp`-[AFURLConnectionOperation .cxx_destruct](self=0x00007fc4d873aa20, _cmd=(null)) + 494 at AFURLConnectionOperation.m:154
frame #3: 0x000000010af637bb libobjc.A.dylib`object_cxxDestructFromClass(objc_object*, objc_class*) + 127
frame #4: 0x000000010af6e390 libobjc.A.dylib`objc_destructInstance + 93
frame #5: 0x000000010b94e7c6 CoreFoundation`-[NSObject(NSObject) __dealloc_zombie] + 150
frame #6: 0x00000001087ee9df Foundation`-[NSOperation dealloc] + 89
frame #7: 0x0000000105a3dca2 MyApp`-[AFURLConnectionOperation dealloc](self=0x00007fc4d873aa20, _cmd="dealloc") …
Run Code Online (Sandbox Code Playgroud) 我目前正在经历一些奇怪的行为,使用相同的代码库只是使用不同的证书签名:
1) Bundle identifier: com.mycompany.A, Normal App-Store Distribution certificate
2) Bundle identifier: com.mycompany.B, Enterprise Distribution certificate
Run Code Online (Sandbox Code Playgroud)
如上所述,两个应用程序都具有完全相同的代码和资产,但唯一不同的是捆绑标识符和用于归档它们的签名凭据.
奇怪的是,与app B(2)相比,app A(1)需要大约40%的时间才能启动.这可能与Apple更密切地检查企业证书有什么关系吗?或者我只是以错误的方式编译它?关于如何缓解这个问题的任何想法?
我已经检查过我在applicationDidFinishLaunching中没有任何长时间运行的代码:这会阻止启动,它看起来确实是iOS,需要很长时间才能启动应用程序并将其移交给我的控件.
我想从大约 3-4 mb 的文本文件中读取一个简单的字符串,但 fopen() 失败(从 die() 调用“无法打开文件”)。这是代码:
clearstatcache();
$fh = fopen("/my/path/to/file.txt", "r") or die("can't open file");
$sql = fread($fh,filesize("/my/path/to/file.txt"));
Run Code Online (Sandbox Code Playgroud) 我目前正在尝试使用UIVideoEditorViewController
来修剪之前从“照片”应用程序中选择的视频文件UIImagePickerController
。我确认在选择文件之后和创建文件之前具有原始分辨率。然而,在修剪视频后,尽管将属性UIVideoEditorViewController
设置为 ,但输出始终为 360p 分辨率。对于此属性,所有适用的设置似乎都被忽略,并且视频最终被不必要地压缩。videoQuality
high
我发现很多人报告了类似的问题,但尚未找到解决方法。
let editor = UIVideoEditorController()
editor.delegate = self
editor.videoMaximumDuration = 0 // No limit for now
// TODO: This should really work, however while testing it seems like the imported videos are always scaled down
// to 320p which equivalents the default value of .low.
editor.videoQuality = .typeHigh
editor.videoPath = internalURL.path
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。
avfoundation uiimagepickercontroller ios uivideoeditorcontroller swift
我正在尝试将 Arduino 板与我的 Odys Neo x8 平板电脑一起使用,但似乎 UsbManager 无法识别该设备。我通过 OTG 适配器将 arduino 连接到平板电脑,以便平板电脑在主机模式下工作,Arduino 成功从设备接收电源。我正在获取平板电脑上可用 USB 设备的列表,如下所示:
sUsbController = new UsbController(this, mConnectionHandler, 0, 0);
HashMap<String, UsbDevice> devlist = sUsbController.mUsbManager.getDeviceList();
TextView t = ((TextView)findViewById(R.id.textView));
t.setText("Found " + Integer.toString(devlist.size()) + " devices");
Run Code Online (Sandbox Code Playgroud)
在类 UsbController 中:
mUsbManager = (UsbManager) mApplicationContext
.getSystemService(Context.USB_SERVICE);
Run Code Online (Sandbox Code Playgroud)
但不幸的是,即使我开始使用 VID 和 PID(两个零)进行过滤,该列表仍然是空的。对于如何解决这个问题,有任何的建议吗?
有什么方法我可以从新的FBLikeControl获得某种反馈,如果用户喜欢该页面?或者至少知道某种程度,他从Facebook应用程序返回应用程序?
到目前为止,我想删除现有索引并按照文档中的步骤进行操作。我现在没有配置单独的索引后端。但是,当我到达必须等待索引状态更改的步骤时,m.awaitGraphIndexStatus
它会永远等待更改并超时并出现以下错误:
GraphIndexStatusReport[success=false, indexName='usernameComposite', targetStatus=DISABLED, notConverged={username=INSTALLED}, converged={}, elapsed=PT1M0.092S]
Run Code Online (Sandbox Code Playgroud)
当我尝试创建一个新的时,也会发生同样的情况。任何想法可能导致这种情况?
我正在使用以下代码片段创建 indizes:
graph.tx().rollback()
mgmt = graph.openManagement()
name = mgmt.getPropertyKey('username')
mgmt.buildIndex('username-composite', Vertex.class).addKey(name).unique().buildCompositeIndex()
mgmt.commit()
mgmt.awaitGraphIndexStatus(graph, 'username-composite').call()
Run Code Online (Sandbox Code Playgroud) 我目前正在尝试使用 API Gateway + Lambda 上的无服务器框架来实现 Express 应用程序。一切都按预期进行,直到我开始在我们这边引入请求签名。签名的工作方式是使用秘密令牌对包含查询字符串的完整 URL 进行签名。不幸的是,API Gateway 或 Cloudfront 似乎都按字母顺序重新排序查询字符串,这导致我们这边生成的校验和与客户端生成的校验和不同。
我们的 Express 服务器看到的内容:
https://example.com/endpoint?build_number=1&platform=ios
客户发送的内容:
https://example.com/endpoint?platform=ios &build_number=1
正如您所看到的,查询参数按字母顺序重新排序,这不是我所期望的行为。
任何想法?
node.js express aws-lambda aws-api-gateway serverless-framework
Hej研究员,
我正在尝试将一个字母和/或多个字母转换为CGPathRef,以便手动将它们绘制到自定义UIView中.我尝试过CoreText和Framesetters,包括这个小片段,但它似乎不起作用....
NSAttributedString *stringToDraw = [[NSAttributedString alloc] initWithString:content
attributes:nil];
// now for the actual drawing
CGContextRef context = UIGraphicsGetCurrentContext();
// flip the coordinate system
// draw
CTFramesetterRef frameSetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)stringToDraw);
CTFrameRef frame = CTFramesetterCreateFrame(frameSetter, CFRangeMake(0, 0), NULL, NULL);
return CTFrameGetPath(frame);
Run Code Online (Sandbox Code Playgroud) 我目前正在从地址簿中提取所有联系人,并希望保存我遇到特定联系人的最后日期.因此,我在同一时间获取日历如下:
for (EKEvent* event in events) {
for (EKParticipant* attende in [event attendees]) {
ABRecordRef record = [attende ABRecordWithAddressBook:addressBook];
if([contact.name isEqualToString:[NSString stringWithFormat:@"%@ %@", (__bridge NSString *)ABRecordCopyValue(record, kABPersonFirstNameProperty), (__bridge NSString *)ABRecordCopyValue(record, kABPersonLastNameProperty)]]){
contact.lastMet = [NSString stringWithFormat:@"%@",[formatter stringFromDate:event.endDate]];
}
}
}
Run Code Online (Sandbox Code Playgroud)
遗憾的是,代码在信号SIGSEGV的"if"-statement行崩溃,崩溃日志表明ABRecordCopyValue()发生故障...有任何建议如何解决这个问题?
ios ×5
iphone ×2
php ×2
swift ×2
xcode ×2
abrecord ×1
addressbook ×1
afnetworking ×1
alpine-linux ×1
android ×1
arduino ×1
avfoundation ×1
aws-lambda ×1
calendar ×1
cgpath ×1
core-text ×1
device ×1
docker ×1
enterprise ×1
express ×1
facebook ×1
file ×1
fopen ×1
gremlin ×1
node.js ×1
objective-c ×1
performance ×1
swift2 ×1
tinkerpop ×1
titan ×1
usb ×1
uwsgi ×1