• 2024-04-28JDK源码分析-HashSet
    概述HashSet是Java集合框架中非常重要的一个类,它实现了Set接口,不允许出现重复元素,并且元素是无序的。HashSet的底层实现主要依赖于HashMap,通过HashMap来存储元素。如果想要了解HashMap,可以查看后续文章。类图从以上类图可以看到,HashSet实现了三个接口,继承了一个抽象类:Serial
  • 2024-04-17SpringBoot项目 file not present 终局!
    在写一个文件上传接口时,从一个老项目里copy出来了一个接口,死活报错filenotpresent,参考如下步骤排查确保请求的httpheader里面的文件字段名和接口定义一致如果使用postman,则确定key和接口保持一致在保证一切都是对的情况下,检查下项目是否配置了CommonsMultipartResolv
  • 2024-04-13VMware15显示“该虚拟机要求使用 AVX2,但 AVX 不存在”
    版本:VM:15.5.7build-17171714虚拟机:rhel-8.8-x86_64-dvd地址:D:\Users\q2383\Documents\VirtualMachines\RedHatEnterpriseLinux864位\RedHatEnterpriseLinux864位.vmx1.修改内容点击查看代码.encoding="GBK"config.version="8"virtualH
  • 2024-04-13VM虚拟机显示“客户机操作系统已禁用cpu”及“该虚拟机要求使用 AVX2,但 AVX 不存在”
    版本:VM:15.5.7build-17171714虚拟机:rhel-8.8-x86_64-dvd地址:D:\Users\q2383\Documents\VirtualMachines\RedHatEnterpriseLinux864位\RedHatEnterpriseLinux864位.vmx问题:客户机操作系统已禁用cpu1.添加内容点击查看代码.encoding="GBK"config.version=
  • 2024-02-21英语形容词后置用法
    问题来源:TheEconomist:  'Ever-strongercopyrightprotectionhaswithheldincalculableamountsofculturefromthepublicdomain,'arguesBenSobelinaguestessay.'Butwewon’trepairthatdamagewithexceptionstailor-madetobenefitthe
  • 2024-01-31ABC334F Christmas Present
    非常好dp,使我线段树旋转。原题传送门分析首先由于两点之间直线线段最短,我们肯定是希望从头一直送到尾,最后回家。但是有了\(k\)的限制,就麻烦了。考虑一个dp。我们设\(dp[i]\)表示刚送完第\(i\)个孩子时所要跑的最短距离。转移的时候我们枚举上一次回家是在送完哪一个孩
  • 2023-12-24题解 ABC334F【Christmas Present 2】
    设\(f_i\)表示假设只有编号为\(1\simi\)的点,此时的答案。\(f_n\)即为所求。显然有:\[f_i=\min\limits_{i-k\lej<i}\{f_j+dis(s\toj+1\toj+2\to\cdots\toi)\}+dis(i\tos)\]当\(i\toi+1\)时,大括号内部全局增加\(dis(i\toi+1)\),可以全局打标记后单调队列维护。
  • 2023-12-21报错: Failed to execute ‘append‘ on ‘FormData‘: 2 arguments required, but only 1 present.
    未能对“FormData”执行“append”:需要2个参数,但仅存在1个参数。  letformData=newFormData()本来formData.append(‘list’,JSON.stringify(arr))  改成下边这样了,就报错了formData.append(JSON.stringify(arr))正确的写法应该是: fd.append("参数名",值") ;我们
  • 2023-12-02Vulkan/VkPresentModeKHR
    呈现模式:对于交换链对显示模式的设置应该是最重要的,因为它代表实际显示图像到屏幕的时机。在Vulkan中有四种显示模式:1.VK_PRESENT_MODE_IMMEDIATE_KHR由应用提交的图像立刻被传输到屏幕。这种方式可能导致图像不完整。2.VK_PRESENT_MODE_FIFO_KHR交换链是一个队列,当
  • 2023-09-12关于intent之android.intent.action.USER_PRESENT的接收与使用
    在做解锁监听程序时,一开始采用监听屏幕SCREEN_ON和SCREEN_OFF这两个action。但奇怪的是,这两个action只能通过代码动态的形式注册,才能被监听到,使用AndroidManifest.xml完全监听不到。百度后发现这是PowerManager那边在发这个广播的时候做了限制,限制只能有register到代
  • 2023-09-05docker 打开报错 windows hypervisor is not present docker desktop is unable to detect a hypervisor. .....
     dockerdesktop-windowshypervisorisnotpresentdockerdesktopisunabletodetectahypervisor.hardwareassistedvirtualizationanddataexecutionprotectionmustbeenabledintheblos.seehttps://docsdocker.com/desktop/troubleshoot/topics/#virtua
  • 2023-08-09MuMu模拟器运行一段时间后Device.Present耗时突然上升
    1)MuMu模拟器运行一段时间后Device.Present耗时突然上升2)​如何在运行过程中获得温度信息3)InputSystem鼠标更换主按键的Bug4)如何禁止Unity向https://config.uca.cloud.unity3d.com发送设备信息这是第347篇UWA技术知识分享的推送,精选了UWA社区的热门话题,涵盖了UWA问答、社区帖子
  • 2023-07-13unity3D制作并使用Assetbundles方法
    在网页中为了控制.unity文件的大小,加速载入速度,可以把系统用到的资源制作成Assestbundles,根据需要进行动态的加载和卸载。具体作法:1、使用脚本重新定义系统菜单,添加一个制作Assetbunles的菜单命令://C#Example//Buildsanassetbundlefromtheselected
  • 2023-06-15Present
    C.Presenttimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLittlebeaverisabeginnerprogrammer,soinformaticsishisfavoritesubject.Soonhisinformaticsteacherisgoingtohavea
  • 2023-05-18“Present & Prospects (时局与前瞻) ”
    俗话说:“要富口袋先富脑袋,脑袋决定口袋”现实告诉我们,相比智商,人与人的差距很大一部分是由前瞻视野和思维因素拉开的。思维是无形的,却可以创造出有形的价值。“千金买居,万金买邻”,圈层之道,才是高端人居的终极要”。据斯坦福研究中心发表的一份调查报告指出:一个人赚的钱,12.5%来自
  • 2023-05-12554.488/688   应用数学计算
    554.488/688ComputingforAppliedMathematicsSpring2023-FinalProjectAssignmentTheaimofthisassignmentistogiveyouachancetoexerciseyourskillsatpredictionusingPython.Youhavebeensentanemailwithalinktodatacollectedonarandom
  • 2023-02-20HDOJ2095 find your present (2)
    findyourpresent(2)TimeLimit:2000/1000MS(Java/Others)    MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):25477    AcceptedSubmiss
  • 2023-02-05杭电2095(find your present (2))
    ​​这里写链接内容​​>引用块内容ProblemDescriptionInthenewyearparty,everybodywillgeta“specialpresent”.Nowit’syourturntogetyourspecialpre
  • 2023-02-04present perfect(l have done)
     partAThepresentperfectsimpleishave/has+pastparticiple   l/we/they/youhave(=l'veetc)finshedhe/she/ithas(=he'setc)lostetc 
  • 2023-01-23Bash: options
     bash[options][command_string|file]-cIfthen-coptionispresent,thencommandsarereadfromthefirstnon-optionargumentcommand_string.Ifthere
  • 2023-01-16【elementUI + Spring报错解决方案】Required request part ‘*****‘ is not present
    出错描述  前端封装好文件数据,后端写好接口,一模一样的参数名,但是会报错:Requiredrequestpart'*’isnotpresent  前端代码:  后端代码:解决办法  在前端封装的时
  • 2023-01-12WinWorld from the past, to the present, for the future
    WinWorld:Welcome(winworldpc.com)WinWorldisanonlinemuseumdedicatedtothepreservationandsharingofvintage,abandoned,andpre-releasesoftware.Weo
  • 2022-12-30Selenium52-实现添加赛区无效用例
    面向对象实现test_007pytest测试方法实现:在原来的步骤前后增加调用通用函数步骤deftest_007(self):self.login_to_add_division_page()driver=
  • 2022-12-30Selenium51-实现添加赛区有效用例
    面向对象实现test_001pytest测试方法实现:在原来的步骤前后增加调用通用函数步骤deftest_001(self):self.login_to_add_division_page()driver=
  • 2022-12-19springboot项目打包报错:Type org.springframework.boot.maven.RepackageMojo not present
    折磨了好久的一个问题,换过spring-boot-maven-plugin版本,但不见效。今天参考这篇文章:springboot打包RepackageMojonotpresent,版本改成2.6.2,不行。就想,可能是我用的idea