很久没动pod,最近更新发现: CocoaPods报CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`错误. 使用命令pod repo update --verbose依然 不行,报同样的错,也检查了gem.pod版本,都没问题 不过偶然发现可能是淘…
CocoaPods pod install的时候报错:invalid byte sequence in UTF-8 (ArgumentError)解决办法: 基本可以确定是Podfile中的内容编码有问题,可以尝试用Xcode打开podfile ,然后再安装,如果还不行的话,直接找一个可用的podfile文件,用xcode打开后修改合格即可.…
比如说我要替换version.txt文件中的version=1.1 为version=1.2,比如test.txt文件内容如下: version=1.1 此时我们会使用sed来替换,如果是涉及比较多的处理,我们会采用脚本实现,比如sed_shell.sh脚本内容如下: #!/bin/bash if [ "x$1" == "x" ]; then    echo please input new version && exitelse    old_ve…
dotnetcore ef 调用多个数据库时用户命令执行操作报错 1.多个DbContext 时报错: 报错: More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands. 解决办法: dotnet ef migrations ad…
refiling失败报错Invalid function: org-preserve-local-variables,原因: elc,不太清楚 解决办法: 删除org??目录下的elc文件 https://github.com/syl20bnr/spacemacs/issues/11801 https://emacs-china.org/t/spacemacs-org-mode-org-refile/8157 在github上已经有了相关的Issue, #11788 #11801 解决方案如下:…
1. 执行DDL报错 在oracle存储过程中,默认是可以直接执行DML和DQL的,但是执行CREATE这种的DDL则需要借助EXECUTE IMMEDIATE ···了,如下备份表语句 --抄表表备份 SELECT TO_CHAR(SYSDATE,'YYMMDD') INTO V_DQRQ FROM DUAL; V_CREATESQL := 'CREATE TABLE SF_EBZCB'||V_DQRQ||'_T AS SELECT * FROM SF_EBZCB_T'; EXECUTE IM…
执行mysqld_safe报错: [root@edu data]# /usr/local/mysql5.7/bin/mysqld_safe --user=mysql160427 12:41:28 mysqld_safe Logging to '/renqinglei/mysql/log/mysql_error.log'.160427 12:41:28 mysqld_safe The file /usr/local/mysql/bin/mysqlddoes not exist or is not…
准备在mysql上使用数据库A,但mysql5经过重装后,上面的数据库已丢失,只得通过之前备份的A.sql重新生成数据库A. 1.执行sql报错 在执行A.sql的过程中,出现如下错误:Got a packet bigger than 'max_allowed_packet' bytes.  谷歌解释说是因为要导入数据库超过了系统限制, 解决办法是在打开mysql的配置文件中my.ini,在[mysqld]后加入配置:max_allowed_packet=100M(如果已存在该配置,直接修改其值…
selenium执行js报错 Traceback (most recent call last):    dr.execute_script(js)  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 397, in execute_script    {'script': script, 'args':converted_args})['value']  File &qu…
1.sqlplus执行sql报错:ORA-01756: quoted string not properly terminated   分类: 技术         在SQLPLUS中执行SQL文件时发生错误:ORA-01756: quoted string not properly terminated           但是SQL其实是没有问题的,找了很多原因,发现可能是由于使用TOAD导出SQL insert语句,编码集的问题导致的.              首先在.bash_prof…