• 2024-06-22登录系统
    usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespace_01{publicpartialclassForm1:Form{pu
  • 2024-06-16visible_windows生成逻辑和解析
    visible_windows生成逻辑和解析visible_windows生成逻辑在开发者选项中生成错误报告或命令行使用dumpstate,会生成一个bugreprot的压缩包,如其中包含了一些dump信息,其中海有个压缩包里面包含了一些可见窗口的控件信息,但用notepad打开却多是乱码之前工作遇到过一个显示问题只有截图、
  • 2024-06-13dataGridView控件和contextMenuStrip控件的结合使用
    效果展示: 0.在dataGridView控件中绑定 contextMenuStrip控件,设置ContextMenuStrip1. 设置 dataGridView选中类型为整行选中:SelectionMode:FullRowSelect不允许dataGridView一次能选择多个单元格:MultiSelect:Fale2.第二步再dataGridView控件中分别使用
  • 2024-06-11C# hashset vs list
    usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Management;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;us
  • 2024-05-28ZingChart绘制错误信息面积图
    代码案例<!doctypehtml><html><head><metacharset="utf-8"><title>ZingSoftDemo</title><scriptnonce="undefined"src="https://cdn.zingchart.com/zingchart.min.js"></script&g
  • 2024-05-22DataGridView 控件入门
    常用属性和方法ContextMenuStrip属性:当用户点击鼠标右键时(设置和contextMenuStrip挂钩)MultiSelect属性是否可以多行选择SelectionMode属性:设置选中方式,比如是否选中一整行(设置为FullRowSelect)Dock属性:设置显示位置AllowUserToAddRows属性:取
  • 2024-05-15Vue3 vue-grid-layout布局添加右键事件
    示例code<template><divclass="dashboard-container"><ulclass='contextmenu'v-show="menuConfig.visible":style="{left:menuConfig.left+'px',top:menuConfig.top+'px'}">
  • 2024-04-19mac的cpu某段时间占用很高
    pmset-gsched,会发现如下所示:列出所有的计划事件wakepoweronat9:50AMeverydayScheduledpowerevents:[0]wakeat04/21/2401:38:54by'com.apple.alarm.user-visible-WeeklyUsageReport'[1]wakeat04/21/2405:37:09by'com.apple.alarm.user-visib
  • 2024-04-18RuntimeError: No CUDA GPUs are available问题解决
    RuntimeError:NoCUDAGPUsareavailable问题解决检查GPU是否可用importtorchiftorch.cuda.is_available():print("GPU可用")else:print("GPU不可用")显示当前可用的GPU数量importtorchprint("当前可用的GPU数量:",torch.cuda.device_count())P
  • 2024-04-14Vue3、AntDesignModal、useModal.js封装组件
    useModal.jsimport{nextTick,ref}from'vue'import{isFunction}from"lodash-es";exportfunctionuseModal(){ constvisible=ref(false) constloading=ref(false) constshowModal=()=>{ visible.value=true } con
  • 2024-04-09深度探索:机器学习Deep Belief Networks(DBN)算法原理及其应用
    目录1.引言与背景2.定理3.算法原理4.算法实现5.优缺点分析优点:缺点:6.案例应用7.对比与其他算法8.结论与展望1.引言与背景深度学习在近年来取得了显著进展,其在图像识别、语音识别、自然语言处理等多个领域的成功应用引发了广泛的关注。其中,DeepBeliefNetworks
  • 2024-03-27将a-drawer修改为notification组件
    效果图源码<template> <div> <a-drawer placement="right" :closable="true" width="560" :visible="visible" :after-visible-change="afterVisibleChange" @close="onClose"
  • 2024-03-21StringGrid1做数据控件的基本常用操作
    procedureTForm1.StringGrid1SelectCell(Sender:TObject;ACol,ARow:Integer;varCanSelect:Boolean);varR:TRect;org:TPoint;beginifARow>0thenbegin//标题行不能修改ifnotSQLResutIsEmptythenbeginwithSenderasTStringGriddoif
  • 2024-03-01LeetCode 2345. Finding the Number of Visible Mountains
    原题链接在这里:https://leetcode.com/problems/finding-the-number-of-visible-mountains/description/题目:Youaregivena 0-indexed 2Dintegerarray peaks where peaks[i]=[xi,yi] statesthatmountain i hasapeakatcoordinates (xi,yi).Amountaincan
  • 2024-02-29useModal对弹窗进行逻辑封装
    useModal.jsimport{nextTick,ref}from'vue'import{isFunction}from'@/utils/judge'exportfunctionuseModal(){ //标题 //执行ok、cancel方法 constvisible=ref(false) constloading=ref(false) consthideModal=()=>{
  • 2024-01-26element select多选 选择一条数据后自动隐藏下拉选框
    <el-selectv-model="form.roleIds"placeholder="请选择角色"multiplemultiple-limit="1"@change="handleVisibleChange"ref
  • 2024-01-25源码文件阅读---hooks的使用---使用文心一言读代码
    import{CommonFormTypes}from'globalConstants';import{createContext,useCallback,useState}from'react';import{BoardType}from'../../../DashBoardPage/pages/Board/slice/types';import{VizType}from'./slic
  • 2024-01-22v-html后数据的显示隐藏
    v-html表示出来的,但是项目要对产生的数据进行部分显示隐藏demo<template><div><div:style="{height:'500px',overflow:visible?'visible':'hidden'}">这是一大堆内容这是一大堆内容这是一大堆内容这是一大堆内容这是一大堆内容这是一大堆内容这是一大堆内容这是一
  • 2024-01-19通过设置CUDA_VISIBLE_DEVICES环境变量来指定使用哪些GPU设备
    指定单个GPU设备:CUDA_VISIBLE_DEVICES=0os.environ["CUDA_VISIBLE_DEVICES"]="0"指定多个GPU设备:CUDA_VISIBLE_DEVICES=0,1,2指定一个范围的GPU设备:CUDA_VISIBLE_DEVICES=0-2在设置了CUDA_VISIBLE_DEVICES环境变量后,只有被指定的GPU设备会被程序所使用,其他未被指定的GPU设备将不
  • 2023-12-09DataTables中的column().visible()
    DataTables中的column().visible()用来获取/设置单个选定列的可见性。描述在数据表中显示和隐藏列非常方便,尤其是在显示信息密度较大的表时。此方法允许即时更改单个列的可见性,或读取列的可见性状态。函数column().visible()描述:获取所选列的可见性。返回值:booleantrue如果该
  • 2023-12-07uniapp tabbar权限问题
    在app.vue里添加:exportdefault{//在此处添加一个函数globalData:{//更改tabbar权限reviseTabbarByUserType:function(){//可以写自己的逻辑代码//letusername=uni.getStorageSync('login_user_
  • 2023-11-30[Codeforces] CF1603A Di-visible Confusion
    CF1603ADi-visibleConfusion题目给一个长度为\(n\)的序列\(a_1,a_2,\dots,a_n\),对于每个位置\(i\),如果\(a_i\%\left(i+1\right)\not=0\),就可以将\(a_i\)删掉。删掉之后,后面的数都会往前面移动一位。问能否将序列删成空。数据范围\(1\let\le10^4,1\len\le10^5,1\le
  • 2023-11-29Ant-Design modal对话框未打开时,无法通过uesRef获取modal内部元素DOM节点
    为什么要记录下来呢?因为我在网上和chatGpt上没有搜到合适的解决方案。在CDNS上看到个和我遇到问题一样的,居然要收费才能看,所以自己记下来。当然肯定还有其他的好方案,欢迎大家留言。需求:使用antdV/g6画关系图,类似于企查查上面的那样:点击按钮打开Modal框,把数据渲染到Modal框的div
  • 2023-11-27selenium之三种等待,强制等待、隐式等待和显式等待
      显式等待presence_of_element_locatedpresence_of_all_elements_locatedvisibility_of_any_elements_located  判断页面至少有一个元素可见visible,传入locator,一旦定位就返回thelistoflocatedWebElements;  不可见(元素隐藏或是完全不存在,一个都没有)返回的是
  • 2023-11-24app直播源代码,弹出层 加遮罩层 页面禁止滑动
    app直播源代码,弹出层加遮罩层页面禁止滑动加遮罩层大标签下加标签 <div:class="[{introduced:AnimationsPopup}]"></div>scss.introduced{ width:100%; height:100%; position:fixed; top:0; left:0;  z-index:90; transition:all0.15slinea