使用teamviewer连接到mac机器上,默认不能进行鼠标操作。
可以按照以下步骤操作。
系统偏好设置-安全性和隐私
辅助功能里面勾选 teamviewer 和 teamviewer_desktop
默认上是灰色的 ,需要点击左下角的解锁安能。
使用teamviewer连接到mac机器上,默认不能进行鼠标操作。
可以按照以下步骤操作。
系统偏好设置-安全性和隐私
辅助功能里面勾选 teamviewer 和 teamviewer_desktop
默认上是灰色的 ,需要点击左下角的解锁安能。
使用git clone命令的时候,提示以下错误:
fatal: The remote end hung up unexpectedly error: RPC failed; curl 18 transfer closed with outstanding read data remaining
缓存区溢出。
尝试增大post buffer
git config http.postBuffer 524288000
没有生效,尝试提高下载速率和超时时间
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
无效,
最后尝试浅clone
git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git
进入到目录
git fetch --unshallow
成功
使用xcode 真机调试的时候 提示
dyld_shared_cache_extract_dylibs failed
重启xcode无效
1.完全退出Xcode
2.前往文件夹: ~/Library/Developer/Xcode/iOS DeviceSupport/ ,删除手机对应的系统版本的文件即可。
在Laravel中使用Imgick
类的时候提示
Class Imagick not found
首先确保使用方法没问题
$img = new \Imagick();
然后使用 php -m
命令查看
并没有发现imgick模块
那么安装相应模块即可
我的本地环境是macos
安装方法
brew install imagemagick
brew install pkg-config
pecl install imagick
重启php/nginx 即可。
使用SVN操作的时候一不小把svn目录锁定了,尝试svn cleanup
也没有效果,提示
E200033: Another process is blocking the working copy database
无
尝试了stackoverfollow上的解决方案,可以解决。
进入svn目录下的.svn目录,执行以下操作:
$ cd /my/repository/.svn
$ mv wc.db wc.db.old
$ sqlite3 wc.db.old
sqlite> .backup main wc.db
sqlite> .exit
然后,重新执行svn cleanup
命令即可。
svn提交的时候一致报错提示:
because it was moved from XXX which is not part of the commit; both sides of the move
报错的提示是因为某个目录无法提交,而这个目录我进行过重命名的操作,那么问题应该出这里。
尝试对这个目录进行单独操作
回到这个目录的上一层,执行
svn commit 新目录 旧目录 -m "message"
但是,有一个问题,如果出错的目录很多呢,期待你们的解决方法。
有一个项目,当用户并发上去,接口就崩了,于是看了一下日志:
{ TimeoutError: ResourceRequest timed out at ResourceRequest._fireTimeout (/home/jcook/riqi_provider_directory/node_modules/sequelize/node_modules/generic-pool/lib/ResourceRequest.js:59:17) at Timeout.bound [as _onTimeout] (/home/jcook/riqi_provider_directory/node_modules/sequelize/node_modules/generic-pool/lib/ResourceRequest.js:8:15) at ontimeout (timers.js:469:11) at tryOnTimeout (timers.js:304:5) at Timer.listOnTimeout (timers.js:264:5) name: 'TimeoutError' }
在官方的github上找到了相关issue这个 error 发生的原因通常是 某个 sql 执行很久没有 commit 导致。
运行项目到ios12.2设备上直接闪退,在xcode上调试,发现以下错误:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.'
出现这个问题的主要原因是cordova-plugin-background-mode插件的问题。主要使用了私有api接口_alwaysRunsAtForegroundPriority 需要修改为alwaysRunsAtForegroundPriority
找到插件cordova-plugin-background-mode/src/ios/APPBackgroundMode.m 中,修改
+ (NSString*) wkProperty
{
NSString* str = @"X2Fsd2F5c1J1bnNBdEZvcmVncm91bmRQcmlvcml0eQ==";
NSData* data = [[NSData alloc] initWithBase64EncodedString:str options:0];
return...
升级xcode之后运行项目,提示:
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
应该是新版的xcode升级了对swift的支持,不在支持swift3,修改工程配置即可。
xcode-target-build setting 找到swift language version 修改为swift4以上即可。
前不久有个朋友过来给我汇报bug. 拿到他的logcat日志之后:
我发现了以下错误:
4-25 15:51:30.102 14544 14544 E MtaSDK : android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=-2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0x00000000 vis=PRIVATE) 04-25 15:51:30.102 14544 14544 E MtaSDK : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2220) 04-25 15:51:30.102 14544 14544 E MtaSDK : at android.os.Handler.dispatchMessage(Handler.java:109) 04-25 15:51:30.102 14544 14544 E MtaSDK : at android.os.Looper.loop(Looper.java:166) 04-25 15:51:30.102 14544 14544 E MtaSDK : at...