electron-vue 文件选择对话框
摘要:1. 导入 Electron dialog 模块 <script> const { dialog } = require('electron').remote;... </script> 2. 在代码中调用 Electron dialog 模块,如下所示: var selectedFilePath
阅读全文
posted @
2021-02-27 16:17
青叶煮酒
阅读(1814)
推荐(0) 编辑
css 使用笔记
摘要:1. 在 css 中定义 img 的 src <style> img { content:url("../../assets/power_on.png"); } </style 2. 控件缩放 transform: scaleX(x); /*沿X轴方向缩放*/ transform: scaleY(y
阅读全文
posted @
2021-02-27 10:59
青叶煮酒
阅读(57)
推荐(0) 编辑
结构化日志工具 Serilog 使用
摘要:1. 添加 NuGet 包 在解决方案管理器视图中的目标项目上右键 -> 管理 NuGet 程序包; 添加 Serilog、Serilog.Sinks.Console、Serilog.Sinks.File、Serilog.Sinks.Seq、Serilog.AspNetCore、Microsoft.
阅读全文
posted @
2021-02-25 17:27
青叶煮酒
阅读(596)
推荐(0) 编辑
在 .Netcore 中使用 Log4Net
摘要:using log4net;using log4net.Config; using System; using System.IO; using System.Reflection; namespace LoggingDemo.Log4Net{ class Program { private sta
阅读全文
posted @
2021-02-23 17:37
青叶煮酒
阅读(174)
推荐(0) 编辑
临时
摘要:任务:查看非root运行的进程 # ps -U root -u root -N
阅读全文
posted @
2021-02-20 16:30
青叶煮酒
阅读(68)
推荐(0) 编辑
grpc 文件上传 C#
摘要:1. 相关结构体及函数声明 rpc FileUpload (stream FileRequest) returns(FileReply); message FileRequest { string FileName = 1; bytes FileContents = 2; } message Fil
阅读全文
posted @
2021-02-04 13:07
青叶煮酒
阅读(620)
推荐(0) 编辑