关于shell目录关键词取第一行按最新的获取bug的替代方案
简书链接:关于shell目录关键词取第一行按最新的获取bug的替代方案文章字数:115,阅读全文大约需要1分钟假设有100个客户包名都是以aa开头的,我需要授权最新安装的app的客户刚开始用的ls -lt /sdcard/Android/data|grep com.aa*|head 1发现某台设备加了|head 1就不输出,tail -n 1也没用-l代表输出其他信息,而不只是文件夹解决方案ls -lt /sdcard/Android/data|grep -m 1 com.aa 取指定字段ls -lt /sdcard/Android/data | grep "com.aa" | awk '{print $9}' 其它取第一行进行输出方法ls -lt /sdcard/Android/data | grep "com.aa" | awk 'NR==1'ls -lt /sdcard/Android/data | grep "com.aa" | sed -n...
blender让一个圆环吸附在猴头上实现做一个鼻子
简书链接:blender让一个圆环吸附在猴头上实现做一个鼻子文章字数:530,阅读全文大约需要2分钟右边数字1切换正交前视图layout-物体-网格-猴头新建猴头shift+a创建物体-选择圆环(8条边)按r+z 啥的旋转确保和图 一样,然后按3 切换右视图确保这个圆环是在猴头里面否则无法实现吸附。可alt+z透视查看效果。 在吸附设置里面设置吸附到面 勾选项目中的独立元素 tab键盘切换编辑模式按g不放,一次点一下所有的点。 然后滚轮切换一下发现见证了奇迹 然后r+y朝前视图坐标挤出,然后r+s 往中心挤出 也就是向内,然后按f封口。
netcorec忽略证书解决解决TheSSLconnectioncouldnotbeestablished报错
简书链接:netcorec忽略证书解决解决TheSSLconnectioncouldnotbeestablished报错文章字数:290,阅读全文大约需要1分钟在自己电脑能正常访问,在远程服务器上部署发现无法访问微信https网址。检查了远程服务器的时间也是正常的,具体啥原因就懒得钻研了测试用exe直接打开的方式部署正常,那么估计问题出在iis的部署方式的配置问题了,和之前遇到的配置跨域无效问题类似。如果以web.config iis启动 则这么配置 12345678910<configuration> <system.net> <settings> <servicePointManager checkCertificateName="false" checkCertificateRevocationList="false" /> </settings> ...
Failedtoexecutecbidispatchertargetforentryadminservicesddn
简书链接:Failedtoexecutecbidispatchertargetforentryadminservicesddn文章字数:55,阅读全文大约需要1分钟 /usr/lib/lua/luci/dispatcher.lua:477: Failed to execute cbi dispatcher target for entry ‘/admin/services/ddns’.The called action terminated with an exception:/usr/lib/lua/luci/controller/ddns.lua:116: attempt to index field ‘?’ (a nil value)stack traceback:[C]: in function...
MicrosoftMakeFiletargets445MSB3073
简书链接:MicrosoftMakeFiletargets445MSB3073文章字数:514,阅读全文大约需要2分钟 项目玩废了,rider启动 提示rider plugin错误 改成非editor的模式提示这个,删除项目的文件夹是没效果了 Microsoft.MakeFile.targets(44, 5): [MSB3073] 命令“E:\EPICGame\UE_5.2\Engine\Build\BatchFiles\Build.bat CesiumForUnrealSamples Win64 Development -Project=”C:\ueproject\CesiumForUnrealSamples\CesiumForUnrealSamples.uproject” -WaitMutex -FromMsBuild”已退出,代码为 6。 重新生成解决方案,删除那些文件夹我发现都不管用了,无奈只能网络搜索下 删除 .vs、.idea、.vsconfig、Binaries、Intermediate、Saved、DerivedDataCache...
ExpectingtofindatypetobedeclaredinatargetrulesnamedCesiu
简书链接:ExpectingtofindatypetobedeclaredinatargetrulesnamedCesiu文章字数:161,阅读全文大约需要1分钟今天项目彻底报废打不开了,而且发现了一些奇怪的问题,经过rider开发工具 找到历史版本进行还原备份, 文本比对终于找出问题。在当前项目下找到CesiumForUnrealSamplesTarget .csCesiumForUnrealSamplesEditorTarget .cs发现内容空白,加进去即可。找到 12345678910111213141516171819202122232425262728293031public class CesiumForUnrealSamplesTarget : TargetRules{ public CesiumForUnrealSamplesTarget(TargetInfo Target) : base(Target) { Type = TargetType.Game; DefaultBuildSettings =...
Gamefilesrequiredtoinitializetheglobalshaderlibraryaremissin
简书链接:Gamefilesrequiredtoinitializetheglobalshaderlibraryaremissin文章字数:460,阅读全文大约需要1分钟解决方法 切换成debug game editor而非debuggame或者打开defaultengine.ini修改配置 123[/Script/WindowsTargetPlatform.WindowsTargetSettings]DefaultGraphicsRHI=DefaultGraphicsRHI_DX11 https://forums.unrealengine.com/t/i-cant-launch-ue5-its-my-first-time-trying-to-use-it/840020/4在启动器里面验证,会进行自动下载修复,不过还是没啥用。 最后删除E:\EPICGame\UE_5.2\Engine\Intermediate 重新清除为 editor的解决方案并编译,然后运行,发现ok了。 2023-8-1...
fragment当activity中,toolbar处理返回键等注意事项
简书链接:fragment当activity中,toolbar处理返回键等注意事项文章字数:123,阅读全文大约需要1分钟由于channel gradle渠道编译的特点模块可以定义不同的androidmefest.xml, activity,但是主app模块的channel不同分支无法设置,所以考虑研究直接用fragment来做,但是 原来的事material design 是有toolbar的因此进行了研究。需要在onCreate中设置布局中用toolbar的情况onCreateOptionsMenu不会触发,返回事件不会在onOptionSelect触发需要直接根据toolbar设置setNavigationOnClickListener事件 onViewCreated 12345678910111213141516171819202122public class ExampleFragment extends Fragment { ... @Override public void onCreate(Bundle...
iptablesNochaintargetmatchbythatname错误的解决方法
简书链接:iptablesNochaintargetmatchbythatname错误的解决方法文章字数:49,阅读全文大约需要1分钟重启docker容器 12345678910root@OpenWrt:/mnt/sdc2/config/bind/bind/etc# nano named.confroot@OpenWrt:/mnt/sdc2/config/bind/bind/etc# iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 10000 -j DNAT --to-destination 172.17.0.2:10000iptables: No chain/target/match by that name.root@OpenWrt:/mnt/sdc2/config/bind/bind/etc# iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 10000 -j DNAT --to-destination...