Q妹带你赚外快:Python/PHP这些问题赏金等你来领取

哈喽,大家好,我是你们的 必问 福利菌Q妹。
在这里插入图片描述
跟着Q妹一起答题赚赏金~
在这里插入图片描述

Q1:Android Studio 乱码问题

问题描述:

这个问题以前没有,是后来升级AS后才出现的,网上的方法试过了,都不管用。
乱码出现在Build Output中,如图所示:
在这里插入图片描述

答题领赏金>>https://biwen.csdn.net/question/936


Q2:怎么把图里的行和列转换一下,另外列名是重复的,怎么样可以只保留一个呢

问题描述:
在这里插入图片描述

答题领赏金>>https://biwen.csdn.net/question/935


Q3:Python 如何生产fdfs 中的token

问题描述:

搭建了fdfs文件系统,使用了fdfs的token,但是不知道python生成这个fdfs token的算法是什么。。。求解。
fastdfs-nginx-module/src/common.c, line: 943, check token fail,

答题领赏金>>https://biwen.csdn.net/question/935


Q4:iOS Object-C RSA签名算法为SHA512WithRSA/PSS,其中有个参数是saltLength,如何自己指定其大小?

问题描述:

我看Security包下的SecKey.h头文件中定义的saltLengh都是固定的大小,如何可以自己指定这个saltLength的大小呢?
下面有截图:
在这里插入图片描述

答题领赏金>>https://biwen.csdn.net/question/935


Q5:php正则的写法求助

问题描述:

在帝国模版中有这样一段

n e i r o n g = p r e g r e p l a c e ( " @ < i f r a m e ( . ? ) < / i f r a m e > @ i s " , " " , neirong=preg_replace("@<iframe(.*?)</iframe>@is","", neirong);

n e i r o n g = s t r r e p l a c e ( " neirong=str_replace(" public_r[newsurl]","/","$neirong");

$match==’’;

$pattern=’/<[img|IMG].?src="(.?(?:[.gif|.jpg|.png]))".*?[/]?>/’;

preg_match_all( p a t t e r n , pattern, neirong,$match);

if($match[1][0]==’’){

$pattern=’/<[img|IMG].?src=\\"(.?(?:[.gif|.jpg|.png]))\\".*?[/]?>/’;

preg_match_all( p a t t e r n , pattern, neirong,$match);

}

这段是调用了当前图片a目录下面的图,如://a/.jpg,我想在读取a的时候能够调用a下级目录的图片,如://a/a1/.jpg

感觉是要修改这句,但我不会正则,请帮助请教一下如何进行修改,谢谢了。

$pattern=’/<[img|IMG].?src=\\"(.?(?:[.gif|.jpg|.png]))\\".*?[/]?>/’;

答题领赏金>>https://biwen.csdn.net/question/935


Q6:Regplot()画回归图,怎么输出斜率?

问题描述:

sns.regplot('time','temperature',data=data,color='red')
plt.title('changes in log %s versus log %s'%('time','temperature'))
plt.show()

画回归图,想知道怎么输出斜率。以上代码只能画图

答题领赏金>>https://biwen.csdn.net/question/799


Q7:Oracle所有账户都登陆不进去,没有权限

问题描述:

就很莫名其面,我没安装PLSQL之前都好好的,用命令提示符就没事,安装PLSQL后就出现了好多问题,解决完后这个问题实在没办法,我用的win10,Oracle11g,家庭版

答题领赏金>>https://biwen.csdn.net/question/796


Q8:Windows Powershell上的Heroku登录问题

问题描述:

在Windows Powershell中登录Heroku时,出现以下错误:

C:\Program Files\heroku\client\node_modules\@oclif\errors\lib\index.js:29
        throw err;
        ^t

CLIError: timed out
    at Object.error (C:\Program Files\heroku\client\node_modules\@oclif\errors\lib\index.js:22:17)
    at Timeout._onTimeout (C:\Program Files\heroku\client\node_modules\@heroku-cli\command\lib\login.js:27:38)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7) {
  oclif: { exit: 2 },
  code: undefined

这是什么意思,我该如何摆脱呢?

答题领赏金>>https://biwen.csdn.net/question/792


Q9:hadoopAPI在使用MultipleOutputs输出时报could only be replicated to 0 nodes问题

问题描述:

在使用MultipleOutputs输出时报could only be replicated to 0 nodes instead of
minReplication (=1). There are 3 datanode(s) running and no node(s)
are excluded in this operation

即只能复制到0个节点,而不是minReplication(=1)。有3个数据节点正在运行,此操作中不排除任何节点。

  1. 我的防火墙也关了

  2. 在不使用MultipleOutputs的代码时没有任何问题

  3. 在本地跑没有问题,在集群上一跑到就出了问题,疯狂报这个错

could only be replicated to 0 nodes instead of minReplication (=1).
There are 3 datanode(s) running and no node(s) are excluded in this
operation.

  1. 向HDFS上传文件等都没这个问题

查了好多资料有说空间不足的

但我的群集节点上的hdfs dfsadmin -report显示的空间应该是没问题的:

答题领赏金>>https://biwen.csdn.net/question/780


Q10:ngix-rtmp根据日期设置录制文件保存的路径

问题描述:

最近项目用到nginx-rtmp搭建流媒体服务器,要求能直播和录像点播。录像需要根据日期建立目录保存,同日的录像保存在一个目录下。

网上只看到这个答案接近,但是不详细

on_record_done http://localhost/record_done

exec_record_done xxx

通过回调自己去操作。

这两个操作都有录像路径的参数。

答题领赏金>>https://biwen.csdn.net/question/774


前往必问首页,更多现金等你来闯关领取>> https://biwen.csdn.net/

Q妹要去赚钱咯ヾ(•ω•`)oQ 添加微信:vipcsdn 备注:必问 Q妹你进入官方俱乐部

在这里插入图片描述

发布了16 篇原创文章 · 获赞 46 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/askdevteam/article/details/104498768