- 博客(108)
- 资源 (4)
- 收藏
- 关注
原创 Win10系统下编译GmSSL库
源码下载地址:https://github.com/guanzhi/GmSSL/releases编译文档地址:http://gmssl.org/docs/install.html一、环境准备1.安装ActivePerl和Visual StudioActivePerl下载地址:https://www.activestate.com/products/perl/Visual Studio下...
2022-10-03 10:25:00
165
原创 VirtualBox启动报错(VERR_NEM_MISSING_KERNEL_API_2)和Docker启动报错(Hardware assisted virtualization and data e...
1.VirtualBox中新建的虚拟机无法启动,报一下错误:VMMRO_DO_NEM_INIT_VM failed:VERR_NEM_MISSING_KERNEL_API_2VT-x is not available (VERR_VMX_NO_VMX).2.解决办法使用管理员打开cmd 输入命令:bcdedit查看hypervisorlaunchtype是否为auto,如果是则执...
2022-04-11 18:18:00
127
原创 ffi-napi加载dll错误处理
Dynamic Linking Error: Win32 error 193文件是32位的,运行环境是64位的Dynamic Symbol Retrieval Error: Win32 error 127 Error 127 might also mean that the required symbol is not found需要dll里面定义.def文件导出方法...
2022-04-01 17:53:00
189
原创 编译TS发生 Property or signature expected
报错:error TS1131: Property or signature expected.原因发生原因,TS接口中使用了get,并且将node_modules置于包工程外,使用tsc -ptsconfig.json编译。单独使用tsc编译无此问题解决办法,一下二选一1.将node_modules在包工程内安装一份2.全局安装typescipt...
2021-11-04 18:23:00
238
原创 electron 启动错误
Exception thrown during bootstrappingError installing extension 'extensions::SafeBuiltins'.[3980:1014/115518.314:FATAL:v8_initializer.cc(95)] V8 error: Empty MaybeLocal. (v8::ToLocalChecked).原因:loca...
2021-10-14 12:58:00
50
原创 linux安装nodejs
cd /usr/local/srcsudo wget https://npm.taobao.org/mirrors/node/v14.16.0/node-v14.16.0-linux-x64.tar.gzsudo tar -zxvf node-v14.16.0-linux-x64.tar.gzsudo mv node-v14.16.0-linux-x64 nodejscd nodejssudo...
2021-07-04 17:47:00
25
原创 linux环境运行electron报chrome-sandbox错误解决办法
linux运行electron报如下错误:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to ma...
2021-06-29 15:05:00
728
3
原创 vscode使用SSH Targets连接远程系统进行开发
1.找到自己电脑公钥C:\Users\用户名\.ssh这个目录id-rsa和id-rsa.pub两个文件, 第一个是私钥文件,第二个是公钥文件2.将公钥添加到远程linux系统中sudo vim /root/.ssh/authorized_keys:wq保存退出3.启用秘钥方式登录sudo vim /etc/ssh/sshd_configPubkeyAuthenticationye...
2021-06-25 16:18:00
35
原创 python2.7版本安装pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.pypython get-pip.py
2021-06-22 19:28:00
27
原创 ubuntu系统安装最新版本nodejs
#使用源码安装curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -sudo apt-get install -y nodejs#使用nvm安装curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash export N...
2021-05-21 18:38:00
29
原创 win7安装yarn后执行报错
无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\vue.ps1,因为在此系统中禁止执行脚本解决方案:powerShell 用管理员身份运行 set-ExecutionPolicy RemoteSigned
2021-05-21 13:36:00
35
原创 Object合并,并使用默认值处理
privatemergeObject(targetObj:any,sourceObj:any,defaultObj:any){if(defaultObjinstanceofObject){letkeys=Object.keys(defaultObj);for(leti=0;i<keys.length;i+...
2021-04-13 18:47:00
38
原创 解决JSON.stringify序列化循环依赖对象报错
重写stringify 解决序列化循环依赖对象报错,解决方式,对已访问对象建立索引,已访问过的对象不再处理var stringify = (function () { var toString = Object.prototype.toString; var isArray = Array.isArray || function (a) { return toString.c...
2021-03-11 14:04:00
48
原创 git 合并不同库的代码
1.在需要合并的库上(K1)添加新的远程库(K2)地址git remote add old url2.拉取代码(K1)git fetch --all3.切换到K1的分支上4.执行Merge5.执行Commit6.执行pull如果遇到refusing to merge unrelated histories 添加--allow-unrelated-history选项(windows...
2021-01-10 16:16:00
45
原创 解决git中upstream为空的问题
直接设置远程分支名称即可:git branch --set-upstream-to=origin/source
2020-12-25 12:33:00
33
原创 C#并发读取文件
项目中要读取琐碎的文件内容,顺序执行比较耗时,所以编写以下下并发读取函数,读取时可以指定线程数,或者根据cpu数调用:使用代码:var fileContents = ParallelReadFile(files, Environment.ProcessorCount);并发读取函数: public static IDictionary<string, strin...
2020-12-10 13:20:00
38
原创 Python导入excel数据到sqlite;
Python导入excel数据到sqlite;# coding=utf-8import xlrdimport sqlite3import osimport uuiddef insert_data_to_db(path): wb = xlrd.open_workbook(path) print(wb.sheet_names()) sheet = wb.she...
2020-12-09 10:40:00
69
原创 VirtualBox安装摄像头
在以下地址下载扩展VirtualBox6.1.16 Oracle VM VirtualBox Extension Packhttps://www.virtualbox.org/wiki/Downloads然后再虚拟机窗口管理->全局设定->扩展->点击加号,添加下载的扩展插件然后重启虚拟机设备->摄像头->选中摄像头即可...
2020-12-04 17:47:00
72
原创 使用Python的opencv-python调用摄像头
先上代码,注意使用python3运行#!/usr/bin/env python3# coding=utf-8from cv2 import cv2cap = cv2.VideoCapture(0)while True: ret, frame = cap.read() cv2.imshow('frame', frame) c = cv2.waitKey(1) ...
2020-12-04 17:35:00
59
原创 CEF调试符号下载地址
CEF调试符号下载地址,CEF pdb下载地址https://cef-builds.spotifycdn.com/index.html#windows32
2020-12-04 16:17:00
32
原创 Koa搭建静态文件服务器
constKoa=require('koa')constKoaStatic=require('koa-static')constapp=newKoa()app.use(KoaStatic('./'))app.listen(8200,function(){console.log('serverlisteningon8200');});...
2020-11-16 15:21:00
16
原创 Android Unterminated string at character
在前端调用native时,报错Unterminated string at character xxx查询资料可能有以下原因:1.json对象字符串可能不完整 将对象字符串使用工具格式化后找问题。2.json对象中有换行符 将字符串替换为空,xxx.replaceAll("[\b\r\n\t]*", "")3.传入json对象中包含base64字符串导致字符串过大底层使用pr...
2020-07-22 12:07:00
255
原创 virtual box Ubuntu添加共享文件夹
1.在设置里面添加共享文件夹2.在虚拟机里面执行添加用户权限sudo usermod -a -G vboxsf 用户名
2020-06-27 08:39:00
38
原创 Virtual Box Ubuntu安装安装共享文件夹报错,需要安装 gcc perl make
执行以下指令:sudo apt-get install gcc perl make
2020-06-27 08:17:00
23
原创 C#中的版本说明
[assembly: AssemblyVersion("1.1.*")][assembly: AssemblyFileVersion("1.0.0.0")][assembly: AssemblyInformationalVersion("1.2.1.0")] // 用来定义 Product VersionAssemblyVersion: 存储在AssemblyDef manifest met...
2020-05-21 12:40:00
41
原创 Visual Studio版本与ToolsVersion与工具集版本号对应版本号
Format Version(解决方案文件版本)和VS版本的对应关系:-Visual Studio 2005 - Format Version 9.00-Visual Studio 2008 - Format Version 10.00-Visual Studio 2010 - Format Version 11.00-Visual Studio 2012 - Format Version 1...
2020-05-21 12:38:00
37
原创 nvm use 无法切换node版本
使用nvm use 切换版本后,node命令无法使用删除C:\Program Files\nodejs后恢复,存在此问题时发现C:\Program Files\nodejs文件夹无法打开,删除此文件夹后切换node版本后,此文件夹可以访问。...
2020-05-08 13:50:00
31
原创 文件路径选择中的三态逻辑
文件路径选择中的三态逻辑,效果图如下:代码如下: private bool? _isChecked = false; /// <summary> /// 是否已选择 /// </summary> public bool? IsChecked { g...
2020-04-06 09:56:00
19
原创 .net版本号
以下转自:https://www.cnblogs.com/AllengWang/archive/2006/11/17/563660.html我一直不太清楚AssemblyInfo.cs中AssemblyVersion AssemblyFileVersion之间的区别,今天刚好在查TFS的版本号,需要查询Microsoft.TeamFoundation.dll的版本号能过属性可以看到:不仅有我知...
2020-03-20 09:30:00
25
原创 使用MSBuild编译vs多个解决方案
1.编写target文件<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Default"> <ItemGroup> <SlnFiles Includ...
2020-03-16 10:38:00
39
原创 CEF截图
记录目前两种实现方式[DllImport("user32.dll")] private static extern bool PrintWindow(IntPtr hwnd, IntPtr hdcBlt, uint nFlags); public void WriteBmp(string bmpPath) { int...
2020-01-08 18:53:00
22
原创 使用SharpZIpLib写的压缩解压操作类
使用SharpZIpLib写的压缩解压操作类,已测试。 public class ZipHelper { /// <summary> /// 压缩文件 /// </summary> /// <param name="directory"></param> /...
2019-12-24 12:44:00
18
原创 WIN10下安装Linux子系统并安装xface4界面
WIN10下安装Linux子系统并安装xface4界面,使用win10自带的远程桌面工具登陆成功。成功截图:安装步骤1.安装【适用于Linux的Windows子系统】组件2.win10应用商店搜索ubantu,我这里测试使用的18.04版本3.开启菜单搜索ubantu启动,并配置用户账户密码4.配置下载源,这里是因为国外站点下载太慢配置源为阿里源,可以从以下网址找https...
2019-12-16 18:38:00
65
原创 async await task.Result 卡死
在如下代码中:public async Task<string> GetData(){ return await DoWork();}在UI线程中调用var data = GetData().Result;此时线程会卡死;两种解决办法:1,所有调用方法链中使用async、await方式调用。var data = await GetData().2, 去掉调用链...
2019-10-15 13:22:00
57
原创 启动webpack-dev-server错误,ERROR in main.js from UglifyJs Unexpected token: name «element», expected: pu...
启动webpack-dev-server出现以下错误ERROR in main.js from UglifyJsUnexpected token: name «element», expected: punc «;» [main.js:906,8]解决方法1.添加.babelrc,添加以下内容{"presets": ["@babel/env"]}2.webpack.config....
2019-08-27 17:03:00
26
原创 不能访问windows installer服务
xp系统安装msi类型的安装程序出现以下错误:不能访问windows installer服务。解决办法1:运行cmd -> regsvr32 msi.dll 运行services.msc-> 启动 Windows Installer 服务,并设置服务自动启动如果以上步骤不能解决,请继续步骤2.2.下载xp补丁,安装即可解决https://www.microso...
2019-08-05 14:16:00
39
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人