编程笔记
-
ffmpeg以RTP协议推送视频
docker编译环境 docker pull abdulachik/ffmpeg.js:latestdocker run -it -p 8080:8080 -v /Users/workspace/Downloads/ffmpeg_wasm:/tmp --privileged=true abdulachik/ffmpeg.js:latest /bin/bashcd /tmp 流程概…
-
MathProblem 34 Drug test problem
10% of the people in a certain population use an illegal drug. A drug test yields the correct result 90% of the time, whether the person uses drugs or not. A random person is forced to take the drug …
-
CommunityToolkit.Mvvm-IOC
CommunityToolkit.Mvvm未内置IOC,可以使用Microsoft.Extensions.DependencyInjection. 在App中注册ViewModel和其他服务 public partial class App : Application { public App() { Services = ConfigureServices()…
-
【Linux】yum源安装nginx服务
目录 前言 1、 配置yum源并进行安装 2、nginx服务启动 3、防火墙开放监听的端口 前言 centos 通过yum命令安装nginx服务,并开放监听端口、设置开机自启等 1、 配置yum源并进行安装 如有其他版本需求的,可以跳转官…
-
Linux 域名和DNS
名字解析的作用: TCP/IP网络中,设备之间的通信依赖IP地址来实现,但是IP地址不好记忆,所以就将每一台设备用一个名字来进行标识,但是这个名字计算机不能解析。所以就需要借助名字解析服务来实现将名字解析为IP地…
-
Linux—磁盘管理
Linux 磁盘管理 1、磁盘简介 1.1 认识磁盘 磁盘是一种计算机的外部存储器设备,由一个或多个覆盖有磁性材料的铝制或玻璃制的碟片组成,用来存储用户的信息,这种信息可以反复地被读取和改写;绝大多数磁盘被永久封…
-
linux学习
Linux 1.概述 是一个操作系统 Linux和centos 7的区别就像是windows和windows 7的区别 在服务器端,在开发领域Linux非常受欢迎 服务器都是使用命令行的 我们也就基于命令行来学习 2.环境搭建 2.1下载虚拟机VMware 下…
-
C++ 用for/while循环实现字符串逆置输出
1.for循环实现字符串逆置 #include <iostream> using namespace std; int main() { string str; cout << "请输入一个字符串:" << endl; cin >> str; int j = str.length() - 1; //必须要…
-
Node
Node package org.jsoup.nodes; import org.jsoup.SerializationException; import org.jsoup.helper.StringUtil; import org.jsoup.helper.Validate; import org.jsoup.parser.Parser; import org.jsoup.select.No…
-
(C#)监听剪贴板
public partial class Form1 : Form { public Form1() { InitializeComponent(); AddClipboardFormatListener(this.Handle); } protected override void WndProc(ref Message m) { if (m.Msg == WM_CLIPBOARDUPDATE…