自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(540)
  • 收藏
  • 关注

转载 154th LeetCode Weekly Contest

A B D均比较简单。先说C题K-Concatenation Maximum SumGiven an integer arrayarrand an integerk, modify the array by repeating itktimes.For example, ifarr= [1, 2]andk = 3then the modified ar...

2019-09-16 00:05:00 219

转载 插播一条 关于数独的解法记录

首先应该知道了。https://ac.nowcoder.com/acm/contest/625/E这个数字必须是行,列,3X3小方块区域内,有且出现过一次的数字。代码标记为row[i][x] = 1 表示行出现过col[j][x] = 1 表示列出现过对于3X3的区域来说。有两种记录方式tab[i/3][j/3][t]=1 最好理解,表示9个方块中某一...

2019-08-31 00:15:00 209

转载 代码片段 Powershell修改桌面壁纸

其实只不过是利用了win32函数 function Set-Wallpaper($image){ $source = @" using System; using System.Runtime.InteropServices; public class Params { [DllImport("User32.dll",Ch...

2019-08-27 15:25:00 711

转载 代码片段 修改Windows用户名

cmd /c wmic useraccount where name='%USERNAME%' call rename name='2333333333333'记录防备忘转载于:https://www.cnblogs.com/yinghualuowu/p/11418033.html

2019-08-27 14:14:00 125

转载 C# “不支持给定路径的格式”异常处理

问题背景无聊研究了一下怎么发送邮件(包含附件),但发现附带的文件路径除了报错就是报错,不知道为什么。用了不下好几种方式,比如var x = "E:\\Git\\cmd\\git.exe";var x = @"E:\Git\cmd\git.exe";var x = Path.Combine(@"E:\Git\cmd\git.exe");感觉什么操作都用上了,...

2019-07-10 11:41:00 10279

转载 python 使用PyInstaller遇到的坑

给个链接https://github.com/yinghualuowu/Python_VLPR/releases参数问题在网上随处可以见到PyInstaller的参数教程。-F : 打包成单个可执行文件-w : 打包之后运行程序,只有窗口不显示命令行-c : 打包之后运行程序,显示命令行结果用了 -F.导致外部用的配置文件无法读取。报错Fail...

2019-07-09 10:20:00 179

转载 插播一条 静默安装的工具使用记录

有时候需要静默安装,但又不知道到底用什么指令去执行Universal Slient Switch Finder看了一下这个工具已经很老了,也不再提供更新。使用起来也很简单。点击一下就知道这个包的类型和可以使用的静默安装指令。缺点就是这个程序真的真的太老了,可能认不出最新的程序。。。PEid这个是破解专用的工具,Nullsoft PiMP Stub [Null...

2019-06-13 16:02:00 195

转载 插播一条 WMI修复教程

一般情况下,WMI都会好好的工作,但偶尔也会出现小问题。这些小问题会影响到正在使用WMI的程序,比如设置的有线和无线网络依然还是依赖WMI的。如果WMI自己都没办法工作,有些数据就获取不到了。先看看WMI有没有问题ctrl + R 运行wmimgmt.msc,然后右键->属性如下,说明WMI正常。那有问题的长什么样子??不是下面的图片就是出问题了。比如出现xx...

2019-06-11 10:28:00 141

转载 C# 聊一聊屏保的设置 第一步 注册表

初步认识屏保进入屏保设置强行开头,大家都知道我们只需要在搜索框打入“屏保”,就能进入屏保的设置选项。然而箭头指向的位置到底是在Windows的哪个地方呢?这就是写这篇博客的原因。进入一个屏幕保护程序比如这个照片的屏幕保护程序呢,C:\Windows\System32\PhotoScreensaver.scr。打开一看是它的屏保模式。参数 \c进入它的设置模式。不过有些...

2019-04-28 14:38:00 323

转载 2019 力扣杯-全国高校春季编程大赛 最长重复子串

给定字符串S,找出最长重复子串的长度。如果不存在重复子串就返回0。示例 1:输入:"abcd"输出:0解释:没有重复子串。示例 2:输入:"abbaba"输出:2解释:最长的重复子串为 "ab" 和 "ba",每个出现 2 次。示例 3:输入:"aabcaabdaab"输出:3解释:最长的重复子串为 "aab",出现 3 ...

2019-04-21 20:14:00 70

转载 2019 力扣杯-全国高校春季编程大赛 按字典序排列最小的等效字符串

给出长度相同的两个字符串:A和B,其中 A[i] 和 B[i] 是一组等价字符。举个例子,如果A = "abc"且B = "cde",那么就有'a' == 'c', 'b' == 'd', 'c' == 'e'。等价字符遵循任何等价关系的一般规则:自反性:'a' == 'a'对称性:'a' == 'b' 则必定有 'b' == 'a'传递性:'a' == ...

2019-04-21 20:08:00 120

转载 2019 力扣杯-全国高校春季编程大赛 有序数组中的缺失元素

给出一个有序数组A,数组中的每个数字都是独一无二的,找出从数组最左边开始的第K个缺失数字。示例 1:输入:A = [4,7,9,10], K = 1输出:5解释:第一个缺失数字为 5 。示例 2:输入:A = [4,7,9,10], K = 3输出:8解释: 缺失数字有 [5,6,8,...],因此第三个缺失数字为 8 。...

2019-04-21 20:05:00 120

转载 2019 力扣杯-全国高校春季编程大赛 易混淆数

给定一个数字N,当它满足以下条件的时候返回true:把原数字旋转180°以后得到新的数字。如 0, 1, 6, 8, 9 旋转 180° 以后,得到了新的数字 0, 1, 9, 8, 6 。2, 3, 4, 5, 7 旋转 180° 后,得到的不是数字。易混淆数字 (confusing number) 就是一个数字旋转180°以后,得到和原来不同的数字,且新数字的每一...

2019-04-21 19:52:00 76

转载 以图搜图,盘点一下必备的(二次元)搜图网址

写这篇博客的背景大概很多人都知道怎么去找b站的封面啊,但是b站的封面大多是压缩的,没办法做成桌面。所以只能去找原图。哪些网站可以找原图首先,需要一张图,这图是我从b站直播的某个up那里找的,才97k,放大基本就模糊了。百度识图没有特别的意思,应该是百度对这种二次元的图片不怎么有感觉。我们换一张吧。是吧,还是可以一用的!!谷歌识图呃呃呃呃呃,怎么...

2019-04-13 23:24:00 9322

转载 Powershell cannot be loaded because running scripts is disabled on this system 解决办法

问题背景第一次跑ps时,出现了下面的提示。这是因为windows不允许执行脚本而已,不要大惊小怪。解决办法这个需要管理员执行,不然会出现以下的情况正常情况转载于:https://www.cnblogs.com/yinghualuowu/p/10613327.html...

2019-04-11 15:22:00 1909

转载 博客主题皮肤探索-添加新功能和fiddler的css/js替换

还有前言使用了主题之后,发现还差了一点功能。最新评论没有了,导致读者回复需要一点时间去找到底回复了哪条博客。于是就有了添加功能的想法。如何调试CSS/JS打开f12,可以看见加载的js资源都是混淆的。虽然还是可以看懂,但这变量名a,b,c,d一搞也头疼。而且本地修改的是不会放在在线调试的,因此我们需要一个工具去替换网页的资源。幸好,fiddler就提供了这个方法。...

2019-04-09 16:06:00 95

转载 博客主题皮肤探索-主题的本地化和ChromeCacheView使用

还有前言用了大佬的主题之后,有些资源是无法在暴露的接口处更改的,需要自己去css更改。但后台给的都是压缩过的,找起来比较困难,所以特意记录了这篇。本地资源替换侧边栏:.introduce-box { width: 100%; position: absolute; top: 0; left: 0; color: #f5...

2019-04-09 00:00:00 122

转载 插播一条 QQ头像无法正常显示问题

问题背景不知道啥什么,QQ群的头像有些显示不全直接是默认的头像。想一想最近也没做啥,怎么就出问题了。后来想一想,大概是个人文件夹的文件出问题了解决办法好友头像显示问题的删除 MiscHead.db群头像显示问题删除lnfo.dbdb是啥不用解释了吧,没事的,删除后重新登录就好了。~~转载于:https://www.cnblogs.com/yinghualuo...

2019-04-08 00:15:00 420

转载 博客主题皮肤探索-GitHub和jsdelivr的使用

有个前言本萌并不会前端相关的知识,一切都是自己慢慢摸索出来的,如果存在代码方面的不足,请尽快告诉我~~~使用一个主题目前我博客使用是https://www.cnblogs.com/bndong/p/9132439.htmlhttps://github.com/BNDong/Cnblogs-Theme-SimpleMemory他开源的主题非常非常非常方便使用,注释都...

2019-04-06 23:09:00 114

转载 Visual Studio 2019 激活码

Visual Studio 2019 EnterpriseBF8Y8-GN2QH-T84XB-QVY3B-RC4DFVisual Studio 2019 ProfessionalNYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y转载于:https://www.cnblogs.com/yinghualuowu/p/10654626.html

2019-04-04 14:22:00 462

转载 Opencv ValueError: not enough values to unpack (expected 3, got 2)解决办法

问题背景有些人在用我去年的毕设运行时(感谢QAQ),报错Opencv ValueError: not enough values to unpack (expected 3, got 2)当时就觉得是某个库的版本不对。但一直没注意。现在统一说一下。解决办法https://stackoverflow.com/questions/54164630/want-to-...

2019-03-28 10:31:00 244

转载 128th LeetCode Weekly Contest Capacity To Ship Packages Within D Days

A conveyor belt has packages that must be shipped from one port to another withinDdays.Thei-th package on the conveyor belt has a weight ofweights[i]. Each day, we load the ship with packa...

2019-03-17 23:29:00 85

转载 128th LeetCode Weekly Contest Pairs of Songs With Total Durations Divisible by 60

In a list of songs, thei-thsong has a duration oftime[i]seconds.Return the number of pairs of songs for which their totalduration in seconds is divisible by60. Formally, we want the num...

2019-03-17 23:22:00 78

转载 128th LeetCode Weekly Contest Complement of Base 10 Integer

Every non-negative integerNhas a binary representation. For example,5can be represented as"101"in binary,11as"1011"in binary, and so on. Note that except forN = 0, there are no leadi...

2019-03-17 23:13:00 77

转载 C# WPF Image控件下对于Base64的转化显示

算作前言本文对图片如何转化成base64不做描述,我们可以从很多途径了解到转化办法。却很少有博客提到怎么在WPF的Image控件中显示图片。对于base64的合法性随便拿一张图片转一下试一试:额。好长....取前面一部分吧data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAA9CAMAAADlJaswAAAA...

2019-03-17 22:13:00 879

转载 C# 进程通信SendMessage和有关消息参数

SendMessage是啥?函数原型:LRESULT SendMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM IParam)SendMessage(窗口句柄,消息,参数1,参数2)函数功能:该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。在C#中,我们可以这样...

2019-02-28 19:54:00 393

转载 123th LeetCode Weekly Contest Broken Calculator

On a broken calculator that has a number showing on its display, we can perform two operations:Double: Multiply the number on the display by 2, or;Decrement: Subtract 1 from the number on t...

2019-02-10 23:16:00 64

转载 123th LeetCode Weekly Contest Add to Array-Form of Integer

For a non-negative integerX, thearray-form ofXis an array of its digits in left to right order. For example, ifX = 1231, then the array form is[1,2,3,1].Given the array-formAof a non-n...

2019-02-10 23:10:00 125

转载 C# 获取控制面板软件信息

一般情况下要知道的注册表位置Software\Microsoft\Windows\CurrentVersion\Uninstall要知道的根目录集合List<RegistryKey> registryKeys = new List<RegistryKey>{ Registry.ClassesRoot, Registr...

2019-01-29 10:06:00 501

转载 C# 利用Powershell获取网络相关信息

利用Get-NetAdapter获取信息Get-NetAdapter参考链接:https://docs.microsoft.com/en-us/powershell/module/netadapter/get-netadapter?view=winserver2012r2-ps显示的属性如下(表格形式):根据文档描述,我们可以根据Name或者Interfac...

2019-01-21 15:34:00 322

转载 adb自救指南

以下只能自救专用adb.exe rootadb remountadb.exe connect <Ip>adb.exe install [-r] [-d] <apkPath>rm data/datarm system/app转载于:https://www.cnblogs.com/yinghualuowu/p/10280459...

2019-01-17 09:13:00 86

转载 119th LeetCode Weekly Contest Subarray Sums Divisible by K

Given an arrayAof integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible byK.Example 1:Input: A = [4,5,0,-2,-3,1], K = 5Output: 7Explanation: T...

2019-01-13 18:33:00 55

转载 119th LeetCode Weekly Contest Largest Perimeter Triangle

Given an arrayAof positive lengths, return the largest perimeter of a triangle withnon-zero area, formed from 3 of these lengths.If it is impossible to form anytriangle of non-zero area, re...

2019-01-13 18:30:00 60

转载 119th LeetCode Weekly Contest K Closest Points to Origin

We have a list ofpointson the plane. Find theKclosest points to the origin(0, 0).(Here, the distance between two points on a plane is the Euclidean distance.)You may return the answer i...

2019-01-13 18:28:00 58

转载 毕业设计 python opencv实现车牌识别 码云地址

码云地址:https://gitee.com/yinghualuowu/Python_VLPR删除了冗余代码,可以更加便于运行。其实是为了那些进不去github准备的~转载于:https://www.cnblogs.com/yinghualuowu/p/10231727.html...

2019-01-07 10:19:00 319

转载 118th LeetCode Weekly Contest Pancake Sorting

Given an arrayA, we can perform apancake flip:We choose some positive integerk<= A.length, then reverse the order of the firstkelements ofA. We want to perform zero or more pancake fli...

2019-01-06 22:41:00 77

转载 118th LeetCode Weekly Contest Powerful Integers

Given two non-negative integersxandy, an integer ispowerfulif it is equal tox^i + y^jforsome integersi >= 0andj >= 0.Return a list of allpowerfulintegers that have value less...

2019-01-06 13:58:00 55

转载 115th LeetCode Weekly Contest Check Completeness of a Binary Tree

Given a binary tree, determine if it is acomplete binary tree.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except possibly the last, is completely...

2018-12-24 21:31:00 80

转载 115th LeetCode Weekly Contest Prison Cells After N Days

There are 8 prison cells in a row, and each cell is either occupied or vacant.Each day, whether the cell is occupied or vacant changes according to the following rules:If a cell has two adj...

2018-12-24 21:28:00 78

转载 XAML 绑定和结构体不得不说的问题

遇见一个问题如果用一个结构体struct。再用一个ListView,然后使用绑定。<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema...

2018-12-24 15:47:00 104

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除