languages coding smart used
IDE-Visual Studio Code-Extensions(插件)
#IDE-Visual Studio Code-Extensions(插件) https://marketplace.visualstudio.com/ 网上百度到的一些visualstudiocode的extensions插件。 ##主题 Moonlight Nord Noctis Palenig ......
how to create one command line configuration tool with shell language on Linux All In One
how to create one command line configuration tool with shell language on Linux All In One
如何在 Linux 上用 shell 语言创建一个命令行配置工具
raspi-config
......
VS Code常用配置及插件
1. 配置 { // 窗口缩放 "window.zoomLevel": -0.5, // 配置工作台图标主体 "workbench.iconTheme": "vscode-icons", // 首选颜色主题 "workbench.colorTheme": "Material Theme Lighte ......
CDH HDFS Non DFS Used 存储空间异常
问题:一个CDH集群Non DFS Used空间很大,排查了节点上磁盘实际使用,以及dfs.datanode.du.reserved参数,都没有异常情况; CDH版本:5.13 hadoop版本:2.6 1、这个问题是hadoop2.6版本的一个bug HDFS-8072 [HDFS-8072]如果 ......
使用VS Code开发微信小程序
使用VS Code开发微信小程序 微信开发工具 结构 缺点 VS Code VS Code 下载插件 Chinese 小程序开发助手 Easy less minapp vscode wxml wechat-snippet 中文乱码处理 配置Easy less 说明 微信开发工具 说归说,但是开发微信 ......
Access denied for user 'root'@'x.x.x.x' (using password: YES)请求的ip跟报错显示的ip不同(乌龙解决)
这里请求的实际上报这一条错误是说明已经请求到了目标服务器的,mysql中以‘root’@‘x.x.x.x’这种格式表示的ip其实是我们当前的ip而非目标ip, 这里报错是因为我密码输错了,所以报了错 ......
Common code
Common code 代表段库 Csharp 查询 简单查询 var query = new QueryExpression("account"); var condition = new ConditionExpression("name", ConditionOperator.Equal, " ......
解决 dpkg 安装出错后的 Sub-process /usr/bin/dpkg returned an error code (1) 错误
在使用 dpkg -i 安装.deb软件包的过程中,会出现安装失败的可能。之后无论用 sudo apt install -f or sud apt autoremove 等常见的修复命令都是无效的。网络上很多解决方案都直接给出需要运行的命令,不分析原因也不说明理由。我从来不尝试这样的解决方案,除非我 ......
Linux中使用ntpdate同步失败报错:14 Apr 08:42:12 ntpdate[1255]: the NTP socket is in use, exiting:解决方法.
报错信息: 报错原因: 1、可能是因为同步的域名信息没有解析到。 2、可能是因为服务的问题导致没有同步成功。 解决方法: 1、先关闭ntpd服务。 [root@k8s-master01 ~]# service ntpd stop Redirecting to /bin/systemctl stop ......
code
// 将.log文件转成json,删除不必要的字段(未删干净) const fs = require('fs'); const path = require('path'); const sourceDir = './source'; // 源文件目录路径 const targetDir = './ ......
OkHttp Address already in use: no further information异常
说下场景,我的程序在多线程场景下一个循环体中处理业务数据,其中需要调用一个外部http接口去获取一些数据,程序总会在在本地执行一段时间后会抛出Address already in use: no further information错误。 这是大量并发场景下出现的问题,经过查阅原因是OkHttp的 ......
2023-04-13 [antd: Menu] `children` will be removed in next major version. Please use `items` instead.
问题描述:antd版本升级,需要对以往的版本的代码进行修改,版本>=4.20.0以上需要修改,<4.20.0则不用。 需要修改的组件为Menu,具体修改参考官方例子: // >=4.20.0 可用,推荐的写法 ✅ const items = [ { label: '菜单项一', key: 'item ......
Pytorch深度学习全流程代码框架——Base Codes for Deep Learning Using Pytorch
# 导入必要的库 import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader, Dataset # 定义超参数 epochs = 10 # 训练轮数 lr ......
how to use crontab to send an email on Linux All In One
how to use crontab to send an email on Linux All In One
......
a note when using docker locally
when building the getting-started application provided by official site, I got a error saying, #0 138.4 node-pre-gyp ERR! install request to https://g ......
django安装依赖包报错No such file or directory: 'requirement.txt'和警告You are using pip version 22.0.4; however, version 23.0.1 is available.
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirement.txt'WARNING: You are using pip version 22.0.4; however, ver ......
vite写jsx语法报错: [vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you use tsconfig.json, make sure to not set jsx to preserve.
1.安装vite的jsx包 npm i @vitejs/plugin-vue-jsx --save 2.安装所有依赖 npm i 3.在vite.config.ts中配置 import { defineConfig } from 'vite'; import vue from '@vitejs/pl ......
基于VS Code的JSDoc的使用指南
1. 引言 JSDoc是一个用于 JavaScript 的API文档生成器,可以将文档注释直接添加到源代码中,JSDoc 工具将扫描您的源代码并提供一些操作,例如,生成一个 API 文档 JSDoc官网:Use JSDoc: Index JSDoc中文站点:JSDoc 入门 | JSDoc中文文档 ......
how to use Vim delete one line All In One
how to use Vim delete one line All In One
在正常模式下(非编辑模式 i),光标选中所在行, 连续按两下d键,即可删除一整行 ✅
......
How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux
sudo blkid sudo vim /etc/fstab UUID=41c22818-fbad-4da6-8196-c816df0b7aa8 /mnt/elaine ext4 defaults 0 1 https://www.cyberciti.biz/faq/linux-finding-usi ......
Density estimation using real nvp
Density estimation using real nvp 参考资料: 苏剑林. (Aug. 26, 2018). 《细水长flow之RealNVP与Glow:流模型的传承与升华 》[Blog post]. Retrieved from https://kexue.fm/archives/5 ......
Code-C++-Linux-统计一个文件夹占据空间大小
#Code-C++-Linux-统计一个文件夹占据空间大小 https://my.oschina.net/Tsybius2014/blog/330628 从以上链接中拷贝的代码 #include <stdio.h> #include <sys/stat.h> #include <sys/types. ......
Using OFFSET and FETCH to limit the rows returned sql server分页查询
Using OFFSET and FETCH to limit the rows returned We recommend that you use the OFFSET and FETCH clauses instead of the TOP clause to implement a quer ......
Installing MySQL 5.7 On Ubuntu Using Generic Binaries
Installing MySQL 5.7 On Ubuntu Using Generic Binaries 1、安装依赖 apt-get install libaio1 2、获取软件包 wget https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.9 ......
power apps canvas 最新scan 扫描功能 barcode, QR code
Barcode reader现在全面代替barcode scanner barcode reader现在只能通过 power apps mobile app 或者 power apps Windows UWP app来使用。 还不能通过浏览器使用 Barcode reader 控件支持下面数据类型 ......
Code-C++-Linux-利用condition_variable封装event
#Code-C++-Linux-利用condition_variable封装event C++11使用condition_variable加上mutex封装event类,实现等同于windows的事件功能。 从网上百度到的以下代码实现,具体网址搞丢了。 #include <iostream> #in ......
Code-C++-Linux-获取时间time()/localtime()/gettimeofday()
#Code-C++-Linux-获取时间time()/localtime()/gettimeofday() #include <iostream> //#include <time.h> #include <sys/time.h> //for gettimeofday() #include <str ......
Code-C++-fstream-输出到文件(待完善)
#Code-C++-fstream-输出到文件 #include <fstream> #include <string> void exportFile(std::string strFileName, int nVal){ std::string strFilePath = "./" + strF ......
[Typescript] Generic slots, using built-in types as much as possible
There are two options doing the same things. const makeSafe = <TParams extends any[], TReturn>(func: (...args: TParams) => TReturn) => ( ...args: TPar ......