草庐IT

MXRT1xxx

全部标签

C#实现Windows中"用xxx打开"

在Windows中,将文件用鼠标拖动到一个程序上面,会有一句小提示:用xxx打开(如下图)。 它本质上就是运行程序时,传递了一个文件路径的命令行参数。相当于这样的命令:program.exefile_path 其中"program.exe"就是打开此文件用的程序,"file_path"参数就是拖过去的文件的绝对路径。因此我们可以得出:软件通过"file_path"参数读取到文件内容,最后展示出来以供用户编辑。C#代码示例:1usingSystem;23namespaceDemo4{5classProgram6{7staticvoidMain(string[]args)8{9Console.Wr

Unity中的一些PropertyAttribute(如[Header(“xxx“)])的用法与详细使用案例

  1.[Header("xxx")] 该代码用于在Inspector面板上给之后定义的puclic变量加一个标题.具体用法如下publicclassTest:MonoBehaviour{[Header("TEST1")]publicboolspeed;publicbooljumpForce;publicinthealth;[Header("TEST2")]publicintmoney;voidStart(){}voidUpdate(){}} 使用之后可以看出在Inspector面板上Header之下的变量前都多出了一个标题,可以方便我们在图形化界面管理大量拥有相同变量的单位.2.[Space

【git push指令提交项目报错】 fatal: unable to access ‘https://github.com/xxxxx/xxx.git/‘: OpenSSL SSL_read: Co

在用gitpush指令提交项目时,由于网络等各种原因时常报错,针对以下几个问题,本文提供解决方法,亲测有效!问题一:fatal:unabletoaccess'https://github.com/xxxxx/xxx.git/':OpenSSLSSL_read:Connectionwasreset,errno10054问题二:fatal:unabletoaccess'https://github.com/xxxxx/xxx.git/':Failedtoconnecttogithub.comport443after21086ms:Timedout两个问题都可以以下尝试1.关闭网络代理(比如关闭网络

Unknown column ‘xxx‘ in ‘field list‘

MySQL数据库插入数据时,出现Unknowncolumn'XXX'in'fieldlist' 问题('XXX'表示任意字符)。例如下面:--删除表DROPTABLEIFEXISTStbl_log;createtabletbl_log( idintprimarykeyauto_increment,infovarchar(255),createDatedatetime)然后向其中插入一行数据:publicinterfaceLogDao{@Insert("insertintotbl_log(info,createDate)values(#{info},now())")voidlog(Stringi

vue : 无法加载文件 C:\XXX\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。

现象在vscode终端中,执行vueinit命令报错:vue:无法加载文件C:\XXX\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅about_Execution_Policies。解决方法 1.点击vscode图标,右键点击属性→兼容性→设置,勾选“以管理员身份运行此程序”2.在终端窗口输入set-ExecutionPolicyRemoteSigned    输入命令查看get-ExecutionPolicy 为“RemoteSigned”    3.再次执行vueinit就不报错,这样就解决了该问题。

docker进入容器时报错 Error response from daemon: Container xxx is restarting, wait until the container is

使用dockerrun命令运行容器,再进入容器时报错运行容器命令dockerrun--restart=always--namemongo-v/data/mongo:/data/db-p27017:27017-dmongo--auth进入容器命令dockerexec-itmongobash错误信息Errorresponsefromdaemon:Container90831dd80b32a1502d9535c874ceec899b5fd70c883481195b4f36cd29be47b0isrestarting,waituntilthecontainerisrunning[root@Tracy~

MySQL登录时出现 Access denied for user“xxx” ‘‘@‘xxx.xxx.xxx.xxx‘ (using password: YES) 的原因及解决办法

    我自己的情况是我操作navicat连接服务器上的数据库,新建了一个用户然后给了这个用户一个数据库的权限,但是连接的时候就出现                                             [28000][1045]Accessdeniedforuser'xxxxxxx'@'xxxxx'(usingpassword:YES)后来发现我需要给这个用户设置一个远端登录权限,就像下图圈出来那样,新建相同的用户,host那里写成%。 另外我发现navicat无论你设置什么密码,都会最后显示你的密码长度为8位。 

全网多种方法解决error: failed to push some refs to ‘xxx‘

文章目录1.复现错误2.分析错误3.解决错误4.解决该错误的其他方法1.复现错误今天使用gitstatus查看文件状态,发现有一个文件未提交,如下代码所示:D:\project\test>gitstatusOnbranchmasterYourbranchisuptodatewith'origin/master'.Untrackedfiles:(use"gitadd..."toincludeinwhatwillbecommitted)src/main/java/xxx/po/test.javanothingaddedtocommitbutuntrackedfilespresent(use"git

The bean ‘xxx.FeignClientSpecification‘ could not be registered. A bean with that name has already b

一、异常日志:Thebean'xxxx.FeignClientSpecification'couldnotberegistered.Abeanwiththatnamehasalreadybeendefinedandoverridingisdisabled.Action:Considerrenamingoneofthebeansorenablingoverridingbysettingspring.main.allow-bean-definition-overriding=true二、原因:在同于一个微服务中多个feign接口使用@FeignClient注解调用同一个名称的微服务,启动时引发的异

fatal: could not create work tree dir ‘xxx’: Permission denied解决办法

场景:当去clone仓库的时候发生错误报错内容:fatal:couldnotcreateworktreedir‘hui-mobile2.0’:Permissiondeniedcsdn检测到文章质量不佳,加一行代码自查方法:去磁盘根目录下,右键–>新建,如果只有文件夹一个选项,并且文件夹前面还有管理员权限的图标,就证明你也是把权限给关了解决办法:在磁盘任意位置,右键–>属性–>选择“安全”选项–>选中AuthenticatedUsers–>编辑,把完全控制打上√,等待电脑系统重置权限完毕,就可以了