hello world

摘要: /// <summary> /// 获取第一个可用的端口号 /// </summary> /// <returns></returns> public static int GetFirstAvailablePort() { int MAX_PORT = 65535; //系统tcp/udp端口数最 阅读全文
posted @ 2022-10-26 10:36 我是刹那、 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 循环执行 #!/usr/bin/expect set timeout -1 spawn /home/gostudy/gostudy expect { "请输入用户名" {send "123456\r"; exp_continue } "请输入密码" {send "123456\r"; exp_con 阅读全文
posted @ 2022-09-01 16:19 我是刹那、 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash ##################################################### #参数说明:1.-root 数据库root密码(必填) # 2.-nms64admin nms64admin密码(必填) ####################### 阅读全文
posted @ 2022-08-17 16:16 我是刹那、 阅读(25) 评论(0) 推荐(0) 编辑
摘要: while [ -n "$1" ] do case "$1" in -a) echo "发现 -a 选项" ;; -b) echo "发现 -b 选项" echo "-b 选项的参数值是:$2" shift ;; -c) echo "发现 -c 选项" echo "-c 选项的参数值是:$2" sh 阅读全文
posted @ 2022-08-17 16:13 我是刹那、 阅读(342) 评论(0) 推荐(0) 编辑
摘要: https://gitee.com/t115liyanpeng/license sm3: sm3.go package sm3 import ( "hash" ) //Size The size of a SM3 checksum in bytes. const Size = 32 //BlockS 阅读全文
posted @ 2022-02-09 10:16 我是刹那、 阅读(3323) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Documents; using System.Windows.Input; using System.Win 阅读全文
posted @ 2021-11-26 09:55 我是刹那、 阅读(235) 评论(0) 推荐(0) 编辑
摘要: <Style TargetType="TreeViewItem"> <Style.Triggers> <Trigger Property="local:MyTreeViewHelper.IsMouseDirectlyOverItem" Value="True"> <Setter Property=" 阅读全文
posted @ 2021-10-20 10:28 我是刹那、 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 效果图如下 控件的背景 和按钮的背景样式 都是用图片做的,本次就不上传了 只传代码 前台样式代码 <Style x:Key="MeetingTextBox" TargetType="{x:Type TextBox}"> <Setter Property="Height" Value="28"></S 阅读全文
posted @ 2021-10-08 16:15 我是刹那、 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 最近在写wpf的时候发现一个问题,原本定义的580*180 的窗口 在Show的时候窗口被放大了,后来发现是电脑显示器 放大了 125% 放在平时 倒也无伤大雅,可是我现在写的窗口 需要按照自己的方式来定位,窗口被放大后 再按照自己的坐标来定位位置 窗口就跑飞了, 百度了各种方法之后 无果,只能手动 阅读全文
posted @ 2021-09-29 10:31 我是刹那、 阅读(2873) 评论(0) 推荐(0) 编辑
摘要: 继续使用上次的代码 使用qt的资源qrc需要在根目录建立qrc文件文件内容为 <RCC> <qresource prefix="/omc"> <file>resource/imgs/loginback.png</file> <file>resource/imgs/start.ico</file> < 阅读全文
posted @ 2021-03-17 16:40 我是刹那、 阅读(613) 评论(0) 推荐(0) 编辑