Code

VS Code 统计代码行数

安装插件 VS Code 可以通过安装 VS Code Counter 插件来很方便的统计代码行数。 使用 Shift+Ctrl+X 快捷键打开扩展界面,搜索 VS Code Counter 并安装,如下 使用插件统计代码 点击顶部'查看>命令面板'菜单,如下: 工作区选择 VscodeCounte ......
代码 Code VS

vs code 快捷键

官方地址 PDF 下载 ......
快捷键 code vs

在Visual Studio Code中进行WSL开发

在Visual Studio Code中轻松进行WSL开发的步骤如下: 1. 安装Visual Studio Code和WSL扩展:首先,从Visual Studio Code官网下载并安装Visual Studio Code。然后,在Visual Studio Code中安装WSL扩展,该扩展可以 ......
Visual Studio Code WSL

!code

1 https://www.douban.com/note/633227132/ 这是《如是》对一个西川的访谈。在中间一段,回放了西川在中央美院“毕业夜之夜”登台擂鼓朗诵《屈原·少司命》,这种生命力,不是青春的那种火,而是一个成熟的老诗人的内在力量的外显,挺震撼我的,西川的学生们应该是特别有福气的吧 ......
code

代码的艺术-Writing Code Like a Pianist

如何评定一个系统的质量?什么样的系统或者软件可以称之为高质量?本文将从主观和客观的角度,和大家探讨一下,作为程序员,应该如何写出整洁高质量的代码。 ......
Writing Pianist 代码 艺术 Code

Secure Code Warrior C# Basic OWASP Web Top 10 2017 8: Insecure deserialization, 9: Using Components with Known Vulnerabilities, 10: Insufficient Logging and Monitoring

Last but not least. These set challenges consist of 8: Insecure deserialization, 9: Using Components with Known Vulnerabilities, 10: Insufficient Logg ......

Secure Code Warrior C# Basic OWASP Web Top 10 2017 5: Broken Access Control, 6: Security Misconfiguration and 7: XSS vulnerabilities

Learn the ropes or hone your skills in secure programming here. These challenges will give you an understanding of 5: Broken Access Control, 6: Securi ......

Secure Code Warrior C# Basic OWASP Web Top 10 2017 1: Injection Flaws and 2: Broken Authentication vulnerabilities 3: Sensitive Data Exposure and 4: XXE vulnerabilities

Let's continue with some other very common application weaknesses. This set of levels will focus on 3: Sensitive Data Exposure and 4: XXE vulnerabilit ......

Secure Code Warrior C# Basic OWASP Web Top 10 2017 1: Injection Flaws and 2: Broken Authentication vulnerabilities

Let's start with the most critical application weaknesses. These challenges get you the foundations of 1: Injection Flaws and 2: Broken Authentication ......

2023 Visual Studio Code 插件推荐:18 个提高开发效率的常用插件

Visual Studio Code (简称VSCode) 是一款强大的开源代码编辑器,它拥有众多功能强大的扩展插件,使得开发者可以根据自己的需求来定制编辑器的功能和外观。在本文中,我们将分享一些非常实用的 VSCode 插件,这些插件将提高您的开发效率,使编码变得更加愉快。 1. Chinese ......
插件 效率 常用 Visual Studio

Microsoft Visual Studio Code 安装配置教程 (C/C++)

Microsoft Visual Studio Code 安装教程 前言 由于看不习惯 Dev-C++ 等古老的 IDE,所以决定装 VS Code(可是现在感觉 VS 更好) 所以我就把安装过程记录了下来。 0x01 下载 下载 0x02 安装 前面的不用讲了吧。。。毕竟全是中文的。。。 0x03 ......
Microsoft 教程 Visual Studio Code

vs code出现preLaunchTask已终止,退出代码为1以及无法控制台输入的解决办法汇总

可以参考如下几篇博客: 控制台无法输入: VSCode控制台不能输入解决办法_vscode控制台无法输入-CSDN博客 vs code出现preLaunchTask已终止,退出代码为1: vscode配置c/c++编译环境(最终解决办法)_未配置编译器。除非设置自己的配置,否则 intellisen ......
控制台 preLaunchTask 代码 办法 code

Secure Code Warrior OWASP Web Top 10 2021 A1-A2 1: Broken Access Control and 2: Cryptographic Failures

Let’s start with the most critical application weaknesses. These challenges get you the foundations of 1: Broken Access Control and 2: Cryptographic F ......

Secure Code Warrior Introduction to OWASP Top 10 Awareness (with latest updates from the Web top 10 2021)

Missing Function Access Control Access to these functionalities should be restricted to authenticated users. However, the current mechanism only check ......

5.4 Bounds on the optimal code length (Shannon-Fano coding)

From section 5.3, we have \(l_i^*=-\log_D p_i\), but it may not be integer, and we should choose \(l_i\) close to \(l_i^*\). So round it up using the ......
Shannon-Fano Shannon optimal Bounds length

cygwin works with vs code

In case someone stumbles on this thread. There is a bug in Cygwin's gdb (v11.x - v12.x) that prevents VS Code from stopping at breakpoints. At the mom ......
cygwin works code with vs

