首页 > Windows开发
JS 简易实现 A是否为B 的子串 的判断函数(不借用原有api)
子串(定义):字符串中任意个连续的字符组成的子序列称为该串的子串。 /** * 通过for循环判断A是否为B的子串 * @param {String} comp - 被对比的字符串(B) * @returns {Boolean} */ String.prototype.isSubStrOf = fu ...
分类:Windows开发   时间:2021-04-15 15:01:46    收藏:0  评论:0  赞:0  阅读:17
WPF 键盘事件
因为我采用得是MVVM框架,在Window.xaml加入以下代码: <Window.InputBindings> <KeyBinding Key="F1" Command="{Binding KeyEventCommand}" CommandParameter="F1"/> <KeyBinding ...
分类:Windows开发   时间:2021-04-15 12:21:20    收藏:0  评论:0  赞:0  阅读:22
win和linux简单排查思路
windows服务器: 1. sever弱口令,远控端口 2. 查询可疑账号,新增账号(lusrmgr.msc) 3. 查询服务器存在隐藏克隆账号(D盾) 4. 集合日志eventver.msc查看事件管理器,用log parser分析 5. 检查端口,远程连接 netstat-ano 定位可疑ES ...
分类:Windows开发   时间:2021-04-15 09:27:17    收藏:0  评论:0  赞:0  阅读:14
AcWing 1229. 日期问题
原题链接 考察:模拟 思路: 总共就三种方式,每个检验一下就行.但是注意日期不为0,且注意存在相同的答案,经过排序会将相同的日期排在一起.所以直接判断前一个是否与当前相同即可. 1 #include <iostream> 2 #include <cstring> 3 #include <algori ...
分类:Windows开发   时间:2021-04-15 09:16:44    收藏:0  评论:0  赞:0  阅读:23
Acwing 276 I-Country(线性dp)
题意描述 在$N*M$的矩阵中,每个格子都有一个权值,要求寻找一个包含$K$个格子的凸连通块(连通块中间没有空缺,并且轮廓是凸的),使这个连通块中的格子权值最大。 思路 先考虑阶段,很容易想到每个阶段是由上一行放了多少个格子转移过来的,接着考虑状态表示。 看到轮廓两个字,很容易想到杨老师的照相排列这 ...
分类:Windows开发   时间:2021-04-15 09:05:59    收藏:0  评论:0  赞:0  阅读:25
windows kvm ide改virtio
首先先下载virtio驱动img文件: virtio-win.iso 修改虚拟机文件,增加cdrom: <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/home/soft/virtio ...
分类:Windows开发   时间:2021-04-15 09:05:40    收藏:0  评论:0  赞:0  阅读:63
WIndows下VSCode搭建Fortran环境
Windows下VSCode搭建Fortran环境 1. 下载VSCode 下载地址: https://code.visualstudio.com/Download 下载然后一路安装即可 2. 下载MinGW-W 下载地址: https://sourceforge.net/projects/ming ...
分类:Windows开发   时间:2021-04-14 23:50:45    收藏:0  评论:0  赞:0  阅读:157
com.alibaba.nacos.api.exception.NacosException: endpoint is blank
参考博客: https://blog.csdn.net/weixin_44271378/article/details/107659287 解决办法: 只是单纯的使用nacos作为服务的注册与发现, 不用来作为配置中心的话, 把config依赖删掉即可 既要使用nacos作为服务的注册与发现, 也要 ...
分类:Windows开发   时间:2021-04-14 23:34:26    收藏:0  评论:0  赞:0  阅读:233
TypeScript 扩展全局 Window 时报错的解决
使用全局 window 上自定义的变更进,TypeScript 会报属性不存在, console.log(window.foo) // ? Property ‘foo’ does not exist on type 'Window & typeof globalThis'.ts(2339) 需要将自 ...
分类:Windows开发   时间:2021-04-14 15:50:09    收藏:0  评论:0  赞:0  阅读:84
Windows下配置go+protoc
windows下配置golang开发环境和protoc 1.首先从golang官网下载并安装golang 2.环境变量中添加GOROOT和GOPATH,其中GOROOT是下载解压后的Go路径(例如C:/Users/lorianguo/Go/),GOPATH是项目所在的文件夹,可以自己定义着创建一个 ...
分类:Windows开发   时间:2021-04-14 15:43:41    收藏:0  评论:0  赞:0  阅读:17
WPF 之动画(十二)
WPF 中的动画主要分为 AnimationTimeline(简单动画) 和 Storyboard(一组协同的动画)。 一、简单线性动画 <Button Height="80" Width="200" Content="Move" Click="ButtonBase_OnClick"> <Butto ...
分类:Windows开发   时间:2021-04-14 15:15:13    收藏:0  评论:0  赞:0  阅读:12
delphi idhttp提交网址包含中文
首先用use httpApp 然后中文部分要转换一下 str:=AnsiToUtf8(用户名edit.Text);str:=HTTPEncode(str); url:='http://127.0.0.1:8081/datasnap/rest/tprjmis/web_login'+str str:=s ...
分类:Windows开发   时间:2021-04-14 01:43:26    收藏:0  评论:0  赞:0  阅读:26
c#字符串切割
1.单个分隔符截取 string st="300g/盒"; string[] sArray=st.split("/"); string a=sArray[0]; //300g string b=sArray[1]; //盒 2.多个字符分隔字符串 string str = "Meng_Hai_Pen ...
分类:Windows开发   时间:2021-04-14 01:41:57    收藏:0  评论:0  赞:0  阅读:18
C# 单例模式的五种写法
https://www.cnblogs.com/mcyushao/p/9671357.html 1、简单实现 C# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 public sealed class Singleton ...
分类:Windows开发   时间:2021-04-14 00:05:16    收藏:0  评论:0  赞:0  阅读:26
AttributeError:module‘win32com.gen_py has no attribute ‘CLSIDToClassMap‘
解决方案如下: 1. 运行如下代码,找到文件所在位置 from win32com.client.gencache import EnsureDispatch import sys xl = EnsureDispatch("Word.Application") print(sys.modules[xl ...
分类:Windows开发   时间:2021-04-14 00:03:49    收藏:0  评论:0  赞:0  阅读:40
API网关日志统一管理
在前文中完成了api网关kong、konga面板的部署,在将后端应用发布到网关之后,就需要对应用的日志进行统一管理。由于我们生产环境选择将kong部署进K8S环境,因此选项之后,决定采用http-log插件的方式实现日志的通过收集,将日志发送到logstash服务,对接elasticsearch,最终由kibana面板来展示和查询。添加全局日志插件访问konga面板,添加http-log插件填写l
分类:Windows开发   时间:2021-04-13 23:57:55    收藏:0  评论:0  赞:0  阅读:54
windows下redis配置文件的密码未生效
之前在windows下安装了redis并且修改了配置文件中的密码, 但是没有生效,今天终于解决。 原因:之前启动redis-server是在安装目录下直接打开的,这样配置文件不会被读到,修改的密码也就无效了 解决方法: 在redis安装目录路径下打开cmd输入:redis-server.exe re ...
分类:Windows开发   时间:2021-04-13 23:38:03    收藏:0  评论:0  赞:0  阅读:31
001_Go windows 环境搭建
Go windows 环境搭建 1、下载安装Golang Go 官网下载地址:https://golang.org/dl/ Go 官方镜像站(推荐):https://golang.google.cn/dl/ 2、验证安装成功 go version go version go1.13.8 window ...
分类:Windows开发   时间:2021-04-13 23:37:34    收藏:0  评论:0  赞:0  阅读:27
alert,confirm,prompt 等交互相关 API
alert 会弹出?个警告框,? confirm 和 prompt 则可以与?户交互,confirm 会弹出?个确认框,最 终返回 true (?户点击确定)返回 false (?户点击取消)? prompt ?户则可以输??段?字,最终 返回?户输出的结果。 这?使?了这类 API 之后,会导致? ...
分类:Windows开发   时间:2021-04-13 23:25:21    收藏:0  评论:0  赞:0  阅读:22
C# 创建文件夹以及文件
找到项目路径 我需要创建一个日志文件夹log string path = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "log"; 判断文件夹是否存在 if (!Directory.Exists(path)) { Direct ...
分类:Windows开发   时间:2021-04-13 23:24:16    收藏:0  评论:0  赞:0  阅读:18
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!