解决VS Code/Code insiders右键python代码无法“转到定义”问题

最近怀疑自己用了个假的VS Code, 同门的能丝滑跳转定义、跳转引用,自己的偏偏不行(合着这么爽的功能我从来没享受到(。﹏。*)),网上各种教程试了个遍都不行,最后自己摸索出了解决方案。记录在此备忘。 ......
Code insiders 代码 python 问题

npm安装依赖报错npm ERR code ENOTFOUND npm ERR errno ENOTFOUND

第一种方法: 1:执行: npm config get proxy npm config get https-proxy 如两个返回值都为null,则直接执行第二步,要确保两个返回值都是null才可以,否则就要执行下面的代码: npm config set proxy null npm config ......
ENOTFOUND npm ERR errno code

提交代码遇到not allowed to push code git info detecting host provider for 网址解决办法

查看git 出错信息 > git push -u origin android info: detecting host provider for 'https://AA.com/'... warning: SECURITY WARNING warning: | TLS certificate ve ......
detecting provider allowed 代码 办法

使用PHP QR Code生成二维码

HP QR Code是一个PHP二维码生成类库,利用它可以轻松生成二维码,官网提供了下载和多个演示demo,查看地址: https://www.52mwyd.com/ 下载官网提供的类库后,只需要使用phpqrcode.php就可以生成二维码了,当然您的PHP环境必须开启支持GD2。 phpqrco ......
Code PHP QR

How do companies ship code to production?

公司如何将代码交付到生产环境? 上图说明了典型的工作流。 步骤 1:该过程从产品所有者根据需求创建用户故事开始。 步骤 2:开发团队从积压工作中获取用户情景,并将它们放入为期两周的开发周期的冲刺中。 第 3 步:开发人员将源代码提交到代码存储库 Git 中。 第 4 步:在 Jenkins 中触发构 ......
production companies code ship How

git 报错 remote: You are not allowed to upload code

背景: 尝试推送代码到A仓库时git返回“remote: You are not allowed to upload code”,其他仓库推送代码正常。 定位: 1. 确认我已拥有仓库权限 2. 在其他服务器登录我本人gitlab账号推送代码到A仓库成功 3. 其他人可以正常推送代码到A仓库 4. ......
allowed remote upload code git

VScode使用MySQL插件老是Connect timeout,右下角还出现Cannot read properties of null (reading 'getPassword') error in vs code问题

安装了MySQL插件,一开始还用的好好的结果第二天就不行了真是鬼火直冒。 首先关闭vscode里面的自动更新:setting,搜索update,然后关闭application里面的自动更新; 我现在的版本是1.83.1,我在https://code.visualstudio.com/updates/ ......
getPassword properties 插件 老是 Connect

Code-C++-chrono to tm (format time)

Code-C++-chrono to tm (format time) std::chrono::system_clock::time_point now = std::chrono::system_clock::now(); std::time_t now_time_t = std::chrono ......
Code-C chrono format Code time

Code-C++-Snowflake

Code-C++-Snowflake #include <iostream> #include <chrono> #include <stdexcept> class Snowflake { private: // 雪花算法的各个参数 static constexpr int64_t workerI ......
Snowflake Code-C Code

C# Dev Kit for Visual Studio Code

Visual Studio Code安装C#开发工具包并编写ASP.NET Core Web应用 前言 前段时间微软发布了适用于VS Code的C#开发工具包(注意目前该包还属于预发布状态但是可以正常使用),因为之前看过网上的一些使用VS Code搭建.NET Core环境的教程看着还挺复杂的就一直 ......
Visual Studio Code Dev Kit

Asp.net core中HttpResponse常用属性及Status code

在ASP.NET Core中,HttpResponse 表示HTTP响应,其中包括一些常用的属性和方法,用于设置HTTP响应的各种属性。HTTP响应通常由一个HTTP状态码,HTTP头(headers),和HTTP主体(body)组成。以下是一些常用的 HttpResponse 属性和一些常见的HT ......
HttpResponse 属性 常用 Status core

P4062 [Code+#1] Yazid 的新生舞会

题外话 我记得第一次看见这道题是几个月前刚开始集训的时候,当时一点思路都没有,但是今天自己做出来了,很喜欢这种感觉! \(\text{Links}\) 原题传送门 可能更好的阅读体验 题意 求给定序列中有多少个子区间满足众数出现次数严格大于区间长度的一半。 题解 题目要求满足条件的子区间,一个很直接 ......
舞会 新生 P4062 Yazid 4062

Perkins 1106D Generation CID 0003 FMI 05 Trouble Code Solution

This illustration give the solution for Perkins 1106D electric power generation (EPG) CID 0003 FMI 05 trouble code. Related Contents:Perkins EST Compa ......
Generation Solution Perkins Trouble 1106D

解决 jmeter 压测Non HTTP response code: java.net.NoRouteToHostException/Non HTTP response message: Cannot assign requested address (Address not available)

针对centos : 先检查下tcp port range 在合理范围内: cat /proc/sys/net/ipv4/ip_local_port_range 1024 65535 上述为centos合理范围,不合理作出修改 解决方法:1. 调低端口释放后的等待时间, 默认为60s, 修改为15~ ......